LXC some support needed

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

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.

Is this an old container that has stopped working, or did your just create it?

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...

Check the routes on the container with the command netstat -rn , and see if has the default gateway set.

problem is that i am not able to console logon onto the container via cloudmin host.. will have to figure it out somehow..

Can you SSH into the container? Or use the Command Shell feature in Cloudmin to run commands in it?

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..

If you SSH in and run "route print" or "netstat -rn" , is the correct gateway shown?

No, i dont see the gateway set in there..

Is the gateway set in the container's LXC config file? This is typically at /var/lib/lxc/$container/config

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

Does the file contain an IP address for the container? That seems to be missing..