Hello everyone,
I am doing an outreachy internship at Openstack Ironic. In the sushy-tools project, we are using libvirt VMs to simulate bare metal machines for testing purposes.

In the XML description of a domain, there are a bunch of disk elements giving information about the various storage devices attached to the domain. Is there some way to get the size/capacity of those disks using the libvirt API?

--
Regards,
Varsha Verma
Fourth Year Undergraduate
Department of Electrical Engineering
IIT-BHU, Varanasi