Tuesday, June 28, 2011

Installing the Guest Additions CD on Virtual Box

These steps will guide you through the process on installing the addon CD.
First select the Virtual Machine where you want to install the addon and start it up.
Once started login to the guest operating system as the administrator, in my case this is Enterprise Linux and I will be logging in as root.
Once logged in you will notice that you are unable to move the mouse cursor out of the VM without pressing the Right Ctrl key. Installing the add will enable you to move your mouse seamlessly between the guest and host machines.
Once you have "released" the cursor select Devices and then click on Install Guest Additions
Once you do that you will notice an additional icon on the desktop and a file explorer opening up as shown
Now click back into the VM and start a program to access the command line. To do this select from the desktop menu Applications > Accessories and then click on Terminal.

This will start the program, type the following commands to access the CD that was mounted when we selected install guest additions in the previous step.This CD is mounted under the directory media.Type the command as shown in the highlighted area below. Then type ls for listing all the files and directories under that locations. You should see something as listed in the screenshot below.
Now change to the directory shown on the screen, your version might be different from the one shown in the screenshot below.

Now run the command to install the additions as shown below, this will install the necessary packages.

You will notice that one of the packages failed.I have addressed it below
Once the run is completed, restart the VM.

Fixing error encountered during installations of the Guest Additions

To fix the error, I installed the kernel as shown in the error message and also the gcc compiler and other dependencies from the Enterprise Linux CD.

I re-ran the additions CD and everything looked A-OK






No comments:

Post a Comment