Entropy in Linux VMs

Discussion in 'sandboxing & virtualization' started by mirimir, Oct 12, 2011.

Thread Status:
Not open for further replies.
  1. mirimir

    mirimir Registered Member

    Joined:
    Oct 1, 2011
    Posts:
    6,029
    Over the past few days, I've been very frustrated creating keys with OpenPGP in Ubuntu VMs in VirtualBox. The process hangs, sometimes (it seems) indefinately, when the system runs out of entropy.

    With some googling, I found haveged, "a daemon that feeds the /dev/random pool on Linux using an adaptation of the HArdware Volatile Entropy Gathering and Expansion algorithm invented at IRISA." -http://freshmeat.net/projects/haveged

    With haveged, key generation completes in minutes. But, how good is that entropy, really? More googling revealed much discussion, but no clear answers.

    And then I remembered Alt-F2 for getting another login. Just 1-2 minutes of random typing yields enough entropy for generating keys.

    However, that wouldn't help when entropy ran out during unattended operation. So, is haveged entropy good enough or not?
     
Thread Status:
Not open for further replies.