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):