<div dir="ltr"><br><div class="gmail_extra"><br clear="all"><div><div dir="ltr"> </div></div>
<br><br><div class="gmail_quote">On Wed, Aug 6, 2014 at 3:07 PM, Eric Blake <span dir="ltr"><<a href="mailto:eblake@redhat.com" target="_blank">eblake@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="">On 08/06/2014 12:10 PM, Yuanzhen Gu wrote:<br>
>     Just one more question to make me clear in this point, so if I install<br>
> an application in the guest, and make a dmup XML, then     create a new<br>
> guest using that configured dump XML file, the new guest should also have<br>
> that application installed?  and the username and password of the new guest<br>
> should be the same as the previous guest?   thanks a lot!<br>
<br>
</div>dumpxml is only half a guest.  A guest consists of the hardware it is<br>
running on (dumpxml) and the contents of the disks (storage volumes).<br>
To create a clone, you need to copy and modify both the dumpxml domain<br>
description, AND do a clone (or share a common base file, using qcow2<br>
overlays) of the disk elements (where part of your xml edits is pointing<br>
to the just-cloned storage).  Furthermore, if you expect both the<br>
original and the new guest to ever run in parallel, it is a very wise<br>
idea to do other changes to the disk contents (which is why I pointed<br>
you to libguestfs' virt-sysprep).  For example, if you forget to nuke<br>
the guest's random number seed, then both the original and the guest<br>
will be using the same random number stream when they first boot, which<br>
is a security hole waiting to happen because random streams are not<br>
supposed to be predictable.<br></blockquote><div><br></div><div>    Thank you very much Eric ! </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5"><br>
--<br>
Eric Blake   eblake redhat com    <a href="tel:%2B1-919-301-3266" value="+19193013266">+1-919-301-3266</a><br>
Libvirt virtualization library <a href="http://libvirt.org" target="_blank">http://libvirt.org</a><br>
<br>
</div></div></blockquote></div><br></div></div>