vm: Add virtual RNG
authorMartin Pitt <martin@piware.de>
Thu, 7 Nov 2019 07:16:09 +0000 (08:16 +0100)
committerMartin Pitt <martin@piware.de>
Thu, 7 Nov 2019 07:16:09 +0000 (08:16 +0100)
vm

diff --git a/vm b/vm
index d8abece8e4565aa49e7905c6291738ef94a809f9..14f24837c037fec4bdb8d2afe32a5e9e99c618d8 100755 (executable)
--- a/vm
+++ b/vm
@@ -9,6 +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 -display sdl -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 "$@"