what about lxc-console?
http://lxc.sourceforge.net/man/lxc-console.html
<http://lxc.sourceforge.net/man/lxc-console.html>

On Fri, Mar 18, 2011 at 9:52 PM, richard -rw- weinberger <
[email protected]> wrote:

> On Fri, Mar 18, 2011 at 10:26 AM, Vladimir Laskov <[email protected]>
> wrote:
> >
> > info
> > # lxc-version
> > lxc version: 0.7.3
> > # uname -a
> > Linux mysql2 2.6.32-cgroup-memcap #1 SMP Thu Feb 24 07:41:45 EST 2011
> > x86_64 GNU/Linux
> > # lsb_release -a
> > No LSB modules are available.
> > Distributor ID:    Debian
> > Description:    Debian GNU/Linux 6.0 (squeeze)
> > Release:    6.0
> > Codename:    squeeze
> >
> > `vm1` container is created & started
> >
> > # lxc-ps --name vm1
> > CONTAINER    PID TTY          TIME CMD
> > vm1         4168 ?        00:00:00 mysqld_safe
> > vm1         4281 ?        00:00:27 mysqld
> > vm1         4282 ?        00:00:00 logger
> > vm1         7634 ?        00:00:00 screen
> > vm1         7635 pts/1    00:00:00 bash
> > vm1         7702 pts/1    00:00:00 python
> > vm1         7724 pts/1    00:10:37 python
> > vm1         8326 ?        00:00:01 init
> > vm1         8570 ?        00:00:00 sshd
> > vm1         8596 pts/10   00:00:00 getty
> > vm1         8597 pts/6    00:00:00 getty
> > vm1         8598 pts/7    00:00:00 getty
> > vm1         8599 pts/8    00:00:00 getty
> > vm1         8600 pts/9    00:00:00 getty
> > vm1        27891 ?        00:00:00 dbus-daemon
> >
> >
> > how to execute shell command in container ?
> > i am try lxc-execute
>
> AFAIK this is not possible.
> Use ssh or getty to login into your container.
>
> > # lxc-execute --name vm1  /bin/bash
> > lxc-execute: failed to create veth1-vethAmmjfi : File exists
> > lxc-execute: failed to create netdev
> > lxc-execute: failed to create the network
> > lxc-execute: failed to spawn 'vm1'
> > lxc-execute: Device or resource busy - failed to remove cgroup
> '/cgroup/vm1'
> >
> > please help
> >
> > --
> > Vladimir Laskov
> >
> >
> >
> ------------------------------------------------------------------------------
> > Colocation vs. Managed Hosting
> > A question and answer guide to determining the best fit
> > for your organization - today and in the future.
> > http://p.sf.net/sfu/internap-sfd2d
> > _______________________________________________
> > Lxc-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/lxc-users
> >
>
>
>
> --
> Thanks,
> //richard
>
>
> ------------------------------------------------------------------------------
> Colocation vs. Managed Hosting
> A question and answer guide to determining the best fit
> for your organization - today and in the future.
> http://p.sf.net/sfu/internap-sfd2d
> _______________________________________________
> Lxc-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/lxc-users
>
------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
Lxc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lxc-users

Reply via email to