Saturday 30 August 2014

VM Installation on RHEL 6.3

We Need Virtualization Packages to install VM .

[root@ARUN network-scripts]# yum install  libvirtd*
[root@ARUN network-scripts]# yum install  libvirt-guests *
[root@ARUN network-scripts]# yum install  libvirt-qmf*

Restart the following services

[root@ARUN network-scripts]# /etc/init.d/qemu-ga restart
[root@ARUN network-scripts]# /etc/init.d/libvirt-qmf restart
[root@ARUN network-scripts]# /etc/init.d/libvirtd restart

Run the following command

[root@ARUN network-scripts]# virt-manager 


If the following error comes when you start virt-manager













Then Enable Virtualization Technology from Mother board BIOS 




Network Bonding In RHEL 6

[root@ARUN network-scripts]# cd /etc/sysconfig/network-scripts/

[root@ARUN network-scripts]# ls


 ifcfg-em2   ifdown-bnep  ifdown-post    ifup          ifup-ipv6   ifup-ppp       init.ipv6-global
 ifcfg-em1  ifcfg-lo    ifdown-eth   ifdown-ppp     ifup-aliases  ifup-isdn   ifup-routes    net.hotplug
 ifcfg-p3p1  ifdown-ippp  ifdown-routes  ifup-bnep     ifup-plip   ifup-sit       network-functions
 ifcfg-p3p2  ifdown-ipv6  ifdown-sit     ifup-eth      ifup-plusb  ifup-tunnel    network-functions-ipv6

 ifdown      ifdown-isdn  ifdown-tunnel  ifup-ippp     ifup-post   ifup-wireless

There are 4 interface or NIC card in this server . But In RHEL 5 * these interface are shown as
ifcfg-eth0 
ifcfg-eth1 
ifcfg-eth2 
ifcfg-eth3

The 2 NIC are speed of 1 GBPS and 2 NIC of 10GBPS. How to check.


[root@ARUN network-scripts]# ethtool  em1
Settings for em1:
                Supported ports: [ TP FIBRE ]
                Supported link modes:   10baseT/Half 10baseT/Full
                                        100baseT/Half 100baseT/Full
                                        1000baseT/Full
                Supports auto-negotiation: Yes
                Advertised link modes:  1000baseT/Full
                                        2500baseX/Full
                Advertised pause frame use: No
                Advertised auto-negotiation: Yes
                Speed: 1000Mb/s
                Duplex: Full
                Port: FIBRE
                PHYAD: 2
                Transceiver: internal
                Auto-negotiation: on
                Supports Wake-on: g
                Wake-on: d
                Link detected: yes


              

[root@ARUN network-scripts]# ethtool  em2
Settings for em2:
                Supported ports: [ TP FIBRE ]
                Supported link modes:   10baseT/Half 10baseT/Full
                                        100baseT/Half 100baseT/Full
                                        1000baseT/Full
                Supports auto-negotiation: Yes
                Advertised link modes:  1000baseT/Full
                                        2500baseX/Full
                Advertised pause frame use: No
                Advertised auto-negotiation: Yes
                Speed: 1000Mb/s
                Duplex: Full
                Port: FIBRE
                PHYAD: 2
                Transceiver: internal
                Auto-negotiation: on
                Supports Wake-on: g
                Wake-on: d
                Link detected: yes




[root@ARUN network-scripts]# ethtool  p3p1
Settings for p3p1:
                Supported ports: [ FIBRE ]
                Supported link modes:   10baseT/Half 10baseT/Full
                                        100baseT/Half 100baseT/Full
                                        1000baseT/Full
                                        2500baseX/Full
                                        10000baseT/Full
                Supports auto-negotiation: Yes
                Advertised link modes:  10baseT/Half 10baseT/Full
                                        100baseT/Half 100baseT/Full
                                        1000baseT/Full
                                        2500baseX/Full
                                        10000baseT/Full
                Advertised pause frame use: Symmetric Receive-only
                Advertised auto-negotiation: Yes
                Speed: 10000Mb/s
                Duplex: Full
                Port: FIBRE
                PHYAD: 1
                Transceiver: internal
                Auto-negotiation: on
                Supports Wake-on: d
                Wake-on: d
                Current message level: 0x00000000 (0)
                Link detected: yes




[root@ARUN network-scripts]# ethtool  p3p2
Settings for p3p2:
                Supported ports: [ FIBRE ]
                Supported link modes:   10baseT/Half 10baseT/Full
                                        100baseT/Half 100baseT/Full
                                        1000baseT/Full
                                        2500baseX/Full
                                        10000baseT/Full
                Supports auto-negotiation: Yes
                Advertised link modes:  10baseT/Half 10baseT/Full
                                        100baseT/Half 100baseT/Full
                                        1000baseT/Full
                                        2500baseX/Full
                                        10000baseT/Full
                Advertised pause frame use: Symmetric Receive-only
                Advertised auto-negotiation: Yes
                Speed: 10000Mb/s
                Duplex: Full
                Port: FIBRE
                PHYAD: 1
                Transceiver: internal
                Auto-negotiation: on
                Supports Wake-on: d
                Wake-on: d
                Current message level: 0x00000000 (0)
                Link detected: yes



[root@ARUN network-scripts]#  vi  ifcfg-em1
DEVICE="em1"
BOOTPROTO="none"
HWADDR="8B:8F:69:56:99:55"
#NM_CONTROLLED="no"
ONBOOT="yes"
TYPE="Ethernet"
#UUID="6d04da01-9197-4c6d-bd93-bc2fb85a96f2"
MASTER="bond1"
SLAVE="yes"




[root@ARUN network-scripts]#  vi  ifcfg-em2
DEVICE="em2"
BOOTPROTO="none"
HWADDR="8D:8F:69:55:A9:56"
#NM_CONTROLLED="no"
ONBOOT="yes"
TYPE="Ethernet"
#UUID="6b04da01-9197-456d-bd93-bb2fb95a96f6"
MASTER="bond1"
SLAVE="yes"



[root@ARUN network-scripts]#  vi  ifcfg-p3p1
DEVICE="p3p1"
BOOTPROTO="none"
HWADDR="80:8B:69:57:99:5A"
#NM_CONTROLLED="yes"
ONBOOT="yes"
TYPE="Ethernet"
UUID="fda1e6e9-b3f4-4b9d-8084-b46fac099b5b"
MASTER="bond0"
SLAVE="yes"


[root@ARUN network-scripts]#  vi ifcfg-p3p2
DEVICE="p3p2"
BOOTPROTO="none"
HWADDR="80:8B:69:57:99:5B"
#NM_CONTROLLED="yes"
ONBOOT="yes"
TYPE="Ethernet"
UUID="bda1e5e1-b3f4-4b4d-8084-v46fac099b5c"
MASTER="bond0"
SLAVE="yes"


[root@ARUN network-scripts]#  vi ifcfg-bond0
DEVICE="bond0"
BOOTPROTO="none"
ONBOOT="yes"
IPADDR="192.164.224.61"
NETMASK="255.255.255.0"
GATEWAY="192.164.224.1"

[root@ARUN network-scripts]#  vi ifcfg-bond1
DEVICE="bond1"
BOOTPROTO="none"
ONBOOT="yes"
IPADDR="192.168.248.161"
NETMASK="255.255.255.0"
GATEWAY="192.168.248.1"



[root@ARUN network-scripts]#   cat /etc/modprobe.d/dist.conf 

alias bond0 bonding
alias bond1 bonding

options mode=1 miimon=100



[root@ARUN network-scripts]#  /etc/init.d/network restart