• Welcome to Overclockers Forums! Join us to reply in threads, receive reduced ads, and to customize your site experience!

VMWare Issues

Overclockers is supported by our readers. When you click a link to make a purchase, we may earn a commission. Learn More.

Midnight Dream

OSPF Loving Member
Joined
Mar 17, 2004
Location
Lawrenceville, Georgia
Ok, so im trying to install VMWare. Got it up to the point where its trying to find the source of my kernel. No biggie, I downloaded the linux-headers-$(uname -r) and got that which is for my kernel. But...im getting this message:

What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include] /usr/src/linux-headers-2.6.17-1-k7/include

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

Any ideas?
 
That's not where they are normally:) They should be in /usr/src/linux/include (where /usr/src/linux is almost certainly a symlink to /usr/src/linux-2.6.15-r6-gentoo-something-like-this, whatever your currently-running kernel is).

Note if you're ARCH=x86-64, then the k7 headers do not do you any good.
 
Captain Newbie said:
That's not where they are normally:) They should be in /usr/src/linux/include (where /usr/src/linux is almost certainly a symlink to /usr/src/linux-2.6.15-r6-gentoo-something-like-this, whatever your currently-running kernel is).

Note if you're ARCH=x86-64, then the k7 headers do not do you any good.

I Know that, but the fact that it was saying they are normally in [usr/src/linux/include], and then asking me where they were, should point out the fact that they were not there. In fact, there was not a symlink from the current headers (that which I pointed to), to /usr/src/linux.

And, I do not run amd64, due to the fact that its support is rather absurd at the moment. I'm hoping in the future, to be able to transition over to it.
 
/usr/src/linux should be a symlink *to* your currently running kernel sources (for me, the full path to my kernel sources is /usr/src/linux-2.6.17-gentoo-r4). If this does not match your currently running kernel, problem (verify by comparing the results of ls -al /usr/src/linux with the results of uname -r).

The default (/usr/src/linux/include) worked just fine for me on a Pentium M system not twenty-four hours ago on a fresh 2.6.17-gentoo-r4 system. If the default does not work you must point it explicitly to the appropriate includes; where they are is up to you.
 
Captain Newbie said:
/usr/src/linux should be a symlink *to* your currently running kernel sources (for me, the full path to my kernel sources is /usr/src/linux-2.6.17-gentoo-r4). If this does not match your currently running kernel, problem (verify by comparing the results of ls -al /usr/src/linux with the results of uname -r).

The default (/usr/src/linux/include) worked just fine for me on a Pentium M system not twenty-four hours ago on a fresh 2.6.17-gentoo-r4 system. If the default does not work you must point it explicitly to the appropriate includes; where they are is up to you.

Captain Newbie, you have known me long enough to have seen me around here in the Alt. OS forums for quite awhile. I know what the symlink of /usr/src/linux is.

Im simply stating, that there *was* no symlink there. I downloaded the latest source and headers, and pointed to them directly, due to the lack of a symlink. That did not work though. However, pointless now, I reinstalled Debian, due to an issue with upgrading to Debian Unstable.
 
Midnight Dream said:
Captain Newbie, you have known me long enough to have seen me around here in the Alt. OS forums for quite awhile. I know what the symlink of /usr/src/linux is.

Im simply stating, that there *was* no symlink there. I downloaded the latest source and headers, and pointed to them directly, due to the lack of a symlink. That did not work though. However, pointless now, I reinstalled Debian, due to an issue with upgrading to Debian Unstable.
OOOOOHHHH, I get it now, my bad :) I saw Gentoo in your sig; I apologize.

For Debian and Debian with Kiddie Gloves Ubuntu there are some more things you need to do because the kernel and kernel includes are separate packages in /usr/src.

Here's what my /usr/src looks like on the vmware box:
Code:
doug@wendy:~$ ls -al /usr/src
total 295568
drwxrwsr-x  9 root src       4096 2006-08-04 20:36 .
drwxr-xr-x 13 root root      4096 2006-05-30 17:55 ..
-rw-r--r--  1 root root   2270487 2006-04-06 00:14 alsa-driver.tar.bz2
-rw-r--r--  1 root src     307948 2006-07-23 18:38 alsa-modules-2.6.15-26-amd64-generic_1.0.10-4ubuntu4+2.6.15-26.45_amd64.deb
lrwxrwxrwx  1 root src         19 2006-06-24 17:22 linux -> linux-source-2.6.15
drwxr-xr-x 19 root root      4096 2006-06-24 17:20 linux-headers-2.6.15-25
drwxr-xr-x  4 root root      4096 2006-06-24 17:20 linux-headers-2.6.15-25-amd64-generic
drwxr-xr-x 19 root root      4096 2006-08-04 20:36 linux-headers-2.6.15-26
drwxr-xr-x  4 root root      4096 2006-08-04 20:36 linux-headers-2.6.15-26-amd64-generic
drwxr-xr-x 20 root root      4096 2006-06-24 17:23 linux-source-2.6.15
-rw-r--r--  1 root root 255324160 2006-06-14 05:09 linux-source-2.6.15.tar
-rw-r--r--  1 root root  44403157 2006-08-02 22:02 linux-source-2.6.15.tar.bz2
drwxrwsr-x  3 root src       4096 2006-04-06 00:14 modules
drwxr-xr-x  7 root root      4096 2006-06-24 16:49 rpm
As you might have guessed you can ignore anything that doesn't contain 'linux' :)

In /usr/src/linux -> /usr/src/linux-2.6.15-25-amd64-generic,
Code:
doug@wendy:~$ ls -al /usr/src/linux/
total 612
drwxr-xr-x 20 root root   4096 2006-06-24 17:23 .
drwxrwsr-x  9 root src    4096 2006-08-04 20:36 ..
drwxr-xr-x 26 root root   4096 2006-06-14 04:24 arch
drwxr-xr-x  2 root root   4096 2006-06-24 17:14 block
drwxr-xr-x  4 root root   4096 2006-06-14 04:24 cluster
-rw-r--r--  1 root root  18693 2006-03-02 13:18 COPYING
-rw-r--r--  1 root root  89582 2006-03-02 13:18 CREDITS
drwxr-xr-x  2 root root   4096 2006-06-24 17:14 crypto
-rw-r--r--  1 root root 272735 2006-06-14 04:24 Debian.src.changelog
drwxr-xr-x 53 root root   4096 2006-06-14 04:24 Documentation
drwxr-xr-x 54 root root   4096 2006-06-14 04:24 drivers
drwxr-xr-x 65 root root   8192 2006-06-24 17:14 fs
lrwxrwxrwx  1 root root     54 2006-06-24 17:23 include -> /usr/src/linux-headers-2.6.15-25-amd64-generic/include
drwxr-xr-x 43 root root   4096 2006-06-24 17:14 include.orig
drwxr-xr-x  2 root root   4096 2006-06-24 17:14 init
drwxr-xr-x  2 root root   4096 2006-06-24 17:14 ipc
-rw-r--r--  1 root root   1258 2006-03-02 13:18 Kbuild
drwxr-xr-x  4 root root   4096 2006-06-24 17:14 kernel
drwxr-xr-x  5 root root   4096 2006-06-14 04:24 lib
lrwxrwxrwx  1 root root      5 2006-06-24 17:22 linux -> linux
-rw-r--r--  1 root root  65971 2006-05-01 22:01 MAINTAINERS
-rw-r--r--  1 root root  43865 2006-05-18 07:41 Makefile
drwxr-xr-x  2 root root   4096 2006-06-24 17:14 mm
drwxr-xr-x 36 root root   4096 2006-06-14 04:24 net
-rw-r--r--  1 root root  15070 2006-03-02 13:18 README
-rw-r--r--  1 root root    889 2006-06-14 05:08 README.Debian
-rw-r--r--  1 root root   3065 2006-03-02 13:18 REPORTING-BUGS
drwxr-xr-x  9 root root   4096 2006-06-24 17:14 scripts
drwxr-xr-x  4 root root   4096 2006-06-24 17:14 security
drwxr-xr-x 17 root root   4096 2006-06-14 04:24 sound
drwxr-xr-x  2 root root   4096 2006-06-24 17:14 usr
doug@wendy:~$

So what you need to do is this:

Code:
foo@foobox:/usr/src/linux$ sudo mv include include.orig
foo@foobox:/usr/src/linux$ sudo ln -s ./include ../linux-headers-blahblah
(Disclaimer...I can never get the arguments for ln in the right order the first time, I swear to God the shell changes it each time.)

The reason for these changes is because Debian does different things with sources and because making the kernel module for vmware requires the paths to be in certain places (which Debian doesn't have the various files in), vmware gaaks on it.
 
Back