Does anyone know if its possible to create LAN segment interfaces on VMs using either the API or vmrun command? I can't see how to do it.
I have a bunch of template VMs, that are used to create linked clones, they need to run through a dedicated router/fw and be completely isolated from the rest of the network. These are created and then deleted after the project has been completed so automation is key here.
I noticed I could create a custom network in VMware Workstation network config, untick the host option to make it isolated (no NIC created on the host) but then can't use that network with the API or vmrun it won't show unless the host NIC option is ticked.
My only option it seems is to manually using a script edit the VMX file, grab the LAN segment ID from the ini file in my profile and populate the network. Make a random mac and assign the next pci slot number. But just doesn't feel very nice to do it this way.
It is so frustration that this functionality is omitted from any of the official tools available. How has everyone else managed to circumvent/achieve this?
Any help appreciated.