Merge "Pass rng device into qemu instances"
diff --git a/day01-image/template.json b/day01-image/template.json
index e3224cd..25de077 100644
--- a/day01-image/template.json
+++ b/day01-image/template.json
@@ -109,7 +109,10 @@
         [
           "-smp",
           "4"
-        ]
+        ],
+        ["-device", "virtio-net,netdev=user.0"],
+        ["-object","rng-random,id=objrng0,filename=/dev/urandom"],
+        ["-device", "virtio-rng-pci,rng=objrng0,id=rng0,bus=pci.0,addr=0x10" ]
       ],
       "vm_name": "{{ user `image_name` }}-{{ isotime \"200601021504\"  }}",
       "output_directory": "images/{{ user `image_name` }}-qemu-{{ isotime \"200601021504\"  }}",
diff --git a/mirror-image/template.json b/mirror-image/template.json
index 4b1b24f..c79bf90 100644
--- a/mirror-image/template.json
+++ b/mirror-image/template.json
@@ -145,7 +145,10 @@
         [
           "-smp",
           "4"
-        ]
+        ],
+        ["-device", "virtio-net,netdev=user.0"],
+        ["-object","rng-random,id=objrng0,filename=/dev/urandom"],
+        ["-device", "virtio-rng-pci,rng=objrng0,id=rng0,bus=pci.0,addr=0x10" ]
       ],
       "vm_name": "{{ user `image_name` }}-{{ isotime \"200601021504\"  }}",
       "output_directory": "images/{{ user `image_name` }}-qemu-{{ isotime \"200601021504\"  }}",
diff --git a/ubuntu-16.04/template.json b/ubuntu-16.04/template.json
index 144cf99..ef20aaa 100644
--- a/ubuntu-16.04/template.json
+++ b/ubuntu-16.04/template.json
@@ -271,7 +271,10 @@
       "type": "qemu",
       "qemuargs": [
         [ "-m", "1024M" ],
-        [ "-cdrom", "config-drive/cloudata.iso" ]
+        [ "-cdrom", "config-drive/cloudata.iso" ],
+        ["-device", "virtio-net,netdev=user.0"],
+        ["-object","rng-random,id=objrng0,filename=/dev/urandom"],
+        ["-device", "virtio-rng-pci,rng=objrng0,id=rng0,bus=pci.0,addr=0x10" ]
       ],
       "vm_name": "{{ user `image_name` }}-{{ isotime \"200601021504\"  }}",
       "output_directory": "images/{{ user `image_name` }}-qemu-{{ isotime \"200601021504\"  }}",