kanotix.com

Software - Reconfiguring vmplayer after upgrading kernel

rich.bradshaw - 14.04.2006, 17:50 Uhr
Titel: Reconfiguring vmplayer after upgrading kernel
After upgrading to Linux 2.6.16.2-slh-1 i686 I need to reconfigure vmplayer, using the perl script vmware-config.pl. It asks

"What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include]"

But if I accept the default it can't find them... where are they?

Thanks!
hubi - 14.04.2006, 18:17 Uhr
Titel: Reconfiguring vmplayer after upgrading kernel
You have to do two things:
1. hack /usr/bin/vmware-config.pl
2. apply a patch

1. The hack

- edit as root /usr/bin/vmware-config.pl (or wherever it is)
- go to line 1982, this should be a line with "return" in it
- add a comment to the beginning of that line with #

Should look like that:
Code:
. "\n" . $pattern . ' __PAGE_OFFSET') . ' | '
       . shell_string($gHelper{'gcc'}) . ' ' . shell_string('-I' . $answer)
       . ' -E - | ' . shell_string($gHelper{'grep'}) . ' '
       . shell_string($pattern));
     chomp($header_page_offset);
     $header_page_offset =~ s/^$pattern \(0x([0-9a-fA-F]{8}).*$/$1/;
     if ($header_page_offset =~ /[0-9a-fA-F]{8}/) {
       # We found a valid page offset
       if (not (lc($header_page_offset) eq lc($gSystem{'page_offset'}))) {
         if ($source eq 'user') {
           print wrap('The kernel defined by this directory of header files
           does ' . 'not have the same address space size as your
           running ' . 'kernel.' . "\n\n", 0);
         }
#         return '';
       }
     }


Note the "#" - it was not there before.

2. The patch

You get the patch from there:
http://ftp.cvut.cz/vmware/vmware-any-an ... 101.tar.gz

Unpack it and find the folder with runme.pl in it.
Do as root (you have to be in this folder):
# ./runme.pl

That's it, worked for me, vmwareplayer compiled again like a charm.

Best of luck
hubi
hubi - 14.04.2006, 18:55 Uhr
Titel: Reconfiguring vmplayer after upgrading kernel
franknq just posted in the german forum that for him it worked just pasting this path at the moment you were stuck as well:
/lib/modules/2.6.16.5-kanotix-1/build/include

For you it would be:
/lib/modules/2.6.16.2-slh-1/build/include

Try this one first.

Greetings
hubi
mzilikazi - 15.04.2006, 02:26 Uhr
Titel: Reconfiguring vmplayer after upgrading kernel
I just buillt vmware against 2.6.16.2-slh-1 and only the patch needs to be applied. No hacking of any script was required.
slam - 15.04.2006, 10:42 Uhr
Titel: Reconfiguring vmplayer after upgrading kernel
Agree, no hack needed - and the patch is usefull, anyway.
Greetings,
Chris
rich.bradshaw - 16.04.2006, 11:16 Uhr
Titel: Reconfiguring vmplayer after upgrading kernel
brilliant, just used patch... everything works fine!

Thank you!
markb - 16.04.2006, 11:52 Uhr
Titel: Re: Reconfiguring vmplayer after upgrading kernel
slam hat folgendes geschrieben::
Agree, no hack needed - and the patch is usefull, anyway.

Other than allowing vmware to run on a 2.6.16 kernel, why is the patch useful?
craigevil - 02.06.2006, 22:31 Uhr
Titel: RE: Re: Reconfiguring vmplayer after upgrading kernel
Sweet thanks for the patch. Stupid me should have searched the forum before posting an error msg. Installed and runs just fine.
SANotix - 20.06.2006, 10:30 Uhr
Titel: RE: Re: Reconfiguring vmplayer after upgrading kernel
VMPlayer Installed OK on my machine with 2.6.16.16-kanotix-1 but failed config even after patching with http://ftp.cvut.cz/vmware/vmware-any-an ... 01.tar.gz. Error indicated mismatch of kernel and compiler. Upgraded kernel with kernel-2.6.16.20-slh-up-1 then re-ran player install, patch and config with no problem. VMPlayer playing well now with several appliances.
Thanks for the great distro Kano!
Alle Zeiten sind GMT + 1 Stunde
PNphpBB2 © 2003-2007