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

Difference between revisions of "VirtualBox"

From Void Linux Wiki
Jump to navigation Jump to search
(Recategorized.)
m (Style guide, converted explicit man page refs to man template, linked some packages too.)
 
Line 1: Line 1:
== Running Virtualbox in void as host ==
+
== Running Virtualbox in Void as host ==
  
Install the '''virtualbox-ose''' package, this will build the kernel modules automagically via DKMS. Once it's installed you should check that the newly built kernel modules have been loaded.
+
Install the {{pkg|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.
  
<pre># xbps-install -Sv virtualbox-ose
+
# xbps-install -Sv virtualbox-ose
...
+
...
# modules-load
+
# modules-load
...</pre>
+
...
If for whatever reason the configuration stage of the <code>virtualbox-ose-dkms</code> fails you can also force a reconfiguration via <code>xbps-reconfigure(8)</code>:
+
 
 +
If for whatever reason the configuration stage of <code>virtualbox-ose-dkms</code> fails you can also force a reconfiguration via {{man|1|xbps-reconfigure}}:
 +
 
 +
# xbps-reconfigure -f virtualbox-ose-dkms
 +
 
 +
{{Note|If you aren't running the default <code>linuxX.X</code> package, install the matching <code>linuxX.X-headers</code> package and force a reconfiguration as explained above.}}
  
<pre># xbps-reconfigure -f virtualbox-ose-dkms</pre>
 
<blockquote>NOTE: if you aren't running the default <code>linuxX.X</code> package, install the matching <code>linuxX.X-headers</code> package and force a reconfiguration as explained above.
 
</blockquote>
 
 
You can now execute the '''VirtualBox''' command to run it.
 
You can now execute the '''VirtualBox''' command to run it.
  
== Running void as guest on VirtualBox (VM) ==
+
== Running Void as guest on VirtualBox (VM) ==
 +
 
 +
The {{pkg|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:
  
The '''virtualbox-ose-guest''' package contains the guest utilities and kernel modules to allow '''3D graphics''', '''shared folders''' and others.
+
# xbps-install -Sv dbus
 +
...
 +
# ln -s /etc/sv/dbus /var/service/
 +
...
  
In your void guest ensure '''''dbus''''' is installed and enabled:
+
Also in your Void guest, install the '''''Virtual Box Guest Additions''''':
  
<pre># xbps-install -Sv dbus
+
# xbps-install -Sv virtualbox-ose-guest
...
 
# ln -s /etc/sv/dbus /var/service/
 
...</pre>
 
Also in your void guest, install the '''''Virtual Box Guest Additions''''':
 
  
<pre> # xbps-install -Sv virtualbox-ose-guest</pre>
 
 
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, <code>vboxservice</code> for additional functionality:
 
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, <code>vboxservice</code> for additional functionality:
  
<pre># ln -s /etc/sv/vboxservice /var/service/</pre>
+
# ln -s /etc/sv/vboxservice /var/service/
 +
 
 
If you are receiving an error concerning <code>vboxguest</code>, <code>vboxsf</code>, and <code>vboxvideo</code> modules not being found, run the following command:
 
If you are receiving an error concerning <code>vboxguest</code>, <code>vboxsf</code>, and <code>vboxvideo</code> modules not being found, run the following command:
  
<pre># sudo depmod</pre>
+
# sudo depmod
 +
 
 
After you have enabled <code>vboxservice</code> or otherwise loaded the above modules you can use <code>VBoxClient</code> to enable specific guest features, for example:
 
After you have enabled <code>vboxservice</code> or otherwise loaded the above modules you can use <code>VBoxClient</code> to enable specific guest features, for example:
  
<pre>$ VBoxClient --clipboard</pre>
+
$ VBoxClient --clipboard
To see a list of all guest features run <code>VBoxClient --help</code>.
+
 
 +
To see a list of all guest features run
  
 +
$ VBoxClient --help
  
 
[[Category:Applications]]
 
[[Category:Applications]]

Latest revision as of 15:39, 12 September 2017

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