Red Hat Bugzilla – Bug 502333
virt-manager should show guest disk size in Details
Last modified: 2010-06-16 13:52:08 EDT
Description of problem:
virt-manager should show the size of disk images in the Details of a guest
Steps to Reproduce:
1. Open guest -> Details -> Disk hda
No size shown
Disk storage size to be shown.
Have to go to /var/lib/libvirt/images to check size.
(For future reference, this is virt-manager-0.7.0)
I took a quick look at this yesterday, and unfortunately, there's a reason that we don't show that type of detail. Currently, the only way to get fine details about a particular file, partition, or LVM volume is to have it as a libvirt volume. To have a libvirt volume, you need to have a libvirt storage pool.
Now, we do have a libvirt storage pool by default for /var/lib/libvirt/images, so getting storage data about any files in there is relatively easy. The problem becomes when you think about getting the data of arbitrary files or partitions. If, for instance, the user is storing their files in /storage, and their guest disk is in /storage/vm.dsk, in order to get information about /storage/vm.dsk we would first need to create a storage pool for /storage, and then get the data. This could get out of hand quickly, since in theory, we would need to create a storage pool for every directory in the system. This needs to be thought about more; maybe it's OK in practice, since most people will be using just one or two directories to store their images.
Yeah, I'm not comfortable with auto pool-ifying all storage. But if the storage is already managed, we should be pulling info from libvirt and displaying it in VM->Details->Disk, info like capacity, allocation, file format, backing store, etc.
Ok - even just showing the size of physical disk files would be useful IMHO if more info is not available.
Okay, updated disk details to show disk size if available:
This bug appears to have been reported against 'rawhide' during the Fedora 13 development cycle.
Changing version to '13'.
More information and reason for this action is here:
virt-manager-0.8.4-1.fc13 has been submitted as an update for Fedora 13.
virt-manager-0.8.4-1.fc13 has been pushed to the Fedora 13 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
su -c 'yum --enablerepo=updates-testing update virt-manager'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/virt-manager-0.8.4-1.fc13
virt-manager-0.8.4-1.fc13 has been pushed to the Fedora 13 stable repository. If problems still persist, please make note of it in this bug report.