lxc containers do not retain configured ip on container reboot
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxc (Ubuntu) |
Fix Released
|
Low
|
Unassigned |
Bug Description
LXC Containers that have their IP address configured in the LXC container configuration (i.e. not set inside the container), in-container rebooting does not retained the configured IP address.
Steps to Repo:
1. Set static IP address in lx configuration file:
lxc.
2. Start container
3. In container run "reboot"
4. Container comes up with with a DHCP assigned address
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: lxc 0.7.5-3ubuntu24
ProcVersionSign
Uname: Linux 3.2.0-15-generic x86_64
ApportVersion: 1.91-0ubuntu1
Architecture: amd64
Date: Sun Feb 12 19:17:26 2012
ProcEnviron:
LC_CTYPE=
LC_COLLATE=
LANG=en_US.UTF-8
LC_MESSAGES=
SHELL=/bin/bash
SourcePackage: lxc
UpgradeStatus: No upgrade log present (probably fresh install)
mtime.conffile.
Thanks for reporting this bug. If you check ifconfig you'll notice the hwaddr also changes. You can specify an hwaddr in the config file with
lxc.network. hwaddr= 16:73:40: b3:ef:f5
Should we simply auto-generate an hwaddr (if none is specified in the optional user-provided config file)?