[libvirt] Can comments be added to libvirt xml files?

Ján Tomko jtomko at redhat.com
Fri Aug 15 05:53:27 UTC 2014

On 08/15/2014 12:36 AM, bancfc at openmailbox.org wrote:
> Hi. Is it possible to preserve comments in libvirt's XML files
> without it failing validate-xml checks?

Any comments you add to the XML will be lost when libvirt parses and formats
it again, only the elements libvirt knows will be preserved.

For domains, we have a few elements where you can store your own data:

For secrets and snapshots, only 'description' is available.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140815/88841b87/attachment-0001.sig>

More information about the libvir-list mailing list