[lxc-devel] error when trying to mount proc into lxc privileged container

Serge E. Hallyn serge at hallyn.com
Mon Aug 15 17:28:18 UTC 2016


On Fri, Aug 12, 2016 at 04:16:52PM +0000, Yinon wrote:
> Hey,
> I have an ununtu 4.2.0-16-generic wily 15.10.I had a privileged container, and now I want to add proc mount to it.I added this:lxc.mount.auto = proc
> 
> But I keep getting this error:
>       lxc-start 1471017966.046 ERROR    lxc_conf - conf.c:mount_autodev:1175 - No such file or directory - Failed mounting tmpfs onto /dev
>       lxc-start 1471017966.178 ERROR    lxc_sync - sync.c:__sync_wake:62 - sync wake failure : Broken pipe      lxc-start 1471017966.178 ERROR    lxc_start - start.c:__lxc_start:1213 - failed to spawn 'my-container'      lxc-start 1471017971.199 ERROR    lxc_start_ui - lxc_start.c:main:344 - The container failed to start.      lxc-start 1471017971.199 ERROR    lxc_start_ui - lxc_start.c:main:346 - To get more details, run the container in foreground mode.      lxc-start 1471017971.199 ERROR    lxc_start_ui - lxc_start.c:main:348 - Additional information can be obtained by setting the --logfile and --logpriority options.
> The container was created using:sudo lxc-create -t download -n my-container -f .config/lxc/default.conf -- --dist ubuntu --release wily --arch amd64
> And I run it using:sudo lxc-start -n my-container -d -f .config/lxc/default.conf --logfile lxc.log
> 
> Also tried with:lxc.mount = proc proc proc nodev,noexec,nosuid 0 0
> andlxc.mount.entry = proc proc proc defaults 0 0
> but for no good.
> Does anyone know what the problem is? apparmor is disbaled btw
> Thanks,Yinon

The error is about /dev, not /proc.

If that doesn't help you, then please attach the container configuration and the
file 'outout' after running

sudo lxc-start -n my-container -F -f .config/lxc/default.conf -l trace -o outout


More information about the lxc-devel mailing list