Warning: THE VOID WIKI IS DEPRECATED. It is no longer being maintained, contains outdated and incorrect information, and will eventually be shut down. Please refer to the Void Handbook, https://docs.voidlinux.org/, for the official documentation. If you can't find the information you're seeking, please raise an issue at https://github.com/void-linux/void-docs/issues

VirtualBox

From Void Linux Wiki
Revision as of 15:39, 12 September 2017 by Tactica (talk | contribs) (Style guide, converted explicit man page refs to man template, linked some packages too.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Running Virtualbox in Void as host

Install the virtualbox-ose package, this will build the kernel modules automagically via DKMS. Once it is installed you should check that the newly built kernel modules have been loaded.

# xbps-install -Sv virtualbox-ose
...
# modules-load
...

If for whatever reason the configuration stage of virtualbox-ose-dkms fails you can also force a reconfiguration via xbps-reconfigure(1):

# xbps-reconfigure -f virtualbox-ose-dkms
Note: If you aren't running the default linuxX.X package, install the matching linuxX.X-headers package and force a reconfiguration as explained above.

You can now execute the VirtualBox command to run it.

Running Void as guest on VirtualBox (VM)

The virtualbox-ose-guest package contains the guest utilities and kernel modules to allow 3D graphics, shared folders and others.

In your Void guest ensure dbus is installed and enabled:

# xbps-install -Sv dbus
...
# ln -s /etc/sv/dbus /var/service/
...

Also in your Void guest, install the Virtual Box Guest Additions:

# xbps-install -Sv virtualbox-ose-guest

Ensure to pay attention to any specific package instructions listed after installation. These may include adding user groups, etc. The following example enables the system service, vboxservice for additional functionality:

# ln -s /etc/sv/vboxservice /var/service/

If you are receiving an error concerning vboxguest, vboxsf, and vboxvideo modules not being found, run the following command:

# sudo depmod

After you have enabled vboxservice or otherwise loaded the above modules you can use VBoxClient to enable specific guest features, for example:

$ VBoxClient --clipboard

To see a list of all guest features run

$ VBoxClient --help