[lxc-users] lxc-attach shows hosts root fs instead of containers'
Florian Klink
flokli at flokli.de
Tue Mar 11 15:25:58 UTC 2014
Am 25.02.2014 22:40, schrieb Florian Klink:
> Am 25.02.2014 21:43, schrieb Serge Hallyn:
>> 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?
>>
> archlinux, x86_64. Happens regardless of CONFIG_USER_NS=y or n
>
> Florian
>
LXC 1.0.1 fixed the issue for me :-)
Thanks!
Florian
More information about the lxc-users
mailing list