[Devel] LXC PIDs, UIDs, and halt

Dwight Schauer dschauer at gmail.com
Sun Oct 11 09:31:34 PDT 2009


Hi all,

I'm new to LXC but have been playing around with it some.

I ran into a few issues:
1) PIDs for container processes show up on the controlling host (ps, top,
etc). In OpenVZ there is a way to hide them.
2) All controlling host mounts show up in containers.
3) A "kill -9 -1" run from a user in the controlling host kills all
processes in all containers where the owner of the process has the same UID
as the UID of the outside user. (At least the reverse is not the case).
4) In a opensuse container when I execute "halt" it is not just the
container that halts, but the controlling host as well that shuts down.

It does not make any difference where I mount /proc on the outside into the
container, or from inside the container, the behavior above stays the same.

I'm binding mounting the outside /dev to the container /dev mountpoints.

I'm running Linux 2.6.30.6 and lxc 0.6.3

In opensuse I was able to successfuly start the container only after
commenting out si::bootwait:/etc/init.d/boot in /etc/inittab.
Same for archlinux, I disabled rc::sysinit:/etc/rc.sysinit in /etc/inittab.
I'm not concerned about having to do that.


I'm looking for any insight or needed configuration changes for these issue.

Dwight
_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers




More information about the Devel mailing list