Regarding this being a  bug in lxc as well, the failure to write under
/sys is deliberately  enforced by the apparmor policy.  It can be worked
around by using another apparmor profile (or none, as commented in the
configuration file), but is not recommended - containers should not
change kernel settings.

** Also affects: qemu-kvm (Ubuntu Precise)
   Importance: Undecided
       Status: New

** Also affects: qemu-kvm (Ubuntu Quantal)
   Importance: Undecided
       Status: New

** Description changed:

  The KSM_ENABLED setting (on by default) for the qemu-kvm job fails under
  lxc but the kernel files still appear writable. Thats likely an lxc bug
  (either in defaults or device mapping), but there is no need for qemu-
  kvm's job to fail if those settings can't be written to IMNSHO.
+ 
+ ================================
+ SRU Justification:
+ 1. Impact: qemu-kvm cannot be installed in containers
+ 2. Development fix: ignore errors writing under /sys in upstart job
+ 3. Stable fix: same as development fix
+ 4. Test case:
+       sudo lxc-create -t ubuntu -n c1 -- -r [precise|quantal]
+       sudo lxc-start -n c1
+       # log into c1 as ubuntu/ubuntu, and 'sudo apt-get install qemu-kvm'
+ 5. Regression potential: legitimate errors writing under /sys (kernel bugs)
+    will be ignored.
+ ================================

** Changed in: qemu-kvm (Ubuntu Precise)
       Status: New => Triaged

** Changed in: qemu-kvm (Ubuntu Quantal)
       Status: New => Triaged

** Changed in: qemu-kvm (Ubuntu Precise)
   Importance: Undecided => Medium

** Changed in: qemu-kvm (Ubuntu Quantal)
   Importance: Undecided => Medium

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to qemu-kvm in Ubuntu.
https://bugs.launchpad.net/bugs/1078530

Title:
  upstart job fails to start under lxc

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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to