summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Bonnans <laurent.bonnans@here.com>2019-03-20 12:09:53 +0100
committerLaurent Bonnans <laurent.bonnans@here.com>2019-03-21 13:45:30 +0100
commit262654d184264412498abb461b34c47ec3736e78 (patch)
treea6118be3ceaebde6fccb55c5e8853f0bb27e86ff
parentc481c1df24ae6e4732a102e0007d763d137e56b0 (diff)
downloadmeta-updater-262654d184264412498abb461b34c47ec3736e78.tar.gz
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 <laurent.bonnans@here.com>
-rw-r--r--scripts/qemucommand.py2
1 files changed, 2 insertions, 0 deletions
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):
97 "-serial", "tcp:127.0.0.1:%d,server,nowait" % self.serial_port, 97 "-serial", "tcp:127.0.0.1:%d,server,nowait" % self.serial_port,
98 "-m", "1G", 98 "-m", "1G",
99 "-usb", 99 "-usb",
100 "-object", "rng-random,id=rng0,filename=/dev/urandom",
101 "-device", "virtio-rng-pci,rng=rng0",
100 "-device", "usb-tablet", 102 "-device", "usb-tablet",
101 "-show-cursor", 103 "-show-cursor",
102 "-vga", "std", 104 "-vga", "std",