View previous topic :: View next topic |
Author |
Message |
OPelerin Guru
Joined: 17 Jul 2004 Posts: 354 Location: Belgium
|
Posted: Tue Sep 06, 2016 6:46 am Post subject: lxc-attach does not work anymore? |
|
|
I'm running /bin/bash within a container.
lxc-info tells me the container is working properly. I can even ping it....
root@gentoo-linux default]# ping 192.168.5.150
PING 192.168.5.150 (192.168.5.150) 56(84) bytes of data.
64 bytes from 192.168.5.150: icmp_seq=1 ttl=64 time=0.086 ms
64 bytes from 192.168.5.150: icmp_seq=2 ttl=64 time=0.093 ms
64 bytes from 192.168.5.150: icmp_seq=3 ttl=64 time=0.102 ms
64 bytes from 192.168.5.150: icmp_seq=4 ttl=64 time=0.093 ms
64 bytes from 192.168.5.150: icmp_seq=5 ttl=64 time=0.090 ms
^C
--- 192.168.5.150 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 3999ms
rtt min/avg/max/mdev = 0.086/0.092/0.102/0.013 ms
[root@gentoo-linux default]# lxc-info -n default
Name: default
State: RUNNING
PID: 23361
IP: 192.168.5.150
CPU use: 0.05 seconds
Memory use: 1.41 MiB
KMem use: 760.00 KiB
[root@gentoo-linux default]# lxc-attach -n default
Error: container default is not defined
[root@gentoo-linux default]# ps -ef | grep lxc
root 23347 23101 0 08:42 pts/0 00:00:00 lxc-start -n default -F -f default.conf /bin/bash
LXC-attach however does not allow me to connect to it. That container was working before - the only thing that has changed is LXC got upgraded....
Anyone has seen that wierd behaviour ? _________________ Olivier PELERIN |
|
Back to top |
|
|
OPelerin Guru
Joined: 17 Jul 2004 Posts: 354 Location: Belgium
|
Posted: Tue Sep 06, 2016 12:27 pm Post subject: |
|
|
Found it...
On the old version I could use lxc-attach -n <name> - Now I need to use lxc-attach -n <name> -f <config file> _________________ Olivier PELERIN |
|
Back to top |
|
|
|