From a4b070e4dc319aabbd53c7c0987c1231ea554e88 Mon Sep 17 00:00:00 2001 From: Johannes 'josch' Schauer Date: Fri, 3 Jan 2020 15:56:49 +0100 Subject: [PATCH] run_qemu.sh: use /dev/urandom as source for randomness --- run_qemu.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/run_qemu.sh b/run_qemu.sh index 91c6ddf..4fc819e 100755 --- a/run_qemu.sh +++ b/run_qemu.sh @@ -32,6 +32,7 @@ qemu-img create -f qcow2 -b "$(realpath $cachedir)/debian-$DEFAULT_DIST.qcow" "$ qemu-system-x86_64 \ -no-user-config \ -M accel=kvm:tcg -m 1G -nographic \ + -object rng-random,filename=/dev/urandom,id=rng0 -device virtio-rng-pci,rng=rng0 \ -monitor unix:/tmp/monitor,server,nowait \ -serial unix:/tmp/ttyS0,server,nowait \ -serial unix:/tmp/ttyS1,server,nowait \