I accidentally deleted the domain.monitor
socket files in /var/lib/libvirt/qemu on a centos6 machine.
Now libvirt is unable to interact with the machines to shut them down or take snapshots.
I can fool libvirtd into thinking the domains are running by running nc -lU /var/lib/libvirt/qemu/domain.monitor
and restarting libvirtd, which enables me to run virsh console domain
again, although ending the nc
process causes instant death to the domain.
Obviously I can kill the qemu process and start it again with virsh start domain, but I’d rather not if I can avoid it. I hope that something like kill -HUP might cause it to recreate the socket file, but sadly it causes instant death.
I have broken over 100 machines, so any input is greatly appreciated.