<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18975">
<STYLE>@font-face {
        font-family: 宋体;
}
@font-face {
        font-family: Verdana;
}
@font-face {
        font-family: @宋体;
}
@page Section1 {size: 595.3pt 841.9pt; margin: 72.0pt 90.0pt 72.0pt 90.0pt; layout-grid: 15.6pt; }
P.MsoNormal {
        TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; FONT-SIZE: 10.5pt
}
LI.MsoNormal {
        TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; FONT-SIZE: 10.5pt
}
DIV.MsoNormal {
        TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; FONT-SIZE: 10.5pt
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
        FONT-STYLE: normal; FONT-FAMILY: Verdana; COLOR: windowtext; FONT-WEIGHT: normal; TEXT-DECORATION: none; mso-style-type: personal-compose
}
DIV.Section1 {
        page: Section1
}
UNKNOWN {
        FONT-SIZE: 10pt
}
BLOCKQUOTE {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em
}
OL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
UL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
</STYLE>
</HEAD>
<BODY style="MARGIN: 10px; FONT-FAMILY: verdana; FONT-SIZE: 10pt">
<DIV><FONT color=#000080 size=2 face=Verdana>Hi Richard,</FONT></DIV>
<DIV><FONT color=#000080></FONT> </DIV>
<DIV><FONT color=#000080>Thank you for your information, I'll look into 
it.</FONT></DIV>
<DIV><FONT color=#000080 size=2 face=Verdana></FONT> </DIV>
<DIV><FONT color=#000080>Regards</FONT></DIV>
<DIV><FONT color=#000080 size=2 face=Verdana></FONT> </DIV>
<DIV><FONT color=#c0c0c0 size=2 face=Verdana>2010-11-12 </FONT></DIV><FONT 
color=#000080 size=2 face=Verdana>
<HR style="WIDTH: 100px" align=left color=#b5c4df SIZE=1>
</FONT>
<DIV><FONT color=#c0c0c0 size=2 face=Verdana>Lancer </FONT></DIV>
<HR color=#b5c4df SIZE=1>

<DIV><FONT size=2 face=Verdana><STRONG>发件人:</STRONG> Richard W.M. Jones 
</FONT></DIV>
<DIV><FONT size=2 face=Verdana><STRONG>发送时间:</STRONG> 2010-11-11  06:21:04 
</FONT></DIV>
<DIV><FONT size=2 face=Verdana><STRONG>收件人:</STRONG> Daniel P. Berrange 
</FONT></DIV>
<DIV><FONT size=2 face=Verdana><STRONG>抄送:</STRONG> 黄亮; libvir-list 
</FONT></DIV>
<DIV><FONT size=2 face=Verdana><STRONG>主题:</STRONG> Re: [libvirt] Is there an 
API for clone? </FONT></DIV>
<DIV><FONT size=2 face=Verdana></FONT> </DIV>
<DIV><FONT size=2 face=Verdana>
<DIV>On Wed, Nov 10, 2010 at 10:42:27AM +0000, Daniel P. Berrange wrote:</DIV>
<DIV>> On Wed, Nov 10, 2010 at 09:30:28AM +0800, 黄亮 wrote:</DIV>
<DIV>> > Hi, guys</DIV>
<DIV>> > </DIV>
<DIV>> > I know there is a command "virt-clone", but I couldn't find the </DIV>
<DIV>> > equivalent API here : http://libvirt.org/html/libvirt-libvirt.html</DIV>
<DIV>> > So, is there an API to clone an existing VM or not?</DIV>
<DIV>> </DIV>
<DIV>> The virt-clone tool is implemented by running a large number of</DIV>
<DIV>> individual libvirt APIs. There's no API that does everything in</DIV>
<DIV>> one go, because that would be an application specific use case.</DIV>
<DIV></DIV>
<DIV>In addition you can't clone a VM just using libvirt APIs:</DIV>
<DIV></DIV>
<DIV>https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-vm/</DIV>
<DIV></DIV>
<DIV>On Windows you'd probably want to run the sysprep program.</DIV>
<DIV></DIV>
<DIV>This is a bug in the virt-clone tool:</DIV>
<DIV></DIV>
<DIV>https://bugzilla.redhat.com/show_bug.cgi?id=524269</DIV>
<DIV></DIV>
<DIV>And for completeness:</DIV>
<DIV></DIV>
<DIV>https://bugzilla.redhat.com/show_bug.cgi?id=638188</DIV>
<DIV></DIV>
<DIV>Rich.</DIV>
<DIV></DIV>
<DIV>-- </DIV>
<DIV>Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones</DIV>
<DIV>virt-top is 'top' for virtual machines.  Tiny program with many</DIV>
<DIV>powerful monitoring features, net stats, disk stats, logging, etc.</DIV>
<DIV>http://et.redhat.com/~rjones/virt-top</DIV>
<DIV></DIV>
<DIV>__________ Information from ESET Smart Security, version of virus signature database 5608 (20101110) __________</DIV>
<DIV></DIV>
<DIV>The message was checked by ESET Smart Security.</DIV>
<DIV></DIV>
<DIV>http://www.eset.com</DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV></FONT></DIV></BODY></HTML>