VirtualBox

From Void Linux Wiki
Jump to: navigation, 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