[virt-tools-list] [PATCH] virt-manager: Show if the shut off vm has a saved image

Eric Blake eblake at redhat.com
Mon Aug 1 20:56:53 UTC 2011


[adding libvirt, for a virsh idea]

On 08/01/2011 02:19 PM, Cole Robinson wrote:
> On 07/30/2011 04:15 PM, Miklos Vajna wrote:
>> Hi,
>>
>> So far in virt-manager one had to click on a shut off vm in the
>> "Shutoff" state to see if it has a saved image: once the item is
>> selected then the "play" icon will be "Run" or "Restore". This means
>> that in case one has a lot of VMs, it's hard to get an overview of what
>> VM has a saved image and what not.
>>
>> The attached patch changes the "Shutoff" status message to "Saved" in
>> case the vm has a saved image.
>>
>
> Good idea, I've pushed your patch:

Awesome idea; in fact, I think 'virsh list --all' should probably also 
be enhanced to do something similar (show "saved" instead of "shutoff", 
and perhaps requiring a new --managed-save flag so as not to break 
back-compat).  Note that virsh 0.9.4 is gaining 'virsh dominfo' as a way 
of querying whether a managed save image exists (previously virsh had no 
way to expose that information), but 'virsh dominfo' on a single domain 
at a time is much slower than doing it in bulk in 'virsh list'.

Alas, we've missed the deadline for getting a patch like that into 
libvirt 0.9.4.

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org




More information about the virt-tools-list mailing list