[lxc-users] Permission denied with lxc-attach after reboot on CentOS 7

Adrien Besnard adrien.besnard at gmail.com
Tue Jul 19 16:14:53 UTC 2016


I'm running LXC 2.0.3 with a CentOS 7 host (Kernel is
3.10.0-327.22.2.el7.x86_64) and I'm encountering a weird issue while
running lxc-attach which occurs only after a reboot of the host:

> lxc-attach: attach.c: lxc_attach_run_shell: 1261 Permission denied -
failed to exec shell

Note that it worked well if I run the lxc-attach before rebooting the host.

I looked at LXC's sources and I think the execlp("/bin/sh", "/bin/sh",
(char *)NULL); fails, but I have no idea why... Do you guys have an idea?

Thanks a lot!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20160719/5f20fab5/attachment.html>

More information about the lxc-users mailing list