diff options
-rwxr-xr-x | kvmx | 6 | ||||
-rw-r--r-- | kvmxfile | 4 |
2 files changed, 9 insertions, 1 deletions
@@ -353,9 +353,13 @@ function kvmx_up { smp="2" fi + if [ -z "$drive_interface" ]; then + drive_interface="virtio" + fi + # Run virtual machine # See https://en.wikipedia.org/wiki/Nohup#Overcoming_hanging - nohup kvm -m $memory -name $VM -drive file=$image,if=virtio $graphics $shared \ + nohup kvm -m $memory -name $VM -drive file=$image,if=$drive_interface $graphics $shared \ -spice port=$PORT,addr=127.0.0.1,disable-ticketing,streaming-video=off,jpeg-wan-compression=never,playback-compression=off,zlib-glz-wan-compression=never,image-compression=off \ -device virtio-serial-pci \ -device virtserialport,chardev=spicechannel0,name=com.redhat.spice.0 \ @@ -102,3 +102,7 @@ ssh_custom="y" # Bootloader (used only during bootstrapping by kvmx-create). bootloader="grub" + +# Drive interface +# Needed by some systems like NetBSD and FreeBSD +#drive_interface="ide" |