With a little side of applesauce...

Tuesday, January 30, 2007

VMWARE with Debian Sid and linux-headers-2.6.16-2-686

I have just upgraded my Debian Sarge guest OS to Debian Sid, and had a problem with vmware-config-tool.pl finding the kernel headers at:

/usr/src/linux-headers-2.6.16-2-686/include

It appears to be a problem with the regular expression that vmware-config-tool uses to check for the installed headers (on newer kernels):

http://www.redhat.com/archives/fedora-test-list/2006-February/msg00380.html

Here is the patch that was found at that link:



--- vmware-config.pl.old        2005-12-15 21:55:24.000000000 -0800
+++ vmware-config.pl 2006-02-04 16:53:06.000000000 -0800
@@ -1969,8 +1969,8 @@
. ' -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,}/) {
+ 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'}))) {


Here is a link to more information about the problem:

http://www.vmware.com/community/thread.jspa?threadID=31877&tstart=0

No comments: