VirtualBox guest additions: Difference between revisions

From Alpine Linux
m (Added steps to enable VirtualBox DRM client for X11 to support display auto-resizing.)
No edit summary
Line 1: Line 1:
{{todo|Need to update this article. I think the virtualbox-guest-modules-virt package has been obsoleted by linux-virt on 3.11 and later}}
=How to install VirtualBox guest additions=


=How to install VirtualBox guest additions=
== For Alpine Linux 3.11 and later ==
 
# install {{Cmd|apk add virtualbox-guest-additions}}
To enable X11 display auto-resizing:
{{Cmd|apk add virtualbox-guest-additions-x11
rc-update add virtualbox-drm-client default}}


== For Alpine Linux Version 3.10 ==
== For Alpine Linux 3.10 ==


# enable edge/community package
# install {{Cmd|apk add virtualbox-guest-additions virtualbox-guest-modules-virt}}
# install {{Cmd|apk add virtualbox-guest-additions virtualbox-guest-modules-virt}}
To enable X11 display auto-resizing:
To enable X11 display auto-resizing:

Revision as of 21:20, 14 November 2022

How to install VirtualBox guest additions

For Alpine Linux 3.11 and later

  1. install

    apk add virtualbox-guest-additions

To enable X11 display auto-resizing:

apk add virtualbox-guest-additions-x11 rc-update add virtualbox-drm-client default

For Alpine Linux 3.10

  1. install

    apk add virtualbox-guest-additions virtualbox-guest-modules-virt

To enable X11 display auto-resizing:

apk add virtualbox-guest-additions-x11 rc-update add virtualbox-drm-client default

For older versions

First install virtualbox-additions-grsec:

apk add virtualbox-additions-grsec

The following error may occur:

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:

echo "http://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories

Then update respository indexes from all remote repositories, and install virtualbox-additions-grsec

apk update apk add virtualbox-additions-grsec

Then add vboxpci,vboxdrv, and vboxnetflt to /etc/modules:

echo vboxpci >> /etc/modules echo vboxdrv >> /etc/modules echo vboxnetflt >> /etc/modules

And reboot to put these changes into effect.