Knowledge Base
The VMware Knowledge Base provides support solutions, error messages and troubleshooting guides

|
Disabling the VMware DHCP Service on the Host Computer (2012)
Details
I want to disable the VMware DHCP service on my host computer. What steps do I need to take?
Solution
Follow the steps shown below for your host operating system. On a Windows host, you can choose to disable the service completely or to set it to start only when you start it manually.
For information on modifying Fusion's DHCP service, see Modifying the DHCP settings of vmnet1 and vmnet8 in Fusion (1026510).
Workstation 6.x and later
See the Workstation help:
- Workstation 8:
- Workstation 7:
- Workstation 6:
Server 2.x
See Chapter 11, Configuring a Virtual Network, of the VMware Server User's Guide.
Workstation 5.x and previous for Windows
Windows 2000
- Click Start, then choose Settings>Control Panel>Administrative Tools>Services.
- Scroll down and select VMware DHCP Service.
- Right-click the highlighted line and choose Properties.
- Click the Stop button.
- In the Startup type list, select Disable or Manual.
- Click OK.
Windows XP Home
- Click Start, then choose Settings>Control Panel.
- Click Performance and Maintenance.
- Click Administrative Tools.
- Double-click Services.
- Scroll down and select VMware DHCP Service.
- Right-click the highlighted line and choose Properties.
- Click the Stop button.
- In the Startup type list, select Disable or Manual.
- Click OK.
Windows XP Professional or Windows Server 2003
- Click Start, then choose Settings>Control Panel.
- Click Administrative Tools.
- Double-click Services.
- Scroll down and select VMware DHCP Service.
- Right-click the highlighted line and choose Properties.
- Click the Stop button.
- In the Startup type list, select Disable or Manual.
- Click OK.
Workstation 5.x and previous for Linux, Server 1.x, GSX Server 3.x
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 4.x and GSX Server 3.x
- Power off any open virtual machines (and close any associated remote consoles).
- Open the file /etc/init.d/vmware in a text editor.
- Locate the following section:
# Start a DHCP server on a private IP network
vmware_start_dhcpd() {
local vHostIf="$1" # IN
# The daemon already logs its output in the system log, so we can safely
# trash it
cd "$vmdb_answer_BINDIR" && "$vmdb_answer_BINDIR"/"$dhcpd" \
-cf "$vmware_etc_dir"/"$vHostIf"/dhcpd/dhcpd.conf \
-lf "$vmware_etc_dir"/"$vHostIf"/dhcpd/dhcpd.leases \
-pf /var/run/"$dhcpd"-"$vHostIf".pid "$vHostIf" >/dev/null 2>&1
} - Add the line exit 1 in the position shown below.
# Start a DHCP server on a private IP network
vmware_start_dhcpd() {
local vHostIf="$1" # IN
exit 1
# The daemon already logs its output in the system log, so we can safely
# trash it
cd "$vmdb_answer_BINDIR" && "$vmdb_answer_BINDIR"/"$dhcpd" \
-cf "$vmware_etc_dir"/"$vHostIf"/dhcpd/dhcpd.conf \
-lf "$vmware_etc_dir"/"$vHostIf"/dhcpd/dhcpd.leases \
-pf /var/run/"$dhcpd"-"$vHostIf".pid "$vHostIf" >/dev/null 2>&1
}
- Save /etc/init.d/vmware.
- Restart your host operating system.
Tags
Keywords
Update History
Request a Product Feature
To request a new product feature or to provide feedback on a VMware product, please visit the Request a Product Feature page.
Actions
KB:
- Updated:
- Categories:
- Languages:
- Product Family:
- Product(s):
- Product Version(s):

