Skip to content

Commit e899c0b

Browse files
committed
Give the VM a rng device by default to avoid entropy starvation
/dev/urandom recommended by libvirt https://libvirt.org/formatdomain.html#elementsRng
1 parent 7b07c9f commit e899c0b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

templates/vm.xml.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,5 +86,6 @@
8686
<listen type='address' address='127.0.0.1'/>
8787
</graphics>
8888
{% endif %}
89+
<rng model="virtio"><backend model="random">/dev/urandom</backend></rng>
8990
</devices>
9091
</domain>

0 commit comments

Comments
 (0)