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: Jeremy Fitzhardinge <jeremy@xxxxxxxx>
Subject: Re: [Xen-devel] [PATCH]: xl: use libuuid to generate random UUID's
From: Ian Campbell <Ian.Campbell@xxxxxxxxxx>
Date: Tue, 10 Aug 2010 11:44:46 +0100
Cc: Ian Pratt <Ian.Pratt@xxxxxxxxxxxxx>, Xen Devel <xen-devel@xxxxxxxxxxxxxxxxxxx>, Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>, "Gianni Tedesco \(3P\)" <gianni.tedesco@xxxxxxxxxx>, Stefano Stabellini <Stefano.Stabellini@xxxxxxxxxxxxx>
Delivery-date: Tue, 10 Aug 2010 03:45:58 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4C5A21A3.3020601@xxxxxxxx>
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>
Organization: Citrix Systems, Inc.
References: <1280944162.18490.219.camel@xxxxxxxxxxxxxxxxxxxxxx> <4FA716B1526C7C4DB0375C6DADBC4EA37AD0596B2F@xxxxxxxxxxxxxxxxxxxxxxxxx> <4C5A21A3.3020601@xxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Thu, 2010-08-05 at 03:27 +0100, Jeremy Fitzhardinge wrote:
> On 08/04/2010 07:19 PM, Ian Pratt wrote:
> > 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.
> 
> Yes!  I've been doing that manually (where my hash is '+'), but its 
> irritating to keep doing over and over.

Where I care about a stable MAC I use
        vif = [ 'mac=xx:xx:xx:xx:xx:xx' ]
in my domain config file. AFAICT that is the only 100% reliable way to
get a stable MAC address since the other schemes all have some corner
case or other...

Ian.



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