<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-2022-jp" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18904">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2 face="MS UI Gothic">Hello All,</FONT></DIV>
<DIV><FONT size=2 face="MS UI Gothic"></FONT> </DIV>
<DIV><FONT size=2 face="MS UI Gothic">I am trying to create 
a Domain/VM copy program.</FONT></DIV>
<DIV><FONT size=2 face="MS UI Gothic">In this program, a completely new domain 
should be created from a source domain.</FONT></DIV>
<DIV><FONT size=2 face="MS UI Gothic"></FONT> </DIV>
<DIV><FONT size=2 face="MS UI Gothic">What I tried so far is this:</FONT></DIV>
<DIV><FONT size=2 face="MS UI Gothic"></FONT> </DIV>
<DIV><FONT face="MS UI Gothic"><FONT size=2>1. Get the XML Desc of the 
source Domain using "</FONT><A id=virDomainGetXMLDesc 
name=virDomainGetXMLDesc><CODE><FONT 
size=2>virDomainGetXMLDesc</FONT></CODE></A><FONT size=2>".</FONT></FONT></DIV>
<DIV><FONT size=2 face="MS UI Gothic">2. Get the Hypervisor Object for the 
source Domain using "virDomainGetConnect".</FONT></DIV>
<DIV><FONT face="MS UI Gothic"><FONT size=2>3. Create a new Domain using the 
"</FONT><A id=virDomainCreateXML name=virDomainCreateXML><CODE><FONT 
size=2>virDomainCreateXML</FONT></CODE></A><FONT size=2>" 
method.</FONT></FONT></DIV>
<DIV><FONT size=2 face="MS UI Gothic"></FONT> </DIV>
<DIV><FONT size=2 face="MS UI Gothic">After doing this, I get the following 
error:</FONT></DIV>
<DIV><FONT size=2 face="MS UI Gothic"></FONT> </DIV>
<DIV><FONT size=2 face="MS UI Gothic"><EM>libvirt.libvirtError: POST operation 
failed: xend_post: error from xen daemon: (xend.err "Error creating domain: VM 
name already in use by domain 4")</EM></FONT></DIV>
<DIV><FONT size=2 face="MS UI Gothic"></FONT> </DIV>
<DIV><FONT size=2 face="MS UI Gothic">First of all, Is this the correct way to 
create a new Domain as a copy of the original??</FONT></DIV>
<DIV><FONT size=2 face="MS UI Gothic"></FONT> </DIV>
<DIV><FONT size=2 face="MS UI Gothic">If not, please tell me how should I 
go about this??</FONT></DIV>
<DIV><FONT size=2 face="MS UI Gothic"></FONT> </DIV>
<DIV><FONT size=2 face="MS UI Gothic">Thanks and Regards<BR>Sagar 
Barve</FONT></DIV></BODY></HTML>