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

Ranjib Dey dey.ranjib at gmail.com
Wed Feb 26 00:27:21 UTC 2014


this happen with fedora as well,
i tested with lxc 1.0, (make rpm , with --prefix=/usr, --enable-python), on
fedora 20. for me if i ssh into the container, i can see the container
rootfs, but if i attach using lxc-attach -n /bin/bash , it shows the host
rootfs
regards
ranjib


On Tue, Feb 25, 2014 at 12:43 PM, Serge Hallyn <serge.hallyn at ubuntu.com>wrote:

> 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?
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20140225/f7e3dc48/attachment.html>


More information about the lxc-users mailing list