Description of problem:
After doing a cold migration of a RHEL 9 VM from RHV, the network interface names changed, causing that the configured static IP addresses were not used. The resulting VM had no network connectivity.
Version-Release number of selected component (if applicable):
mtv-operator.v2.7.9
How reproducible:
Always
Steps to Reproduce:
1. Source VM in RHV: RHEL 9
- Several NICs: enp7s0, enp8s0, enp9s0
- No udev rules in /etc/udev/rules.d
- Static IP addresses configuration based on interface name:
[connection]
id=enp7s0
uuid=2903e15b-e782-3f51-87ff-b0c438f02752
type=ethernet
autoconnect-priority=-999
interface-name=enp7s0
timestamp=1724246369
[ethernet]
[ipv4]
address1=192.168.1.2/24
...
2. Cold migrate to OpenShift
3. Review network config on the copied VM
Actual results:
The interfaces were renamed to enp1s0, enp2s0, enp3s0. The static IP addresses were lost.
Expected results:
Network configuration preserved.
Additional info: