不做第二个别人,永远做第一个自己。
分类: 虚拟化
2014-04-10 11:10:10
[2] Install KVM
[root@cloud01 ~]# yum -y install qemu-kvm libvirt python-virtinst bridge-utils
# make sure modules are loaded
[root@cloud01 ~]# lsmod | grep kvm
kvm_intel 53484 0
kvm 316506 1 kvm_intel
[root@cloud01 ~]# /etc/rc.d/init.d/libvirtd start
Starting libvirtd daemon: 2013-09-27 09:00:21.581+0000: 2289: info : libvirt version: 0.10.2, package: 18.el6_4.14 (CentOS BuildSystem , 2013-09-19-19:15:27, c6b8.bsys.dev.centos.org)
2013-09-27 09:00:21.581+0000: 2289: warning : virGetHostname:2266 : getaddrinfo failed for ‘cloud01′: Name or service not known
[ OK ]
[root@cloud01 ~]# vim /etc/hosts/
# last line add $yourip $hostname
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.1.198 cloud01
[root@cloud01 ~]# /etc/rc.d/init.d/libvirtd restart
Stopping libvirtd daemon: [ OK ]
Starting libvirtd daemon: [ OK ]
[root@cloud01 ~]# /etc/rc.d/init.d/messagebus start
Starting system message bus: [ OK ]
[root@cloud01 ~]# chkconfig libvirtd on
[root@cloud01 ~]# chkconfig messagebus on]