Describe the bug
If NetworkManager is not present and enabled, the conversion fails because Alma 9 requires NetworkManager.
If the system in question uses legacy ifcfg-eth0:## style alias interface files, their presence causes a conversion failure.
If there are .bak versions of legacy interface file names, their presence causes a conversion failure; e.g. ifcfg-eth0.bak
To correct this, you must:
- Eliminate backup files, which may not have consistent naming, but .bak and .old are of course common human-chosen extensions, and .rpmsave and .rpmnew are common package manager replacement names; e.g.
rm -f /etc/sysconfig/network-scripts/ifcfg-e*.bak
rm -f /etc/sysconfig/network-scripts/ifcfg-e*.old
rm -f /etc/sysconfig/network-scripts/ifcfg-e*.rpmsave
rm -f /etc/sysconfig/network-scripts/ifcfg-e*.rpmnew
- Enable NetworkManager
systemctl enable NetworkManager
- If NM_CONTROLLED=no had been added to any of the interface files, that must be removed; e.g.
sed -i '/^[[:space:]]*NM_CONTROLLED[[:space:]]*=/d' /etc/sysconfig/network-scripts/ifcfg-e*
- The ip addresses present in alias files, typically in the format
DEVICE=eth0:1
IPADDR=192.0.2.2
PREFIX=24
must be extracted and converted into numbered IPADDR and PREFIX lines in the primary ifcfg- file. For example, if the above was present, the ifcfg-eth0 file would need to now have:
IPADDR1=192.0.2.1
PREFIX1=24
These must be tracked and incremented with each addition, which could be hundreds of new lines, and then the prior alias files removed or moved elsewhere so NetworkManager does not fail.
Describe the bug
If NetworkManager is not present and enabled, the conversion fails because Alma 9 requires NetworkManager.
If the system in question uses legacy ifcfg-eth0:## style alias interface files, their presence causes a conversion failure.
If there are .bak versions of legacy interface file names, their presence causes a conversion failure; e.g. ifcfg-eth0.bak
To correct this, you must:
systemctl enable NetworkManagersed -i '/^[[:space:]]*NM_CONTROLLED[[:space:]]*=/d' /etc/sysconfig/network-scripts/ifcfg-e*must be extracted and converted into numbered IPADDR and PREFIX lines in the primary ifcfg- file. For example, if the above was present, the ifcfg-eth0 file would need to now have:
These must be tracked and incremented with each addition, which could be hundreds of new lines, and then the prior alias files removed or moved elsewhere so NetworkManager does not fail.