LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-20-2016, 11:51 AM   #1
deleted_03
LQ Newbie
 
Registered: Mar 2016
Posts: 8

Rep: Reputation: 0
Installing VirtualBox on Slackware 14.2 RC1 - does it require compling?


I'm interested to know if it is reasonably straightforward to take the VirtualBox packages from here https://www.slackbuilds.org/result/?...ualBox&sv=14.1, such as virtualbox, virtualbox-kernel and acpica - all version 4.3.24.

And to install them into my system which is running 14.2 RC1. I've read the post below from Geordie, in which he indicates "I have just finished compiling and installing virtualbox from sbopkg" and I wonder if that is easy to do, or can I just take them as they are?

http://www.linuxquestions.org/questi...-a-4175573570/

I've never needed to compile anything previously, so don't know where to start. Slackware 14.1 doesn't support my wireless card, at least not for practical purposes, but 14.2 RC1 does support it beautifully. So it's a bit of a deal-breaker for me at the moment. Thanks. James
 
Old 03-20-2016, 12:57 PM   #2
af7567
Member
 
Registered: Nov 2012
Posts: 293

Rep: Reputation: 106Reputation: 106
It is pretty straight forward to install stuff using SlackBuilds, it does all the compiling and package creating for you so all you need to do is installpkg once it is finished. As long as you have a full Slackware install and you make sure you build and install any required packages that are listed it should go smoothly.

But, I don't think that the 4.3.24 version of virtualbox-kernel will build with the Linux kernel in Slackware 14.2 RC1. You would need to get the SlackBuilds from https://github.com/Ponce/slackbuilds which have been updated to VirtualBox 5.x
 
Old 03-20-2016, 01:05 PM   #3
v8dave
LQ Newbie
 
Registered: Dec 2004
Location: UK, London
Distribution: Slackware-14.1 and Slackware64-14.2rc1
Posts: 25

Rep: Reputation: 2
I've got the latest virtualbox 5.0.16 direct from oracle installed and working on my system having upgraded to x64-14.2rc1 this morning.

Just ran the installer !
All my saved virtual machines seem to work as expected
 
Old 03-20-2016, 01:23 PM   #4
deleted_03
LQ Newbie
 
Registered: Mar 2016
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by v8dave View Post
I've got the latest virtualbox 5.0.16 direct from oracle installed and working on my system having upgraded to x64-14.2rc1 this morning.
Thanks for the reply. Is this source code that you're talking about here? Either way, is there a procedure that I can follow? James
 
Old 03-20-2016, 01:31 PM   #5
AlleyTrotter
Member
 
Registered: Jun 2002
Location: Coal Township PA
Distribution: Slackware64-15.0
Posts: 783

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Not quite on topic but, Quoted from the 'README' for Ponce's Slackbuild for virtualbox...

Quote:
"On x86_64, this by default builds without software virtualization. This means you need hardware virtualization in order to run 32bit guests on 64bit hosts. To enable software virtualization, pass SOFTWARE_VIRTUALIZATION=yes to the script. Note that this will require a compiler that can generate 32bit code, and thus will not build on a stock x86_64 system. This switch has no effect on x86 systems."
Am I reading that correctly? Will an x86_64 with hardware virtualization run a 32bit guest?
The "thus will not build on a stock x86_64 system." refers only to the SOFTWARE_VIRTUALIZATION=yes flag?
Hope my question makes sense.
John

Last edited by AlleyTrotter; 03-20-2016 at 01:33 PM.
 
Old 03-20-2016, 01:33 PM   #6
deleted_03
LQ Newbie
 
Registered: Mar 2016
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by af7567 View Post
...But, I don't think that the 4.3.24 version of virtualbox-kernel will build with the Linux kernel in Slackware 14.2 RC1. You would need to get the SlackBuilds from https://github.com/Ponce/slackbuilds which have been updated to VirtualBox 5.x
Thanks, yes, I've located them in there under 'system', showing VirtualBox 5.0.14. So, essentially I'd be using these in place of those on www.slackbuilds.org, is that correct? A job for tomorrow I guess. James
Attached Thumbnails
Click image for larger version

Name:	Capture.JPG
Views:	47
Size:	32.6 KB
ID:	21201  
 
Old 03-20-2016, 01:37 PM   #7
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
Quote:
Originally Posted by AlleyTrotter View Post
Not quite on topic but, Quoted from the 'README' for Ponce's Slackbuild for virtualbox...
ehm, they're not mine, the SlackBuilds for the various components of virtualbox are from (and are updated by) pprkut...
I'll try to answer your questions for what I have understood
Quote:
Quote:
"On x86_64, this by default builds without software virtualization. This means you need hardware virtualization in order to run 32bit guests on 64bit hosts. To enable software virtualization, pass SOFTWARE_VIRTUALIZATION=yes to the script. Note that this will require a compiler that can generate 32bit code, and thus will not build on a stock x86_64 system. This switch has no effect on x86 systems."
Am I reading that correctly? Will an x86_64 with hardware virtualization run a 32bit guest?
yes.
Quote:
The "thus will not build on a stock x86_64 system." refers only to the SOFTWARE_VIRTUALIZATION=yes flag?
yes.
Quote:
Originally Posted by James Bangrak View Post
I'd be using these in place of those on www.slackbuilds.org, is that correct?
yes.
 
1 members found this post helpful.
Old 03-20-2016, 01:45 PM   #8
AlleyTrotter
Member
 
Registered: Jun 2002
Location: Coal Township PA
Distribution: Slackware64-15.0
Posts: 783

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Quote:
Originally Posted by ponce View Post
ehm, they're not mine, the SlackBuilds for the various components of virtualbox are from (and are updated by) pprkut...
I'll try to answer your questions for what I have understood
Got it
Thank you Ponce
John
 
Old 03-20-2016, 01:46 PM   #9
af7567
Member
 
Registered: Nov 2012
Posts: 293

Rep: Reputation: 106Reputation: 106
Quote:
Originally Posted by James Bangrak View Post
Thanks, yes, I've located them in there under 'system', showing VirtualBox 5.0.14. So, essentially I'd be using these in place of those on www.slackbuilds.org, is that correct? A job for tomorrow I guess. James
Yes, these are just updated versions of the ones on slackbuilds.org. When Slackware 14.2 is released then slackbuilds.org will be updated too with compatible SlackBuilds.
You will also need acpica building and installing before building the main virtualbox package: https://github.com/Ponce/slackbuilds...lopment/acpica

If you download each directory somewhere so you have acpica, virtualbox-kernel, and virtualbox then look at the info file in each and download the source files using wget. You can then build + install the packages one at a time by running the SlackBuild file in each directory.

You might want to look at sbopkg at https://www.sbopkg.org/ which will help you with the downloading and building. sbopkg is also compatible with the Ponce SlackBuild repository.

If you don't care about using a Slackware package and just want VirtualBox installing it might be easier doing what v8dave said and download the latest version from the Oracle website and use their installer script.
 
Old 03-20-2016, 02:28 PM   #10
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,177

Rep: Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761
Quote:
Originally Posted by James Bangrak View Post
Is this source code that you're talking about here? Either way, is there a procedure that I can follow?
1) Download the amd64 or i386 .run script for All Distributions at Virtualbox Linux Downloads
2) Run the installer:
Code:
sh VirtualBox-5.0.16-105871-Linux_amd64.run
3) Optionally, download the Extension Pack as well and install it under Preferences.
 
Old 03-20-2016, 03:45 PM   #11
v8dave
LQ Newbie
 
Registered: Dec 2004
Location: UK, London
Distribution: Slackware-14.1 and Slackware64-14.2rc1
Posts: 25

Rep: Reputation: 2
Quote:
Originally Posted by gezley View Post
1) Download the amd64 or i386 .run script for All Distributions at Virtualbox Linux Downloads
2) Run the installer:
Code:
sh VirtualBox-5.0.16-105871-Linux_amd64.run
3) Optionally, download the Extension Pack as well and install it under Preferences.
That's exactly how I do it each time an update comes out.
I use the generic kernel, so have the kernel source installed, the installer script does the kernel module build.
 
Old 03-21-2016, 01:54 AM   #12
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,969

Rep: Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548
I've been doing this for years. Download the VirtualBox installer and download the extension pack. You will most likely want it or need it.

For the first install run as root:

sh VirtualBox-5.0.16-105871-Linux_amd64.run

when it's finished run:

vboxmanage extpack install Oracle_VM_VirtualBox_Extension_Pack-5.0.16-105871.vbox-extpack

For updates of VirtualBox repeat except modify the installation of the extension pack as follows:

vboxmanage extpack install --replace Oracle_VM_VirtualBox_Extension_Pack-5.0.16-105871.vbox-extpack

After updating the Slackware kernel, after the reboot run:

/etc/rc.d/rc.vboxdrv setup
 
  


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
Installing and running VirtualBox 4.3.6-91406 on Slackware 14 tentativeOrch Slackware 4 02-20-2014 05:54 AM
Installing Virtualbox in Slackware 14.0 gabytf Slackware 3 12-13-2012 09:33 AM
[SOLVED] Libcap errors When installing VirtualBox on Slackware 13 R Tanner Slackware 10 03-22-2010 03:30 PM
Problems installing VirtualBox on Slackware 11.0 SamInside Slackware 3 02-08-2009 07:32 AM
Installing VirtualBox from SlackBuild - Slackware 12 - vboxdrv problem Do7AN Slackware 9 01-22-2009 01:58 PM

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

All times are GMT -5. The time now is 09:04 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