Disabling the VMware DHCP Service on the Host Computer.
It is easy enough to do this on Windows hosts, this article focuses on Linux hosts.
Follow the steps shown below for your host operating system.
Linux for Workstation 5.x and VMware Server 1.x
- Open the file /usr/lib/vmware/net-services.sh in a text editor.
- Locate the following section (lines 697-699, as seen in Workstation 5.5.1, build 19175):
vmware_bg_exec 'Host-only networking on /dev/vmnet'"$vHubNr" \
vmware_start_hostonly "$vHubNr" 'vmnet'"$vHubNr" \
"$hostaddr" "$netmask" 'yes' - Change yes to no. The resulting section should look like this:
vmware_bg_exec 'Host-only networking on /dev/vmnet'"$vHubNr" \
vmware_start_hostonly "$vHubNr" 'vmnet'"$vHubNr" \
"$hostaddr" "$netmask" 'no' - Save the file.
- As root, run /usr/lib/vmware/net-services.sh restart to restart the service.
Linux for Workstation 6
- As root, stop VMware services using /etc/init.d/vmware stop
- Open the file /etc/vmware/locations in a text editor.
- Scroll all the way to the bottom.
- Look for answer VNET_1_DHCP yes, change this to answer VNET_1_DHCP no
- Continue for any other interfaces that you would like to disable DHCP.
- Save the file.
- As root, start VMware services using /etc/init.d/vmware start