Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: cannot compile virtualbox kernel

  1. #1
    Join Date
    Jun 2008
    Location
    Alberta, Canada
    Posts
    457

    Default cannot compile virtualbox kernel

    Hi all,

    I installed virtualbox 3.1.3 from sun, and I tried virtualbox ose from repos.

    I am getting the same error, that I need to recompile the kernel for virtualbox.

    So I try:
    Code:
    sudo /etc/init.d/vboxdrv setup
    But the recompile fails.

    I check the log and this is what it says:
    Code:
    Makefile:152: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Stop.
    Any ideas?

    Thanks

    Heeter
    Linux Counter 475994

  2. #2
    Join Date
    Jun 2008
    Location
    The English Lake District. UK - GMT/BST
    Posts
    36,733
    Blog Entries
    20

    Default Re: cannot compile virtualbox kernel

    you need kernel-source and the kernel-flavour-devel

    flavour = whatever kernel you have: default, pae, desktop

    also required
    make, gcc, linux-kernel-headers,
    Leap 15.1_KDE
    My Articles Was I any help? If yes: Click the star below

  3. #3
    Join Date
    Sep 2008
    Location
    Argentina
    Posts
    147

    Default Re: cannot compile virtualbox kernel

    You also need package kernel-syms to compile apart from the above ones...

    Greetings

    Beat

  4. #4
    Join Date
    Jun 2008
    Location
    The English Lake District. UK - GMT/BST
    Posts
    36,733
    Blog Entries
    20

    Default Re: cannot compile virtualbox kernel

    Quote Originally Posted by tkmbe View Post
    You also need package kernel-syms to compile apart from the above ones...

    Greetings

    Beat
    Not correct
    I don't have it

    kernel-syms will drag in stuff you really don't need
    Leap 15.1_KDE
    My Articles Was I any help? If yes: Click the star below

  5. #5
    Join Date
    Jun 2008
    Location
    Alberta, Canada
    Posts
    457

    Default Re: cannot compile virtualbox kernel

    Hey Caf,

    Thanks a million,

    That did it, without the syms.

    Thanks again,


    Heeter
    Linux Counter 475994

  6. #6
    Join Date
    Jun 2008
    Location
    The English Lake District. UK - GMT/BST
    Posts
    36,733
    Blog Entries
    20

    Default Re: cannot compile virtualbox kernel

    Quote Originally Posted by Heeter View Post
    Hey Caf,

    Thanks a million,

    That did it, without the syms.

    Thanks again,


    Heeter
    That's good
    Leap 15.1_KDE
    My Articles Was I any help? If yes: Click the star below

  7. #7
    Join Date
    Jun 2008
    Location
    The English Lake District. UK - GMT/BST
    Posts
    36,733
    Blog Entries
    20

    Default Re: cannot compile virtualbox kernel

    Leap 15.1_KDE
    My Articles Was I any help? If yes: Click the star below

  8. #8
    Join Date
    Nov 2009
    Location
    Germany
    Posts
    64

    Default Re: cannot compile virtualbox kernel

    Thanks to caf4926 I was able to install a virtual machine in my 64bit system! The first time! There were never problems with this on my 32bit systems. But since a year I was trying to run it under the other one. I only got messages about missing vboxdrivers (which were installed, but could not be found).
    The only thing I am a bit puzzeled about is, that I could not find the "kernel-flavour-devel" in YAST.
    So, after deep thinking about the consequences of installing rubbish on my working-system (about one minute), I decided to install the "virtualbox-ose-kmp-default" (my kernel version). So I made a data-backup and installed the kernel.
    Doining the rest in console as root...and what happened? The virtual box started and let me know, that everything was right and I could start the machine (I still have to install one).
    So thanks again!
    Box 1: Striker Extreme/NVIDIA GT 8600 SLI/E 8500/8 GB RAM/12.2 64 bit
    Box 2: ASUS P5KPL/NVIDIA GT 9500 / Pentium D/ 2 GB RAM /12.2 64 bit
    Laptop: Toshiba Sat. A 100/ 4 GB Ram / 12.1 32 bit
    Laptop: Toshiba Sat. A 660 / 4 GB Ram / 12.1 64 bit

  9. #9
    Join Date
    Jun 2008
    Location
    The English Lake District. UK - GMT/BST
    Posts
    36,733
    Blog Entries
    20

    Default Re: cannot compile virtualbox kernel

    the kernel-flavour
    refers to which kernel you have installed
    Eg: default, desktop, pae

    so if you were using kernel-default

    you would add kernel-default-devel

    But you figured that - right?
    Leap 15.1_KDE
    My Articles Was I any help? If yes: Click the star below

  10. #10
    Join Date
    Nov 2009
    Location
    Germany
    Posts
    64

    Default Re: cannot compile virtualbox kernel

    Yes, my system uses the "default" kernel, so I installed this one. As I said, it works fine. I just finished setting up winXP (sorry, but I have to use it for business). Works good, even with 3D, USB, DVD and SOUND.
    For interest, though it runs:
    Were can I find the "kernel-default-devel"? Is this a short form for something longer? When I type this in "software-installation" under YAST, I only get the message, that there can nothing be found..... Do I have to set up another repository?
    Box 1: Striker Extreme/NVIDIA GT 8600 SLI/E 8500/8 GB RAM/12.2 64 bit
    Box 2: ASUS P5KPL/NVIDIA GT 9500 / Pentium D/ 2 GB RAM /12.2 64 bit
    Laptop: Toshiba Sat. A 100/ 4 GB Ram / 12.1 32 bit
    Laptop: Toshiba Sat. A 660 / 4 GB Ram / 12.1 64 bit

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •