Install required packages of kvm -
yum -u update && reboot
yum -y install qemu-kvm virt-install virt-manager virt-viewer libvirt libvirt-client libvirt-python
Test installation by executing -
virt-manager -h
virt-viewer -h
Remove default network -
virsh net-destroy default
virsh net-undefine default
Configure interface port channel at switch -
interface Port-channel1
switchport mode trunk
exit
Configure LACP at switch -
interface range Gi1/0/12-13
shutdown
switchport mode trunk
channel-group 1 mode active
no shutdown
exit
Load the bonding module by executing
modprobe --first-time bonding
Create a file as /etc/sysconfig/network-scripts/ifcfg-bond0 -
DEVICE=bond0
TYPE=Bond
BONDING_MASTER=yes
BOOTPROTO=none
ONBOOT=yes
BONDING_OPTS="mode=4"
Configure slave interfaces as /etc/sysconfig/network-scripts/ifcfg-em1 -
BOOTPROTO=none
DEVICE=em1
ONBOOT=yes
MASTER=bond0
SLAVE=yes
Configure slave interfaces as /etc/sysconfig/network-scripts/ifcfg-em2 -
BOOTPROTO=none
DEVICE=em2
ONBOOT=yes
MASTER=bond0
SLAVE=yes
Load the VLAN module by executing
modprobe --first-time 8021q
Load the bridge module by executing
modprobe --first-time bridge
Create a file as /etc/sysconfig/network-scripts/ifcfg-bond0.8 -
DEVICE=bond0.8
VLAN=yes
ONBOOT=yes
BRIDGE=virbr0.8
Create a file as /etc/sysconfig/network-scripts/ifcfg-virbr0.8 -
DEVICE=virbr0.8
ONBOOT=yes
TYPE=Bridge
BOOTPROTO=none
IPADDR=192.168.8.221
NETMASK=255.255.255.0
GATEWAY=192.168.8.1
DOMAIN=bergerbd.com
DNS1=192.168.10.3
DNS2=10.0.1.215
STP=on
DELAY=0