Bug #285
Problem Starting LXC Container After Creation From Template
Description
I encountered an error after creating a LXC container and went to start it up. The error stated:
lxc-start: failed to setup ipv4 gateway for 'eth0': No such process
lxc-start: failed to setup netdev
lxc-start: failed to setup the network for 'lxc-container.example.com'
lxc-start: failed to setup the container
lxc-start: invalid sequence number 1. expected 2
lxc-start: failed to spawn 'lxc-container.example.com'
lxc-start: Device or resource busy - failed to remove cgroup '/sys/fs/cgroup//lxc/lxc-container.example.com'
The problem was a misconfiguration in the containter config file, the lxc.network.ipv4.gateway
parameter was set to an invalid IP address, it was set to an IP address in a different virtual network. Once the lxc.network.ipv4.gateway
config parameter was set to the IP address for the virtual network gateways IP address the container started up.