Why can't a virtual machine access the network?
Virtual Private Cloud 4.17 and later Bare metal worker nodes only RHCOS only
You start a virtual machine (VM), but the VM cannot access the expected network.
The VM network configuration might not match the configured User Defined Network (UDN) or VNI setup. This issue can occur if the VM is missing the expected network interface, if the UDN configuration is incorrect, or if OVN networking components report errors.
To resolve the issue,
review the VM network configuration, verify the attached interfaces, and confirm the UDN and OVN configuration.
-
Check the VM network configuration.
oc describe vm <vm_name> -n <namespace> -
Verify that the VM has the expected network interface.
oc get vmi <vm_name> -n <namespace> -o yaml | grep -A 10 interfaces -
If you use VNI-based networking, review the VNI attachments for the cluster.
ibmcloud ks vni ls --cluster-id <cluster_id> -
Check the User Defined Network configuration.
oc get clusteruserdefinednetwork oc describe clusteruserdefinednetwork <udn_name> -
Review OVN logs for networking errors.
oc logs -n openshift-ovn-kubernetes -l app=ovnkube-node -
Review Managing virtual network interfaces for OpenShift Virtualization to confirm that the UDN, VLAN, and VNI configuration matches your VM networking design.