aporter,

The likely reason 'ls -R /' doesn't generate enough entropy for you is
that the only thing going to be read from the filesystem is the contents
of all the directories and perhaps some metadata on the files
themselves, which in a minimal filesystem may not generate sufficient
disk activity to capture enough entropy. Furthermore, your system may
have enough RAM that your system may have already cached most of the
directory tree into kernel memory, meaning that little disk activity is
generated by this command.

When I need to generate entropy in one of my remote vms and I don't have
access to an entropy key device, I usually do something like

  find /var/ /usr /lib /srv -type f -print0 | xargs -0 cat > /dev/null

possibly within a loop (but the contents of my disk will be larger than
the memory allocated to the VM, ensuring that performing the find
command multiple times will continue to generate disk activity; the VM
won't be able to cache all of the disk's contents in memory).

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/706011

Title:
  gpg --key-gen doesn't have enough entropy and rng-tools install/start
  fails

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnupg/+bug/706011/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to