up
This commit is contained in:
parent
98a60acfc2
commit
ceded625f4
1 changed files with 3 additions and 3 deletions
|
@ -125,7 +125,7 @@ class QEMU:
|
|||
|
||||
def __prepare(self, hostname):
|
||||
# Create directory for new VM
|
||||
# os.popen('mkdir -p /var/lib/qemu/images/%s/templates/qemu' % hostname, "r")
|
||||
# os.popen('mkdir -p /tmp/libvirt/%s/templates/libvirt' % hostname, "r")
|
||||
subprocess.Popen([
|
||||
# 'mkdir', '-p', '/var/lib/libvirt/images/%s/templates/qemu' % hostname
|
||||
'mkdir', '-p', '/tmp/libvirt/%s/templates/libvirt' % hostname
|
||||
|
@ -187,7 +187,7 @@ class QEMU:
|
|||
|
||||
c = [
|
||||
"cd",
|
||||
"/var/lib/libvirt/images;" % hostname,
|
||||
"/var/lib/libvirt/images;",
|
||||
"/usr/bin/vmbuilder",
|
||||
"kvm",
|
||||
os_name,
|
||||
|
@ -196,7 +196,7 @@ class QEMU:
|
|||
"--arch=amd64",
|
||||
"--mirror=%s" % mirror,
|
||||
"-o",
|
||||
"--qemu=qemu:///system",
|
||||
"--libvirt=qemu:///system",
|
||||
"--ip=%s" % ipv4,
|
||||
"--gw=%s" % gw,
|
||||
# PARTITIONING
|
||||
|
|
Loading…
Add table
Reference in a new issue