克隆完KVM虛擬主機後,修改後主機名以及IP地址信息後,手動使用命令「virsh destroy 主機」刪除以前的虛擬機,發現有以下報錯:vim
[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服務 :centos
[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 ----------------------------------------------------
問題解決bash