[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[virt-tools-list] Error saving / shuting down VM



Hi!

Yesterday I started trying to backup my VMs, using "virsh save /path/to/VMmemory", rsyncing the memory and the hard disk file and after the copy typing "virsh restore /path/to/VMmemory". But my first test was unsucessful, the VM didn't shutoff after "virsh save", as expected. Now I can't restore the machine, it's kinda locked. I googled the issue, and found this page: https://bugzilla.redhat.com/show_bug.cgi?id=676205

It says the problem was solved in libvirt 0.9, so tonight, after business time, i'll try to update the system (ubuntu 10.04 lts). But the VM is paused and I am unable to put it working again. My ldap server is running in this VM, it's in production, my boss isn't finding this situation any funny.... lol

How can I put this VM back running? The machine was paused, and I was unable to restore or shutdown it. So I did these commands:

killall -9 libvirtd
rm /var/run/libvirtd.pid
/etc/init.d/libvirt-bin restart

Libvirt restarted, now my VM is shown in virt-manager as "running", but I cant open it, ssh it or shutdown it. If I try
"virsh destroy machine", I get the following message:

virsh # destroy ldapdebian
erro: Falha ao destruir o domínio ldapdebian
erro: Timed out during operation: cannot acquire state change lock

If I try to shutdown it using virt-manager, I get this error message:

Error shutting down domain: Timed out during operation: cannot acquire state change lock
Details:
Traceback (most recent call last):
  File "/usr/local/share/virt-manager/virtManager/engine.py", line 911, in _do_destroy_domain
    vm.destroy()
  File "/usr/local/share/virt-manager/virtManager/domain.py", line 1154, in destroy
    self._backend.destroy()
  File "/usr/lib/python2.7/dist-packages/libvirt.py", line 346, in destroy
    if ret == -1: raise libvirtError ('virDomainDestroy() failed', dom=self)
libvirtError: Timed out during operation: cannot acquire state change lock

Thanks in advance for any help. =D

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]