[elbe-devel] [PATCH] Add a virtio random device to libvirt

bage at linutronix.de bage at linutronix.de
Fri Sep 6 20:16:35 CEST 2019


From: Bastian Germann <bage at linutronix.de>

All the direct qemu calls use a virtio random device.
Add it to the initvm libvirt template as well.

Signed-off-by: Bastian Germann <bage at linutronix.de>
---
 elbepack/init/libvirt.xml.mako | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/elbepack/init/libvirt.xml.mako b/elbepack/init/libvirt.xml.mako
index a0e1f2ef..cd277f57 100644
--- a/elbepack/init/libvirt.xml.mako
+++ b/elbepack/init/libvirt.xml.mako
@@ -70,6 +70,9 @@ xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
     <video>
       <model type='cirrus' vram='9216' heads='1' />
     </video>
+    <rng model='virtio'>
+      <backend model='random' />
+    </rng>
     <memballoon model='none' />
     <disk type='file' device='disk'>
     <driver name='qemu' type='${imagetype}' />
-- 
2.20.1




More information about the elbe-devel mailing list