最近在练习KVM的搭建,遇到出错,记录一下。

虚拟机系统:rhel6.3-64

虚拟机主机名:llff

虚拟机IP:192.168.8.11

首先,安装KVM需要有合适的安装环境(64位+支持虚拟机)

安装相应软件包后,查看虚拟化环境,需要libvirtd服务支持

[...]#/etc/init.d/libvirtd restart

报错

getaddrinfo failed for 'llff': 域名解析暂时失败

安装KVM,启动服务libvirtd报错:getaddrinfo failed for 'xxxx': 域名解析暂时失败

(按说都是[确定],那么仅仅是域名解析暂时失败的话,这个libvirtd服务的使用应该没有问题

,同时使用命令service libvirtd status去查看libvirtd服务的运行状态,显示“正在运行”

安装KVM,启动服务libvirtd报错:getaddrinfo failed for 'xxxx': 域名解析暂时失败

anyway,I need to solve this problem.


设置主机名(/etc/hosts)

【】# vi /etc/hosts

192.168.8.11  llff

####你的IP(tab键)你的主机名称(报错提示)

【】# vi /etc/sysconfig/network-scripts/ifcfg-eth0

安装KVM,启动服务libvirtd报错:getaddrinfo failed for 'xxxx': 域名解析暂时失败

后增加DNS解析文件内容

【】#vi /etc/resolv.conf

安装KVM,启动服务libvirtd报错:getaddrinfo failed for 'xxxx': 域名解析暂时失败

再次重启查看

【】#service libvirtd restart

安装KVM,启动服务libvirtd报错:getaddrinfo failed for 'xxxx': 域名解析暂时失败

补充下,dns解析文件在上面已经做过编辑了,此处未显示。

————————

附一个libvirtd报错解决文档

启动libvirtd报错解决办法:libvirtd: relocation error: libvirtd: symbol dm_task_get_info_with_deferred_remove, version Base not defined in file libdevmapper.so.1.02 with link time reference 解决办法

21运维:http://www.21yunwei.com/archives/4412


相关文章:

  • 2021-07-02
  • 2022-12-23
  • 2021-11-25
  • 2021-08-03
  • 2021-04-15
  • 2021-12-10
猜你喜欢
  • 2021-11-27
  • 2021-12-31
  • 2022-12-23
  • 2021-07-03
  • 2021-11-26
  • 2021-09-06
  • 2021-06-23
相关资源
相似解决方案