[Lxc-users] lxc-attach cgroup path

Serge Hallyn serge.hallyn at canonical.com
Thu Mar 15 19:38:13 UTC 2012


Quoting Goran Cetusic (goran.cetusic at gmail.com):
> Where does lxc-attach get its path for the tasks file?
> I created a rootfs and configfile with the lxc-debian script in /lxc/imunes
> and started the container with lxc-start -n imunes -f /lxc/imunes/config.
> It works but I can't execute anything because of a wrong filepath:
> 
> # lxc-attach -n imunes /bin/bash
> lxc-attach: No such file or directory - failed to open
> '/cgroup//lxc/lxc/imunes/tasks'
> 
> The tasks file is in /cgroup/lxc/imunes/tasks - there's an extra /lxc
> there, how do i remove it?
> I applied the patches to enable lxc-attach but am unable to test it.

Which source are you using?

Can you confirm that you have commit fc3c7f7f6e9d8adfc4be943160e4ef902436a25d?
This sounds like the same thing it was fixing, and AFAICS lxc-attach doesn't
do it's own cgroup parsing, so it should've fixed that.

thanks,
-serge




More information about the lxc-users mailing list