* [uml-devel] Entropy on boot
@ 2005-06-20 19:25 Paul Warren
2005-06-20 21:16 ` Jeff Dike
0 siblings, 1 reply; 6+ messages in thread
From: Paul Warren @ 2005-06-20 19:25 UTC (permalink / raw)
To: user-mode-linux-devel
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
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [uml-devel] Entropy on boot
2005-06-20 19:25 [uml-devel] Entropy on boot Paul Warren
@ 2005-06-20 21:16 ` Jeff Dike
2005-06-21 18:50 ` Paul Warren
0 siblings, 1 reply; 6+ messages in thread
From: Jeff Dike @ 2005-06-20 21:16 UTC (permalink / raw)
To: Paul Warren; +Cc: user-mode-linux-devel
On Mon, Jun 20, 2005 at 08:25:49PM +0100, Paul Warren wrote:
> 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
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
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [uml-devel] Entropy on boot
2005-06-20 21:16 ` Jeff Dike
@ 2005-06-21 18:50 ` Paul Warren
2005-06-21 21:02 ` Jeff Dike
0 siblings, 1 reply; 6+ messages in thread
From: Paul Warren @ 2005-06-21 18:50 UTC (permalink / raw)
To: Jeff Dike; +Cc: user-mode-linux-devel
On Mon, Jun 20, 2005 at 05:16:38PM -0400, Jeff Dike wrote:
> 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
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [uml-devel] Entropy on boot
2005-06-21 18:50 ` Paul Warren
@ 2005-06-21 21:02 ` Jeff Dike
2005-06-21 21:19 ` Chris Lightfoot
0 siblings, 1 reply; 6+ messages in thread
From: Jeff Dike @ 2005-06-21 21:02 UTC (permalink / raw)
To: Paul Warren; +Cc: user-mode-linux-devel
On Tue, Jun 21, 2005 at 07:50:47PM +0100, Paul Warren wrote:
> 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
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [uml-devel] Entropy on boot
2005-06-21 21:02 ` Jeff Dike
@ 2005-06-21 21:19 ` Chris Lightfoot
2005-06-21 22:13 ` Paul Warren
0 siblings, 1 reply; 6+ messages in thread
From: Chris Lightfoot @ 2005-06-21 21:19 UTC (permalink / raw)
To: Jeff Dike; +Cc: Paul Warren, user-mode-linux-devel
On Tue, Jun 21, 2005 at 05:02:36PM -0400, Jeff Dike wrote:
> 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.
--
``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
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [uml-devel] Entropy on boot
2005-06-21 21:19 ` Chris Lightfoot
@ 2005-06-21 22:13 ` Paul Warren
0 siblings, 0 replies; 6+ messages in thread
From: Paul Warren @ 2005-06-21 22:13 UTC (permalink / raw)
To: Chris Lightfoot; +Cc: Jeff Dike, user-mode-linux-devel
On Tue, Jun 21, 2005 at 10:19:08PM +0100, Chris Lightfoot wrote:
> On Tue, Jun 21, 2005 at 05:02:36PM -0400, Jeff Dike wrote:
> > 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
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2005-06-21 22:13 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-20 19:25 [uml-devel] Entropy on boot Paul Warren
2005-06-20 21:16 ` Jeff Dike
2005-06-21 18:50 ` Paul Warren
2005-06-21 21:02 ` Jeff Dike
2005-06-21 21:19 ` Chris Lightfoot
2005-06-21 22:13 ` Paul Warren
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox