<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">
<div>Hi folks,</div>
<div><br>
</div>
<div>Following the discussion from this morning during the Arch committee meeting, I have investigated the sporadic issue
<a href="https://github.com/kata-containers/runtime/issues/702" target="_blank">https://github.com/kata-containers/runtime/issues/702</a> preventing from starting some Kata containers.</div>
<div><br>
</div>
<div>I have been able to reproduce it pretty easily and I have identified it is related to the entropy of the host being almost entirely consumed by the first containers, leaving no time for the host to regenerate new entropy for the next containers.</div>
<div><br>
</div>
<div>Currently, the virtio-rng device exposed by Qemu relies on /dev/random on the host, and because this device will block any access to it until some more entropy is ready, that's why we end up getting the timeout from the gRPC client as the agent is not
 ready, hence the gRPC server does not run yet (the guest is blocked on getting new entropy from /dev/random).</div>
<div>One way to workaround this issue is to tweak the parameters of the virtio-rng device such as max-bytes=10, limiting the amount of entropy that can be consumed by the guest each period. This means that starting one container will not consume all host's
 entropy, but eventually, if we run a lot of containers, we'll be very likely to hit this same issue.</div>
<div><br>
</div>
<div>The long term solution seems to rely on /dev/urandom device as this one will not block if no entropy is ready yet. But from what we can read online, it seems that some people have some security concerns about it. I'd like to understand if those worries
 are valid or not, and if we should keep thinking about another way to fix this issue.</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Sebastien<br>
</div>
</div>
</body>
</html>