[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] Create a copy of a Domain



On Thu, Jun 10, 2010 at 10:58:54AM +0200, Philipp Hahn wrote:
> Hello,
> 
> Am Donnerstag 10 Juni 2010 10:28:15 schrieb IKI-サガル バルウェ:
> > 1. Get the XML Desc of the source Domain using "virDomainGetXMLDesc".
> > 2. Get the Hypervisor Object for the source Domain using
> > "virDomainGetConnect".
> > 3. Create a new Domain using the "virDomainCreateXML" method.
> >
> > After doing this, I get the following error:
> >
> > libvirt.libvirtError: POST operation failed: xend_post: error from xen
> > daemon: (xend.err "Error creating domain: VM name already in use by domain
> > 4")
> 
> I think you must at least change the UUID (/domain/uuid) and name 
> (/domain/name) in the XML description. Very like you also need to duplicate 
> the used disk images and update their paths 
> (/domain/devices/disk/source/@file) accordingly, unless you really want your 
> domians to share them.

Better yet use the 'virt-clone' command line tool, or virt-manager's clone
capability

Daniel
-- 
|: Red Hat, Engineering, London    -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org -o- http://virt-manager.org -o- http://deltacloud.org :|
|: http://autobuild.org        -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]