Skip to content

Commit

Permalink
Add pass through entropy to guest operating system
Browse files Browse the repository at this point in the history
CoreOS required the `random: crng init done` and this will help to provide it fast.
Also we added the console `tty` so if by any chance vm doesn't come up we can debug
using `virsh console <vm_name>`.

- https://libvirt.org/formatdomain.html#elementsRng
  • Loading branch information
praveenkumar committed May 22, 2019
1 parent ba3ff34 commit 0d43046
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,13 @@ const (
<source network='{{.Network}}'/>
<model type='virtio'/>
</interface>
<console type='pty'></console>
<channel type='pty'>
<target type='virtio' name='org.qemu.guest_agent.0'/>
</channel>
<rng model='virtio'>
<backend model='random'>/dev/random</backend>
</rng>
</devices>
</domain>`
)
Expand Down

0 comments on commit 0d43046

Please sign in to comment.