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] cloning domains

To: Arie Goldfeld <arik.goldfeld@xxxxxxxxx>
Subject: Re: [Xen-users] cloning domains
From: "Daniel P. Berrange" <berrange@xxxxxxxxxx>
Date: Wed, 13 Jun 2007 13:55:47 +0100
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 13 Jun 2007 05:54:03 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <817d8cc30706130017l783e1f01i57f9076add94be76@xxxxxxxxxxxxxx>
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>
References: <817d8cc30706130017l783e1f01i57f9076add94be76@xxxxxxxxxxxxxx>
Reply-to: "Daniel P. Berrange" <berrange@xxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.4.1i
On Wed, Jun 13, 2007 at 10:17:24AM +0300, Arie Goldfeld wrote:
> Hello,
> 
> I use FC7 with its built-in Xen 3.1.
> I am looking for a method of guest domain cloning. Specifically, my problem
> is with the domain UUID. With Xen 3.0 one could simply copy the domain
> config file and then edit it for the new domain settings, then copy the
> image file. But with Xen 3.1 a domain's config file is stored in
> /var/lib/xend/domains/<UUID>/config.sxp, and I am not sure how the UUID is
> generated...

Best bet at this time is to extract the guest config

   virsh dumpxml [guest name]  >  guest.xml

Edit the guest.xml to change the name, UUID, MAC address & point to a
copy of the filesystems, then load the config back into XenD

   virsh define guest.xml

In the next update of  python-virtinst in Fedora we are also adding a
command explicitly for cloning existing guests called 'virt-clone'
which will make this task much much easier :-)

Regards,
Dan.
-- 
|=- Red Hat, Engineering, Emerging Technologies, Boston.  +1 978 392 2496 -=|
|=-           Perl modules: http://search.cpan.org/~danberr/              -=|
|=-               Projects: http://freshmeat.net/~danielpb/               -=|
|=-  GnuPG: 7D3B9505   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505  -=| 

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

<Prev in Thread] Current Thread [Next in Thread>