21ewqsxx 发表于 2015-7-14 09:55:08

克隆KVM虚拟主机后报错

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

1
2
3
4
5
6
7
# virsh list --all
Id    Name                           State
----------------------------------------------------
-   centos65                     shut off
# 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
# /etc/init.d/libvirtd restart
Stopping libvirtd daemon:                                 
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
                                                         
#warning : virGetHostname:2108 : getaddrinfo failed for^C
# echo "10.10.10.202 KVM-02" >>/etc/hosts
# vim /etc/sysconfig/network-scripts/ifcfg-eth0
# service libvirtd restart
Stopping libvirtd daemon:                                 
Starting libvirtd daemon:                                 
# virsh list --all
Id    Name                           State
----------------------------------------------------




问题解决

页: [1]
查看完整版本: 克隆KVM虚拟主机后报错