diff options
author | Florian Pritz <bluewind@xinu.at> | 2015-10-26 17:08:32 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2015-10-26 17:08:32 +0100 |
commit | 1c304f96c427d3538934fffa075ab50d7ab7d64a (patch) | |
tree | 4c0bc518bf52452a679c1df1625c6ec83c55fedc /create-new-vm.sh | |
parent | 9824b844a069d8abdba35827dc860bdb649d0cf3 (diff) | |
download | bin-1c304f96c427d3538934fffa075ab50d7ab7d64a.tar.gz bin-1c304f96c427d3538934fffa075ab50d7ab7d64a.tar.xz |
libvirt: Use default storage
Signed-off-by: Florian Pritz <bluewind@xinu.at>
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}") |