<br><br><div class="gmail_quote">On Wed, Oct 12, 2011 at 12:35 PM, Eric Blake <span dir="ltr"><<a href="mailto:eblake@redhat.com">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="im">On 10/12/2011 11:30 AM, Trey Dockendorf wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I've created a very basic snapshot XML file, to allow for a description of<br>
the snapshot.  However when running the virsh command, it doesn't like the<br>
formatting.<br>
<br>
# virsh snapshot-create proxy_0 /vmstore/proxy_0/proxy_0_ss.<u></u>xml<br>
error: XML description for failed to parse snapshot xml document is not well<br>
formed or invalid<br>
</blockquote>
<br></div>
That's because:<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
This are the XML file contents...<br>
<br>
# cat proxy_0_ss.xml<br>
<domainsnapshot><br>
   <name></name><br>
</blockquote>
<br></div>
If <name> is present, it must not be empty.<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
   <description>Before updating to CR repo</desciption><br>
</domainsnapshot><br>
</blockquote>
<br></div>
If you want libvirt to generate the name for you, then omit <name>; otherwise, provide a non-empty name alongside your description.<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
I'm running libvirt-0.8.7 on CentOS 6 x86_64.  I can take snapshots just<br>
fine without defining the XML file, but I'd like to be able to add a<br>
description.<br>
</blockquote>
<br></div>
Newer libvirt also has:<br>
<br>
virsh snapshot-create-as --description 'Before updating to CR repo' proxy_0<br>
<br>
which creates the XML for you, and thus is a bit easier to use.  Alas, that would mean you'd have to upgrade.<br><font color="#888888">
<br>
-- <br>
Eric Blake   <a href="mailto:eblake@redhat.com" target="_blank">eblake@redhat.com</a>    <a href="tel:%2B1-801-349-2682" value="+18013492682" target="_blank">+1-801-349-2682</a><br>
Libvirt virtualization library <a href="http://libvirt.org" target="_blank">http://libvirt.org</a><br>
</font></blockquote></div><br><div>Thanks for the response.  Unfortunately I still receive the exact same error with only this as the contents...</div><div><br></div><div><div><domainsnapshot></div><div>  <description>Before updating to CR repo</desciption></div>
<div></domainsnapshot></div></div><div><br></div><div>I also tried filling in a name, and still the same error.</div><div><br></div><div>Thanks</div><div>- Trey</div>