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

最近在练习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': 域名解析暂时失败_第1张图片

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

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

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': 域名解析暂时失败_第2张图片

后增加DNS解析文件内容

【】#vi /etc/resolv.conf

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

再次重启查看

【】#service libvirtd restart

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

补充下,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


你可能感兴趣的:(KVM报错)