kvm starting domain: cannot send monitor command

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

+++++++++++++++++++++++++++++++++++++++++

 

解� libvirt �法�����器的��

by Jamyy on 十二月.21, 2011, under Linux

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

你可能感兴趣的:(职场,kvm,domain,休闲,starting)