[Lxc-users] Cannot start a container with a new MAC address

Michael H. Warfield mhw at WittsEnd.com
Fri Aug 27 16:20:44 UTC 2010


On Fri, 2010-08-27 at 18:11 +0200, Sebastien Douche wrote: 
> On Fri, Aug 27, 2010 at 14:25, Daniel Lezcano <daniel.lezcano at free.fr> wrote:
> > On 08/27/2010 11:27 AM, Sebastien Douche wrote:
> >>
> >> I created a container with an interface. I stop it, I change the MAC
> >> address, restart it:
> >>
> >> lxc-start: ioctl failure : Cannot assign requested address
> >> lxc-start: failed to setup hw address for 'eth0'
> >> lxc-start: failed to setup netdev
> >> lxc-start: failed to setup the network for 'vsonde43'
> >> lxc-start: failed to setup the container
> >> lxc-start: invalid sequence number 1. expected 2
> >>
> >
> > What is the hardware address value you are trying to setup ?

> ab:cd:48:00:xx:xx (ex: ab:cd:48:00:10:01). it works fine when I create
> a container with the value, but not when I change the value after the
> creation. If I switch to the initial value, it's works again.

Literally do not use an odd number in that first octet.  If you
literally mean "ab" there, don't do it.  That's an odd number and would
be an ethernet multicast address then.  You might be best off always
setting the second digit of the first octel = 2, like 02, 12, 22, ...
a2 ... e2, f2.  Those would be safe as "locally administered unicast
addresses".

Regards,
Mike
-- 
Michael H. Warfield (AI4NB) | (770) 985-6132 |  mhw at WittsEnd.com
   /\/\|=mhw=|\/\/          | (678) 463-0932 |  http://www.wittsend.com/mhw/
   NIC whois: MHW9          | An optimist believes we live in the best of all
 PGP Key: 0x674627FF        | possible worlds.  A pessimist is sure of it!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 482 bytes
Desc: This is a digitally signed message part
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20100827/00033f11/attachment.pgp>


More information about the lxc-users mailing list