kvm常见问题处理

简介:

1、使用virt-install安装时报错

     Starting install…

ERROR internal error process exited while connecting to monitor: char device redirected to /dev/pts/2
kvm: -drive file=/home/muge0913/workstation/kvm/test.img,if=none,id=drive-ide0-0-0,format=raw: could not open disk image/home/muge0913/workstation/kvm/test.img: Permission denied

此报错表示运行权限不足或没权限展开镜像文件

处理:

1.1、可赋予ISO镜像文件权限或者移动别的目录再试

1.2、编辑/etc/libvirt/qemu.conf,修改一下内容。增加root的操作权限

user = “root”

# The group for QEMU processes run by the system instance. It can be

# specified in a similar way to user.

group = “root”

# Whether libvirt should dynamically change file ownership

# to match the configured user/group above. Defaults to 1.

# Set to 0 to disable file ownership changes.

dynamic_ownership = 0

2、kvm虚拟机鼠标不同步

在虚拟机配置文件中的<devices>配置中添加

<input type=’tablet’ bus=’usb’/>

3、连接libvirt管理程序失败

     3.1、报错信息

error: Failed to reconnect to the hypervisor
error: no valid connection
ERROR:internal error Unable to locate libvirtd daemon in $PATH

     原因:没有安装libvirt管理程序

解决办法:
yum -y install libvirt

     3.2、安装完成后报连接失败

            报错信息

error: Failed to reconnect to the hypervisor
error: no valid connection
error: Failed to connect socket to '/var/run/libvirt/libvirt-sock': No such file or directory

     原因:libvirt服务没启动

解决办法:
libvirtd -d

4、克隆虚拟机需注意问题

     4.1、清除计算机SID

     4.2、克隆后修改克隆虚拟机的VNC端口。

5、启动虚拟机是报错Unable to read from monitor: Connection reset by peer

     思路:查看报错日志

     大多解决办法:

     5.1、先把restore移除

               virsh  managedsave-remove vm-name

               然后启动vm-name

     5.2、检查vnc端口是否冲突


本文转自  亮公子  51CTO博客,原文链接:http://blog.51cto.com/iyull/1864356
相关文章
|
8月前
|
运维 Linux 虚拟化
【运维知识基础篇】如何在VMware上创建Linux系统(CentOS7.9)(三)
【运维知识基础篇】如何在VMware上创建Linux系统(CentOS7.9)(三)
64 0
【运维知识基础篇】如何在VMware上创建Linux系统(CentOS7.9)(三)
|
8月前
|
运维 Linux 虚拟化
【运维知识基础篇】如何在VMware上创建Linux系统(CentOS7.9)(四)
【运维知识基础篇】如何在VMware上创建Linux系统(CentOS7.9)(四)
82 0
|
8月前
|
运维 Linux 虚拟化
【运维知识基础篇】如何在VMware上创建Linux系统(CentOS7.9)(一)
【运维知识基础篇】如何在VMware上创建Linux系统(CentOS7.9)
113 0
|
8月前
|
运维 Linux 定位技术
【运维知识基础篇】如何在VMware上创建Linux系统(CentOS7.9)(二)
【运维知识基础篇】如何在VMware上创建Linux系统(CentOS7.9)(二)
77 0
|
10月前
|
Ubuntu 安全 Unix
【Linux入门篇】操作系统安装、网络配置
【Linux入门篇】操作系统安装、网络配置
132 0
|
弹性计算 安全 Linux
CentOS7下KVM虚拟化环境中体验Aliyun Linux 2系统
CentOS7下KVM虚拟化环境中体验Aliyun Linux 2系统
270 0
CentOS7下KVM虚拟化环境中体验Aliyun Linux 2系统
|
存储 网络安全 KVM
Wok+Kvm部署使用文档
Wok+Kvm部署使用文档
133 0
Wok+Kvm部署使用文档
|
人工智能 运维 网络协议
linux centos 网卡聚合脚本-自动化运维
多张网卡聚合成一张网络,等同于备份网卡网络
384 0
|
KVM 虚拟化
1,kvm实战应用--kvm基础部署
版权声明:版权归属于eryajf.net,如欲有更多交流,可以访问个站:http://eryajf.net。未经授权,禁止转载。 https://blog.csdn.net/eryajf/article/details/82861985 虚拟化基本上是一个企业里边必不可少的一项技能了,但是测试环境当中,虚拟化又是很简单的。
1594 0