[CentOS-virt] wrong kvm vm status in libvirt

Fri May 27 17:08:51 UTC 2011
franco battiato <franco046 at gmail.com>

 are some days that i'm searching for a possible bug in libvirt. I use
Solusvm control panel to manage my kvm VM. If i start a vm it will be shown
correctly as Running. After some days i found that libvirt show same vm as
shut off, but this is not true. I still see login to vm, join in ssh, join
in vnc etc. If i want to show correct state i need to power off the VM and
boot it again.

this is an example:
# list --all
 Id Name                 State
 18 kvm160               running
  - kvm134               shut off
  - kvm139               shut off
  - kvm140               shut off
  - kvm144               shut off
  - kvm147               shut off
  - kvm148               shut off

this is not true because all vm are running. For example the kvm134:

]# ps ax|grep kvm134
 8313 ?        Sl   3671:51 /usr/libexec/qemu-kvm -S -M rhel5.4.0 -m 1536
-smp 1,sockets=1,cores=1,threads=1 -name kvm134 -uuid
f74f0b83-854a-b22f-36bd-a5ee906926e3 -monitor
-no-kvm-pit-reinjection -boot cd -drive
file=/dev/vps/kvm134_img,if=ide,bus=0,unit=0,boot=on,format=raw -drive
-net nic,macaddr=00:16:3b:0c:a1:a5,vlan=0,model=e1000 -net tap,fd=17,vlan=0
-net nic,macaddr=00:18:3a:4c:b7:85,vlan=1,model=e1000 -net tap,fd=19,vlan=1
-serial none -parallel none -usb -usbdevice tablet -vnc,password
-vga cirrus -balloon virtio

as you can see the vm is working well. Have someone shown same issue?

if i enable debug i see that libvirt try to start vm but see the bridge
resource busy (this is normal because vm is already running).

Centos 5.6 x86_64
Compiled against library: libvir 0.8.2
Using library: libvir 0.8.2
Using API: QEMU 0.8.2
Running hypervisor: QEMU 0.9.1

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos-virt/attachments/20110527/5578d5bd/attachment-0002.html>