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>
</rng>
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 <[email protected]>
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/c9e14c9f
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/c9e14c9f
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/c9e14c9f
Branch: refs/heads/master
Commit: c9e14c9f0885e8d8360f74997773aad16e9c8b19
Parents: 8d1f1a6 0beb41b
Author: Rajani Karuturi <[email protected]>
Authored: Thu Oct 13 15:48:11 2016 +0530
Committer: Rajani Karuturi <[email protected]>
Committed: Thu Oct 13 15:48:12 2016 +0530
----------------------------------------------------------------------
agent/conf/agent.properties | 19 ++++
.../kvm/resource/LibvirtComputingResource.java | 34 +++++++
.../kvm/resource/LibvirtDomainXMLParser.java | 27 +++++
.../hypervisor/kvm/resource/LibvirtVMDef.java | 101 +++++++++++++++++++
.../resource/LibvirtDomainXMLParserTest.java | 13 ++-
.../kvm/resource/LibvirtVMDefTest.java | 14 +++
6 files changed, 207 insertions(+), 1 deletion(-)
----------------------------------------------------------------------