diff options
Diffstat (limited to 'create-new-vm.sh')
-rwxr-xr-x | create-new-vm.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/create-new-vm.sh b/create-new-vm.sh index b42e3cd..8419ff1 100755 --- a/create-new-vm.sh +++ b/create-new-vm.sh @@ -39,7 +39,7 @@ cat <<EOF >vm.xml <emulator>/usr/sbin/qemu-system-x86_64</emulator> <disk type='file' device='disk'> <driver name='qemu' type='qcow2'/> - <source file='/mnt/data/libvirt/storage/${name}.img'/> + <source file='/var/lib/libvirt/images/${name}.img'/> <target dev='vda' bus='virtio'/> </disk> <controller type='usb' index='0'> @@ -74,7 +74,7 @@ cat <<EOF >vm.xml </domain> EOF -virsh vol-create-as nfs ${name}.img $size --format qcow2 +virsh vol-create-as default ${name}.img $size --format qcow2 virsh define vm.xml vmmac=$(virsh domiflist $name | grep -oE "[0-9a-f]{2}:[0-9a-f]{2}:[0-9a-f]{2}:[0-9a-f]{2}:[0-9a-f]{2}:[0-9a-f]{2}") |