From 65d310dc8b3b59d3428d9a46c27e2f3594a8b2e9 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Mon, 23 Jan 2017 17:19:28 +0100 Subject: [PATCH] vm: export $HOME as 9p mount --- vm | 1 + 1 file changed, 1 insertion(+) diff --git a/vm b/vm index 652c436..d8abece 100755 --- 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 "$@" -- 2.39.5