From 36e8b020cd7e97bc2ca3a306f48d4c62ece8fc34 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 29 Oct 2020 09:44:55 +0100 Subject: vm/qemu: enable virtio-rng-pci Can help with entropy initialization during boot and can be tested as /dev/hwrng as well. --- vm/qemu/qemu.go | 1 + 1 file changed, 1 insertion(+) 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), } -- cgit mrf-deployment