VMWare Workstation (I'm using V8 on Linux) provides a GUI tool, Virtual Network Editor (vmware-netcfg
) to edit the virtual network adapter settings for use by the VMs on the system. I'm dealing with mass changes and semi-automated deployment of preconfigured VMs on a number of machines with VMWare Workstation and would like to find a way to script or otherwise automate modifications to the vmnet* adapters. It's not practical to use the GUI when changing the configuration on 30+ machines at a time.
Does anyone know if VMWare provides a command-line utility for this, or may be the location of the file where the configuration is stored so that I could script changes to that file?
Best Answer
I was able to find the answer for myself. The virtual network configuration, at least on Linux, is stored under
/etc/vmware
. The file/etc/vmware/networking
contains basic virtual network configuration, e.g.None of this is documented, as usual, but with
sed
, some googling, and a little bit of luck I should be able to modify it according to my requirements.Note that after editing
/etc/vmware/networking
one needs tovmware-networks --stop
, thenvmware-networks --start
to update the running configuration.