Difference between revisions of "VirtualBox"
(Recategorized.) |
m (Style guide, converted explicit man page refs to man template, linked some packages too.) |
||
Line 1: | Line 1: | ||
− | == Running Virtualbox in | + | == Running Virtualbox in Void as host == |
− | Install the | + | 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. |
− | + | # xbps-install -Sv virtualbox-ose | |
− | ... | + | ... |
− | # modules-load | + | # modules-load |
− | ... | + | ... |
− | If for whatever reason the configuration stage of | + | |
+ | 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.}} | ||
− | |||
− | |||
− | |||
You can now execute the '''VirtualBox''' command to run it. | You can now execute the '''VirtualBox''' command to run it. | ||
− | == Running | + | == 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: | ||
− | + | # 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, <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: | ||
− | + | # 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: | ||
− | + | # 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: | ||
− | + | $ VBoxClient --clipboard | |
− | To see a list of all guest features run | + | |
+ | 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
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