Project

General

Profile

Bug #285

Problem Starting LXC Container After Creation From Template

Added by Daniel Curtis almost 8 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Jails / Container
Target version:
-
Start date:
12/31/2013
Due date:
% Done:

100%

Estimated time:
1.00 h
Spent time:

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.

#1

Updated by Daniel Curtis almost 8 years ago

  • Status changed from In Progress to Closed
#2

Updated by Daniel Curtis almost 7 years ago

  • Project changed from 47 to GNU/Linux Administration
  • Category set to Jails / Container

Also available in: Atom PDF