Description of problem:
Although “ifupdown” is deprecated in favor of netplan[1], it’s possible to use it and configure networking without netplan in Ubuntu 20.04 LTS.
root@test:~# cat /etc/network/interfaces # interfaces(5) file used by ifup(8) and ifdown(8) # Include files from /etc/network/interfaces.d: source-directory /etc/network/interfaces.d auto ens33 iface ens33 inet static address 192.168.122.37 netmask 255.255.255.0 gateway 192.168.122.1 # dpkg -l |egrep -i "ifupdown|netplan" ii ifupdown 0.8.35ubuntu1 amd64 high level tools to configure network interfaces ~# systemctl status networking ● networking.service - Raise network interfaces Loaded: loaded (/lib/systemd/system/networking.service; enabled; vendor preset: enabled) Active: active (exited) since Tue 2024-11-26 16:28:27 UTC; 16min ago Docs: man:interfaces(5) Process: 709 ExecStart=/sbin/ifup -a --read-environment (code=exited, status=0/SUCCESS) Main PID: 709 (code=exited, status=0/SUCCESS)
MTV is querying network-scripts, netplan and NetworkManager configuration to find the MAC IP mapping and is not considering “/etc/network/interfaces”.
Warning: Directory /etc/sysconfig/network-scripts does not exist. Warning: Directory /etc/NetworkManager/system-connections does not exist. Warning: netplan is not installed. New udev rule: guestfsd: <= debug (0x4c) request length 84 bytes
So the interface name changes in the OpenShift Virtualization and fails to configure networking (refer attached screenshots).
Version-Release number of selected component (if applicable):
Migration Toolkit for Virtualization Operator 2.7.4
How reproducible:
100%
Steps to Reproduce:
1. Install Ubuntu 20.04 LTS on vmware. 2. Remove netplan.io and install the ifupdown package. 3. Configure interface using /etc/network/interfaces and start networking service. 4. Migrate the virtual machine to OpenShift Virtualization using MTV. The interface name changes and networking fails to start.
[1] https://wiki.ubuntu.com/MigratingToNetplan, https://wiki.ubuntu.com/ArtfulAardvark/ReleaseNotes/