From a62d9c01805afce7e182bd0aed88b245fbadd2ee Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Thu, 7 Nov 2019 08:16:09 +0100 Subject: [PATCH] vm: Add virtual RNG --- vm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vm b/vm index d8abece..14f2483 100755 --- 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 "$@" -- 2.39.2