summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorLaurent Bonnans <laurent.bonnans@here.com>2019-03-20 12:09:53 +0100
committerPatrick Vacek <patrickvacek@gmail.com>2019-04-29 09:54:45 +0200
commit68e1808ee48bd250d73f33537b5b65a915bc7e43 (patch)
treedb8cb347baba461d689eaf0051e337c42bb3e837 /scripts
parentd03940103bb0409a0129ac160dc831de0b38c5dc (diff)
downloadmeta-updater-68e1808ee48bd250d73f33537b5b65a915bc7e43.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>
Diffstat (limited to 'scripts')
-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",