Skip to content

Instantly share code, notes, and snippets.

@fopina
Created August 12, 2021 22:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fopina/baaadd1038b4e9f83a458f40f90a5fc8 to your computer and use it in GitHub Desktop.
Save fopina/baaadd1038b4e9f83a458f40f90a5fc8 to your computer and use it in GitHub Desktop.
customize networking in vmware fusion 12 *community* edition

After so many years with VMWare Player being free for Windows and Linux, VMware finally released a free/community version of Fusion!

One of the main restrictions in the free version is that you cannot create/edit any networks.
But sometimes you need that little change such as using a different network range on your VMware NAT interface or the Host-only one.

It's quite easy after all. The settings are stored in /Library/Preferences/VMware Fusion/networking:

VERSION=1,0
answer VNET_1_DHCP yes
answer VNET_1_DHCP_CFG_HASH 26..
answer VNET_1_HOSTONLY_NETMASK 255.255.255.0
answer VNET_1_HOSTONLY_SUBNET 172.16.152.0
answer VNET_1_VIRTUAL_ADAPTER yes
answer VNET_2_DISPLAY_NAME custom-private
answer VNET_2_HOSTONLY_NETMASK 255.255.255.0
answer VNET_2_HOSTONLY_SUBNET 172.16.115.0
answer VNET_8_DHCP yes
answer VNET_8_DHCP_CFG_HASH 77..
answer VNET_8_HOSTONLY_NETMASK 255.255.255.0
answer VNET_8_HOSTONLY_SUBNET 192.168.135.0
answer VNET_8_NAT yes
answer VNET_8_VIRTUAL_ADAPTER yes
add_bridge_mapping en0 3
add_bridge_mapping en5 4

The ones with a _DHCP_CFG_HASH setting seem to be the "core" ones:

  • Share with my Mac (NAT) - seems to be VNET_8 in my case (matching IP range with UI)
  • Private to my Mac (Host-Only) - seems to be VNET_1

VNET_2 is a network created in the Pro version (not the community) without DHCP nor NAT, for having a private network between VMs (without internet access and without OSX host access).
Copying those lines to a community installation worked perfectly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment