diff options
| author | Laurent Bonnans <laurent.bonnans@here.com> | 2019-03-20 12:09:53 +0100 |
|---|---|---|
| committer | Patrick Vacek <patrickvacek@gmail.com> | 2019-04-29 09:54:51 +0200 |
| commit | f536a81902fcd110bb7b37f4a7eda171d5a60d2c (patch) | |
| tree | 5e90c914a4e2b1cd4c013908dbcda27a7aefb2e5 | |
| parent | 54b7f9b8a18e80b384bd7551e90acccd9b53ec88 (diff) | |
| download | meta-updater-f536a81902fcd110bb7b37f4a7eda171d5a60d2c.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.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/qemucommand.py b/scripts/qemucommand.py index 86362f7..9b21a66 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", |
