virt-manager/virtinst-add-default-rng-device.patch
Charles Arnold 92d0e93e9f - bnc#888251 - sles 12 Xen PV guest fails to install using network
NFS install method 
  virtinst-nfs-install-sanitize.patch

- bnc#887868 - libvirt: shouldn't detect pool's status while
  connecting to hypervisor 
  virtinst-refresh_before_fetch_pool.patch (Chun Yan Liu)

- bnc#888173 - KVM: Unable to install: no console output from
  virt-install
  virtman-add-s390x-arch-support.patch

OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=190
2014-07-24 19:44:55 +00:00

31 lines
1.1 KiB
Diff

bnc#885308
Index: virt-manager-1.0.1/virtinst/guest.py
===================================================================
--- virt-manager-1.0.1.orig/virtinst/guest.py
+++ virt-manager-1.0.1/virtinst/guest.py
@@ -627,6 +627,15 @@ class Guest(XMLBuilder):
return
self.add_device(virtinst.VirtualGraphics(self.conn))
+ def add_default_rng(self):
+ osvar = self._get_os_variant()
+ if not self.conn.is_qemu() or not osvar or osvar.startswith("win"):
+ return
+ rng_dev = virtinst.VirtualRNGDevice(True)
+ rng_dev.type = virtinst.VirtualRNGDevice.TYPE_RANDOM
+ setattr(rng_dev, "device", "/dev/random")
+ self.add_device(rng_dev)
+
def add_default_devices(self):
self.add_default_graphics()
self.add_default_video_device()
@@ -634,6 +643,7 @@ class Guest(XMLBuilder):
self.add_default_console_device()
self.add_default_usb_controller()
self.add_default_channels()
+ self.add_default_rng()
def _set_transient_device_defaults(self, install):
def do_remove_media(d):