VirtualBox guest additions: Difference between revisions

From Alpine Linux
m (Added steps to enable VirtualBox DRM client for X11 to support display auto-resizing.)
m (Re-add the page category.)
 
(4 intermediate revisions by 4 users not shown)
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}}
VirtualBox Guest Additions provide kernel modules for VirtualBox virtualized hardware and userspace daemons for features like shared clipboard and automatic resolution setting.


=How to install VirtualBox guest additions=
== Installation ==


== For Alpine Linux Version 3.10 ==
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.


# enable edge/community package
== Enabling VirtualBox Guest Additions ==
# install {{Cmd|apk add virtualbox-guest-additions virtualbox-guest-modules-virt}}
To enable X11 display auto-resizing:
{{Cmd|apk add virtualbox-guest-additions-x11
rc-update add virtualbox-drm-client default}}


== For older versions ==
Start and enable <code>virtualbox-guest-additions</code> service:
{{cmd|# rc-service virtualbox-guest-additions start
&#35; rc-update add virtualbox-guest-additions boot}}


First install [https://pkgs.alpinelinux.org/package/testing/x86/virtualbox-additions-grsec virtualbox-additions-grsec]:  
If you are using graphical environment, also start and enable <code>virtualbox-drm-client</code> service:


{{Cmd|apk add virtualbox-additions-grsec}}
{{cmd|# rc-service virtualbox-drm-client start
 
&#35; rc-update add virtualbox-drm-client default}}
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