From 1dd527fd5f68b1661aa73fdd2a2e3396ee666381 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 7 Oct 2017 16:52:55 -0300 Subject: Adds drive_interface config --- kvmx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'kvmx') diff --git a/kvmx b/kvmx index 64746a3..a17b7d2 100755 --- a/kvmx +++ b/kvmx @@ -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 \ -- cgit v1.2.3