[Bug 1346815] Re: lxc-clone causes duplicate MAC address and IP address
Not much we can do about the IP address though. For the MAC it's unlikely that anything in the container is tied to it so we can just generate a fresh one without requiring any knowledge about the workload or the environment. An IP address is much more problematic because maybe you did mean to keep the address (won't run both containers at once) or you're going to move the clone to another host or another bridge and even if we could know that, there's no way for LXC to know what IP it should be using and removing the IP entry would likely break the container. So unfortunately for IP configuration, it's really up to the user to know about it (they're the ones who put it there, LXC itself never writes one) and update as needed. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1346815 Title: lxc-clone causes duplicate MAC address and IP address To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1346815/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1346815] Re: lxc-clone causes duplicate MAC address and IP address
It seems as though the mac address duplicating is fixed, but if there is an IP, this is still being cloned. Distributor ID: Ubuntu Description:Ubuntu 15.04 Release:15.04 Codename: vivid ii lxc 1.1.5-0ubuntu0.15.04.3 amd64 Linux Containers userspace tools -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1346815 Title: lxc-clone causes duplicate MAC address and IP address To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1346815/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1346815] Re: lxc-clone causes duplicate MAC address and IP address
** Changed in: lxc (Ubuntu Trusty) Status: Triaged => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1346815 Title: lxc-clone causes duplicate MAC address and IP address To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1346815/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1346815] Re: lxc-clone causes duplicate MAC address and IP address
I'm running utopic, after upgrading to lxc-1.1.0~alpha2-0ubuntu3, the bug went away -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1346815 Title: lxc-clone causes duplicate MAC address and IP address To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1346815/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1346815] Re: lxc-clone causes duplicate MAC address and IP address
This bug was fixed in the package lxc - 1.1.0~alpha2-0ubuntu2 --- lxc (1.1.0~alpha2-0ubuntu2) utopic; urgency=medium * Cherry-pick usptream bugfix for lxc-usernic test. -- Stephane GraberThu, 02 Oct 2014 15:01:56 -0400 ** Changed in: lxc (Ubuntu) Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1346815 Title: lxc-clone causes duplicate MAC address and IP address To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1346815/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1346815] Re: lxc-clone causes duplicate MAC address and IP address
> You can also easily work around this by adding > > lxc.network.hwaddr = 00:16:3e:xx:xx:xx > > to your /etc/lxc/default.conf or ~/.local/share/lxc/default.conf. hmm, /etc/lxc/default.conf already had "lxc.network.hwaddr = 00:16:3e:xx:xx:xx" in my env. Besides, I have changed the line in /var/lib/lxc//config. It works for me as a workaround. Thanks. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1346815 Title: lxc-clone causes duplicate MAC address and IP address To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1346815/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1346815] Re: lxc-clone causes duplicate MAC address and IP address
(lowered priority per guidelines since there is a workaround) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1346815 Title: lxc-clone causes duplicate MAC address and IP address To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1346815/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1346815] Re: lxc-clone causes duplicate MAC address and IP address
The bug was introduced by incomplete support for "unexpanded configuration" which itself existed to prevent expanding of included configuration files. It is fixed in upstream lxc (tested), though I'm not sure exactly when this (alpha2) is expected to hit the archive. Note that a further fix is the by-default setting of hwaddr to 00:16:3e:xx:xx:xx . You can also easily work around this by adding lxc.network.hwaddr = 00:16:3e:xx:xx:xx to your /etc/lxc/default.conf or ~/.local/share/lxc/default.conf. ** Changed in: lxc (Ubuntu) Status: Triaged => Fix Committed ** Changed in: lxc (Ubuntu) Importance: High => Medium ** Changed in: lxc (Ubuntu Trusty) Importance: High => Medium -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1346815 Title: lxc-clone causes duplicate MAC address and IP address To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1346815/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1346815] Re: lxc-clone causes duplicate MAC address and IP address
** Changed in: lxc (Ubuntu) Importance: Undecided => Medium ** Changed in: lxc (Ubuntu) Status: New => Triaged ** Also affects: lxc (Ubuntu Trusty) Importance: Undecided Status: New ** Changed in: lxc (Ubuntu Trusty) Importance: Undecided => High ** Changed in: lxc (Ubuntu) Importance: Medium => High ** Changed in: lxc (Ubuntu Trusty) Status: New => Triaged -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1346815 Title: lxc-clone causes duplicate MAC address and IP address To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1346815/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1346815] Re: lxc-clone causes duplicate MAC address and IP address
After installing old packages, it seems a regression between https://launchpad.net/ubuntu/+source/lxc/1.0.4-0ubuntu2/+build/6098430 and https://launchpad.net/ubuntu/+source/lxc/1.1.0~alpha1-0ubuntu1/+build/6162946 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1346815 Title: lxc-clone causes duplicate MAC address and IP address To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1346815/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs