Yes, though several versions of VirtualBox and Slackware.
As mentioned above, be sure to install "everything" when you install Slackware (so you'll have the kernel source among other things that might just be useful even if not particularly for VirtualBox).
You'll find what you need at https://www.virtualbox.org/wiki/Downloads
; you download VirtualBox 4.2.4 Oracle VM VirtualBox Extension Pack
from there (get the current version, currently 4.2.4).
Once that has completed, click the link right above that section for VirtualBox for Linux Hosts
; that will take you to https://www.virtualbox.org/wiki/Linux_Downloads
. Look down the list to the bottom and select the All Distributions AMD64
link. The file you'll get is VirtualBox-4.2.4-81684-Linux_amd64.run
which is 80,362,961 bytes (that's current as of today).
You need to be root to install, you simply
su - <or sudo or log in as root>
sh VirtualBox-4.2.4-81684-Linux_amd64.run install
That will unpack into /opt/VirtualBox
, build the kernel modules, create the necessary files in /etc/init.d
), create a group called vboxusers
and put appropriate symbolic links in system directories.
You will need to manually add users to the vboxusers
group; you do that
su - <or sudo or log in as root)
usermod -a -G vboxusers username[,username,...]
Make sure to, as @chrisretusn recommends, install the Extension Pack before you add any virtual machines.
Something to think about.
When you add a virtual machine it will, by default, be added in your home directory. Say you're installing Win7 as a guest; you'll want to allocate at least 20G to make it useable.
Something I've done (lessons learned during a wasted youth, this) is to add a partition during setup of Slackware that I've named virtual
and gave it, oh, 90G (keep in mind that you're new box is going to have something like a 250G, 500G or even 1T drive, so 90G - 100G isn't out of the question). I specify that it mounts to /var/lib/virtual
(just because /var/lib
is where MySQL and PostgreSQL mount, so what the heck) but you could mount it to wherever you want.
You do have to do a little bit of fiddling (once) before you start up VirtualBox the first time:
chown root.vboxusers /var/lib/virtual
chmod 775 /var/lib/virtual
but that's not a big burden.
Up to you whether you want virtual machines in your home directory or off somewhere else; it's simple to do and it might save you some trouble somewhere down the road.
Hope this helps some.