Submitted by masterg0g0 on Sat, 09/17/2016 - 04:00 Pro Licensee
Rebooting test.cloudmin.xxxxxxxx.com .. .. failed : sh: 1: lxc-restart: not found
I need some helps with the above, I am not sure if all the relevant packages are in place for LXC on my host.. or may be they havent been configured properly. I understand the kernel comes with the support out of the box.
Thanks, Rohit
Status:
Active
Comments
Submitted by masterg0g0 on Sat, 09/17/2016 - 04:12 Pro Licensee Comment #1
Starting up test.cloudmin.interstellarconsulting.com ... .. failed : Container is not running
Though shutting down works fine.. the image i am using was imported from the internet.
While creating a new container, sorry just posting all which i can to help resolve this.
Starting up new LXC container .. .. failed to start : lxc-start: conf.c: setup_netdev: 2849 Cannot add ipv4 gateway for eth0 when not assigning an address lxc-start: conf.c: setup_network: 2924 failed to setup netdev lxc-start: conf.c: lxc_setup: 4253 failed to setup the network for 'test.cloudmin.interstellarconsulting.com' lxc-start: start.c: do_start: 717 failed to setup the container lxc-start: sync.c: __sync_wait: 51 invalid sequence number 1. expected 2 lxc-start: start.c: __lxc_start: 1121 failed to spawn 'test.cloudmin.interstellarconsulting.com' lxc-start: lxc_start.c: main: 341 The container failed to start. lxc-start: lxc_start.c: main: 345 Additional information can be obtained by setting the --logfile and --logpriority options.
Submitted by JamieCameron on Sat, 09/17/2016 - 12:12 Comment #2
Is this an old container that has stopped working, or did your just create it?
Submitted by masterg0g0 on Tue, 09/20/2016 - 14:24 Pro Licensee Comment #3
new one, if you remember the fix i requested for the gateway,, i havent been able to get new LXC containers to connect to the internet.. they are not pingable.. if the host is not able to connect to them via the text console...
Submitted by JamieCameron on Tue, 09/20/2016 - 19:56 Comment #4
Check the routes on the container with the command
netstat -rn
, and see if has the default gateway set.Submitted by masterg0g0 on Wed, 09/21/2016 - 15:19 Pro Licensee Comment #5
problem is that i am not able to console logon onto the container via cloudmin host.. will have to figure it out somehow..
Submitted by JamieCameron on Thu, 09/22/2016 - 22:33 Comment #6
Can you SSH into the container? Or use the Command Shell feature in Cloudmin to run commands in it?
Submitted by masterg0g0 on Sun, 09/25/2016 - 03:24 Pro Licensee Comment #7
i cannot ssh into it from the internet, i can ssh into it from the host i think.. using the command shell it sometimes runs and sometime does not.. I have even tried to update the network interface file with the correct gateway.. and it does not ping into the internet.. It would be great if someone could look into and figure this out..
Submitted by JamieCameron on Sun, 09/25/2016 - 11:53 Comment #8
If you SSH in and run "route print" or "netstat -rn" , is the correct gateway shown?
Submitted by masterg0g0 on Wed, 09/28/2016 - 03:32 Pro Licensee Comment #9
No, i dont see the gateway set in there..
Submitted by JamieCameron on Wed, 09/28/2016 - 17:49 Comment #10
Is the gateway set in the container's LXC config file? This is typically at
/var/lib/lxc/$container/config
Submitted by masterg0g0 on Thu, 09/29/2016 - 02:12 Pro Licensee Comment #11
it is not, this is what it has..
lxc.tty = 32 lxc.pts = 1024 lxc.rootfs = /var/lib/lxc/lxc.cloudmin.interstellarconsulting.com/root lxc.utsname = lxc.cloudmin.interstellarconsulting.com lxc.network.type = veth lxc.network.flags = up lxc.network.link = br0
I then tried to add this lxc.network.ipv4.gateway = xxx.x.x.x.x.x and got this error : Starting up lxc.cloudmin.interstellarconsulting.com ... .. failed : lxc-start: conf.c: setup_netdev: 2849 Cannot add ipv4 gateway for eth0 when not assigning an address lxc-start: conf.c: setup_network: 2924 failed to setup netdev lxc-start: conf.c: lxc_setup: 4253 failed to setup the network for 'lxc.cloudmin.interstellarconsulting.com' lxc-start: start.c: do_start: 717 failed to setup the container lxc-start: sync.c: __sync_wait: 51 invalid sequence number 1. expected 2 lxc-start: start.c: __lxc_start: 1121 failed to spawn 'lxc.cloudmin.interstellarconsulting.com' lxc-start: lxc_start.c: main: 341 The container failed to start. lxc-start: lxc_start.c: main: 345 Additional information can be obtained by setting the --logfile and --logpriority options. lxc.network.name = eth0 lxc.network.mtu = 1500 lxc.network.hwaddr = 4e:a9:5e:FB:F0:96 lxc.network.veth.pair = veth1
Submitted by JamieCameron on Thu, 09/29/2016 - 23:33 Comment #12
Does the file contain an IP address for the container? That seems to be missing..