cannot send monitor command '{"execute":"qmp_capabilities"}': Connection reset by peer
Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 45, in cb_wrapper
callback(asyncjob, *args, **kwargs)
File "/usr/share/virt-manager/virtManager/engine.py", line 956, in asyncfunc
vm.startup()
File "/usr/share/virt-manager/virtManager/domain.py", line 1048, in startup
self._backend.create()
File "/usr/lib64/python2.6/site-packages/libvirt.py", line 325, in create
if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self)
libvirtError: cannot send monitor command '{"execute":"qmp_capabilities"}': Connection reset by peer
1) Remove any snapshot available
# rm -f /var/lib/libvirt/qemu/save/my-virtual-machine-name
2) restart libvirtd
# service libvirtd restart
3) Start the virtual machine again
+++++++++++++++++++++++++++++++++++++++++
by on 十二月.21, 2011, under
libvirt Host (CentOS 6.1) 執行 init 0 關機後, 再開機時發現虛擬機器無法啟動, start guest1 出現錯誤訊息如下:
cannot send monitor command '{"execute":"qmp_capabilities"}': Connection reset by peer |
同時 /var/log/messages 亦記錄了:
1 | error : qemuMonitorJSONCommandWithFd:243 : cannot send monitor command '{"execute":"qmp_capabilities"}': Connection reset by peer |
2 | error : virCgroupRemoveRecursively:679 : Unable to remove /cgroup/cpu/libvirt/qemu/guest1/ |
3 | error : virCgroupRemoveRecursively:679 : Unable to remove /cgroup/cpuacct/libvirt/qemu/guest1/ |
4 | error : virCgroupRemoveRecursively:679 : Unable to remove /cgroup/cpuset/libvirt/qemu/guest1/ |
5 | error : virCgroupRemoveRecursively:679 : Unable to remove /cgroup/memory/libvirt/qemu/guest1/ |
6 | error : virCgroupRemoveRecursively:679 : Unable to remove /cgroup/devices/libvirt/qemu/guest1/ |
7 | error : virCgroupRemoveRecursively:679 : Unable to remove /cgroup/freezer/libvirt/qemu/guest1/ |
8 | error : virCgroupRemoveRecursively:679 : Unable to remove /cgroup/blkio/libvirt/qemu/guest1/ |
後來發現重新 define 就能解決, 操作步驟為:
virsh dumpxml guest1 > guest1.xml
virsh undefine guest1 virsh define guest1.xml virsh start guest1