WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [PATCH]: xl: use libuuid to generate random UUID's

To: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH]: xl: use libuuid to generate random UUID's
From: Jeremy Fitzhardinge <jeremy@xxxxxxxx>
Date: Tue, 10 Aug 2010 12:43:59 -0700
Cc: Ian Pratt <Ian.Pratt@xxxxxxxxxxxxx>, Xen Devel <xen-devel@xxxxxxxxxxxxxxxxxxx>, "Gianni Tedesco \(3P\)" <gianni.tedesco@xxxxxxxxxx>, Stefano Stabellini <Stefano.Stabellini@xxxxxxxxxxxxx>
Delivery-date: Tue, 10 Aug 2010 12:44:48 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <19553.28415.356871.984129@xxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <1280944162.18490.219.camel@xxxxxxxxxxxxxxxxxxxxxx> <4FA716B1526C7C4DB0375C6DADBC4EA37AD0596B2F@xxxxxxxxxxxxxxxxxxxxxxxxx> <19551.56759.804055.642585@xxxxxxxxxxxxxxxxxxxxxxxx> <1281351866.18490.252.camel@xxxxxxxxxxxxxxxxxxxxxx> <19553.28415.356871.984129@xxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.7) Gecko/20100720 Fedora/3.1.1-1.fc13 Lightning/1.0b2pre Thunderbird/3.1.1
 On 08/10/2010 08:23 AM, 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.

Stable uuids are a primary requirement. Localhost migration is a parlour trick which is useful for testing but little else. Therefore, localhost migration should work around stable uuids rather than the other way around (failing if you've got a stable uuid defined would be a reasonable answer).

xl's current behaviour of ignoring the config file uuid is an unequivocal bug.

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.

Deriving from the vm name makes sense as a fallback if they haven't specified a uuid. But I think in that case it would make more sense to derive the uuid from the domain name, and then everything else from that uuid.

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.

If the default uuid is random at the moment, then it should be pretty safe to change it to anything else.

    J

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel