Hi Ian,
thanks for your comments.
Ian Jackson wrote:
> Pietro Staeheli writes ("Bug#855703: xen-create-image: doesn't create random
> MAC addresses"):
> > xen-create-image derives its generated MAC addresses from the
> > hostname, IP address configuration and distribution of the domU to
> > be installed (see: sub generateMACAddress). This behavior leads to a
> > MAC address collisions when multiple domU's with the same
> > configuration and hostname are created on the same network on
> > different dom0's.
[…]
> I think what you are doing is a bit odd. I would almost expect the
> two identically named VMs to be failover for each other or something.
> (If they share a hostname, do they share IPv6 and IPv4 addresses?)
> Anyway, I'll assume you have a good reason...
This was already discussed upstream on the mailing list at
http://xen-tools.org/pipermail/xen-tools-discuss/2017-February/thread.html
and I asked Pietro to file a proper bug report for it, but forgot to
mention that I meant an upstream bug report.
My plan is to make the default generated MAC address no more dependent
on the distribution (see
https://github.com/xen-tools/xen-tools/issues/33) but to also offer to
allow more control over how random the MAC address will be, i.e. allow
to set a different OUI (see
https://github.com/xen-tools/xen-tools/issues/34) as well as totally
random NIC part as requested by Pietro. (The latter won't become
default, though.)
Regards, Axel
--
,''`. | Axel Beckert <[email protected]>, http://people.debian.org/~abe/
: :' : | Debian Developer, ftp.ch.debian.org Admin
`. `' | 4096R: 2517 B724 C5F6 CA99 5329 6E61 2FF9 CD59 6126 16B5
`- | 1024D: F067 EA27 26B9 C3FC 1486 202E C09E 1D89 9593 0EDE