[Bug 1370199] Re: qemu upstart job should create /dev/kvm in a container

Serge Hallyn 1370199 at bugs.launchpad.net
Thu Nov 20 17:28:05 UTC 2014


** Description changed:

  I have a host with kvm loaded and after creating a container and
  installing the qemu package, /dev/kvm doesn't exist.  If I create it
  manually qemu runs fine.
  
  The upstart job should detect that it's in a container and create
  /dev/kvm for use.
+ 
+ ============================================================
+ Impact: /dev/kvm does not exist in containers after installing qemu-kvm
+ Test case:
+   sudo lxc-create -t download -n t1 -- -d ubuntu -r trusty -a amd64
+   sudo lxc-start -n t1 -d
+   sudo lxc-attach -n t1 -- apt-get update
+   sudo lxc-attach -n t1 -- apt-get -y install qemu-kvm
+   sudo lxc-attach -n t1 -- ls -l /dev/kvm
+ Regression potential: This can only be fixed for privileged containers on the real host,  where root in the container can in fact create /dev/kvm.  In that case there should be no regresison as we simply create the needed device.  In the other case, package install should not fail since we do '|| true' to ignore failure.
+ ============================================================

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1370199

Title:
  qemu upstart job should create /dev/kvm in a container

Status in “qemu” package in Ubuntu:
  Fix Released
Status in “qemu” source package in Trusty:
  New

Bug description:
  I have a host with kvm loaded and after creating a container and
  installing the qemu package, /dev/kvm doesn't exist.  If I create it
  manually qemu runs fine.

  The upstart job should detect that it's in a container and create
  /dev/kvm for use.

  ============================================================
  Impact: /dev/kvm does not exist in containers after installing qemu-kvm
  Test case:
    sudo lxc-create -t download -n t1 -- -d ubuntu -r trusty -a amd64
    sudo lxc-start -n t1 -d
    sudo lxc-attach -n t1 -- apt-get update
    sudo lxc-attach -n t1 -- apt-get -y install qemu-kvm
    sudo lxc-attach -n t1 -- ls -l /dev/kvm
  Regression potential: This can only be fixed for privileged containers on the real host,  where root in the container can in fact create /dev/kvm.  In that case there should be no regresison as we simply create the needed device.  In the other case, package install should not fail since we do '|| true' to ignore failure.
  ============================================================

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1370199/+subscriptions



More information about the Ubuntu-sponsors mailing list