-
Notifications
You must be signed in to change notification settings - Fork 428
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NICs being configured twice on Rocky Linux 9 #742
Comments
Hi @bab5470, In your case: NetworkManager loads ifcfg-rh from: So you will see 6 connections by running command This change is due to NetworkManager default plugin is keyfile[1] since RHEL9 and RHEL9-like Linux, while ifcfg-rh plugin is still supported although RedHat is deprecating it. If you check NetworkManager configuration file /etc/NetworkManager/NetworkManager.conf, you will see [1] https://networkmanager.dev/docs/api/latest/nm-settings-keyfile.html |
Thank you for the response. I appreciate it. From an end user perspective, this is a mess. Why would I want my nics prefaced with "VMware-customization" and doubled up? That's not a very user-friendly name to say or type. And who wants to deal with two different systems simultaneously? I ended up doing this convoluted mess to clean things up which works but took me days to figure out:
This ends up migrating everything to Network Manager, removing the "VMware customization NICs" and sets the DNS servers and DNS domains - but what a convoluted work around! I assume RedHat is to blame for this half-baked migration but what a frustrating mess to deal with. This is not intuitive at all! |
Hi @bab5470 The 'VMware-customization-ethXXX.nmconnection' is the keyfile name, the "VMware customization ethXXX" is the connection id, the nic name is still ethXXX, the nic name is configurated in keyfile at "interface-name=ethXXX". And Yes, although RedHat is deprecating ifcfg-rh plugin, RHEL9 does support both plugins by default, and I do see customers are confused about this state. If direct to NetworkManager keyfile, how about removing ifcfg-rh plugin by modifying /etc/NetworkManager.conf as below, this will make sure NetworkManager only loads keyfile, then ip configuration, DNS server and search domain configured in keyfile will take effect after clone and customize your template. |
Describe the bug
I have a terraform script that performs a clone operation on a VMware template created with packer. In the terraform script I add two NICs to the existing VM (for a total of 3) and then configure IP information on all three.
What I see is that the new NICs in Rocky Linux are configured but duplicated:
ens256
VMware customization ens256
ens224
VMware customization ens224
ens192
VMware customization ens192
I am running openvmtools 12.3.5 on the system. It seems like network connections are getting created in two places:
The ens connections are created in /etc/sysconfig/network-scripts, and the "Vmware Customizations" connections are created in /etc/Network-Manager/system-connections
I don't think connections are supposed to be created in both locations and obviously, we don't want our NIC/connections named "VMware customization xxxx"
Is this a bug in the openvmtools customization process?
Reproduction steps
I am running a terraform script which in turn is calling open-vm-tools to configure networking. The logs are attached below. The scripts can be provided if that would help but since this is an openvmtools bug tracker I'm not sure if you care to see those or not.
Expected behavior
A single set of interfaces are connected and configured.
Additional context
toolsDeployPkg.log
The text was updated successfully, but these errors were encountered: