Installing VirtualBox on Slacakware

Discussions related to using the OSE version of VirtualBox.
Post Reply
Frankie
Posts: 3
Joined: 16. Jul 2012, 04:40

Installing VirtualBox on Slacakware

Post by Frankie »

I'm having a bit of trouble getting VirtualBox to load on my system. I'm running Slackware 13.37.0

I've installed VirtualBox 4.1.18 according to the instructions (up to a point). The point where the install differs is at the point I am instructed to copy vboxdrv.sh to /etc/init.d/vboxdrv. As no init scripts are located in this directory and the installed dir had no vboxdrv.sh within it. I let this go. VirtualBox is installed under my /usr/local tree in /usrlocal/VirtualBox. I did run 'make' and 'make install' under the '/usr/local/VirtualBox/src/vboxhost' this differs from the documentation somewhat, I am instructed to run make from within the 'src' sub dir. that dir contained only the vboxhost dir so I extrapolated and changed to the vboxhost dir and continued.

The kernal modules compiled and loaded without error:
bash-4.1# lsmod
Module Size Used by
pci_stub 1397 1
vboxpci 15234 0
vboxnetadp 18259 0
vboxnetflt 17089 0
vboxdrv 1791272 3 vboxpci,vboxnetadp,vboxnetflt
usblp 11424 0
see anythig missing?

I setup links as instructed
bash-4.1# cd /usr/local/bin
bash-4.1# ls -al
total 95644
drwxr-xr-x 2 root root 4096 Jul 15 17:24 .
drwxr-xr-x 27 root root 4096 Jul 15 17:02 ..
lrwxrwxrwx 1 root root 29 Jul 15 17:24 VBoxHeadless -> /usr/local/VirtualBox/VBox.sh
lrwxrwxrwx 1 root root 29 Jul 15 17:24 VBoxManage -> /usr/local/VirtualBox/VBox.sh
lrwxrwxrwx 1 root root 29 Jul 15 17:24 VBoxSDL -> /usr/local/VirtualBox/VBox.sh
lrwxrwxrwx 1 root root 29 Jul 15 17:24 VirtualBox -> /usr/local/VirtualBox/VBox.sh
lrwxrwxrwx 1 root root 31 May 7 16:04 apachectl -> /usr/local/apache/bin/apachectl
-rwxr-xr-x 1 root root 307336 Jun 30 13:20 dcraw
-rwxr-xr-x 1 root root 6913158 May 8 11:35 filezilla
lrwxrwxrwx 1 root root 36 May 4 13:48 firefox -> /usr/local/lib64/firefox-4.0/firefox
-rwxr-xr-x 1 root root 476136 Apr 11 15:12 flash-player-properties
-rwxr-xr-x 1 root root 182012 May 8 11:35 fzputtygen
-rwxr-xr-x 1 root root 455574 May 8 11:35 fzsftp
-rwxr-xr-x 1 root root 7651148 Mar 30 00:55 mysql
lrwxrwxrwx 1 root root 30 May 7 18:06 mysqldump -> /usr/local/mysql/bin/mysqldump
-rwxr-xr-x 1 root root 817 Apr 30 16:38 pear
-rwxr-xr-x 1 root root 838 Apr 30 16:38 peardev
-rwxr-xr-x 1 root root 754 Apr 30 16:38 pecl
lrwxrwxrwx 1 root root 24 Apr 30 16:38 phar -> /usr/local/bin/phar.phar
-rwxr-xr-x 1 root root 14796 Apr 30 16:38 phar.phar
-rwxr-xr-x 1 root root 30301404 Apr 30 16:38 php
-rwxr-xr-x 1 root root 30224600 Apr 30 16:38 php-cgi
-rwxr-xr-x 1 root root 3032 Apr 30 16:38 php-config
-rwxr-xr-x 1 root root 4535 Apr 30 16:38 phpize
So. I tried to set up my first virtualbox.
bash-4.1# VBoxManage
/usr/local/VirtualBox/VBoxManage: error while loading shared libraries: VBoxDDU.so: cannot open shared object file: No such file or directory
I tried
bash-4.1# VirtualBox
VirtualBox: supR3HardenedMainGetTrustedMain: dlopen("/usr/local/VirtualBox/VirtualBox.so",) failed: VBoxVMM.so: cannot open shared object file: No such file or directory
I added the install dir to my path, this shouldn;t be required nor did I find anything recommending it, but can't hurt right? With this set up in /etc/profile I could remove the loinks from /usr/local/bin as well.
bash-4.1# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/VirtualBox
This changed nothing. Same errors.
Well I better check the files in the installation dir.
bash-4.1# cd ../VirtualBox
bash-4.1# ls -al
total 81868
drwxr-xr-x 10 root root 4096 Jul 15 17:06 .
drwxr-xr-x 27 root root 4096 Jul 15 17:02 ..
-rw-r--r-- 1 root root 20137 Aug 17 2011 LICENSE
-rw-r--r-- 1 root root 5082221 Jun 20 02:32 UserManual.pdf
-rw-r--r-- 1 root root 5359 Aug 17 2011 VBox.png
-rwxr-xr-x 1 root root 3155 Aug 17 2011 VBox.sh
-rwxr-xr-x 1 root root 8040 Jun 20 02:49 VBoxAuth.so
-rwxr-xr-x 1 root root 24304 Jun 20 02:49 VBoxAuthSimple.so
-rwxr-xr-x 1 root root 123232 Jun 20 02:49 VBoxBalloonCtrl
-rwxr-xr-x 1 root root 1502 Aug 17 2011 VBoxCreateUSBNode.sh
-rwxr-xr-x 1 root root 2377424 Jun 20 02:49 VBoxDD.so
-rwxr-xr-x 1 root root 164624 Jun 20 02:49 VBoxDD2.so
-rw-r--r-- 1 root root 16000 Jun 20 02:49 VBoxDD2GC.gc
-rw-r--r-- 1 root root 23200 Jun 20 02:49 VBoxDD2R0.r0
-rw-r--r-- 1 root root 126988 Jun 20 02:49 VBoxDDGC.gc
-rw-r--r-- 1 root root 168456 Jun 20 02:49 VBoxDDR0.r0
-rwxr-xr-x 1 root root 283144 Jun 20 02:49 VBoxDDU.so
-rwxr-xr-x 1 root root 142840 Jun 20 02:49 VBoxDbg.so
-rw-r--r-- 1 root root 2031616 Jun 20 01:56 VBoxEFI32.fd
-rw-r--r-- 1 root root 2031616 Jun 20 01:56 VBoxEFI64.fd
-rwxr-xr-x 1 root root 57496 Jun 20 02:49 VBoxExtPackHelperApp
-rwxr-xr-x 1 root root 19872 Jun 20 02:49 VBoxGuestControlSvc.so
-rwxr-xr-x 1 root root 36352 Jun 20 02:49 VBoxGuestPropSvc.so
-rwxr-xr-x 1 root root 27912 Jun 20 02:49 VBoxHeadless
-rwxr-xr-x 1 root root 140048 Jun 20 02:49 VBoxHeadless.so
-rwxr-xr-x 1 root root 64840 Jun 20 02:49 VBoxKeyboard.so
-rwxr-xr-x 1 root root 991704 Jun 20 02:49 VBoxManage
-rwxr-xr-x 1 root root 9568 Jun 20 02:49 VBoxNetAdpCtl
-rwxr-xr-x 1 root root 27912 Jun 20 02:49 VBoxNetDHCP
-rwxr-xr-x 1 root root 40840 Jun 20 02:49 VBoxNetDHCP.so
-rwxr-xr-x 1 root root 139008 Jun 20 02:49 VBoxOGLhostcrutil.so
-rwxr-xr-x 1 root root 153160 Jun 20 02:49 VBoxOGLhosterrorspu.so
-rwxr-xr-x 1 root root 152480 Jun 20 02:49 VBoxOGLrenderspu.so
-rwxr-xr-x 1 root root 267944 Jun 20 02:49 VBoxPython.so
-rwxr-xr-x 1 root root 267984 Jun 20 02:49 VBoxPython2_3.so
-rwxr-xr-x 1 root root 267984 Jun 20 02:49 VBoxPython2_4.so
-rwxr-xr-x 1 root root 268336 Jun 20 02:49 VBoxPython2_5.so
-rwxr-xr-x 1 root root 267088 Jun 20 02:49 VBoxPython2_6.so
-rwxr-xr-x 1 root root 267088 Jun 20 02:49 VBoxPython2_7.so
-rwxr-xr-x 1 root root 838736 Jun 20 02:49 VBoxREM.so
-rwxr-xr-x 1 root root 4001216 Jun 20 02:49 VBoxRT.so
-rwxr-xr-x 1 root root 27904 Jun 20 02:49 VBoxSDL
-rwxr-xr-x 1 root root 219128 Jun 20 02:49 VBoxSDL.so
-rwxr-xr-x 1 root root 3103712 Jun 20 02:49 VBoxSVC
-rwxr-xr-x 1 root root 49480 Jun 20 02:49 VBoxSharedClipboard.so
-rwxr-xr-x 1 root root 882568 Jun 20 02:49 VBoxSharedCrOpenGL.so
-rwxr-xr-x 1 root root 40528 Jun 20 02:49 VBoxSharedFolders.so
-rwxr-xr-x 1 root root 4161 Oct 26 2011 VBoxSysInfo.sh
-rwxr-xr-x 1 root root 99552 Jun 20 02:49 VBoxTestOGL
-rwxr-xr-x 1 root root 7792 Jun 20 02:49 VBoxTunctl
-rwxr-xr-x 1 root root 1861680 Jun 20 02:49 VBoxVMM.so
-rwxr-xr-x 1 root root 1451344 Jun 20 02:49 VBoxXPCOM.so
-rwxr-xr-x 1 root root 54520 Jun 20 02:49 VBoxXPCOMC.so
-rwxr-xr-x 1 root root 32896 Jun 20 02:49 VBoxXPCOMIPCD
-rw-r--r-- 1 root root 474060 Jun 20 02:49 VMMGC.gc
-rw-r--r-- 1 root root 662760 Jun 20 02:49 VMMR0.r0
-rwxr-xr-x 1 root root 27912 Jun 20 02:49 VirtualBox
-rw-r--r-- 1 root root 4021028 Jun 20 02:32 VirtualBox.chm
-rwxr-xr-x 1 root root 6982944 Jun 20 02:49 VirtualBox.so
drwxr-xr-x 2 root root 4096 Jul 15 17:06 accessible
drwxr-xr-x 2 root root 4096 Jul 15 17:06 additions
drwxr-xr-x 2 root root 4096 Jul 15 17:06 components
drwxr-xr-x 13 root root 4096 Jun 20 02:46 icons
-rwxr-xr-x 1 root root 441848 Jun 20 02:49 kchmviewer
-rwxr-xr-x 1 root root 3673424 Jun 20 02:46 libQtCoreVBox.so.4
-rwxr-xr-x 1 root root 13298664 Jun 20 02:46 libQtGuiVBox.so.4
-rwxr-xr-x 1 root root 1356032 Jun 20 02:46 libQtNetworkVBox.so.4
-rwxr-xr-x 1 root root 1165728 Jun 20 02:46 libQtOpenGLVBox.so.4
-rwxr-xr-x 1 root root 181288 Jun 20 02:49 libvboxjxpcom.so
drwxr-xr-x 2 root root 4096 Jul 15 17:06 nls
-rwxr-xr-x 1 root root 269912 Jun 20 02:49 rdesktop-vrdp
drwxr-xr-x 2 root root 4096 Jun 20 02:46 rdesktop-vrdp-keymaps
-rw-r--r-- 1 root root 963196 Jun 20 02:46 rdesktop-vrdp.tar.gz
drwxr-xr-x 4 root root 4096 Jul 15 17:06 sdk
drwxr-xr-x 3 root root 4096 Jun 20 02:49 src
-rwxr-xr-x 1 root root 115296 Mar 8 07:52 vboxshell.py
-rwxr-xr-x 1 root root 12146472 Jun 20 02:49 vboxwebsrv
-rw-r--r-- 1 root root 792 Jun 20 02:46 virtualbox.desktop
-rw-r--r-- 1 root root 2148 Aug 17 2011 virtualbox.xml
-rwxr-xr-x 1 root root 9098704 Jun 20 02:49 webtest
The libs appear to be there.

What's left?
oh yeah, the vbox.cfg file
bash-4.1# cat /etc/vbox/vbox.cfg
INSTALL_DIR=/usr/local/VirtualBox
I'm thinkin this tells virtualBox where to find the libs, am I correct?

Is there anything I'm missing? could be something real basic this is not time critical. This is my dev box at home. This is an experimental/educational setup for me. But I'd sure like to get to the next step.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Installing VirtualBox on Slacakware

Post by Perryg »

I've installed VirtualBox 4.1.18 according to the instructions (up to a point)
I'd be interested in knowing where you got the install information and the also the source. Most of what you show are not familiar to me.
Frankie
Posts: 3
Joined: 16. Jul 2012, 04:40

Re: Installing VirtualBox on Slacakware

Post by Frankie »

installation Binaries were downloaded from www*DOT*virtualbox*DOT*org/wiki/Linux_Downloads
file name = VirtualBox-4.1.18-78361-Linux_amd64.run
documentation downloaded from download*DOT*virtualbox*DOT*org/virtualbox/4.1.18/UserManual.pdf

I began the manual install by executing the *.run file in this way: "./VirtualBox-4.1.18-78361-Linux_amd64.run --keep --noexec"
I then extracted the tarball to the destination directory tar -jxf VirtualBox.tar.bz2 -C /usr/local/VirtualBox
I continued on from there.
All of this is documented beginning at section 2.3.3.3; titled, "Performing a manual installation"

My applications are all installed under /usr/local. I installed virtual box under that directory.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Installing VirtualBox on Slacakware

Post by Perryg »

The *.run is an installable binary. If you want to do a manual install you should download the tarball. Link is called source code or select the tarball from HERE (*.bz2) Doing a manual install requires you to have installed the dependencies before hand.
Frankie
Posts: 3
Joined: 16. Jul 2012, 04:40

Re: Installing VirtualBox on Slacakware

Post by Frankie »

Didn't see a link for source when i downloaded. I would have preferred it. I'll do a bit more research on this. If I can find no other viable answer I will give it a try. I prefer to find the cause of a problem (when time allows) rather than just apply a fix that circumvents the root cause of a problem that may arise later, when time is more of an issue. As I noted above, this is an learning exercise. Hopefully, I'll be better prepared and have a closer understanding of vBox when I'm up and running. The documentation does cover a manual install from the .run file.

The only dependencies listed in the documentation:
You will need to install the following packages on your Linux system before starting the installation
(some systems will do this for you automatically when you install VirtualBox):
Qt 4.4.0 or higher;
SDL 1.2.7 or higher (this graphics library is typically called libsdl or similar).
Have been met

I am following the documentation exactly.
I had hoped that the error messages, listed here verbatim, would have pointed to a repairable problem.
bash-4.1# VBoxManage
/usr/local/VirtualBox/VBoxManage: error while loading shared libraries: VBoxDDU.so: cannot open shared object file: No such file or directory
bash-4.1# VirtualBox
VirtualBox: supR3HardenedMainGetTrustedMain: dlopen("/usr/local/VirtualBox/VirtualBox.so",) failed: VBoxVMM.so: cannot open shared object file: No such file or directory
On another forum I found some similar errors and a solution that worked. The solution, did not, however, work in my situation. I'll give it a couple more hours of research and work before I try a reinstall, only because it broke and I wanna know why.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Installing VirtualBox on Slacakware

Post by Perryg »

VirtualBox Linux build instructions

I show how to build from SVN HERE to have a complete for distribution build including the manual and guest additions (specific to the guest) I have not created a SLackware build but you should get the idea of what you need to do.

One final piece of advice. Don't build/run this as root. VirtualBox was not intended to work that way
Post Reply