libvirt 错误提示及解决

简介:
[root@nginx ~]# virsh list
error: Failed to reconnect to the hypervisor
error: no valid connectionerror:
Failed to connect socket to '/var/run/libvirt/libvirt-sock': No such file or directory

问题解决:

libvirt服务没启动,启动就好了

[root@nginx ~]# /etc/init.d/libvirtd status
libvirtd is stopped
[root@nginx ~]#
[root@nginx ~]# /etc/init.d/libvirtd start
Starting libvirtd daemon:                                  [  OK  ]
[root@nginx ~]#

查看虚拟机运行状态:

 

[root@nginx ~]# virsh list

Id    Name                           State

----------------------------------------------------

1     lamp                           running


本文转自    蜗牛远途   51CTO博客,原文链接:http://blog.51cto.com/ywliyq/1766980
相关文章
|
7天前
|
Docker Windows 容器
Windows Docker Desktop 无法启动 自动退出报错信息为:Docker Desktop -Unexpected WsL error An unexpected error was e
Windows Docker Desktop 无法启动 自动退出报错信息为:Docker Desktop -Unexpected WsL error An unexpected error was e
24 0
|
Linux 开发工具 数据安全/隐私保护
CentOS7开机提示welcome to emergency mode!after logging in...
CentOS7.3昨天用的还好好的的,但是今天开机提示如下(如图提示): welcome to emergency mode!after logging in ,type “journalctl -xb” to view system logs,“systemctl reboot” to reboot ,“systemctl default” to try again to boot into default mode。
4553 0
|
Java Linux C++
成功解决centos7虚拟机开机后提示ABRT has detected 1 problem(s)
成功解决centos7虚拟机开机后提示ABRT has detected 1 problem(s)
2239 1
成功解决centos7虚拟机开机后提示ABRT has detected 1 problem(s)
|
缓存 Linux 虚拟化
linux下yum安装时出现Loaded plugins: fastestmirror解决办法
linux下yum安装时出现Loaded plugins: fastestmirror解决办法
725 0
|
安全 Linux PHP
Linux中composer install执行报错Warning: putenv() has been disabled for security reasons in 解决问题
Linux中composer install执行报错Warning: putenv() has been disabled for security reasons in 解决问题
Linux中composer install执行报错Warning: putenv() has been disabled for security reasons in 解决问题