diff options
author | Laurent Bonnans <laurent.bonnans@here.com> | 2019-03-20 12:09:53 +0100 |
---|---|---|
committer | Laurent Bonnans <laurent.bonnans@here.com> | 2019-03-21 13:45:30 +0100 |
commit | 262654d184264412498abb461b34c47ec3736e78 (patch) | |
tree | a6118be3ceaebde6fccb55c5e8853f0bb27e86ff /scripts | |
parent | c481c1df24ae6e4732a102e0007d763d137e56b0 (diff) | |
download | meta-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>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/qemucommand.py | 2 |
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", |