歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux基礎 >> 關於Linux

Virtual Machine Manager中linux系統啟動報錯問題

一、在Virtual Machine Manager中啟動系統時報錯:

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

二、在普通用戶登陸的情況下,打開虛擬機可能也會報錯,有可能遇到的問題是:libvirtd這個服務未啟動

解決辦法:

1)su  root

2)service libvirtd start

3)chkconfig libvirtd on   (設置為開機自啟動)

本欄目更多精彩內容:http://www.bianceng.cn/OS/Linux/

Copyright © Linux教程網 All Rights Reserved