Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm running NetBSD on a Xen VPS, and I'm trying to generate a gpg keypair. I've gotten most of the way there, but now I'm getting the following error message:

Not enough random bytes available.  Please do some other work to give the OS a chance to collect more entropy! (Need 300 more bytes)

This has been the status for about 10 hours now, and I've been doing things like installing packages from source in another session.

Is the process hung? Is this a known-issue of some sort? Can it really take that much effort to generate 300 bytes of entropy?


UPDATE: The source of this issue is that NetBSD domU's don't have an entropy source enabled by default. You should manually enable the network interfaces as a source of entropy using the rndctl utility.

share|improve this question
up vote 3 down vote accepted

It should not. I would try restarting the process. In addition to that, there is not so much you can do, in addition to digging to source code to see what is wrong.

As you probably already know, if your server is completely empty, it is possible that generating random data takes long time. However, installing packages and poking around should be enough to fix that.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.