Changes

Jump to: navigation, search

Understanding and Installing VirtualBox Guest Additions

2,763 bytes added, 18:38, 16 March 2009
no edit summary
Note that the above commands extract the driver files into C:\VBoxDrivers\x86 and C:\VBoxDrivers\amd64 respectively. Alternate locations may be specified by modifying the ''/D='' directive accordingly.
 
== Installing VirtualBox Guest Addition on Linux ==
 
The VirtualBox Guest Additions for Linux guests require that the packages necessary to facilitate the building of Kernel modules be installed prior to installing the guest additions. This include the GNU C Compiler and kernel development sources. On Red Hat, CentOS and Fedora systems, this can be achieved by executing the following command as super user:
 
<pre>
su
yum install gcc kernel-devel
</pre>
 
It is also recommended that the Dynamic Kernel Module Support (DKMS) be installed on guest operating systems where it is supported. This can be achieved on Fedora as follows:
 
<pre>
yum install dkms
</pre>
 
and on Ubuntu by running the following command:
 
<pre>
sudo apt-get install dkms
</pre>
As with installation on Windows guests, the VirtualBox Guest Additions CD-ROM may be mounted by selecting the ''Devices->Install Guest Additions....'' menu option from the virtual machine window toolbar. The majority of modern Linux desktop environments will provide the option to automatically run the installer contained on the CD-ROM:
 
 
[[Image:virtualbox_guest_additions_linux_autorun.jpg|Auto running The VirtualBox Guest Additions Linux Installer]]
 
 
Alternatively, the installation script for the appropriate guest virtual machine architecture may be run manually by changing directory to the CD-ROM mount point and executing one of the following commands, either as super user or prefixing the command with the ''sudo'':
 
* For 32-bit Linux guests
 
<pre>
sh VBoxLinuxAdditions-x86.run
</pre>
 
* For 64-bit Linux guests
 
<pre>
sh VBoxLinuxAdditions-amd64.run
</pre>
 
 
After the installation is complete, the system will need to be rebooted before the guest additions will become operational.
 
== Selecting Installation of Linux Guest Additions ==
 
The default behavior of the Linux VirtualBox guest additions is to install all the components. Select components may be installed by running the installation script (either VBoxLinuxAdditions-amd64.run or sh VBoxLinuxAdditions-x86.run) with one or more of a number of command line options, for example:
 
sh VBoxLinuxAdditions-x86.run ''<option>''
 
where ''<options>'' represents one or more of the following:
 
* '''all''' - Installs all guest addition components (the default)
 
* '''x11''' - Install the guest drivers for for the X11 windowing system
 
* '''kernel-module''' - Installs the kernel module core components
 
* '''vfs-module''' - Installs the components to facilitate shared folders
 
* '''timesync''' - Installs the component responsible for synchronizing host and guest system times.
 
* '''Control''' - Installs the ''VBoxControl'' commandline management tool.
 
* '''help''' - Displays summary information of the above command line options.
1,798
edits

Navigation menu