Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
lxc-attach does not work anymore?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
OPelerin
Guru
Guru


Joined: 17 Jul 2004
Posts: 354
Location: Belgium

PostPosted: Tue Sep 06, 2016 6:46 am    Post subject: lxc-attach does not work anymore? Reply with quote

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
View user's profile Send private message
OPelerin
Guru
Guru


Joined: 17 Jul 2004
Posts: 354
Location: Belgium

PostPosted: Tue Sep 06, 2016 12:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum