I have inserted the CD and navigated to it in the terminal.
But when I run
./autorun.sh it doesn't give any useful output, and it doesn't appear to have installed.
elementary OS Stack Exchange is a question and answer site for developers and users of elementary OS and applications. It only takes a minute to sign up.Sign up to join this community
You need to run
VBoxLinuxAdditions.run as root, not
Once you've inserted the Guest Additions ISO, open Files and open the disc from the sidebar. Then, right-click in the background of the window where
autorun.sh is and select
Open in > Terminal. Now you can run the following command to install Guest Additions:
For reference, here is example output:
Verifying archive integrity... All good. Uncompressing VirtualBox 4.3.28 Guest Additions for Linux............ VirtualBox Guest Additions installer Copying additional installer modules ... Installing additional modules ... Removing existing VirtualBox DKMS kernel modules ...done. Removing existing VirtualBox non-DKMS kernel modules ...done. Building the VirtualBox Guest Additions kernel modules ...done. Doing non-kernel setup of the Guest Additions ...done. Starting the VirtualBox Guest Additions ...done. Installing the Window System drivers Installing X.Org Server 1.16 modules ...done. Setting up the Window System to use the Guest Additions ...done. You may need to restart the the Window System (or just restart the guest system) to enable the Guest Additions. Installing graphics libraries and desktop services components ...done.
It should also be possible to install the guest utilities from the repositories. You can either install via "Software Center" or via shell. The package is named
To install via shell open the shell with Super + T and enter
sudo apt-get update to update the repository information and
sudo apt-get install virtualbox-guest-x11 to install the guest utilities.
There is also a package named
virtualbox-guest-utils for systems without desktop environment. But elementary is usually installed with its desktop environment.
Tim has provided the correct answer, but you may find that many things go wrong. I did a fresh install of elementary OS freya this morning and would like to share the errors I came across and how to solve them.
Problems Inserting the Guest Additions iso & Mounting It
Problem Description: After installing elementary in Virtualbox, you may find the screen resolution is tiny. This is a common case across guest OS's in Virtualbox in my experience. To solve this problem, you need to install the Virtualbox Guest Additions in the guest OS (elementary). However, this can be a task in itself, so I've dedicated this section purely to inserting the Guest Additions and mounting it.
Help > About Virtualbox...
Mount the iso
Applicationsin the upper left and search for "Terminal"
cd ~/Downloads/ ls
You should see VBoxGuestAdditions_X.X.XX.iso. If not, find out where your download went.
sudo mkdir /mnt/VBGA/ sudo mount VBoxGuestAdditions_X.X.XX.iso /mnt/VBGA/ cd /mnt/VBGA/ sudo ./VBoxLinuxAdditions.run
Now we have reached where Tim had us before. However, sometimes the installation doesn't simply go smoothly. I encountered an error during the install, and this is how I fixed it.
Troubleshooting Guest Additions Install
The first step after installing a new linux system should always be to update. Run the following commands:
sudo apt-get update sudo apt-get upgrade
Now that we're updated, you may need to install the following if you're getting an error regarding modules or missing headers.
sudo apt-get install module-assistant sudo m-a prepare
After running that last command, I was able to do
$ sudo ./VBoxLinuxAdditions.run and successfully complete the install. The shared folders did not install correctly, and that is another issue that I cannot help you with at this time. However, the screen resolution does get fixed and you should be able to use elementary at full resolution. :)