[Libvir] suspended domains

I am using libvir 0.4.1 with Xen 3.2.0. It might be an obvious question, but if there is a way to get list of inactive/suspended domains via C API? virsh # list --all Id Name State ---------------------------------- 0 Domain-0 running 6 centos51 blocked virsh # domstate centos52 paused As you can see 'centos52' is not shown, although it is known. In general, could somebody explain to me how libvirt is managing information about inactive domains? Thanks! Vadim

Another this that puzzles me: virsh # list --all Id Name State ---------------------------------- 0 Domain-0 running 6 centos51 blocked virsh # quadro /home/lord# xm list Name ID Mem VCPUs State Time(s) Domain-0 0 2511 4 r----- 1604.2 centos51 6 255 1 -b---- 32.2 centos52 10 256 1 --p--- 11.6 As you can see 'centos52' is shown by xm but not by virsh. Vadim On Fri, Mar 21, 2008 at 9:03 AM, Vadim Zaliva <krokodil@gmail.com> wrote:
I am using libvir 0.4.1 with Xen 3.2.0. It might be an obvious question, but if there is a way to get list of inactive/suspended domains via C API?

Sorry about torrent of emails. Maybe this is also relevant: virsh # version Compiled against library: libvir 0.4.1 Using library: libvir 0.4.1 Using API: Xen 3.0.1 Running hypervisor: Xen 3.2.0 Note API and hypervisor version discrepancy. Vadim

VZ> virsh # domstate centos52 VZ> paused VZ> As you can see 'centos52' is not shown, although it is known. This is a known issue with Xen 3.2 and paused domains, but I thought it was fixed by this patch: https://www.redhat.com/archives/libvir-list/2008-February/msg00413.html Looking at the 0.4.1 release notes and the thread, I'm not sure if it actually got applied. -- Dan Smith IBM Linux Technology Center Open Hypervisor Team email: danms@us.ibm.com

On Mar 21, 2008, at 10:00, Dan Smith wrote:
This is a known issue with Xen 3.2 and paused domains, but I thought it was fixed by this patch:
https://www.redhat.com/archives/libvir-list/2008-February/msg00413.html
Looking at the 0.4.1 release notes and the thread, I'm not sure if it actually got applied.
I have applied this patch to 0.4.1 and it have resolved the problem. Thank you! Vadim

On Fri, Mar 21, 2008 at 10:10:53AM -0700, Vadim Zaliva wrote:
On Mar 21, 2008, at 10:00, Dan Smith wrote:
This is a known issue with Xen 3.2 and paused domains, but I thought it was fixed by this patch:
https://www.redhat.com/archives/libvir-list/2008-February/msg00413.html
Looking at the 0.4.1 release notes and the thread, I'm not sure if it actually got applied.
I have applied this patch to 0.4.1 and it have resolved the problem. Thank you!
Thanks for reporting this. It looks like this patch was just missed by accident. Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into Xen guests. http://et.redhat.com/~rjones/virt-p2v

On Wed, Mar 26, 2008 at 12:58:57PM +0000, Richard W.M. Jones wrote:
On Fri, Mar 21, 2008 at 10:10:53AM -0700, Vadim Zaliva wrote:
On Mar 21, 2008, at 10:00, Dan Smith wrote:
This is a known issue with Xen 3.2 and paused domains, but I thought it was fixed by this patch:
https://www.redhat.com/archives/libvir-list/2008-February/msg00413.html
Looking at the 0.4.1 release notes and the thread, I'm not sure if it actually got applied.
I have applied this patch to 0.4.1 and it have resolved the problem. Thank you!
Thanks for reporting this. It looks like this patch was just missed by accident.
OK, Daniel Veillard committed that fix. Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://et.redhat.com/~rjones/virt-top
participants (3)
-
Dan Smith
-
Richard W.M. Jones
-
Vadim Zaliva