Monday, December 20, 2010

Disable DHCP on VMware Server 2.0.2 HostOnly networks

Various solutions exist on the Internet for solving this issue, but they have some issues:
1) Edit the /etc/vmware/vmnet1/dhcpd.conf file
   - unreliable because it gets over-written if vmware-config.pl is executed.
2) Edit the /etc/vmware/locations file
   - unreliable because it prevents vmware-mgmt starting services.

3) My solution: Edit the file /usr/lib/vmware/net-services.sh
Find the line: 
 if [ "$dhcp" = 'yes' ] && vmware_find_comma "$services" 'dhcp'; then
Change to:
 echo "**DHCP service disabled in /usr/lib/vmware/net-services.sh**"
 if [ "$dhcp" = 'yesX' ] && vmware_find_comma "$services" 'dhcp'; then

This causes vmnet-dhcpd to never be started.

No comments:

Post a Comment