Installing VirtualBox on Slackware 14.2 RC1 - does it require compling?
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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
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
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.
...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
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
I'd be using these in place of those on www.slackbuilds.org, is that correct?
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
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.
Distribution: Slackware-14.1 and Slackware64-14.2rc1
Posts: 25
Rep:
Quote:
Originally Posted by gezley
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.