On Tue, 16 Apr 2024, Timo Lindfors wrote:
I would very much like to have some sort of workaround to start moving some

I noticed that if I use

####

cmd = [
    "virt-install",
    "--connect", "qemu+ssh://ansi...@hypervisor.example.com/system",
    "--name", "linditest",
    "--cloud-init", 
"user-data=cloudinit-user-data.yml,network-config=cloudinit-network-config.yml",
    "--os-variant", "debiantesting",
    "--network", "bridge=br0,model=virtio",
    "--disk", "size=20,backing_store=/srv/images/debian-12-generic-amd64.qcow2",
    "--graphics", "none",
    "--autostart"
]
subprocess.check_call(cmd)

####

I get the error messages about grep and sed being missing but still somehow the filesystem gets resized:


####
Warning: fsck not present, so skipping root file system
[ 2.993780] EXT4-fs (vda1): mounted filesystem with ordered data mode. Quota mode: none.
done.
Begin: Running /scripts/local-bottom ... GROWROOT: /sbin/growpart: 824: /sbin/growpart: grep: not found
GPT PMBR size mismatch (4194303 != 41943039) will be corrected by write.
The backup GPT table is not on the end of the device.
/sbin/growpart: 853: /sbin/growpart: sed: not found
WARN: unknown label
/sbin/growpart: 354: /sbin/growpart: sed: not found
FAILED: sed failed on dump output
/sbin/growpart: 83: /sbin/growpart: rm: not found
done.
Begin: Running /scripts/init-bottom ... done.

...

[  OK  ] Started session-1.scope - Session 1 of User ansible.

Debian GNU/Linux 12 linditest ttyS0

linditest login: ansible
Password:
Linux linditest 6.1.0-20-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.85-1 (2024-04-11) x86_64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Mon Apr 15 21:28:07 UTC 2024 from 80.242.28.204 on pts/0
ansible@linditest:~$ df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            462M     0  462M   0% /dev
tmpfs            97M  624K   96M   1% /run
/dev/vda1        20G 1006M   18G   6% /
tmpfs           481M     0  481M   0% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
/dev/vda15      124M   12M  113M  10% /boot/efi
tmpfs            97M     0   97M   0% /run/user/1000

#####

-Timo

Reply via email to