Hallo,
I am using virsh with squeeze and xen-4.2+linux-3.8 (compiled)
Problem: "virsh list -all" shows VMs only in shutdown state.
(see: test3 virsh list shutdown)
virsh start/shutdown works correctly.
I suspect that version of libvirt is to old.
Is their some workaround without updating system?
regards Heiko
details:
- test1 start vm
root@e2:/tmp# virsh start vm1_test1
Domain vm1_test1 started
root@e2:/tmp# xm list
Name ID Mem VCPUs State Time(s)
Domain-0 0 64487 8 r----- 6834.7
vm1_test1 6 96 1 -b---- 2.3
root@e2:/tmp# virsh list
Id Name State
----------------------------------
root@e2:/tmp# virsh list --all
Id Name State
----------------------------------
root@e2:/tmp#
-> vm running, but "virsh list" show nothing
- test2 debug virsh list
root@e2:/tmp# LIBVIRT_DEBUG=1 virsh list | egrep -v "do_open|virRegister"
14:36:38.540: debug : virInitialize:340 : register drivers
14:36:38.541: debug : xenHypervisorInit:2010 : Using new hypervisor call: 40002
14:36:38.542: debug : xenHypervisorInit:2123 : Failed to find any Xen hypervisor method
14:36:38.542: debug : vboxRegister:122 : VBoxCGlueInit failed, using dummy driver
14:36:38.543: debug : virConnectOpenAuth:1499 : name=(null), auth=0x7f46145b2700, flags=0
14:36:38.543: debug : xenUnifiedOpen:326 : Trying hypervisor sub-driver
14:36:38.543: debug : xenUnifiedOpen:329 : Activated hypervisor sub-driver
14:36:38.543: debug : xenUnifiedOpen:337 : Trying XenD sub-driver
14:36:38.546: debug : xenUnifiedOpen:340 : Activated XenD sub-driver
14:36:38.546: debug : xenUnifiedOpen:353 : Trying XS sub-driver
14:36:38.547: debug : xenStoreOpen:345 : Failed to add event handle, disabling events
14:36:38.547: debug : xenUnifiedOpen:356 : Activated XS sub-driver
14:36:38.551: debug : xenUnifiedOpen:392 : Trying Xen inotify sub-driver
14:36:38.551: debug : xenInotifyXendDomainsDirLookup:139 : Looking for dom with uuid:
d868acf8-56b7-b260-4c85-c2e1e2a67e9b
14:36:38.576: debug : virGetDomain:382 : New hash entry 0x65b0a0
14:36:38.576: debug : virDomainFree:2243 : domain=0x65b0a0
14:36:38.576: debug : virUnrefDomain:463 : unref domain 0x65b0a0 vm1_test1 1
14:36:38.576: debug : virReleaseDomain:416 : release domain 0x65b0a0 vm1_test1
d868acf8-56b7-b260-4c85-c2e1e2a67e9b
14:36:38.576: debug : virReleaseDomain:433 : unref connection 0x634ad0 2
14:36:38.576: debug : xenInotifyOpen:441 : Adding a watch on /var/lib/xend/domains
14:36:38.576: debug : xenInotifyOpen:453 : Building initial config cache
14:36:38.576: debug : xenInotifyOpen:460 : Registering with event loop
14:36:38.576: debug : xenInotifyOpen:464 : Failed to add inotify handle, disabling events
14:36:38.576: debug : xenUnifiedOpen:395 : Activated Xen inotify sub-driver
14:36:38.576: debug : doRemoteOpen:565 : proceeding with name = xen:///
14:36:38.576: debug : remoteIO:9888 : Do proc=66 serial=0 length=28 wait=(nil)
14:36:38.576: debug : remoteIO:9963 : We have the buck 66 0x7f461474d010 0x7f461474d010
14:36:38.577: debug : remoteIODecodeMessageLength:9316 : Got length, now need 64 total (60
more)
14:36:38.577: debug : remoteIOEventLoop:9814 : Giving up the buck 66 0x7f461474d010 (nil)
14:36:38.577: debug : remoteIO:9992 : All done with our call 66 (nil) 0x7f461474d010
14:36:38.577: debug : remoteIO:9888 : Do proc=1 serial=1 length=48 wait=(nil)
14:36:38.577: debug : remoteIO:9963 : We have the buck 1 0x65e2d0 0x65e2d0
14:36:38.608: debug : remoteIODecodeMessageLength:9316 : Got length, now need 56 total (52
more)
14:36:38.608: debug : remoteIOEventLoop:9814 : Giving up the buck 1 0x65e2d0 (nil)
14:36:38.608: debug : remoteIO:9992 : All done with our call 1 (nil) 0x65e2d0
14:36:38.608: debug : doRemoteOpen:942 : Adding Handler for remote events
14:36:38.608: debug : doRemoteOpen:949 : virEventAddHandle failed: No addHandleImpl
defined. continuing without events.
14:36:38.609: debug : doRemoteOpen:565 : proceeding with name = xen:///
14:36:38.609: debug : remoteIO:9888 : Do proc=66 serial=0 length=28 wait=(nil)
14:36:38.609: debug : remoteIO:9963 : We have the buck 66 0x69e3b0 0x69e3b0
14:36:38.609: debug : remoteIODecodeMessageLength:9316 : Got length, now need 64 total (60
more)
14:36:38.609: debug : remoteIOEventLoop:9814 : Giving up the buck 66 0x69e3b0 (nil)
14:36:38.609: debug : remoteIO:9992 : All done with our call 66 (nil) 0x69e3b0
14:36:38.610: debug : remoteIO:9888 : Do proc=1 serial=1 length=48 wait=(nil)
14:36:38.610: debug : remoteIO:9963 : We have the buck 1 0x69e3b0 0x69e3b0
14:36:38.643: debug : remoteIODecodeMessageLength:9316 : Got length, now need 56 total (52
more)
14:36:38.643: debug : remoteIOEventLoop:9814 : Giving up the buck 1 0x69e3b0 (nil)
14:36:38.643: debug : remoteIO:9992 : All done with our call 1 (nil) 0x69e3b0
14:36:38.643: debug : doRemoteOpen:942 : Adding Handler for remote events
14:36:38.643: debug : doRemoteOpen:949 : virEventAddHandle failed: No addHandleImpl
defined. continuing without events.
14:36:38.643: debug : doRemoteOpen:565 : proceeding with name = xen:///
14:36:38.643: debug : remoteIO:9888 : Do proc=66 serial=0 length=28 wait=(nil)
14:36:38.643: debug : remoteIO:9963 : We have the buck 66 0x6de490 0x6de490
14:36:38.645: debug : remoteIO:9888 : Do proc=1 serial=1 length=48 wait=(nil)
14:36:38.645: debug : remoteIO:9963 : We have the buck 1 0x6de490 0x6de490
14:36:38.677: debug : remoteIODecodeMessageLength:9316 : Got length, now need 56 total (52
more)
14:36:38.677: debug : remoteIOEventLoop:9814 : Giving up the buck 1 0x6de490 (nil)
14:36:38.677: debug : remoteIO:9992 : All done with our call 1 (nil) 0x6de490
14:36:38.677: debug : doRemoteOpen:942 : Adding Handler for remote events
14:36:38.677: debug : doRemoteOpen:949 : virEventAddHandle failed: No addHandleImpl
defined. continuing without events.
14:36:38.677: debug : virConnectNumOfDomains:1894 : conn=0x634ad0
Id Name State
----------------------------------
14:36:38.678: debug : virConnectClose:1525 : conn=0x634ad0
14:36:38.678: debug : virUnrefConnect:294 : unref connection 0x634ad0 1
14:36:38.678: debug : remoteIO:9888 : Do proc=2 serial=2 length=28 wait=(nil)
14:36:38.678: debug : remoteIO:9963 : We have the buck 2 0x6de490 0x6de490
14:36:38.678: debug : remoteIODecodeMessageLength:9316 : Got length, now need 56 total (52
more)
14:36:38.678: debug : remoteIOEventLoop:9814 : Giving up the buck 2 0x6de490 (nil)
14:36:38.678: debug : remoteIO:9992 : All done with our call 2 (nil) 0x6de490
14:36:38.678: debug : remoteIO:9888 : Do proc=2 serial=2 length=28 wait=(nil)
14:36:38.678: debug : remoteIO:9963 : We have the buck 2 0x65e2d0 0x65e2d0
14:36:38.679: debug : remoteIODecodeMessageLength:9316 : Got length, now need 56 total (52
more)
14:36:38.679: debug : remoteIOEventLoop:9814 : Giving up the buck 2 0x65e2d0 (nil)
14:36:38.679: debug : remoteIO:9992 : All done with our call 2 (nil) 0x65e2d0
14:36:38.679: debug : remoteIO:9888 : Do proc=2 serial=2 length=28 wait=(nil)
14:36:38.679: debug : remoteIO:9963 : We have the buck 2 0x65e2d0 0x65e2d0
14:36:38.680: debug : remoteIODecodeMessageLength:9316 : Got length, now need 56 total (52
more)
14:36:38.680: debug : remoteIOEventLoop:9814 : Giving up the buck 2 0x65e2d0 (nil)
14:36:38.680: debug : remoteIO:9992 : All done with our call 2 (nil) 0x65e2d0
14:36:38.682: debug : virReleaseConnect:249 : release connection 0x634ad0
-> entry "unref domain 0x65b0a0 vm1_test1 1" found
but not displayed
- test3 virsh list shutdown
# virsh shutdown vm1_test1
Domain vm1_test1 is being shutdown
root@e2:/tmp# virsh list
Id Name State
----------------------------------
root@e2:/tmp# virsh list --all
Id Name State
----------------------------------
- vm1_test1 shut off
-> "virsh list" show vm if shutdown only
- version
# apt-cache policy libvirt0
libvirt0:
Installed: 0.8.3-5+squeeze2
Candidate: 0.8.3-5+squeeze2
Version table:
*** 0.8.3-5+squeeze2 0
# uname -a
Linux e2 3.8.0-xen0 #1 SMP Fri Mar 1 14:01:33 CET 2013 x86_64 GNU/Linux
# xm info | grep ^xen_m
xen_major : 4
xen_minor : 2