From 262654d184264412498abb461b34c47ec3736e78 Mon Sep 17 00:00:00 2001 From: Laurent Bonnans Date: Wed, 20 Mar 2019 12:09:53 +0100 Subject: Solve qemu long rng initialization problem Expose a fake hardware rng on the guest, linked to the host's /dev/urandom. Signed-off-by: Laurent Bonnans --- scripts/qemucommand.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'scripts/qemucommand.py') diff --git a/scripts/qemucommand.py b/scripts/qemucommand.py index 4abfd4e..cafab6d 100644 --- a/scripts/qemucommand.py +++ b/scripts/qemucommand.py @@ -97,6 +97,8 @@ class QemuCommand(object): "-serial", "tcp:127.0.0.1:%d,server,nowait" % self.serial_port, "-m", "1G", "-usb", + "-object", "rng-random,id=rng0,filename=/dev/urandom", + "-device", "virtio-rng-pci,rng=rng0", "-device", "usb-tablet", "-show-cursor", "-vga", "std", -- cgit v1.2.3-54-g00ecf