VMware

This Question is Answered

2 "helpful" answers available (6 pts)
1 2 Previous Next 27 Replies Last post: Jul 14, 2006 8:50 PM by SuporteTecnic…  

2.6.15-1.1907_FC5: vmware-config.pl fails posted: Feb 4, 2006 9:37 AM

Click to view selinux's profile Enthusiast 117 posts since
Jan 15, 2005
The latest Fedora Core kernels seem to prevent vmware-config.pl from running.

Firstly, the script no longer finds the kernel include files (even though kernel-devel package is installed), and if you manually point it, it complains:

What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include] /lib/modules/2.6.15-1.1907_FC5/build/include

The kernel defined by this directory of header files does not have the same
address space size as your running kernel.

What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include] /usr/src/kernels/2.6.15-1.1907_FC5-i686/include
The kernel defined by this directory of header files does not have the same
address space size as your running kernel.

This all works with 2.6.15-1.1895_FC5.

tom

Re: 2.6.15-1.1907_FC5: vmware-config.pl fails

3. Feb 4, 2006 1:07 PM in response to: selinux
Click to view petr's profile Champion 7,218 posts since
Jul 10, 2003
Doing it this way will probably fail on 64bit kernel :-(

How your kernel defines __PAGE_OFFSET macro (probably in include/asm-i386/page.h) ? BTW, right fix would be:

- of ($header_page_offset =~ /[0-9a-fA-F]{8,}/) {
+ if ($header_page_offset =~ /^$pattern (\?0x([0-9a-fA-F]{8,})/) {
+ $header_page_offset = $1;

Though I'm probably going to kill all these tests. They were good for 2.2.x kernels, were acceptable on 2.4.x kernels, but for 2.6.x kernels they are misfiring every month or so.

Re: 2.6.15-1.1907_FC5: vmware-config.pl fails

5. Feb 4, 2006 4:43 PM in response to: selinux
Click to view petr's profile Champion 7,218 posts since
Jul 10, 2003
Thanks for the text. Yes, this will confuse current code.

Number of parens was fine, but second one should read '\(?', not '(\?' - paren should be escaped, not question mark.

Re: 2.6.15-1.1907_FC5: vmware-config.pl fails

7. Feb 5, 2006 10:34 PM in response to: selinux
Click to view jlc's profile Novice 5 posts since
Oct 3, 2005
So how do you apply this to vmware?

Re: 2.6.15-1.1907_FC5: vmware-config.pl fails

8. Feb 6, 2006 1:11 AM in response to: jlc
Click to view petr's profile Champion 7,218 posts since
Jul 10, 2003
You open vmware-config.pl in your favorite text editor, locate group of lines marked with '-' above, and replace that group with lines marked with '+' above. Save file, and run vmware-config.pl again. If you did change right, you are now able to build modules...

Re: 2.6.15-1.1907_FC5: vmware-config.pl fails

9. Feb 26, 2006 11:20 PM in response to: petr
Click to view cacao74's profile Lurker 2 posts since
Feb 6, 2006
Thanks selinux and petr.
Now, after updating my kernel from 2.6.15-rc4 to 2.6.16-rc4, I can install the VMWare Workstation 5.5.1

In brief, the needed operation:
- patching the vmware-config.pl scripts:

[cacao74@winnie bin]$ pwd
/opt/vmware/bin

[cacao74@winnie bin]$ diff -u vmware-config.pl.ori vmware-config.pl
--- vmware-config.pl.ori 2006-02-25 18:38:09.000000000 +0100
+++ vmware-config.pl 2006-02-25 22:19:06.000000000 +0100
@@ -1969,8 +1969,8 @@
. ' -E - | ' . shell_string($gHelper{'grep'}) . ' '
. shell_string($pattern));
chomp($header_page_offset);
- if ($header_page_offset =~ /[0-9a-fA-F]{8,}/) {
+ if ($header_page_offset =~ /^$pattern \(?0x([0-9a-fA-F]{8,})/) {
+ $header_page_offset = $1;
# We found a valid page offset
if (defined($gSystem{'page_offset'}) and
not (lc($header_page_offset) eq lc($gSystem{'page_offset'}))) {


- patching a file in a couple of compressed archives, by adding a line of code:

[cacao74@winnie source]$ pwd
/opt/vmware/lib/modules/source

[cacao74@winnie source]$ tar xf vmmon.tar
[cacao74@winnie source]$ vi vmmon-only/Makefile.kernel
add the bold line
vm_check_build = $(shell if $(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_KERNEL) $(EXTRA_CFLAGS) -Iinclude2/asm/mach-default -DKBUILD_BASENAME=\"$(DRIVER)\"
-Werror -S -o /dev/null -xc $(1) > /dev/null 2>&1; then echo "$(2)"; else echo "$(3)"; fi)

[cacao74@winnie source]$ tar xf vmnet.tar
[cacao74@winnie source]$ vi vmnet-only/Makefile.kernel
add the bold line
vm_check_build = $(shell if $(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_KERNEL) $(EXTRA_CFLAGS) -Iinclude2/asm/mach-default -DKBUILD_BASENAME=\"$(DRIVER)\"
-Werror -S -o /dev/null -xc $(1) > /dev/null 2>&1; then echo "$(2)"; else echo "$(3)"; fi)

[cacao74@winnie source]$ mv vmmon.tar vmmon.tar.ori
[cacao74@winnie source]$ mv vmnet.tar vmnet.tar.ori

[cacao74@winnie source]$ tar cf vmmon.tar vmmon-only/
[cacao74@winnie source]$ tar cf vmnet.tar vmnet-only/

By doing so, I have to re-launch the perl script
vmware-config.pl to install the software for the new kernel
on my system:
GNU/Linux Slackware 10.2
kernel 2.6.16-rc4
gcc version 3.3.6

Thanks again. Bye

Re: 2.6.15-1.1907_FC5: vmware-config.pl fails

10. Mar 1, 2006 8:33 AM in response to: selinux
Click to view patoberli's profile Novice 11 posts since
Mar 1, 2006
Hi,

thanks this helped for me :)

But I had the issue in my Guest system, so I needed to modify the /usr/bin/vmware-config-tools.pl file.

Cheers,
pato

Re: 2.6.15-1.1907_FC5: vmware-config.pl fails

11. Mar 26, 2006 2:34 AM in response to: selinux
Click to view RHCT_Tuxi's profile Lurker 3 posts since
Mar 26, 2006
Thanks a lot for the lines they helped

I do wish that you had posted the vmware-comfig.pl fil ;-)

Best Regards
Dennis

Re: 2.6.15-1.1907_FC5: vmware-config.pl fails

12. Mar 26, 2006 12:13 PM in response to: cacao74
Click to view jsmithao's profile Lurker 1 posts since
Mar 26, 2006
Thanks cacao74, your patch for the vmnet and vmmon modules really saved my #$%^.

Re: 2.6.15-1.1907_FC5: vmware-config.pl fails

13. Mar 31, 2006 9:44 PM in response to: selinux
Click to view FNunes's profile Lurker 4 posts since
Feb 13, 2006
Nice job on commenting those lines ;)

Re: 2.6.15-1.1907_FC5: vmware-config.pl fails

14. Apr 14, 2006 2:45 PM in response to: cacao74
Click to view knightkft's profile Lurker 1 posts since
Apr 14, 2006
I had the same problems up to the point of:
******************************-
What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include] /usr/src/kernels/2.6.16-1.2080_FC5-i686/include/

The kernel defined by this directory of header files does not have the same
address space size as your running kernel
*********************************-

After editing the config.pl file as suggested, that problem vanished and processing continued :-)
However, the terminal processes about 5 lines then crashes.
any suggestions?

VMware Developer

SDKs, APIs, Videos, Learn and much 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

VMware vSphere

Come witness the next giant leap in virtualization.

Register Today

Communities