2014-07-18 01:22:14 +02:00
|
|
|
bnc#885308
|
|
|
|
|
2014-07-24 21:44:55 +02:00
|
|
|
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):
|
2014-07-18 01:22:14 +02:00
|
|
|
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()
|
2014-07-24 21:44:55 +02:00
|
|
|
@@ -634,6 +643,7 @@ class Guest(XMLBuilder):
|
2014-07-18 01:22:14 +02:00
|
|
|
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):
|