[Lxc-users] lxc-attach command options
Daniel Lezcano
daniel.lezcano at free.fr
Tue Nov 16 12:33:18 UTC 2010
On 11/16/2010 12:41 PM, Goran Cetusic wrote:
> After successfully patching the 2.6.35.8 kernel with
> http://lxc.sourceforge.net/patches/linux/2.6.35/2.6.35-lxc1/ I finally
> managed to attach to a container shell.
> Everything seems to be working, except I have no idea how to run a command
> with options.
> One of the programs I need to run is tcpdump
>
> lxc-attach -n n0 "/usr/sbin/tcpdump -i eth0"
>
Did you try without the quotes ?
> Running tcpdump without the options works fine.
> But with options I get the following error
>
> lxc-attach: No such file or directory - failed to exec '/usr/sbin/tcpdump -i
> eth0'
>
> I have no idea if it's the code not supporting options or just me.
> Also, are there plans to implement the lxc-attach functionality in the
> kernel?
>
Yep, it's on the way, it should be merged soon.
More information about the lxc-users
mailing list