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():