无法启动 libvirt

无法启动 libvirt

我可能使用 rm -rf /var/run/libvirtd.pid 让事情变得更糟

root@ts:/home/t# libvirtd
2017-05-28 07:48:19.090+0000: 5473: info : libvirt version: 2.5.0, package: 3ubuntu5 (Christian Ehrhardt <[email protected]> Tue, 21 Mar 2017 08:02:37 +0100)
2017-05-28 07:48:19.090+0000: 5473: info : hostname: ts
2017-05-28 07:48:19.090+0000: 5473: error : virPidFileAcquirePath:422 : Failed to acquire pid file '/var/run/libvirtd.pid': Resource temporarily unavailable
root@ts:/home/t# status libvirtd
status: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
root@ts:/home/t# ps ax | grep libvirtd
 2595 ?        Ssl    0:00 /usr/sbin/libvirtd
 5562 pts/0    S+     0:00 grep --color=auto libvirtd
root@ts:/home/t# kill -9 2595
root@ts:/home/t# rm -rf /var/run/libvirtd.pid
root@ts:/home/t# status libvirtd
status: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
root@ts:/home/t# libvirtd
2017-05-28 07:50:11.363+0000: 5786: info : libvirt version: 2.5.0, package: 3ubuntu5 (Christian Ehrhardt <[email protected]> Tue, 21 Mar 2017 08:02:37 +0100)
2017-05-28 07:50:11.363+0000: 5786: info : hostname: ts
2017-05-28 07:50:11.363+0000: 5786: error : qemuMonitorJSONCheckError:387 : internal error: unable to execute QEMU command 'query-cpu-definitions': The command query-cpu-definitions has not been found
2017-05-28 07:50:11.363+0000: 5786: warning : virQEMUCapsLogProbeFailure:4441 : Failed to probe capabilities for /usr/bin/qemu-system-alpha: internal error: unable to execute QEMU command 'query-cpu-definitions': The command query-cpu-definitions has not been found

谢谢你的帮助

答案1

我遇到了与此相同的错误:

错误:qemuMonitorJSONCheckError:387:内部错误:无法执行 QEMU 命令“query-cpu-definitions”:未找到命令 query-cpu-definitions

我通过启用计算机 BIOS 中的虚拟化选项以及禁用安全启动选项解决了这个问题。

希望对您有帮助。

相关内容