克隆KVM虚拟主机后报错

克隆完KVM虚拟主机后,修改后主机名以及IP地址信息后,手动使用命令“virsh destroy 主机”删除之前的虚拟机,发现有如下报错:

1
2
3
4
5
6
7
[root@KVM-02 data]# virsh list --all
 Id    Name                           State
----------------------------------------------------
 -     centos65                       shut off
[root@KVM-02 data]# virsh destroy centos65
error: Failed to destroy domain centos65
error: Requested operation is not valid: domain is not running

重启下libvirtd服务 :

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
[root@KVM-02 ~]# /etc/init.d/libvirtd restart
Stopping libvirtd daemon:                                  [  OK  ]
Starting libvirtd daemon: 2015-07-13 03:19:55.517+0000: 4824: info : libvirt ver                                     sion: 0.9.10, package: 21.el6 (Red Hat, Inc. <
http://bugzilla.redhat.com/bugzill
                                     a>, 2012-05-23-09:15:11, x86-003.build.bos.redhat.com)
2015-07-13 03:19:55.517+0000: 4824: warning : virGetHostname:2108 : getaddrinfo                                      failed for 'KVM-02': Name or service not known
                                                           [  OK  ]
[root@KVM-02 ~]#  warning : virGetHostname:2108 : getaddrinfo failed for^C
[root@KVM-02 ~]# echo "10.10.10.202 KVM-02" >>/etc/hosts
[root@KVM-02 ~]# vim /etc/sysconfig/network-scripts/ifcfg-eth0
[root@KVM-02 ~]# service libvirtd restart
Stopping libvirtd daemon:                                  [  OK  ]
Starting libvirtd daemon:                                  [  OK  ]
[root@KVM-02 ~]# virsh list --all
 Id    Name                           State
----------------------------------------------------

 问题解决










本文转自 冰冻vs西瓜 51CTO博客,原文链接:http://blog.51cto.com/molewan/1673692,如需转载请自行联系原作者
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值