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

    Oct 1, 2011
    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.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.