aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-12-28 11:44:33 -0200
committerSilvio Rhatto <rhatto@riseup.net>2016-12-28 11:44:33 -0200
commit77dc2e1d2e0ecc5c9f5cd1b91923a471d23533bc (patch)
tree17f5a6192538ddaa6946bf314a17b4716211186c
parent9a82a06d0ab5acb8632cb250abbc09ea77ccffde (diff)
downloadvbox-77dc2e1d2e0ecc5c9f5cd1b91923a471d23533bc.tar.gz
vbox-77dc2e1d2e0ecc5c9f5cd1b91923a471d23533bc.tar.bz2
Folder sharing between host and guest on kvmx
-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