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