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-users

Re: [Xen-users] How to change the value of uuid in the configure file of

To: Nico Kadel-Garcia <nkadel@xxxxxxxxx>
Subject: Re: [Xen-users] How to change the value of uuid in the configure file of vm?
From: Jan Mark Holzer <jmh@xxxxxxxxxx>
Date: Fri, 06 Jul 2007 08:12:25 -0400
Cc: xen-users@xxxxxxxxxxxxxxxxxxx, openbsd shen <openbsd.shen@xxxxxxxxx>
Delivery-date: Fri, 06 Jul 2007 05:00:50 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <468E14F2.5000307@xxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Organization: Emerging Technology Group
References: <6ff3e7140707060234u397e0943r8c3bb10ae99d634d@xxxxxxxxxxxxxx> <468E14F2.5000307@xxxxxxxxx>
Reply-to: jmh@xxxxxxxxxx
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5.0.9 (X11/20070130)
Nico Kadel-Garcia wrote:
openbsd shen wrote:
I install VM use virt-install, it write the value of uuid in the
configure file, how can I change it?  I  duplicate the vm file and the
configure file of vm, I don't know how to change the value of uuid in
the new VM configure file?  now I can only comment this line.
Shut it down entirely, edit the file, and reboot it seems to work well to me.

I believe the latest versions of virt-install allow you to set this manually as well.

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
If you want to generate a new UUID you can either use the 'uuidgen' command or the enclose (simple) script which will generate a new UUID and MAC you can use when copying/cloning a guest.

Hth,

 Jan

#!/usr/bin/env python
#  -*- mode: python; -*-

print ""
print "New UUID:"
import virtinst.util ; print 
virtinst.util.uuidToString(virtinst.util.randomUUID())
print "New MAC:"
import virtinst.util ; print virtinst.util.randomMAC()
print ""


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>