Can only half-install VMware... then get missing file

Ok, so to start off i’m quite a n00b with Linux… I know some commands and what not, and I can do some stuff with it.
So this is my first post here after basically lurking for information, which mostly helped me out, but i’m still having problems =/
After first trying YasT2 to install VMWare, and that not working, I tried using the method outlined on this page:
Install VMware server 2 in Suse / openSUSE 11 & USB support
I can get to a certain point, starting most of the installation process, and then I get this:

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

(I hit enter)

The path “/usr/src/linux/include” is a kernel header file directory, but it
does not contain the file “linux/version.h” as expected. This can happen if
the kernel has never been built, or if you have invoked the “make mrproper”
command in your kernel directory. In any case, you may want to rebuild your
kernel.

What should I do? I patched the vmware-config.pl file with the text file that I made and that seemed to work okay… so i’m not sure why this is happening.

I know there was another post on this similar issue, which I read, but there didn’t seem to be an answer to that, or the thread was forgotten due to the large amount of threads here.

For noobs, I recommend Virtual Box.

Linux_Downloads - VirtualBox

This page may be of help too for some of the dependency needs and setup commands.
VirtualBox Installation - openSUSE

Actually, I tried getting VirtualBox with YasT2 and it looks like it installed… it shows up in the application list on the Application menu. However, when I try to start it, it looks like it’s trying to launch with a cursor animation going for it, then nothing happens. It never really starts up. I dunno what’s going on :- S

I refer you again to this:
VirtualBox Installation - openSUSE

Go through it step by step
If you plan to use what is available through the repos you want to add this one:
Index of /repositories/Virtualization:/VirtualBox/openSUSE_11.1

Note this part:
** Prerequisites for VirtualBox downloads **

Whether you use binaries or installing from source you have to install the following packages first:

  • kernel-source
  • kernel-syms
  • Xalan-c
  • Xerces-c
  • gcc
  • make

Then:
Next, create the required kernel module by executing the command from su terminal:

/etc/init.d/vboxdrv setup

Then:
** Post-Installation **

Though VirtualBox will start after you’ve just installed it, there are a few other necessary steps to complete before you can really get the most out of VirtualBox. These include:

  • Making sure that the vboxdrv
    driver is loaded.

In the terminal (as root), execute the following command:
modprobe vboxdrv

  • Add your user to the vboxusers
    group:

groupmod --add-user <login> vboxusers
Or open YaST → Security and Users → UserManagement, and edit your user and add them to the vboxusers group. To do this, select your user name, click on Edit, switch to the Details tab and check the vboxusers check box.
Remember that this takes effect the next time that user logs in. If the user was logged in at the time you added him to the group, need need to log out and in again.
You should then be able to run VirtualBox just fine!

On 10/05/2009 06:46 AM, ph33linz wrote:
>
> Ok, so to start off i’m quite a n00b with Linux… I know some commands
> and what not, and I can do some stuff with it.
> So this is my first post here after basically lurking for information,
> which mostly helped me out, but i’m still having problems =/
> After first trying YasT2 to install VMWare, and that not working, I
> tried using the method outlined on this page:
> ‘Install VMware server 2 in Suse / openSUSE 11 & USB support’
> (http://opensuse.swerdna.org/susevmwareserver.html)
> I can get to a certain point, starting most of the installation
> process, and then I get this:
>
> What is the location of the directory of C header files that match your
> running
> kernel? [/usr/src/linux/include]
>
> (I hit enter)
>
> The path “/usr/src/linux/include” is a kernel header file directory,
> but it
> does not contain the file “linux/version.h” as expected. This can
> happen if
> the kernel has never been built, or if you have invoked the “make
> mrproper”
> command in your kernel directory. In any case, you may want to rebuild
> your
> kernel.
>
> What should I do? I patched the vmware-config.pl file with the text
> file that I made and that seemed to work okay… so i’m not sure why
> this is happening.
>
> I know there was another post on this similar issue, which I read, but
> there didn’t seem to be an answer to that, or the thread was forgotten
> due to the large amount of threads here.
>
>

Try to also install the ‘linux-kernel-headers’ package with Yast in
addition to the packages mentioned in the article.


Christian

Ok, so when I try to run the /etc/init.d/vboxdrv setup command I get this:

/etc/init.d/vboxdrv setup
Stopping VirtualBox kernel module done
Recompiling VirtualBox kernel module failed
(Look at /var/log/vbox-install.log to find out what went wrong)

Looking at /var/log/vbox-install.log…

Makefile:174: *** Error: unable to find the include directory for your current Linux kernel. Specify KERN_INCL=<directory> and run Make again. Stop.

This seems kinda wierd seeing as VirtualBox shows as installed and I can open it currently… but just can’t start a virtual machine without getting an error saying that I need to run /etc/init.d/vboxdrv setup

Please run this in a su terminal

zypper up kernel-source

then try again the VB setup

hmmmm…

So I tried that, and this is what it came back with:

zypper up kernel-source
Loading repository data…
Reading installed packages…
No update candidate for ‘kernel-source’.
Resolving package dependencies…
Nothing to do.

please post result for

uname -a

then

rpm -qi kernel-source

uname -r
2.6.27.7-9-pae

uname -a
Linux linux-td1h 2.6.27.7-9-pae #1 SMP 2008-12-04 18:10:04 +0100 i686 i686 i386 GNU/Linux

rpm -qi kernel-source
Name : kernel-source Relocations: /usr/src
Version : 2.6.27.29 Vendor: openSUSE
Release : 0.1.1 Build Date: Sun 16 Aug 2009 04:13:52 AM MDT
Install Date: Sun 04 Oct 2009 02:35:33 PM MDT Build Host: rinck
Group : Development/Sources Source RPM: kernel-source-2.6.27.29-0.1.1.src.rpm
Size : 309251954 License: GPL v2 only
Signature : RSA/8, Sun 16 Aug 2009 04:27:25 AM MDT, Key ID b88b2fd43dbdc284
Packager : Submitting Bug Reports - openSUSE
URL : The Linux Kernel Archives
Summary : The Linux Kernel Sources
Description :
Linux kernel sources with many fixes and improvements.

Authors:

Linus Torvalds &lt;torvalds@osdl.org&gt;

see /usr/src/linux/CREDITS for more details.

Source Timestamp: 2009-08-15 17:53:59 +0200
GIT Revision: 8a413546901c407e96f7fba18574cceeb40452af
GIT Branch: SLE11_BRANCH
Distribution: openSUSE 11.1

You need to update your kernel. Please run Online Update from Yast or do
zypper up in a su terminal.

The only thing I am wondering is if your repos are ok, so please post the result of this

zypper lr -d

Also from a su terminal do this and post result:

cat /boot/grub/menu.lst

Sorry I took so long to respond… but here:

The zypper up successfully ran, and then I tried these as you requested.

zypper lr -d

| Alias | Name | Enabled | Refresh | Priority | Type | URI | Service

–±-------------------±----------------------±--------±--------±---------±-------±----------------------------------------------------------------±-------
1 | 11.1 - VideoLan | 11.1 - VideoLan | Yes | Yes | 99 | rpm-md | Index of /pub/videolan/vlc/SuSE/11.1/ |
2 | Packman Repository | Packman Repository | Yes | Yes | 99 | rpm-md | Index of /pub/packman/suse/11.1 |
3 | openSUSE 11.1-0 | openSUSE 11.1-0 | Yes | No | 99 | yast2 | cd:///?devices=/dev/sr0 |
4 | repo-debug | openSUSE-11.1-Debug | No | Yes | 100 | NONE | Index of /debug/distribution/11.1/repo/oss |
5 | repo-non-oss | openSUSE-11.1-Non-Oss | Yes | Yes | 100 | yast2 | Index of /distribution/11.1/repo/non-oss |
6 | repo-oss | openSUSE-11.1-Oss | Yes | Yes | 100 | yast2 | Index of /distribution/11.1/repo/oss |
7 | repo-source | openSUSE-11.1-Source | No | Yes | 100 | NONE | Index of /source/distribution/11.1/repo/oss |
8 | repo-update | openSUSE-11.1-Update | Yes | Yes | 20 | rpm-md | Index of /update/11.1 |

cat /boot/grub/menu.lst

Modified by YaST2. Last modification on Wed Oct 7 16:47:45 MDT 2009

default 0
timeout 8
##YaST - generic_mbr
gfxmenu (hd0,1)/boot/message
##YaST - activate

###Don’t change this comment - YaST2 identifier: Original name: linux###
title openSUSE 11.1 - 2.6.27.29-0.1
root (hd0,1)
kernel /boot/vmlinuz-2.6.27.29-0.1-pae root=/dev/disk/by-id/ata-ST9160314AS_5VC514DK-part2 resume=/dev/disk/by-id/ata-ST9160314AS_5VC514DK-part1 splash=silent showopts vga=0x314
initrd /boot/initrd-2.6.27.29-0.1-pae

###Don’t change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe – openSUSE 11.1 - 2.6.27.29-0.1
root (hd0,1)
kernel /boot/vmlinuz-2.6.27.29-0.1-pae root=/dev/disk/by-id/ata-ST9160314AS_5VC514DK-part2 showopts ide=nodma apm=off noresume nosmp maxcpus=0 edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 x11failsafe vga=0x314
initrd /boot/initrd-2.6.27.29-0.1-pae

Now what happens if you open a su terminal and do:

/etc/init.d/vboxdrv setup

/etc/init.d/vboxdrv setup

Stopping VirtualBox kernel module done
Recompiling VirtualBox kernel module failed
(Look at /var/log/vbox-install.log to find out what went wrong)

hmmmmmmmm

Please now do this and post result:

rpm -q VirtualBox kernel-source kernel-pae linux-kernel-headers

rpm -q VirtualBox kernel-source kernel-pae linux-kernel-headers

VirtualBox-3.0.6_52128_openSUSE111-1
kernel-source-2.6.27.29-0.1.1
kernel-pae-2.6.27.29-0.1.1
linux-kernel-headers-2.6.27-2.28

Let me see this

cat /var/log/vbox-install.log

cat /var/log/vbox-install.log

Makefile:150: Warning: using /usr/src/linux as the source directory of your Linux kernel. If this is not correct, specify KERN_DIR=<directory> and run Make again.
Makefile:185: *** Unable to find the folder to install the support driver to. Stop.

Do you have these installed:

make, gcc, ?

rpm -q make gcc

Yep, they should be installed… I hope

rpm -q make gcc

make-3.81-128.9
gcc-4.3-34.168