[Lxc-users] lxc-attach can't work

Sam Wang zhefwang at gmail.com
Wed Mar 28 01:59:42 UTC 2012


I've tried using lxc-attach to run a process in a running
container,but it didn't work.The command I use is as follow:
lxc-execute -n test /home/lisperl/forever
lxc-attach -n test /bin/bash

The error is :
lxc-attach: No such file or directory - failed to open '/proc/2540/ns/pid'
lxc-attach: failed to enter the namespace

Then I cd to /proc/2540/ns and ls
there are only ipc net uts .

Finally I tried using lxc-start to start container and using
lxc-attach,it turned out to be the same error.
The edition of LXC is 0.7.5
So,Can someone tell me why?
-- 

Zhefeng Wang
University of Science and Technology of China
Email:zhefwang at gmail.com

In God we trust, all others bring data




More information about the lxc-users mailing list