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端口是否冲突