I was wondering if there is any way from either the virsh CLI or the libvirt API (preferably virsh) to get the amount of disk space to get the amount of disk space each guest has been assigned?? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20110104/c21c262f/attachment.htm>
Lastly, if there is no way to get this information from virsh and/or libvirt, is there a way to figure it out any other way?? Thanks. John ________________________________ From: Tavares, John Sent: Tuesday, January 04, 2011 11:44 AM To: 'libvirt-users at redhat.com' Cc: Tavares, John; Betley, Greg; Tomen Tse; 'Daniel P. Berrange' Subject: Xen/KVM guest disk sizes I was wondering if there is any way from either the virsh CLI or the libvirt API (preferably virsh) to get the amount of disk space to get the amount of disk space each guest has been assigned?? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20110104/a580d136/attachment.htm>
No specific virsh command or API to do this work. However, you could check it by: virsh # vol-info /var/lib/libvirt/images/f14.img Name: f14.img Type: file Capacity: 8.00 GB Allocation: 8.00 GB virsh # vol-info /var/lib/libvirt/images/mytest.qcow2 Name: mytest.qcow2 Type: file Capacity: 10.00 MB Allocation: 136.00 KB Regards Osier ? 2011?01?05? 00:44, Tavares, John ??:> I was wondering if there is any way from either the virsh CLI or the > libvirt API (preferably virsh) to get the amount of disk space to get > the amount of disk space each guest has been assigned?? > > > > _______________________________________________ > libvirt-users mailing list > libvirt-users at redhat.com > https://www.redhat.com/mailman/listinfo/libvirt-users