On Wed, Jan 20, 2016 at 05:48:52PM -0000, Tom Haddon wrote: > Public bug reported: > > I've followed https://help.ubuntu.com/lts/serverguide/lxc.html#lxc- > basic-usage but am getting a failure on lxc-start as follows: > > lxc-start -n container-test2 -F > lxc-start: start.c: print_top_failing_dir: 102 Permission denied - could not > access /home/mthaddon. Please grant it 'x' access, or add an ACL for the > container root. > lxc-start: sync.c: __sync_wait: 51 invalid sequence number 1. expected 2 > lxc-start: start.c: __lxc_start: 1213 failed to spawn 'container-test2' > lxc-start: lxc_start.c: main: 344 The container failed to start. > lxc-start: lxc_start.c: main: 348 Additional information can be obtained by > setting the --logfile and --logpriority options. > > Is this because my home directory is encrypted? Which user is it trying > to connect as?
The container root, i.e. the first uid you put in /etc/subuid. If you grant access to that user (either by making it world +x or adding an acl as the message says), you should be able to launch a container. -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to lxc in Ubuntu. https://bugs.launchpad.net/bugs/1536297 Title: unable to lxc-start unprivileged LXC on wily due to permissions error Status in lxc package in Ubuntu: New Bug description: I've followed https://help.ubuntu.com/lts/serverguide/lxc.html#lxc- basic-usage but am getting a failure on lxc-start as follows: lxc-start -n container-test2 -F lxc-start: start.c: print_top_failing_dir: 102 Permission denied - could not access /home/mthaddon. Please grant it 'x' access, or add an ACL for the container root. lxc-start: sync.c: __sync_wait: 51 invalid sequence number 1. expected 2 lxc-start: start.c: __lxc_start: 1213 failed to spawn 'container-test2' lxc-start: lxc_start.c: main: 344 The container failed to start. lxc-start: lxc_start.c: main: 348 Additional information can be obtained by setting the --logfile and --logpriority options. Is this because my home directory is encrypted? Which user is it trying to connect as? Here are my permissions on /home: $ ls -lh /home/ total 212K drwx------ 113 mthaddon mthaddon 204K Jan 20 17:41 mthaddon drwxr-xr-x 2 safechain nogroup 4.0K Jul 31 2014 safechain ProblemType: Bug DistroRelease: Ubuntu 15.10 Package: lxc 1.1.5-0ubuntu0.15.10.3 Uname: Linux 4.2.0-040200rc3-generic i686 ApportVersion: 2.19.1-0ubuntu5 Architecture: i386 CurrentDesktop: Unity Date: Wed Jan 20 17:34:58 2016 EcryptfsInUse: Yes InstallationDate: Installed on 2011-10-04 (1569 days ago) InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Beta i386 (20110921.2) SourcePackage: lxc UpgradeStatus: Upgraded to wily on 2015-11-19 (62 days ago) defaults.conf: lxc.network.type = veth lxc.network.link = lxcbr0 lxc.network.flags = up lxc.network.hwaddr = 00:16:3e:xx:xx:xx To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1536297/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp