diff --git a/SWSCloudNode/qemu/__init__.py b/SWSCloudNode/qemu/__init__.py index 7e1d92f..f4b969e 100644 --- a/SWSCloudNode/qemu/__init__.py +++ b/SWSCloudNode/qemu/__init__.py @@ -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,