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: m
On 05/01/2011, at 4:05 AM, Tavares, John wrote:
> Hi Justin,
>
> Is there a particular version of virsh/libvirt needed for this??
Hi John,
Good point. The --details option was added to vol-list from libvirt 0.8.3.
If the version of libvirt you're using is older than that, from memory you
shoul
Hi Justin,
Is there a particular version of virsh/libvirt needed for this??
Thanks.
John
-Original Message-
From: Justin Clift [mailto:jcl...@redhat.com]
Sent: Tuesday, January 04, 2011 12:00 PM
To: Tavares, John
Cc: libvirt-users@redhat.com
Subject: Re: [libvirt-users] Xen/KVM guest
On 05/01/2011, at 3:53 AM, Tavares, John wrote:
> 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??
Hi John,
Does the virsh "vol-list --details " command do what you want?
Regards and best wishes,
Justin Clift
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@redhat.com'
Cc: Tavares, John; Betley, Greg
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@redhat.com
h