How-To Install VirtualBox on Slackware 12.2

VirtualBox is a virtualization software from Sun Microsystems. In easy words, it means that we can run one or more operating systems inside one machine. This notes will guide you to deploy VirtualBox on a Slackware 12.2 machine.

1. First, you need to prepare all package dependencies for VirtualBox, which are:

  • icu4c
  • xerces-c
  • xalan
  • acpica
  • libatomic_ops
  • libsamplerate
  • libsnd
  • pulseaudio

You can get all of this packages from SlackBuilds so it can be more simple and centralized. We also need to learn how-to compile the source with help of pre-defined SlackBuilds scripts by reading their documentation.

2.1. Get the appropriate installer from VirtualBox that we need to execute on Slackware platform. Looks for the one with .run file extention.

2.2. You can also grab VirtualBox OSE packages from SlackBuilds. This is including virtualbox-ose and virtualbox-kernel. Then compile and execute them in the same way as you did on previous packages dependencies. Read the instructions carefully. If you choose this method for installation, after this you can skip directly to step sixth.

Note: According to VirtualBox sites, they mention about Qt4 as another dependencies. So here you can compile Qt4 before virtualbox-ose, but this is optional. Warning!!! It tooks so long to compile Qt4. I do that for two and a half hour on my machine with Pentium D 805, 4 Gigs DDR-II, and SATA-AHCI.

3. Third, modify the installer permissions by running this command as root:

#chmod 755

This will assign permissions so that only root can modify the installer and the others group can only read and execute.

4. Run the installer as root:


5. Next, we need to create a symbolic link from a specific file:

#ln -s /lib/ /lib/

This fifth step is a problem that i discover from kernel message. But until this notes was published, i still don’t know from where this problem arise.

6. Sixth, insert your user account into vboxusers group:

#usermod -a -G vboxusers username

Here you can also use KUser an X application from KDE environment.

7. Seventh, assume everything is working well, we can find the VirtualBox launcher from KMenu>>System>>Sun xVM VirtualBox.

Finally, don’t forget to read the User Manual for instruction guides which locates at /opt/VirtualBox-xxx/


4 Responses to “How-To Install VirtualBox on Slackware 12.2”

  1. I have another dependency problem, vbox says it needs qt4, and not finds it.. and at the moment i cant download the source for qt4 for some reason (blank screen and doesnt start), only the SlackBuild file.

    • What type of VBox do you want to deploy? Regular or OSE? Actually QT4 is an optional package, so you can choose whether to install it or not. If you insist to install it, then yes there is a problem with the link into QT software site as it’s acquired by Nokia now. So here’s the new link qt-x11-opensource-src-4.5.2

  2. Actually, icu4c, xerces-c and xalan-c are no longer dependencies for virtualbox. They are only needed if you use version older than 1.6.
    Also, I have never seen the need for doing that libcap link, at least with -OSE. Is this specific to the binary installer?

    • Yes, maybe this guide had an obsolete Virtualbox build version. But as usual, at least for Slackware user, everyone must read the package description there at Slackbuilds. And finally, there is no such thing as package dependencies in Slackware linux or in other words we call them as “dependency hell”

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: