]> piware.de Git - bin.git/commitdiff
vm: export $HOME as 9p mount
authorMartin Pitt <martin@piware.de>
Mon, 23 Jan 2017 16:19:28 +0000 (17:19 +0100)
committerMartin Pitt <martin@piware.de>
Mon, 23 Jan 2017 16:19:28 +0000 (17:19 +0100)
vm

diff --git a/vm b/vm
index 652c4363e5fe7b04a9086b039a93233dbe17a9de..d8abece8e4565aa49e7905c6291738ef94a809f9 100755 (executable)
--- a/vm
+++ b/vm
@@ -10,4 +10,5 @@ while echo '' | nc localhost $ssh_port >/dev/null; do
 done
 echo "Host ssh port: $ssh_port"
 qemu-system-x86_64 -enable-kvm -display sdl -m 2048 -drive file="$image",if=virtio \
+    -virtfs local,id=src,path=$HOME,security_model=none,mount_tag=home,readonly \
     -net nic,model=virtio -net user,hostfwd=tcp::${ssh_port}-:22 "$@"