Entropy on boot
We've recently prepared a filesystem image for the latest Debian distribution, and hit a problem with it hanging on starting Apache2. We traced this to a lack of entropy to feed /dev/random, causing the Apache's startssl to block.
Chris Lightfoot has developed this patch to feed the guest's entropy pool with data read from the host's /dev/random on boot:
http://mythic-beasts.com/uml/random-seed.patch
Paul
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 11 lines · Paul Warren
We've recently prepared a filesystem image for the latest Debian distribution, and hit a problem with it hanging on starting Apache2. We traced this to a lack of entropy to feed
/dev/random, causing the Apache's startssl to block.Chris Lightfoot has developed this patch to feed the guest's entropy pool with data read from the host's
/dev/randomon boot:http://mythic-beasts.com/uml/random-seed.patch
Paul
Are you using UML's hwrng driver? Did it not help?
Jeff
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 1 line · Jeff Dike
Are you using UML's hwrng driver? Did it not help?
Unless I've missed something, that doesn't solve the problem for an out-of-the-box Linux distro, which expects to read from /dev/random.
Paul
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 2 lines · Paul Warren
Unless I've missed something, that doesn't solve the problem for an out-of-the-box Linux distro, which expects to read from
/dev/random.
I guess out-of-the-box Linux distros aren't intended for entroy-starved environments.
So, I guess you can fix your distro to use the driver that UML provides or you can put up with the starvation. The hwrng driver is the right solution, and is far preferable to whacking a bunch into random.c.
That would never make it anywhere near mainline, so you would have a choice of dumping that into every UML pool you build or fixing your filesystems to use the rngtools.
Jef
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 3 lines · Jeff Dike
That would never make it anywhere near mainline, so you would have a choice of dumping that into every UML pool you build or fixing your filesystems to use the rngtools.
Yeah -- it comes down to how often you build new distributions vs how often you build new kernels. Oh, and whether you anticipate tech support load from people who disable the hwrng userland tools and then discover that their virtual machine hangs on boot.
Signature · 12 lines
``If you can tell good advice from bad advice, you don't need any advice.'' ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ User-mode-linux-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 10 lines · Chris Lightfoot
Quoted 3 lines · Jeff Dike
That would never make it anywhere near mainline, so you would have a choice of dumping that into every UML pool you build or fixing your filesystems to use the rngtools.
Yeah -- it comes down to how often you build new distributions vs how often you build new kernels. Oh, and whether you anticipate tech support load from people who disable the hwrng userland tools and then discover that their virtual machine hangs on boot.
Quite - supporting kernel patches is much easier than O/S changes. This is why we now enforce cad = halt by disabling reboot functionality in the kernel, rather than maintaining a change to /etc/inittab.
I admit that a proper pass-through drive for /dev/random might be a nicer solution, but for us, hwrng is not.
Paul
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel