Quoting Michael H. Warfield (m...@wittsend.com): > On Sat, 2010-01-30 at 14:20 +0100, Dominik Schulz wrote: > > Hi, > > > > I'm fairly new to LXC and I am looking for a way to execute a command > > inside a > > running container (a full blow one with its own rootfs and full isolation). > > lxc-execute doesn't seem to do the trick and lxc-console requires > > credential > > to login. I'm looking for a way to execute command w/o having to login via > > ssh > > or the lxc-console, so I can execute command directly inside the containers > > to > > shut them down properly. > > This is being worked on and looked at now through the use of some sort > of daemon in the running container but is not currently possible. More > over, cgroups in the kernel does not currently support joining an active > cgroup, and may never support it, so it would have to be done through
Just to be clear, it's the namespaces, not the cgroups, which don't allow this. We've floated 'sys_hijack' a few times as a way to create a child which actually inherits its namespaces from a different specified task, which would give you what you need, but it's a tough sell since userspace can work around it. > the mediation of some sort of daemon in the running container and > communicating with the host. There's been discussion on the -devel list > over the optimal way to do it and there are some patches running around > but AFAICT nothing has really been committed or committed to at this > time. > > Mike > -- > Michael H. Warfield (AI4NB) | (770) 985-6132 | m...@wittsend.com > /\/\|=mhw=|\/\/ | (678) 463-0932 | http://www.wittsend.com/mhw/ > NIC whois: MHW9 | An optimist believes we live in the best of all > PGP Key: 0x674627FF | possible worlds. A pessimist is sure of it! > ------------------------------------------------------------------------------ > The Planet: dedicated and managed hosting, cloud storage, colocation > Stay online with enterprise data centers and the best network in the business > Choose flexible plans and management services without long-term contracts > Personal 24x7 support from experience hosting pros just a phone call away. > http://p.sf.net/sfu/theplanet-com > _______________________________________________ > Lxc-users mailing list > Lxc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/lxc-users ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users