# vmware\_guest module network config for Redhat Linux version 9.X

**URL:** <https://forum.ansible.com/t/vmware-guest-module-network-config-for-redhat-linux-version-9-x/38792>\
**Category:** Ansible Project\
**Created:** [May 22, 2024, 3:15pm UTC](https://forum.ansible.com/t/vmware-guest-module-network-config-for-redhat-linux-version-9-x/38792 "2024-05-22T15:15:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karthik](https://avatars.discourse-cdn.com/v4/letter/k/9fc348/32.png) [@Karthik](https://forum.ansible.com/u/Karthik)\
**Post date:** [May 22, 2024, 3:15pm UTC](https://forum.ansible.com/t/vmware-guest-module-network-config-for-redhat-linux-version-9-x/38792/1 "2024-05-22T15:15:24Z")

</div>

Hi,

I am using vmware\_guest module to create a Redhat Linux 9.3 VM, so what happens is the VM is launched and is online, but the network configurations files are created under /etc/sysconfig/network-scripts/ which is the usual approach.

but if one can take a look at the readme file(provided below), the ifcfg  
format is deprecated & the configs will have to be updated or stored in /etc/NetworkManager/system-connections/.

Can the vmware\_guest module be tweaked to suit Linux v9 network configuration setup please.

# cd /etc/sysconfig/network-scripts/

# ls -l

-rw-r–r–. 1 root root 366 May 10 16:44 ifcfg-ens192  
-rw-r–r–. 1 root root 1244 Feb 21 12:51 readme-ifcfg-rh.txt

# cat readme-ifcfg-rh.txt

NetworkManager stores new network profiles in keyfile format in the  
/etc/NetworkManager/system-connections/ directory.

Previously, NetworkManager stored network profiles in ifcfg format  
in this directory (/etc/sysconfig/network-scripts/). However, the ifcfg  
format is deprecated. By default, NetworkManager no longer creates  
new profiles in this format.

Connection profiles in keyfile format have many benefits. For example,  
this format is INI file-based and can easily be parsed and generated.

Each section in NetworkManager keyfiles corresponds to a NetworkManager  
setting name as described in the nm-settings(5) and nm-settings-keyfile(5)  
man pages. Each key-value-pair in a section is one of the properties  
listed in the settings specification of the man page.

If you still use network profiles in ifcfg format, consider migrating  
them to keyfile format. To migrate all profiles at once, enter:

# nmcli connection migrate

This command migrates all profiles from ifcfg format to keyfile  
format and stores them in /etc/NetworkManager/system-connections/.

Alternatively, to migrate only a specific profile, enter:

# nmcli connection migrate \<profile\_name|UUID|D-Bus\_path\>

For further details, see:

- nm-settings-keyfile(5)
- nmcli(1)

Regards,  
Karthik
