Make lxc-debian use persistent hwaddr
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxc (Ubuntu) |
Fix Released
|
Wishlist
|
Unassigned |
Bug Description
Hi have several Ubuntu and Debian machines running in a host and for all the Ubuntu machines the IPv4 address they receive is always the same, and it is actually the one stated in the config file under lxc.network.ipv4.
However, for the Debian machines, although the configuration file specifies a given lxc.network.ipv4, they get a different IPv4 address every time they reboot, ignoring the lxc.network.ipv4 property.
To reproduce, just create a Debian container using lxc-debian template:
# SUITE=stable lxc-create -t debian -n my_debian
Then, reboot the container several times, and each of them the IPv4 address will be different. Note that restarting networking in the guest (/etc/init.
I am using lxc 0.7.5-3ubuntu65 under Ubuntu 12.04 as a host and both Debian stable and testing guests show the problem.
Related branches
Changed in lxc (Ubuntu): | |
importance: | Undecided → Medium |
status: | New → Confirmed |
Changed in lxc (Ubuntu): | |
status: | Confirmed → Triaged |
importance: | Medium → Wishlist |
summary: |
- debian guests get different IPv4 at every reboot + Make lxc-debian use persistent hwaddr |
I think that I found a workaround that solves part of the problem, editing the config file and adding the following line:
lxc.network.hwaddr = aa:aa:aa:aa:aa:aa
In that way the ipv4 address is kept through reboots. However it is still not the same one stated under lxc.network.ipv4.