[lxc-users] lxc-attach shows hosts root fs instead of containers'

Serge Hallyn serge.hallyn at ubuntu.com
Tue Feb 25 20:43:46 UTC 2014


Quoting Florian Klink (flokli at flokli.de):
> 
> 
> 
> Hi Wojtek,
> 
> thanks for your answer!
> 
> I built a kernel with the same config, but with CONFIG_USER_NS set to "y".
> 
> lxc-checkconfig now also reports user namespace as "enabled".
> 
> 
> But when I run lxc-attach, I still see the root file system of the host,
> not of the container...
> 
> So the problem is not user-ns related.
> 
> Steps to reproduce:
> 
> lxc-create -n ${CONTAINER_NAME} -t archlinux
> lxc-start -n ${CONTAINER_NAME}
> lxc-attach -n ${CONTAINER_NAME} /bin/bash
> # ls -la / # shows hosts root file system!
> 
> 
> I was also able to reproduce this problem with a downloaded template
> (centos 6 amd64), so it doesn't seem to be archlinux related...
> 
> 
> Do you have any ideas how to investigate further?

Hi - can we get a roll call of which distro/releases this happens on?

Is it arch, suse, and fedora?


More information about the lxc-users mailing list