From 77dc2e1d2e0ecc5c9f5cd1b91923a471d23533bc Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Wed, 28 Dec 2016 11:44:33 -0200 Subject: Folder sharing between host and guest on kvmx --- kvmx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3