new version with QEMU

This commit is contained in:
Vyacheslav Anzhiganov 2016-05-17 02:15:40 +03:00
parent 9191d7710b
commit 11a2cd376c

View file

@ -203,19 +203,19 @@ class QEMU:
# "--part=/var/lib/qemu/images/%s/partition" % values['hostname'],
"--rootsize=%s" % storage,
"--swapsize=%s" % swap,
"--templates=templates",
"--templates=/tmp/libvirt/%s/templates/libvirt" % hostname,
# "--user=administrator",
# "--name=administrator",
# "--pass=%s" % values['password'],
"--rootpass=%s" % password,
"--ssh-user-key=/tmp/libvirt/%s/templates/libvirt" % hostname,
"--ssh-user-key=/tmp/libvirt/%s/authorized_keys" % hostname,
"--addpkg=linux-image-generic",
"--addpkg=vim-nox",
"--addpkg=nano",
"--addpkg=unattended-upgrades",
"--addpkg=acpid",
"--addpkg=fail2ban",
"--firstboot=/var/lib/qemu/images/%s/boot.sh" % hostname,
"--firstboot=/tmp/libvirt/%s/boot.sh" % hostname,
"--mem=%s" % memory,
"--cpus=%s" % cores,
"--hostname=%s" % hostname,