Red Hat Bugzilla – Bug 1260994
xen: virsh doesn't list VMs created outside of libvirt by native xl toolstack
Last modified: 2016-03-22 07:39:37 EDT
Description of problem:
virsh list doesn't list all domains. Specifically, all domains not created through virsh aren't listed. This includes dom0, which is created by the hypervisor at startup, and other domains created with xl.
Version-Release number of selected component (if applicable):
libvirt 1.2.9, Xen 4.4.1
"virsh list" on a xen dom0 with the xl toolstack configured.
Steps to Reproduce:
Using the xl toolstack (preferred since Xen 4.1, only toolstack since Xen 4.5)
Only virsh/libvirt-created doms are shown
see all domains
Apparently by design, as a blog post of the xenlight driver creator suggests. The driver really should get its information from the hypervisor and the toolstack, not use some cached data which may be outdated for many reasons.
Can you link to the blogpost you mention?
Thank you Andreas. Indeed it sounds like this was a deliberate design decision though Jim doesn't elaborate in his blog post.
Most of the xen devs don't follow this tracker so you won't get much of a response here unfortunately... my guess is this bug is WONTFIX from their end. I suggest mailing libvir-list and ccing email@example.com asking about the design decision and if it's ever going to change. If so then we can consider re-opening this bug