Arch Linux VirtualBox Guest

From ArchWiki
Revision as of 08:51, 15 February 2011 by Psykar (Talk | contribs) (Forked from VirtualBox to match setup of VMWare)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Arch Linux guests

To install the Virtualbox Linux additions on your Arch Linux guest, you will need to do the following:

  1. mount the VBoxGuestAdditions.iso, installed as part of the original virtualbox install, to a mount point within your new Arch Linux virtual machine (VM); and
  2. run the VBoxLinuxAdditions.run (or autorun.sh) script from the VBoxGuestAdditions.iso while in the VM.

The file locations and script names are slightly different between the GPL and PUEL versions of Virtualbox (See below). For both versions, the install of VBoxLinuxAdditions will build and install the kernel modules, install the Xorg drivers and create init scripts. It will most probably print out errors about init scripts and run levels, which can (in most cases) be ignored. Among the files created, Template:Filename will load the Guest Additions on demand.

virtualbox - GPL Version

Install the required package and kernel headers:

# pacman -S virtualbox-additions kernel26-headers

Now, mount the installed ISO containing the additions:

# modprobe loop
# mount /usr/lib/virtualbox/additions/VBoxGuestAdditions.iso /mnt -o loop

Run the installer:

# sh /mnt/VBoxLinuxAdditions.run

Add it to the Template:Codeline array to load on boot:

DAEMONS=(... rc.vboxadd)
virtualbox-ext-oracle

Install the kernel headers (the VBoxGuestAdditions.iso is already installed):

# pacman -S kernel26-headers

Now, mount the installed ISO containing the additions:

# modprobe loop
# mount /opt/VirtualBox/additions/VBoxGuestAdditions.iso /mnt -o loop

Run the installer script which tests the proper architecture and installs the additions:

# sh /mnt/autorun.sh
Note: rc.vboxadd is automatically run from /etc/rc.local