Merge pull request #1572 from wido/virtio-rng

CLOUDSTACK-9395: Add Virtio RNG device to Instances when configuredBy adding a 
Random Number Generator device to Instances we can prevent
entropy starvation inside guest.

The default source is /dev/random on the host, but this can be configured
to another source when present, for example a hardware RNG.

When enabled it will add the following to the Instance's XML definition:

      <rng model='virtio'>
        <backend model='random'>/dev/random</backend>

If the Instance has the proper support, which most modern distributions have,
it will have a /dev/hwrng device which it can use for gathering entropy.

* pr/1572:
  CLOUDSTACK-9395: Add Virtio RNG device to Instances when configured

Signed-off-by: Rajani Karuturi <>


Branch: refs/heads/master
Commit: c9e14c9f0885e8d8360f74997773aad16e9c8b19
Parents: 8d1f1a6 0beb41b
Author: Rajani Karuturi <>
Authored: Thu Oct 13 15:48:11 2016 +0530
Committer: Rajani Karuturi <>
Committed: Thu Oct 13 15:48:12 2016 +0530

 agent/conf/                     |  19 ++++
 .../kvm/resource/  |  34 +++++++
 .../kvm/resource/    |  27 +++++
 .../hypervisor/kvm/resource/   | 101 +++++++++++++++++++
 .../resource/    |  13 ++-
 .../kvm/resource/          |  14 +++
 6 files changed, 207 insertions(+), 1 deletion(-)

Reply via email to