KVM Virtulization Installation and Configuration in Run level 3

KVM Virtulization in CentOS6 / RHEL 6 -----

Installation -----

Prerequsites -----

> AMD / Intel 64 Bit Process with Virtulization technology enable.
> 4 GB Minimum RAM
> Installed one CentOS bit64 Version 6.X or RHEL 6.X server on Base / Minimu level.
> One Static IP address

Note :-  Installation KVM documnet assum that YUM Repository is allready configured on network.

Steps to install -----

> Loging to the server with root user or use sudo rights to install KVM packages.
Command :- #yum -y install qemu-kvm libvirt python-virtinst bridge-utils


> Run the following command to make sure KVM packages install properly.
Command :- #lsmod | grep kvm
Result will display as per the following screen.


> Start the libvirtd service.
Command :- #/etc/rc.d/init.d/libvirtd start
                                         or
                      #service libvirtd start

 

> Start the messagebus service
Command :- #/etc/rc.d/init.d/messagebus start

 > Enabled both the services in linux boot process.
Command :- #chkconfig libvirtd on
                       #chkconfig messagebus on


Configure Bridge Network for KVM Virtual Machines -----


> Move ifcfg-eth0 file to ifcfg-br0 file.
Command :- #mv /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-br0

>Edit the ifcfg-br0 file and do the follwoing changes in the file.
Command :- #cd /etc/sysconfig/network-scripts/  ------ Go to network-scripts directory.
                      #vi ifcfg-br0                                      ------ Edit the ifcfg-br0 file with vi editor
Do the changes in the file -----

DEVICE=br0
TYPE=Bridge
NM_CONTROLLED=no 

:wq  ----- Save the file and exit.



> Create new file ifcfg-eth0 and add the following configuration details.
Command :- #vi /etc/sysconfig/network-scripts/ifcfg-eth0   ----- Create new file with vi editor
DEVICE=eth0
TYPE=Ethernet
ONBOOT=Yes
BRIDGE=br0

:wq  ----- Save the file and exit.

> Disabled Seleinux
Comamnd :- #vi /etc/selinux/config   ----- Edit the config file and disabled SELINUX

:wq ----- Save and exit.

> Disabled Linux Firewall / iptables.

Command :- #service iptables stop           ------ Stop iptables services
                      #chkconfig iptables off         ------ Off the service in linuix boot.

> Sart Bridge network.
Command :- #ifup br0 

> Restart Network services
Command :- #service network restart

Once Network configured properly you will get following screen.


EOF


Comments

Popular posts from this blog

KVM Live Migration without Shared Storage

Create CentOS 6 Local package and Group package Repository

Create Linux ( LUCI ) Cluster