VirtualBox guest additions: Difference between revisions

From Alpine Linux
No edit summary
m (Re-add the page category.)
 
(3 intermediate revisions by 3 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.


== For Alpine Linux 3.11 and later ==
== Installation ==


# install {{Cmd|apk add virtualbox-guest-additions}}
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.
To enable X11 display auto-resizing:
{{Cmd|apk add virtualbox-guest-additions-x11
rc-update add virtualbox-drm-client default}}


== For Alpine Linux 3.10 ==
== Enabling VirtualBox Guest Additions ==


# install {{Cmd|apk add virtualbox-guest-additions virtualbox-guest-modules-virt}}
Start and enable <code>virtualbox-guest-additions</code> service:
To enable X11 display auto-resizing:
{{cmd|# rc-service virtualbox-guest-additions start
{{Cmd|apk add virtualbox-guest-additions-x11
&#35; rc-update add virtualbox-guest-additions boot}}
rc-update add virtualbox-drm-client default}}


== For older versions ==
If you are using graphical environment, also start and enable <code>virtualbox-drm-client</code> service:


First install [https://pkgs.alpinelinux.org/package/testing/x86/virtualbox-additions-grsec virtualbox-additions-grsec]:
{{cmd|# rc-service virtualbox-drm-client start
 
&#35; rc-update add virtualbox-drm-client default}}
{{Cmd|apk add virtualbox-additions-grsec}}
 
The following error may occur:
 
{{Cmd|ERROR: unsatisfiable constraints:
  virtualbox-additions-grsec (missing):
      required by: world[virtualbox-additions-grsec]}}
 
If the error occurs, then you need to enable the alpine testing repo:
 
{{Cmd|echo "http://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories}}
 
Then update respository indexes from all remote repositories, and install <code>virtualbox-additions-grsec</code>
 
{{Cmd|apk update
apk add virtualbox-additions-grsec}}
 
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.


[[Category:Virtualization]]
[[Category:Virtualization]]

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