diff options
-rwxr-xr-x | kvmx | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1629,9 +1629,13 @@ function kvmx_install { memory="2048" fi + if [ -z "$format" ]; then + format="qcow2" + fi + if [ ! -e "$image" ]; then echo "Creating $image with size $size..." - qemu-img create -f qcow2 $image $size + qemu-img create -f $format $image $size fi kvm -m $memory -net nic,model=virtio -net user -drive file=$image -cdrom $media |