[Bug 963388] [NEW] Unable to start containers without proc entry in fstab

2012-03-23 Thread Stéphane Graber
Public bug reported:

This bug affects all arkose containers.

Since the recent change to implement per-container apparmor profile, arkose 
stopped working, printing:
lxc-start: No such file or directory - failed to change apparmor profile to 
lxc-container-default


Trying to reproduce this with a standard container, I tracked it down to the 
lack of /proc defined in LXC's fstab.
Arkose usually starts the container without giving lxc a fstab file, then after 
that mounts some file systems, I should change that anyway and will do so 
post-beta2 but the problem remains that it's currently impossible to start a 
container that doesn't use lxc's fstab to mount /proc.

On top of arkose container, this also breaks anyone using my recommended
setup to boot VM images in a container per
http://www.stgraber.org/2012/03/04/booting-an-ubuntu-12-04-virtual-
machine-in-an-lxc-container/

** Affects: lxc (Ubuntu)
 Importance: High
 Status: Triaged

** Affects: lxc (Ubuntu Precise)
 Importance: High
 Status: Triaged

** Also affects: lxc (Ubuntu Precise)
   Importance: Undecided
   Status: New

** Changed in: lxc (Ubuntu Precise)
   Status: New = Triaged

** Changed in: lxc (Ubuntu Precise)
   Importance: Undecided = High

** Changed in: lxc (Ubuntu Precise)
Milestone: None = ubuntu-12.04-beta-2

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

Title:
  Unable to start containers without proc entry in fstab

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/963388/+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


Re: [Bug 963388] [NEW] Unable to start containers without proc entry in fstab

2012-03-23 Thread Serge Hallyn
Quoting Stéphane Graber (stgra...@stgraber.org):
 Public bug reported:
 
 This bug affects all arkose containers.
 
 Since the recent change to implement per-container apparmor profile, arkose 
 stopped working, printing:
 lxc-start: No such file or directory - failed to change apparmor profile to 
 lxc-container-default
 
 
 Trying to reproduce this with a standard container, I tracked it down to the 
 lack of /proc defined in LXC's fstab.

Ok, I see.  So we should switch to aa_change_onexec() and run it before we
do our pivot_root().  I couldn't do that before, but IIUC aa_change_onexec()
has been fixed and this should now work.

Thanks for submitting this bug.

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

Title:
  Unable to start containers without proc entry in fstab

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/963388/+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