VirtualBox guest additions: Difference between revisions

From Alpine Linux
m (removed stray quotation mark)
m (Re-add the page category.)
 
(9 intermediate revisions by 8 users not shown)
Line 1: Line 1:
=How to install VirtualBox guest additions=
VirtualBox Guest Additions provide kernel modules for VirtualBox virtualized hardware and userspace daemons for features like shared clipboard and automatic resolution setting.


First install [https://pkgs.alpinelinux.org/package/testing/x86/virtualbox-additions-grsec virtualbox-additions-grsec]:
== Installation ==


{{Cmd|apk add virtualbox-additions-grsec}}
Install {{Pkg|virtualbox-guest-additions}}. Additionally, install {{Pkg|virtualbox-guest-additions-x11}} if you are going to use graphical environment (including wayland) in your Alpine guest.


The following error may occur:
== Enabling VirtualBox Guest Additions ==


{{Cmd|ERROR: unsatisfiable constraints:
Start and enable <code>virtualbox-guest-additions</code> service:
  virtualbox-additions-grsec (missing):
{{cmd|# rc-service virtualbox-guest-additions start
      required by: world[virtualbox-additions-grsec]}}
&#35; rc-update add virtualbox-guest-additions boot}}


If the error occurs, then you need to enable the alpine testing repo:
If you are using graphical environment, also start and enable <code>virtualbox-drm-client</code> service:


{{Cmd|echo "http://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories}}
{{cmd|# rc-service virtualbox-drm-client start
&#35; rc-update add virtualbox-drm-client default}}


Then update respository indexes from all remote repositories:
[[Category:Virtualization]]
 
{{Cmd|apk update}}
 
Then add <code>vboxpci</code>,<code>vboxdrv</code>, and <code>vboxnetflt</code> to <code>/etc/modules</code>:
 
{{Cmd|echo vboxpci >> /etc/modules
echo vboxdrv >> /etc/modules
echo vboxnetflt >> /etc/modules}}
 
And reboot to put these changes into effect.

Latest revision as of 11:02, 6 November 2023

VirtualBox Guest Additions provide kernel modules for VirtualBox virtualized hardware and userspace daemons for features like shared clipboard and automatic resolution setting.

Installation

Install virtualbox-guest-additions. Additionally, install virtualbox-guest-additions-x11 if you are going to use graphical environment (including wayland) in your Alpine guest.

Enabling VirtualBox Guest Additions

Start and enable virtualbox-guest-additions service:

# rc-service virtualbox-guest-additions start # rc-update add virtualbox-guest-additions boot

If you are using graphical environment, also start and enable virtualbox-drm-client service:

# rc-service virtualbox-drm-client start # rc-update add virtualbox-drm-client default