[lxc-users] lxc-attach shows hosts root fs instead of containers'
Florian Klink
flokli at flokli.de
Tue Feb 25 09:34:56 UTC 2014
Hi,
I created a basic archlinux container (using almost the template):
lxc-create -n test -t archlinux
I now start the container
lxc-start -n test
In another shell, I attach inside it:
lxc-attach -n test [/bin/bash]
And I see the root file system of the host!
However, when I get into the machine by logging in from the lxc-start
command, I see the correct root of the container.
Some information about my system:
-----
lxc-1.0.0
linux x86_64 3.13.5-1-zen
--- Namespaces ---
Namespaces: enabled
Utsname namespace: enabled
Ipc namespace: enabled
Pid namespace: enabled
User namespace: missing
Network namespace: enabled
Multiple /dev/pts instances: enabled
--- Control groups ---
Cgroup: enabled
Cgroup clone_children flag: enabled
Cgroup device: enabled
Cgroup sched: enabled
Cgroup cpu account: enabled
Cgroup memory controller: enabled
Cgroup cpuset: enabled
--- Misc ---
Veth pair device: enabled
Macvlan: enabled
Vlan: enabled
File capabilities: enabled
-----
Looks like lxc-attach is unable to attach the MOUNT namespace? Or whats
the problem here?
Florian
More information about the lxc-users
mailing list