打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
在kvm中遇到过的一些问题(包含ovirt节点)
    1.error:no hypervisor options were found ofr this connection
  this usually means that qemu or kvm is notinstalled on your machine,or the kvm kernel modules    are not loaded.
  解决方法:开启bios虚拟化并加载modprobekvm以及kvm_intel.

2.Unable to migrate guest: unsupported configuration: Domainrequires KVM, but it is not  available. Check thatvirtualization is enabled in the host BIOS, and host configurationis setup  to load the kvm modules.
  解决方法:方法同上.

3.Unable to migrate guest: Unable to allow access for diskpath /img/musf-clone1-2-clone.img: No    such file or directory
  解决方法:迁移与被迁移主机的共享目录一定要一样.即server1目录为/imgserver2目录也要为/img.

4.Unable to migrate guest: unable to connect to server at'kvm3:49153': Connection refused
  解决方法:1.开启防火墙上端口或关闭防火墙.
         2.在virt-manager的迁移中添加迁移端口.


5.Unable to migrate guest: Timed out during operation: cannotacquire state change lock
 解决方法:...求科普..而且是大部分虚拟机都可以迁移就一个不成..找不到北ing...
          1.虚拟机起不来的情况下.使用kill -9 `ps -ef|grep 'libvirtd --daemon'|grep -vgrep |awk '{print $2}'`杀死libvirt --daemon进程并重启libvirtd--daemon

6.error: Unable toinitialize network sockets. Check /var/log/messages or run without--daemon for more info.
 事件还原:使用virtualhost模式安装完centos,并且yum安装好vdsm之后,开启vdsm不能,开启libvirtd不能。显示该错误如上。
 解决方法:进入/etc/libvirt/libvirtd.conf修改listen_tls为0即可.

7.Host 25 installation failed.SSH command failed while executing at host 'root@192.168.20.25',refer to logs for further information。
 事件还原:安装vdsm之后从ovirt管理界面加入当前vdsm主机时出现错误。原因之一为vdsm-cli未安装。安装即可。

8.在ovirt-engine中添加data/nfs作为存储域时并不能成功。
 解决方法:1.可以试试查看一下将要共享的文件夹权限是否是vdsm:kvm。若不是使用chown-R命令即可。
authenticationname
9.vdsm在加入ovirt时会使用sasl再次加密libvirt,所以使用virt-manager连接libvirt时需要输入    authentication name& passowrd。
 解决方法:使用saslpasswd2-a命令创建另一组认证名和密码用于virt-manager对libvirt的访问即可。
 命令格式: saslpasswd2 -a libvirt 用户名

10.部分主机创建虚拟机成功,开启虚拟机时出现error...
  VM CentOS6.3T is down. Exit message: internalerror Process exited while reading console log     output:bind(unix:/var/lib/libvirt/qemu/channels/CentOS6.3T.com.redhat.rhevm.vdsm):Permission    denied chardev:opening backend "socket" failed 
  由于../channels这个文件夹的权限是vdsmqemu。root用户可能不能读取并创建其中的文件。我采用的方法是手动在qemu.conf中注释掉.user = root 以及group = root并重启libvirtd。
  之后出现错误:VM CentOS6.3T is down. Exit message:internal error client socket is closed.
  还有VMtest is down. Exit message: cannot open file'/rhev/data-center/78e07dee-36bc-439b-b71e-72cfd87a2bb3/f84e3679-281e-41d4-9ea9-b8221085fa7b/images/2e93290e-f1b5-42b2-bdf6-fad695de2ccb/ef334a97-e01b-4d7c-afb0-814ffbe537f0':Permission denied.
  这两个错误都是由于libvirt设置问题才报错的.
  我直接覆盖了libvirtd.confqemu.conf以及vdsm.conf文件.最近权限问题整的我焦头烂额啊.以后再找具体错误.

 

 

 

附上配置文件:(这份配置文件应该有一定的可靠性,环境运行快两年。)

http://kuai.xunlei.com/d/6PxmAAIVMgBU8X5S860

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
RHEL / CentOS 6.x KVM Virtualization Installation and Configuration Guide
开源云平台 CloudStack 4.1.0 安装详解 - 2、KVM
Cloudstack 4.2 Agent安装方法
秋天的博客 ? KVM on RHEL 6 – 安装
Ubuntu 22.04 之 KVM 安装手札
如何使用 virt-manager 运行虚拟机
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服