Project

General

Profile

Actions

Bug #285

closed
DC DC

Problem Starting LXC Container After Creation From Template

Bug #285: Problem Starting LXC Container After Creation From Template

Added by Daniel Curtis almost 12 years ago. Updated almost 11 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.

DC Updated by Daniel Curtis almost 12 years ago Actions #1

  • Status changed from In Progress to Closed

DC Updated by Daniel Curtis almost 11 years ago Actions #2

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

Also available in: PDF Atom