VMware Fusion Network Settings - Part 1
VMware Fusion Network Settings - Part 1
VMware Fusion Network Settings - Part 1
One of the areas that has been simplified in the first release of VMware Fusion is the configuration
of the virtual network settings. Similar to the Windows and Linux hosted variants of VMware
products, there are 2 network interfaces setup during the installation of Fusion, plus a bridge from
Fusion to the computer’s active NIC. The 2 virtual network cards that are configured are the host-
only network, vmnet1, and the NAT network interface, vmnet8. To learn more about these
configurations I would suggest that the documentation for VMware Workstation 6 networking is
read, as Fusion is derived from the same codebase. See the VMware Workstation 6 online manual
and specifically the section on “Configuring a Virtual Network”, and especially the parts relating to
Linux.
What Fusion doesn’t easily let you do is manually configure the IP address ranges used by vmnet1
and vmnet8, or add additional virtual networks; e.g. vmnet2, etc. This first article demonstrates how
to change the Fusion network settings, allowing the IP address range to be specified for the default
connections. Before we start the process we need to understand a few of the files used to configure
Fusion. In the “/Library/Application Support/VMware Fusion/” directory are several files and sub-
directories important to the Fusion application.
boot.sh Bash script used to start and stop VMware Fusion daemons and kexts.
Next is to run the Perl configuration script, which will regenerate all the relevant files:
$sudo ./vmware-config-net.pl
You won’t need to answer any questions as the vmware-config-net.pl script auto answers them for
you. Next we want to restart the services with these new values just to check that everything is
working:
$ifconfig -a
Note that your IP address ranges will almost certainly not match the ones in the sample output
shown above. Don’t worry we are going to fix that with the next step.
[ Read 17 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Page ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where Is ^V Next Page ^U UnCut Txt ^T To Spell
VNET_8_HOSTONLY_HOSTADDR
VNET_8_HOSTONLY_NETMASK
VNET_1_HOSTONLY_HOSTADDR
VNET_1_HOSTONLY_NETMASK
VNET_1_HOSTONLY_SUBNET
In the example below vmnet8 is set to use 172.16.8.1 and vmnet1 to 172.16.1.1. You may wish to
change masks etc., but for this simple exercise we will concentrate on address ranges.
^G Get Help ^O WriteOut ^R Read File ^Y Prev Page ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where Is ^V Next Page ^U UnCut Txt ^T To Spell
Use Ctrl-O and Ctrl-X to save the file and exit nano.
$sudo ./vmware-config-net.pl
Secondly, restart the Fusion daemons and kernel extensions, plus re-configure virtual NICs.
Finally, we double check to see the virtual Ethernet cards are correctly configured.
$ifconfig -a
You should now be able to start Fusion and power on guests, and make use of the re-configured
virtual networking. All this was tested on the release version of VMware Fusion 1.0 (build 51348).
The test machine was running Mac OS X 10.4.10.
In the second part, I will be looking at how to add additional virtual adapters to Fusion.
Contact details:
VMware Forums: DaveP
Web site: www.daveparsons.net