How to list and change domain's disk image file

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

 



Hi

I'm writing a C program using libvirt API and need to list the storage
volumes used by each domain. I'm wondering if there is a way to do
this better of searching the XML strings of all domains, does anyone
can suggest me something ?

I also need to create a function to change the img file of a given
domain. I intend to do the following:

1. virDomainGetXMLDesc (domain)
2. change the XML to other img file
3. virDomainUndefine (domain)
4. virDomainCreateXML (changed XML)

Am i correct doing this ? There is a better method ?

Thanks

Ricardo

_______________________________________________
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