Blob Blame History Raw
From 19b262aeeb71b690099d5169eaea5d817674fdbe Mon Sep 17 00:00:00 2001
From: "Richard W.M. Jones" <rjones@redhat.com>
Date: Tue, 5 Apr 2016 15:02:20 +0100
Subject: [PATCH] launch: libvirt: Disable virtio-rng in libvirt backend until
 we can use /dev/urandom.

This updates commit 9423c16607259b30985c46d04db9958ec079aa42.

(cherry picked from commit b2c845333f66d4d3135d3b6a8d4b992d6160bf0a)
---
 src/launch-libvirt.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/launch-libvirt.c b/src/launch-libvirt.c
index f9edac0..96c5913 100644
--- a/src/launch-libvirt.c
+++ b/src/launch-libvirt.c
@@ -1306,6 +1306,12 @@ construct_libvirt_xml_devices (guestfs_h *g,
     }
 #endif
 
+#if 0
+    /* This is disabled.  Pulling random numbers from /dev/random
+     * causes the appliance to pause for long periods.  We should
+     * use /dev/urandom, but for bogus reasons libvirt prevents that.
+     * https://bugzilla.redhat.com/show_bug.cgi?id=1074464#c7
+     */
     /* Add a random number generator (backend for virtio-rng). */
     start_element ("rng") {
       attribute ("model", "virtio");
@@ -1319,6 +1325,7 @@ construct_libvirt_xml_devices (guestfs_h *g,
         //string ("/dev/urandom");
       } end_element ();
     } end_element ();
+#endif
 
     /* virtio-scsi controller. */
     start_element ("controller") {
-- 
1.8.3.1