new version with QEMU
This commit is contained in:
parent
9191d7710b
commit
11a2cd376c
1 changed files with 3 additions and 3 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue