Skip to content

Commit

Permalink
Fix /sbin/sfdisk hanging indefinitely
Browse files Browse the repository at this point in the history
Wire up virtio-rng. This fixes an issue where sfdisk would hang
indefinitely waiting on a read from urandom
(https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=897572#82) due to a
lack of entropy.
  • Loading branch information
hankjacobs authored and bradfitz committed Sep 4, 2018
1 parent 9ecb8f7 commit 18ff031
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ func TestInQemu(t *testing.T) {
"-monitor", "unix:"+monSockPath+",server,nowait",
"-device", "virtio-net,netdev=net0",
"-netdev", "user,id=net0,guestfwd=tcp:10.0.2.100:1234-tcp:"+ln.Addr().String(),
"-device", "virtio-rng-pci",
"-device", "virtio-serial",
"-device", "virtio-scsi-pci,id=scsi",
"-kernel", kernelPath,
Expand Down

0 comments on commit 18ff031

Please sign in to comment.