error: Timed out during operation: cannot acquire state change lock

By | January 5, 2012

Do you see this error (error: Timed out during operation: cannot acquire state change lock) while starting or stopping virtual machines using libvirt (virsh). Well, if you do, then I think I have a solution for it. Please try this at your own risk. I’m not responsible for any problems or damage caused by following¬†procedure¬†mentioned below.

This solution worked for me on Debian lenny and I hope will also work on other linux boxes too.

Login as a root user and kill the libvirtd.

killall -9 libvirtd

Remove the libvirtd pid file.

rm /var/run/libvirtd.pid

Restart libvirt-bin.

/etc/init.d/libvirt-bin restart

So, check my source to find more.

If you like this article, then please consider sharing it. Sharing really inspires us to do things much better!!

One thought on “error: Timed out during operation: cannot acquire state change lock

  1. Pingback: Libvirt (virsh) cannot acquire state change lock error explained | Linux Tutorials

Leave a Reply

Your email address will not be published. Required fields are marked *