From b2ebd3d2cbb858d98a9a66a4900c72d5f4de57df Mon Sep 17 00:00:00 2001 From: fanta Date: Mon, 21 Aug 2023 13:13:12 +0200 Subject: [PATCH] grow root partition and resize --- q.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/q.py b/q.py index 9124ad7..bbad99d 100755 --- a/q.py +++ b/q.py @@ -61,6 +61,8 @@ def createVms(): os.system("virt-customize -a "+dirVmsImgs+"/"+vmName+".qcow2 --root-password password:"+vmPasswd) os.system("virt-customize -a "+dirVmsImgs+"/"+vmName+".qcow2 --hostname "+vmName) os.system("virt-customize -a "+dirVmsImgs+"/"+vmName+".qcow2 --install dropbear") + os.system("virt-customize -a "+dirVmsImgs+"/"+vmName+".qcow2 --firstboot-command 'growpart /dev/sda 1'") + os.system("virt-customize -a "+dirVmsImgs+"/"+vmName+".qcow2 --firstboot-command 'resize2fs /dev/sda1'") choice() def runVms():