So recently, I have started redoing my homelab in Centos 7. First step was to redo my hypervisor in Centos 7 with KVM.
First, install the necessary packages. yum -y install kvm virt-manager libvirt virt-install qemu-kvm xauth dejavu-lgc-sans-fonts bridge-utils policycoreutils-python
Enable the kernel to do IP forwardingecho "net.ipv4.ip_forward = 1"|sudo tee /etc/sysctl.d/99-ipforward.conf
Apply the new kernel settingssysctl -p /etc/sysctl.d/99-ipforward.conf
Start libvirt and set it to start on bootsystemctl start libvirtd
systemctl enable libvirtd
Create a network bridge for the VM's to sharevi /etc/sysconfig/network-scripts/ifcfg-br0
DEVICE="br0"
ONBOOT="yes"
TYPE="Bridge"
BOOTPROTO="dhcp"
STP="on"
DELAY="0.0"
Tell your network interface to be a slave to the bridgevi /etc/sysconfig/network-scripts/ifcfg-enp6s0f0
DEVICE="enp3s0"
ONBOOT="yes"
BRIDGE="br0"
Make sure to set your hostnamevi /etc/hostname
hypervisor01.example.com
Start networking to make sure the changes take effectsystemctl restart network
Make the directory to be your VM image foldermkdir /data
Set the selinux policy on that new foldersemanage fcontext -a -t virt_image_t "/data(/.*)?"
restorecon -R /data
Tell libvirt you want to use the above folder for VMsvirsh pool-destroy default
virsh pool-undefine default
virsh pool-define-as --name default --type dir --target /data
virsh pool-autostart default
virsh pool-build default
virsh pool-start default