X-Git-Url: https://piware.de/gitweb/?p=bin.git;a=blobdiff_plain;f=vm;h=d8abece8e4565aa49e7905c6291738ef94a809f9;hp=652c4363e5fe7b04a9086b039a93233dbe17a9de;hb=0c79278618e908ea537400bc9f6a69e3f7e2e313;hpb=7f227400b810cc9e1a97206ef3f2d4acc12c7abd 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 "$@"