diff -Nru qemu-2.1+dfsg/debian/changelog qemu-2.1+dfsg/debian/changelog --- qemu-2.1+dfsg/debian/changelog 2014-09-16 00:29:03.000000000 -0500 +++ qemu-2.1+dfsg/debian/changelog 2014-09-16 13:28:42.000000000 -0500 @@ -1,3 +1,10 @@ +qemu (2.1+dfsg-4ubuntu3c1) utopic; urgency=medium + + * debian/qemu-system-x86.qemu-kvm.upstart: create /dev/kvm in a + container. + + -- Serge Hallyn Tue, 16 Sep 2014 13:27:34 -0500 + qemu (2.1+dfsg-4ubuntu3) utopic; urgency=medium * Re-stick the trusty machine type to 2.0 (where it must always stay) and diff -Nru qemu-2.1+dfsg/debian/qemu-system-x86.qemu-kvm.upstart qemu-2.1+dfsg/debian/qemu-system-x86.qemu-kvm.upstart --- qemu-2.1+dfsg/debian/qemu-system-x86.qemu-kvm.upstart 2014-09-09 17:23:36.000000000 -0500 +++ qemu-2.1+dfsg/debian/qemu-system-x86.qemu-kvm.upstart 2014-09-16 13:27:25.000000000 -0500 @@ -17,6 +17,11 @@ elif grep -qs "^flags.* svm" /proc/cpuinfo; then modprobe -b kvm_amd || true fi + if running-in-container; then + mknod /dev/kvm c 10 232 || true + chown root:kvm /dev/kvm || true + chmod g+rw /dev/kvm || true + fi # Enable KSM, respecting the default configuration file if [ "$KSM_ENABLED" = "1" ]; then [ -w /sys/kernel/mm/ksm/run ] && echo 1 > /sys/kernel/mm/ksm/run || true