aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xkvmx4
1 files changed, 3 insertions, 1 deletions
diff --git a/kvmx b/kvmx
index 0f4dfcd..47f7907 100755
--- a/kvmx
+++ b/kvmx
@@ -6,6 +6,7 @@
# Parameters
BASENAME="`basename $0`"
STORAGE="/var/cache/qemu"
+SHARED="/var/data/load"
VM="$1"
# Check
@@ -23,7 +24,8 @@ kvm -m 2048 -name $VM -drive file=$STORAGE/$VM.img,if=virtio -vga qxl \
-device virtio-serial-pci \
-device virtserialport,chardev=spicechannel0,name=com.redhat.spice.0 \
-chardev spicevmc,id=spicechannel0,name=vdagent \
- -smp 2 -soundhw ac97 -cpu host -balloon virtio &
+ -smp 2 -soundhw ac97 -cpu host -balloon virtio \
+ -fsdev local,id=$VM,path=$SHARED,security_model=none -device virtio-9p-pci,fsdev=$VM,mount_tag=$VM &
# Run spice client
spicec --host localhost --port 3001