From: Gianni Tedesco Subject: RE: [PATCH]: xl: use libuuid to generate random UUID's Date: Mon, 9 Aug 2010 12:04:26 +0100 Message-ID: <1281351866.18490.252.camel@qabil.uk.xensource.com> References: <1280944162.18490.219.camel@qabil.uk.xensource.com> <4FA716B1526C7C4DB0375C6DADBC4EA37AD0596B2F@LONPMAILBOX01.citrite.net> <19551.56759.804055.642585@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <19551.56759.804055.642585@mariner.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ian Jackson Cc: Ian Pratt , Xen Devel , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On Mon, 2010-08-09 at 11:51 +0100, Ian Jackson wrote: > Ian Pratt writes ("RE: [Xen-devel] [PATCH]: xl: use libuuid to generate random UUID's"): > > The best approach is to generate locally administered MAC addresses > > hence giving us 46 bits of freedom rather than XenSource registered > > OUI addresses which have just 24 bits -- collisions will be *much* > > less likely. Further, it's best not to generate random addresses > > every time, but to derive the MAC address from a good hash of the VM > > UUID and the NIC number so that they are deterministic. > > VM uuids are not stable in xend nor xl. Perhaps xl should hash the VM > name, which is stable and supposedly unique. But they can be made to be stable and I suppose this is the point here. I think it makes more sense than unique names. In either case we would need to bring in something like a SHA1 implementation I suppose. I'm not sure I see much point in this myself but if the consensus is there I can implement it. As for portability issues, I think Egger is right about blktap2 approach being the way to go.