From: Gianni Tedesco Subject: RE: [PATCH]: xl: use libuuid to generate random UUID's Date: Tue, 10 Aug 2010 16:24:39 +0100 Message-ID: <1281453879.18490.285.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> <1281351866.18490.252.camel@qabil.uk.xensource.com> <19553.28415.356871.984129@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <19553.28415.356871.984129@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 Tue, 2010-08-10 at 16:23 +0100, Ian Jackson wrote: > Gianni Tedesco (3P) writes ("RE: [Xen-devel] [PATCH]: xl: use libuuid to generate random UUID's"): > > On Mon, 2010-08-09 at 11:51 +0100, Ian Jackson wrote: > > > 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. > > No, I don't think VM uuids can be made stable in xl. If for no other > reason than that localhost migration would be impossible. Oh right, good point. > I think the only way to have stable MAC addresses is to derive them > from the VM name, or for the user to explicitly write a MAC address in > the config file. VM's can have the same name, so either ought to be an "domain image" (or something) UUID or just manually specify the mac. > Users who do the latter will find things continue to work no matter > how we change the default scheme, and the default is already somewhat > broken, so perhaps we should indeed consider changing it. I think in the absence of explicit instruction on what to set the MAC to, picking it randomly would is a sensible approach. Whether it ought to be in the local or global address namespace seems like the only decision to make in this case.