LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-10-2010, 01:58 AM   #1
wildwizard
Member
 
Registered: Apr 2009
Location: Oz
Distribution: slackware64-14.0
Posts: 875

Rep: Reputation: 282Reputation: 282Reputation: 282
VirtualBox vs Kernel 2.6.32 x86_64


If others are have the problem of VirtualBox failing to build the kernel modules with kernel 2.6.32 try this :-

1. Install VirtualBox and watch as the kernel modules fail to compile.

2. Change the line
Code:
KFLAGS += -DRT_ARCH_AMD64
TO
Code:
KFLAGS += -DRT_ARCH_X86_64
In the following files :-
Code:
Line 231 /opt/VirtualBox/src/vboxdrv/Makefile
Line 170 /opt/VirtualBox/src/vboxnetadp/Makefile
Line 174 /opt/VirtualBox/src/vboxnetflt/Makefile
3. Run /etc/rc.d/rc.vboxdrv setup

You will now have a working VirtualBox setup

NB This is written purely from the standpoint of using the Closed source version of VB not the OSE version.
 
Old 01-11-2010, 01:13 AM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
I have VirtualBox 3.1.2 PUEL edition installed on top of a Slackware64-13.0 with 2.6.32.2 and encountered no compilation problem
 
Old 01-11-2010, 02:24 AM   #3
wildwizard
Member
 
Registered: Apr 2009
Location: Oz
Distribution: slackware64-14.0
Posts: 875

Original Poster
Rep: Reputation: 282Reputation: 282Reputation: 282
I have at last been able to isolate the trigger, if like me you use SlackBuilds a lot you probably have ARCH set to avoid changing each script.

If ARCH=x86_64 is set VirtualBox will attempt for some reason to pass amd64 to the kernel build this is invalid in the kernel as amd64 is not used as a architecture name instead x86_64 is used.

PS Pat just released .3 in -current
 
  


Reply

Tags
virtualbox



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ipm timed out error on Red Hat 2.6.9-67.0.22.ELsmp #1 SMP x86_64 x86_64 x86_64 GNU/L bellnarm Linux - Newbie 0 07-07-2009 04:36 PM
Virtualbox and kernel 2.6.30 Dinithion Slackware 14 06-17-2009 05:04 AM
Virtualbox kernel modules won't load after updating kernel in openSUSE 11.0 JamesHall SUSE / openSUSE 6 02-03-2009 04:36 PM
Kernel Panic with Kernel 2.6.27.5-41.fc9.x86_64 on VMWare ESXi Server d.zinzius Fedora 0 11-21-2008 07:21 AM
virtualbox kernel Brian H Linux - Newbie 14 08-26-2008 05:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration