How to install the VirtualBox Guest Additions:
1. Get the VBoxGuestAddiitons.iso file from http://www.virtualbox.org/manual/ch04.html
2. Make the VBoxGuestAddiitons.iso available to your “guest” OS: In the Devices menu open “CD/DVD Devices” and select checkbox next to the VBoxGuestAddiitons.iso or if the iso is not there use the Add button to locate and add the iso file to your list of available images. The effect of this will be that your guest OS will now see the VBoxGuestAddiitons CD image just as if it were a normal CD inserted into the machine’s CD/DVD drive.
3. On the Guest Additions CD run the proper install file for your operating system. This should install the Guest Additions to your system.
…if the above results in errors..
After running the installer you may encounter errors, e.g:
Verifying archive integrity... All good.
Uncompressing VirtualBox 3.2.12 Guest Additions for Linux........
VirtualBox Guest Additions installer
Removing installed version 3.2.12 of VirtualBox Guest Additions...
Uninstalling old VirtualBox DKMS kernel modules [ OK ]
Building the VirtualBox Guest Additions kernel modules [FAILED]
Your system does not seem to be set up to build kernel modules.
Look at /var/log/vboxadd-install.log to find out what went wrong. Once you have corrected it, you can run
/etc/init.d/vboxadd setup
to build them.
Doing non-kernel setup of the Guest Additions [ OK ]
Installing the Window System drivers
Installing X.Org Server 1.9 modules [ OK ]
Setting up the Window System to use the Guest Additions [ OK ]
You may need to restart the hal service and the Window System (or just restart the guest system) to enable the Guest Additions.
This means you are missing some of the VBox Guest Additions dependencies. These may be:
kernel-headers
kernel-devel
dkms
gcc
Use your package manager (e.g. sudo yum install gcc) to correct the situation and run the VB GA installer again. Once the above are installed the VBox Guest Additions installation should proceed without errors. Restart the installer procedure again:
# cd /media/VBOXADDITIONS
# ./VBoxLinuxAdditions-x86.run
You may get the feeling that it’s hung up at this step:
Building the VirtualBox Guest Additions kernel modules
but just give it a few minutes and it will complete (it’s just a lengthy procedure). Your screen should like like the example above, without any [FAILED] error messages (all should be [OK] now).
Why do I need Guest Additions?
Along with features like seamless mouse integration (the guest OS will detect mouse clicks inside its area) and shared Clipboard, one of the most useful features that the Guest Additions provide is Shared Folders.
The Shared Folder is a folder located on your real machine, which is also visible in your guest machine/OS and thus can be used to share files between the two. You can read more about this feature here.
One Response to Installing VirtualBox Guest Additions
Leave a Reply Cancel reply
-
Categories
- Android Development
- Bash
- C programming
- dpkg/apt-get
- drupal
- Emacs
- Git
- Java
- Linux administration
- Linux device drivers
- Linux Gaming
- Linux kernel
- Linux Networking
- Linux on Windows
- Linux printing
- Linux sound and ALSA
- Package Managers
- Programming
- RPM
- Shell and environment
- Tips and tricks
- Uncategorized
- VirtualBox
- Virtualization
- web development
- wine
- WMaker
- Wordpress Tips
- X Window System
- XFCE
-
Articles
- August 2020
- August 2019
- May 2019
- July 2017
- February 2017
- January 2017
- November 2016
- October 2016
- September 2016
- August 2016
- July 2016
- June 2016
- April 2016
- March 2016
- December 2015
- November 2015
- September 2015
- June 2015
- May 2015
- April 2015
- March 2015
- February 2015
- January 2015
- December 2014
- October 2014
- February 2014
- January 2014
- November 2013
- October 2013
- June 2013
- April 2013
- March 2013
- February 2013
- January 2013
- December 2012
- October 2012
- August 2012
- July 2012
- June 2012
- May 2012
- April 2012
- March 2012
- February 2012
- September 2011
- August 2011
- June 2011
- May 2011
- April 2011
- March 2011
- February 2011
-
Meta
Cloud
audio bash boot compile C programming cups drupal emacs etc Fedora git grep how to httpd init kernel libc linux linux partition localtime login make mount mp3 mysql networking oracle package managers password phpMyAdmin programming rpm shell sql vbox version control system virtual box vm web server wordpress www xargs xfce xwin yum
This page has a more complete list of dependencies which you need in order to install Guest Additions: forum.virtualbox.org