diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2020-10-29 09:44:55 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2020-10-29 18:02:20 +0100 |
| commit | 36e8b020cd7e97bc2ca3a306f48d4c62ece8fc34 (patch) | |
| tree | dcd218e00f3b2e1c3eb0f0d994bd284c95ef7c6c /vm | |
| parent | 475d26a2671e5f5e672bfb8892fea9eb8f48931d (diff) | |
vm/qemu: enable virtio-rng-pci
Can help with entropy initialization during boot
and can be tested as /dev/hwrng as well.
Diffstat (limited to 'vm')
| -rw-r--r-- | vm/qemu/qemu.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/vm/qemu/qemu.go b/vm/qemu/qemu.go index d0310219f..6c439dbb4 100644 --- a/vm/qemu/qemu.go +++ b/vm/qemu/qemu.go @@ -379,6 +379,7 @@ func (inst *instance) boot() error { "-mon", "chardev=SOCKSYZ,mode=control", "-display", "none", "-serial", "stdio", + "-device", "virtio-rng-pci", "-no-reboot", "-name", fmt.Sprintf("VM-%v", inst.index), } |
