grow root partition and resize

This commit is contained in:
fanta 2023-08-21 13:13:12 +02:00
parent 2e9ea9761e
commit b2ebd3d2cb

2
q.py
View File

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