X-Git-Url: https://piware.de/gitweb/?p=bin.git;a=blobdiff_plain;f=vm;h=14f24837c037fec4bdb8d2afe32a5e9e99c618d8;hp=5c497593c55b8acfd171e266133e2704f7cb724a;hb=67fe3081fb8bb929ce5c9927286f23eb1fd0099e;hpb=fcd8ef8dd4a9ccd4137ce951efbc81ad83c90820 diff --git a/vm b/vm index 5c49759..14f2483 100755 --- a/vm +++ b/vm @@ -9,5 +9,7 @@ while echo '' | nc localhost $ssh_port >/dev/null; do ssh_port=$((ssh_port+1)) done echo "Host ssh port: $ssh_port" -qemu-system-x86_64 -enable-kvm -m 2048 -drive file="$image",if=virtio \ +qemu-system-x86_64 -enable-kvm -display sdl -m 2048 -device virtio-rng-pci \ + -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 "$@"