[libvirt] Question on xm and virsh listing

I'd like to understand the exact mechanism for retrieving the list of guests by xm/xend and virsh/libvirt.In what situations could the output of 'xm list' differ from 'virsh list'?Which of these two is more accurate? I'd appreciate any pointers. Thanks.

AFAIK, virt list shows only running guests. Not sure how xm list behaves, but if it shows offline ( not running ) guests, that's where the difference can be. To achieve the same with virsh use "virsh list --all". Also i'd guess that if a xen guest was not create with virsh/virt-manager/virt-install , virsh won't know about it and won't show it in virsh list. ----- Original Message ----- I'd like to understand the exact mechanism for retrieving the list of guests by xm/xend and virsh/libvirt.In what situations could the output of 'xm list' differ from 'virsh list'?Which of these two is more accurate? I'd appreciate any pointers. Thanks. -- Nikolai K. Bochev System Administrator
participants (2)
-
Nandini Chandra
-
Nikolai K. Bochev