Re: how xml generated

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 04/26/2018 04:29 AM, 李卓瑶 wrote:
> hi :
>  i create a domain by virt-manager tool, then there is a xxx.xml generated in /etc/libvirt/qemu/.
> so, my question is how the xx.xml generated? What the code involves in libvirt ?

Long story short, virt-manager invokes virt-install which generates XML
string. This string (not yet saved onto disk, still just in memory) is
then passed to libvirt API virDomainDefineXML() which parses it, does
some sanity checking and finally formats it back and save it under
/etc/libvirt/qemu/$domain.xml.

Codewise, you want to be looking at qemuDomainDefineXMLFlags().

Michal

_______________________________________________
libvirt-users mailing list
libvirt-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvirt-users




[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux