|  |  | 
  
    |  |  | 
 
  |   |  | 
  
    |  |  | 
  
    |  |  | 
  
    |   xen-users
Re: [Xen-users] cloning domains 
| 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
 | 
 |  | 
  
    |  |  |