lxc failing to initialize after update of Precise

Bug #961536 reported by Rick McBride
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lxc (Ubuntu)
Fix Released
High
Unassigned

Bug Description

I'm getting the following with the most recent update. Logs will follow:

$sudo lxc-start -n u1-server
lxc-start: Permission denied - failed to umount 'dev/pts'
lxc-start: failed to setup the new pts instance
lxc-start: failed to setup the container
lxc-start: invalid sequence number 1. expected 2
lxc-start: failed to spawn 'u1-server'
$ sudo apt-cache policy lxc
lxc:
  Installed: 0.7.5-3ubuntu42

LXC container was working prior to kernel upgrade. Previously thought that this was LP # 960144, which is at least similar but reported fix/released. Found with later revision of package as noted.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: lxc 0.7.5-3ubuntu42
ProcVersionSignature: Ubuntu 3.2.0-19.31-generic 3.2.12
Uname: Linux 3.2.0-19-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 1.94.1-0ubuntu2
Architecture: amd64
Date: Wed Mar 21 15:25:14 2012
ProcEnviron:
 TERM=xterm
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: lxc
UpgradeStatus: Upgraded to precise on 2012-02-01 (49 days ago)

Related branches

Revision history for this message
Rick McBride (rmcbride) wrote :
description: updated
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Thanks for reporting this bug.

To work around this, you should be able to do:

 sudo sed -i 's/umount.*$/umount,/' /etc/apparmor.d/usr.bin.lxc-start
 sudo apparmor_parser -r /etc/apparmor.d/usr.bin.lxc-start

Changed in lxc (Ubuntu):
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package lxc - 0.7.5-3ubuntu43

---------------
lxc (0.7.5-3ubuntu43) precise; urgency=low

  * lxc.apparmor: allow all umount activity in lxc-start (LP: #961536)
 -- Serge Hallyn <email address hidden> Wed, 21 Mar 2012 14:49:14 -0500

Changed in lxc (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Rick McBride (rmcbride) wrote : Re: [Bug 961536] Re: lxc failing to initialize after update of Precise

On 03/21/2012 03:41 PM, Serge Hallyn wrote:
> Thanks for reporting this bug.
>
> To work around this, you should be able to do:
>
> sudo sed -i 's/umount.*$/umount,/' /etc/apparmor.d/usr.bin.lxc-start
> sudo apparmor_parser -r /etc/apparmor.d/usr.bin.lxc-start
>
> ** Changed in: lxc (Ubuntu)
> Importance: Undecided => High
>
> ** Changed in: lxc (Ubuntu)
> Status: New => Confirmed
>

Serge,

Thanks for the workaround. I"ll put that into place.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.