VMware
1 2 3 Previous Next 34 Replies Last post: Aug 21, 2006 7:30 AM by RDPetruska   Go to original post
Click to view dirk.remmelt's profile Lurker 1 posts since
Jul 21, 2006
Up to Release -2405 the problem still persists.

A solution without recompiling any kernel is to manually add the symbol lockdep_init_map to the vmnet module by (i.e. for release 2.6.17-1.2405.fc6):

SYMBOL=`grep "\<lockdep_init_map$" /boot/System.map-2.6.17-1.2405.fc6 | colrm 9`
ld -m elf_i386 --defsym lockdep_init_map=0x$SYMBOL -r -o vmnet.ko vmnet.o vmnet.mod.o
cp vmnet.ko /lib/modules/2.6.17-1.2405.fc6/misc/vmnet.o
cd /lib/modules/2.6.17-1.2405.fc6/misc
ln -s vmnet.o vmnet.ko

This should be done after the vmware-config.pl script fails. The build directory for the vmnet module is the vmnet-only subdirectory in the newest vmware-config* directory in /tmp (i.e. /tmp/vmware-config0/vmnet-only).

After copying the vmnet module into the kernel modules directory, the rest of the vmware-config.pl script should be executed. For this I suggest starting the script with option prebuilt and returning 'yes' in the following code segment of the script instead of 'no':

if ($gOption{'prebuilt'} == 1) {
db_add_answer('BUILDR_' . $name, 'no');
print wrap('None of the pre-built ' . $name . ' modules for '
. vmware_product_name() . ' is suitable for your '
. 'running kernel.' . "\n\n", 0);
return 'yes';
}

The manual linking of the lockdep_init_map symbol to a module should work for any third-party module. That's probably the way it is done with the nvidia driver. But it is not GPL-like.

Dirk
Click to view azcoder's profile Lurker 3 posts since
Jul 22, 2006
I tried the above "work around" on an x86_64 box. I changed the script to use elf_x86_64 object and changed the kernel version to 2432. All seems to go OK until I run the "vmware-config.pl prebuilt" script. Bridged networking on /dev/vmnet0 fails and NAT service on /dev/vmnet8 fails. After that, vmnet cannot be removed with a "module busy" error. Only a reboot removes the module. Has anyone got this "work around" to work on an AMD-64 with FC6T1 kernel 2432?

Jim
Click to view azcoder's profile Lurker 3 posts since
Jul 22, 2006
*duh*

I missed the 9! It needs to be 17. Then everything works! Thanks for the help.

Jim

Click to view azcoder's profile Lurker 3 posts since
Jul 22, 2006
For those running 64 bit machines, here is the revised script.

Jim

VERSION=`uname -r`
SYMBOL=`grep "\<lockdep_init_map$" /boot/System.map-$VERSION | colrm 17`
ld -m elf_x86_64 --defsym lockdep_init_map=0x$SYMBOL -r -o vmnet.ko vmnet.o vmnet.mod.o
cp vmnet.ko /lib/modules/$VERSION/misc/vmnet.o
cd /lib/modules/$VERSION/misc
ln -fs vmnet.o vmnet.ko
Click to view vgivanovic's profile Novice 21 posts since
Mar 13, 2005
Where is 102? It is not in the usual place (ftp://ftp.cvut.cz/vmware/) as of Sat Jul 22 23:26:46 UTC 2006.

Thanks.
Click to view hydetech's profile Enthusiast 34 posts since
Jul 8, 2006
This seems to have been solved by kernel 2517.
With any-any-update102, no need of 'make prepare' and patches.

But any-any-update103 has someting wrong.
Click to view petr's profile Champion VMware Employees 7,223 posts since
Jul 10, 2003
Any details about update103 problems?
Click to view hydetech's profile Enthusiast 34 posts since
Jul 8, 2006
Sorry, I forgot to change (2, 6, 18) to (2, 6. 17) same as update102.
I thought 103 solved this.
It works fine.

Message was edited by:
hydetech
Click to view floring's profile Novice 10 posts since
Aug 19, 2006
Hi all,

Thx to Petr for his great work. However, I had some issues with running the any-any patch.
Here's the procedure from A-Z to compile x.17 kernels succesfully.

1. once the an-any.104 version zip file is downloaded, untar it and cd into it
2. you will see the vmmon.tar file - untar it locally
3. seach for hostif_compat.h
4. #grep 18 hostif_compat.h will show you the instructions where for x.18 kernels it does the trick..
5. vi hostif_compat.h and replace 18 with 17
6. save the file and tar it back up to vmmon.tar
7. #runme.pl - that will do the rest of the job.

from this point on everything did go by the book. Again, all my gratitude to people involbed in making VMWARE 5.0.0 workstation work with newer kernels. I know it did save me $400 ... thx folks !
Click to view petr's profile Champion VMware Employees 7,223 posts since
Jul 10, 2003
You can upgrade from WS5.0.0 to WS5.5.2 for free. You should...

VMware Beta Programs

Want to be Considered for Future Beta Programs?

Learn More

VMware Developer

Download SDKs, APIs, videos,
training, and more in the Developer community.

Learn More

Developer
Sample Code

Increase your developer productivity with VMware API sample code.

Learn More

VMworld
Sessions & Labs

Online access to the latest VMworld Sessions & Labs and online services.

Learn more

Purchase PSO Credits Online

Purchase credits to redeem training and consulting services online.

Buy Now

Community Hardware Software

View reported configurations or report your own.

Learn More

Only VMware ... Delivers Nexus 1000V

Ensure consistent, policy-based network capabilities to virtual machines across your data center.

Learn More

Communities