LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-03-2010, 09:24 PM   #1
wakkana12
Member
 
Registered: Dec 2009
Posts: 171

Rep: Reputation: 15
Question virtual box installation on slackware


hi guys,

how can i install a virtual box in slackware? i checked slackbuilds and found this filles:

virtualbox-kernel
virtualbox-kernel-addons
virtualbox-ose
virtualbox-ose-addons

which one should i get?

Last edited by wakkana12; 02-03-2010 at 09:31 PM.
 
Old 02-03-2010, 09:38 PM   #2
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Blog Entries: 8

Rep: Reputation: 203Reputation: 203Reputation: 203
Virtualbox has a precompiled binary installer that works just fine here. If you are running 64 the slackbuild for OSE (SBo at least) won't work.
 
Old 02-03-2010, 09:51 PM   #3
rigelan
Member
 
Registered: Jul 2005
Location: Iowa
Distribution: Slackware
Posts: 180

Rep: Reputation: 19
In fact, I installed it on my computer just two days ago, directly from the binary.

http://www.virtualbox.org/wiki/Linux_Downloads

I downloaded the link for "all distributions". Have to be administrator though. Then, I restarted the computer (I guess I didn't really have to) in order for the kernel module to find its place. Then it all worked well. It installs all the files in /opt (except the module), so I didn't worry about it placing some odd file where I didn't want it. I don't have it packaged though, which of course would be preferred.

Last edited by rigelan; 02-03-2010 at 09:55 PM.
 
Old 02-03-2010, 10:18 PM   #4
wakkana12
Member
 
Registered: Dec 2009
Posts: 171

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by rigelan View Post
In fact, I installed it on my computer just two days ago, directly from the binary.

http://www.virtualbox.org/wiki/Linux_Downloads

I downloaded the link for "all distributions". Have to be administrator though. Then, I restarted the computer (I guess I didn't really have to) in order for the kernel module to find its place. Then it all worked well. It installs all the files in /opt (except the module), so I didn't worry about it placing some odd file where I didn't want it. I don't have it packaged though, which of course would be preferred.
i found some tutorials on the net. it said something like dependency issues right now im downloading the libraries that the tutorial said.. or do i just install the VirtualBox-xxx-xxxxx-Linux_xxx.run file and it would work right out of the box?
 
Old 02-03-2010, 10:25 PM   #5
manwichmakesameal
Member
 
Registered: Aug 2006
Distribution: Slackware
Posts: 804

Rep: Reputation: 110Reputation: 110
With a full install of Slack13, yes it will install fine.
 
Old 02-03-2010, 10:26 PM   #6
wakkana12
Member
 
Registered: Dec 2009
Posts: 171

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by manwichmakesameal View Post
With a full install of Slack13, yes it will install fine.
nice!.. thnx..
 
Old 02-04-2010, 07:25 PM   #7
dc_eros
Member
 
Registered: Nov 2006
Distribution: Slackware
Posts: 294

Rep: Reputation: 39
It also installs on my slackware-current (as of jan 25). It just works! 32 bit by the way.
 
Old 02-15-2010, 05:15 PM   #8
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,193

Rep: Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307
The binary installer didn't work on my 64-bit Slackware 13.

Code:
Building the VirtualBox vboxdrv kernel module
Failed to build the vboxdrv kernel module.
Please check the log file /var/log/vbox-install.log for more information.

VirtualBox has been installed successfully, but the kernel module could not
be built.  When you have fixed the problems preventing this, execute
  /etc/init.d/vboxdrv setup
as administrator to build it.
And the contents of the aforementioned log:

Code:
VirtualBox 3.1.4 r57640 installer, built 2010-02-12T19:37:27Z.

Testing system setup...
System setup appears correct.

Installing VirtualBox to /opt/VirtualBox

Output from the module build process (the Linux kernel build system) follows:

make KBUILD_VERBOSE=1 -C /lib/modules/2.6.29.6/build SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 modules
Makefile:529: /usr/src/linux-2.6.29.6/arch/amd64/Makefile: No such file or directory
make[1]: *** No rule to make target `/usr/src/linux-2.6.29.6/arch/amd64/Makefile'.  Stop.
make: *** [vboxdrv] Error 2

End of the output from the Linux kernel build system.
Installation successful
EDIT: I guess I should say it didn't work as expected. I worked around it by doing a make; make install in /opt/VirtualBox/src.

Last edited by dugan; 02-15-2010 at 05:25 PM.
 
Old 02-15-2010, 06:19 PM   #9
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Blog Entries: 8

Rep: Reputation: 203Reputation: 203Reputation: 203
Code:
 /etc/init.d/vboxdrv setup
This is incorrect for Slackware. To build the kernel module for Slackware it's
Code:
/etc/rc.d/rc.vboxdrv setup
 
Old 02-15-2010, 06:47 PM   #10
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,193

Rep: Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307
Quote:
Originally Posted by damgar View Post
To build the kernel module for Slackware it's
The installer actually put the correct lines in rc.local. I was quite impressed.
 
Old 02-15-2010, 07:09 PM   #11
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Blog Entries: 8

Rep: Reputation: 203Reputation: 203Reputation: 203
Yup. Even Bob endorses the installer
http://alien.slackbook.org/blog/comp...or-virtualbox/
 
Old 02-16-2010, 04:13 PM   #12
octoberblu3
Member
 
Registered: Oct 2005
Distribution: Slackware64-current
Posts: 67

Rep: Reputation: 22
Under /usr/src/linux/arch you probably don't have an "amd64" folder. Make a symlink with the name amd64 to the x86_64 or x86 directory, or possibly patch the Makefile in question.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Running virtual pc files in a virtual machine in linux ... preferably virtual box biharibong Linux - Software 4 01-21-2009 01:04 PM
Can't go above resolution 1024x768, running slackware 12 in virtual box Raccoon1400 Slackware 14 04-05-2008 03:41 AM
Does 'Virtual Box Guide' Show Installation of XP or Ubuntu? taurusx5 Linux - Software 8 02-13-2008 10:30 PM
Slackware installed in virtual box on Mandriva Spring bookie Mandriva 14 07-21-2007 12:03 PM
Grafpup 2.00 - Problem adding user after Hard disk installation under Virtual Box isetyawan Grafpup 8 06-12-2007 05:58 AM

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

All times are GMT -5. The time now is 11:50 PM.

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