ports/149116: open-vm-tools-253928 resume does not restart dhcp client

Vivek Khera vivek at khera.org
Fri Jul 30 16:00:17 UTC 2010


>Number:         149116
>Category:       ports
>Synopsis:       open-vm-tools-253928 resume does not restart dhcp client
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul 30 16:00:16 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Vivek Khera
>Release:        FreeBSD 8.1-RELEASE i386
>Organization:
>Environment:
System: FreeBSD vk-dev.int.kcilink.com 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Thu Jul 29 09:46:13 EDT 2010 vivek at vk-dev.int.kcilink.com:/n/yertle1/sources/usr8/obj.i386/n/yertle1/sources/usr8/src/sys/KCI32 i386


	
>Description:
	

Running FreeBSD 8.1 as vmware guest with network address assigned by DHCP on
em0 device.  On suspend, the suspend-vm-default script runs /etc/rc.d/netif
stop to shutdown the inteface. this causes dhclient to exit.  on resume the
script runs /etc/rc.d/netif start, which brings up the interface, but does not
start dhclient so no IP address is assigned and the machine is dark to the
network.

>How-To-Repeat:
	
assign the interface using DHCP, suspend and resume the VM.

>Fix:

	


The original VMware resume script just runs /etc/netstart.  This following
patch also does the trick to start dhclient on resume.


--- scripts/vmware/network.orig	2010-07-29 13:11:01.000000000 -0400
+++ scripts/vmware/network	2010-07-30 11:40:34.000000000 -0400
@@ -59,6 +59,7 @@
 
       for intf in `list_net_interfaces dhcp`; do
          /etc/rc.d/netif $1 $intf
+         /etc/rc.d/dhclient $1 $intf
          ec=$?
 
          # Failure to stop an interface should not interfere with suspend.
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list