ESX testing - problem with pcnet32/vmxnet drivers

Rönnblom Janåke /Teknous jan-ake.ronnblom at skeria.skelleftea.se
Sun Feb 10 19:59:48 UTC 2008


Hi,

During my testing of hardy alpha 4 on VMware ESX 3.0.2 I have so far found a
problem with the network
driver. Im using linux-virtual as my kernel.

As I understand it the pcnet32 driver should be replaced with the vmxnet
driver. The kernel loads both the pcnet32 and
the vmxnet driver. This causes a problem since we need to rmmod both pcnet32
and vmxnet driver and then modprobe
the vmxnet driver again and finally restart networking!

There is also a bug in the open-vm-tools package. The /etc/init.d/open-vm-tools
script calls a function named vmxnet_needed
but doesn't check the return value from the function using $?. Either that or
this is due to my limited knowledge of dash...

----< cut >----
--- open-vm-tools	2008-02-10 20:14:20.000000000 +0100
+++ /etc/init.d/open-vm-tools	2008-02-10 20:15:30.000000000 +0100
@@ -44,7 +44,9 @@
 		log_progress_msg "vmhgfs"; modprobe vmhgfs
 		log_progress_msg "vmmemctl"; modprobe vmmemctl
 		log_end_msg 0
-		if vmxnet_needed 
+
+                vmxnet_needed
+		if [ $? -eq 1 ] 
 		then
 			rmmod pcnet32
 			modprobe vmxnet
@@ -63,7 +65,9 @@
 			kill `cat /var/run/vmware-guestd.pid`
 		fi 
 		log_end_msg 0
-		if vmxnet_needed 
+
+		vmxnet_needed
+                if [ $? -eq 1 ] 
 		then
 			rmmod vmxnet
 			modprobe pcnet32
----< cut >----


=====================================================
Janåke Rönnblom
IT avdelningen, Teknous, Skellefteå Kommun
Assistentgatan 23
931 77 Skelleftea (Sweden)
-----------------------------------------------------
Phone  : +46-910-58 54 24
Mobile : 070-397 07 43
Fax    : +46-910-58 54 99
URL    : http://skeria.skelleftea.se
-----------------------------------------------------
"Those who do not understand Unix are condemned to reinvent it, poorly." --
Henry Spencer



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-server/attachments/20080210/f6fc067b/attachment.html>


More information about the ubuntu-server mailing list