[Bug 1362224] Re: local provider creates all containers with the same MAC address
Martin Pitt
martin.pitt at ubuntu.com
Wed Sep 3 07:12:30 UTC 2014
I believe that is a bug/regression in LXC itself. The lxc-clone manpage
says
-M, --keepmac
Use the same MAC address as the original container, rather than generating a new random one.
If I clone an existing container
$ grep hwaddr /scratch/lxc/juju-trusty-lxc-template/config
lxc.network.hwaddr = 00:16:3e:c4:4e:24
$ sudo lxc-clone -o juju-trusty-lxc-template -n test
then the cloned container has the same MAC address instead of a random
one:
$ grep hwaddr /scratch/lxc/test/config
lxc.network.hwaddr = 00:16:3e:c4:4e:24
** Package changed: juju-core (Ubuntu) => lxc (Ubuntu)
** Changed in: lxc (Ubuntu)
Assignee: (unassigned) => Stéphane Graber (stgraber)
** Summary changed:
- local provider creates all containers with the same MAC address
+ lxc-clone does not randomize MAC address - juju-local machines have same IPs
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to lxc in Ubuntu.
https://bugs.launchpad.net/bugs/1362224
Title:
lxc-clone does not randomize MAC address - juju-local machines have
same IPs
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1362224/+subscriptions
More information about the Ubuntu-server-bugs
mailing list