Solved and published here for prosperity
Thanks for everyone's suggestions here! It was extremely helpful!!!
OVH sets their systems to utilize DHCP on their servers for the main IP of your dedicated server. You have to convert their setup to STATIC IP. You also have to create the Virtual Mac Address for the Failover IP in the OVH Dashboard under IP management.
Server MAIN IP = ZZZ.ZZZ.79.146
FAILOVER IP = xxx.xxx.149.161
GATEWAY FOR BOTH MAIN IP AND FAILOVER IP = ZZZ.ZZZ.79.254
NETMASK FOR FAILOVER IP = 255.255.255.252 (although it appears that I did not need it)
FAILOVER IP VIRTUAL MAC ADDRESS: MY:VI:RT:UA:LM:AC
Here is the setup that worked for me. I did this from a fresh Centos 7 reinstall:
I prefer using network over NetworkManager
On the host:
Code: Select all
# systemctl stop NetworkManager
# systemctl disable NetworkManager
To get the KVM Hypervisor installed:
On the host:
Code: Select all
# yum install qemu-kvm libvirt libvirt-python libguestfs-tools virt-install
# systemctl enable libvirtd
# systemctl start libvirtd
On the host, my configuration files are as follows:
On the host:
Code: Select all
# cat /etc/sysconfig/network-scripts/ifcfg-br0
DEVICE=br0
ONBOOT=yes
NETBOOT=no
NM_CONTROLLED="no"
BOOTPROTO=static
HWADDR=a4:bf:01:29:36:f6
TYPE=Bridge
NAME="br0"
IPADDR=ZZZ.ZZZ.79.146
NETMASK=255.255.255.0
On the host:
Code: Select all
# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
NETBOOT=no
NM_CONTROLLED="no"
BOOTPROTO=static
BRIDGE=br0
On the host:
Code: Select all
# cat /etc/sysconfig/network
NOZEROCONF=yes
# Created by cloud-init on instance boot automatically, do not edit.
#
NETWORKING=yes
GATEWAY=ZZZ.ZZZ.79.254
I rebooted several times to ensure that everything was coming back up without issue.
So now that I was confident with the host, I created the VM:
From the host:
* don't forget to put in the virtual Mac Address in the virt-install statement.
Code: Select all
# cd /
# mkdir -p vm/ISO
# mkdir -p mv/images
# cd /vm/ISO
# wget https://mirrors.edge.kernel.org/centos/7.9.2009/isos/x86_64/CentOS-7-x86_64-Everything-2207-02.iso
# virt-install --graphics=vnc,password=##########,listen=0.0.0.0 --virt-type=kvm --name test --ram 4096 --vcpus 1 --disk path=/vm/images/test.img,size=30,bus=virtio,format=raw --os-variant=centos7.0 --network=bridge=br0,model=virtio,mac=MY:VI:RT:UA:LM:AC --cdrom=/vm/ISO/CentOS-7-x86_64-Everything-2207-02.iso
I then logged into the VM via VNC to complete the VM setup:
Disabled SELinux on VM
On the VM:
Code: Select all
# vi /etc/selinux/config
Changed
SELINUX=enforcing
to
SELINUX=disabled
I prefer using network over NetworkManager
On the VM:
Code: Select all
# systemctl disable NetworkManager
Rebooted the VM
Logged into the VM via VNC
On the VM:
Code: Select all
# cat /etc/sysconfig/network-scripts/ifcfg-eth0
TYPE=Ethernet
BOOTPROTO=static
USERCTL=no
IPV6INIT=no
PEERDNS=yes
NAME=eth0
DEVICE=eth0
ONBOOT=yes
IPADDR=xxx.xxx.149.161
GATEWAY=ZZZ.ZZZ.79.254
NETMASK=255.255.255.255
ARP=yes
On the VM:
Code: Select all
# cat /etc/sysconfig/network-scripts/route-eth0
ZZZ.ZZZ.79.254/32 dev eth0
default via ZZZ.ZZZ.79.254 dev eth0
On the VM:
Code: Select all
# cat /etc/resolv.conf
nameserver 8.8.8.8
search localdomain
All set! I am able to ping to the VM as well as ping out!
Lots of trial and error to get here, but many thanks to the posters here that guided me to the finish line!!!