14

I'm trying to develop a website in Python, and have installed VirtualBox on my Ubuntu 13.04 host. The VirtualBox is running an Ubuntu 13.04 Django stack.

I need to be able to edit the files within my VirtualBox from my Host. From what I unerstand, I need to install Guest Additions in order to share my folders from Guest to Host.

When trying to install Guest Additions, after downloading the ISO file, I get the following error :

Picture of the error message.

I've seen a lot of people reporting a similar issue, but have not found a clear fix yet.

Braiam
  • 69,112

6 Answers6

10

The error you get is likely because the Guest Additions CD image is already mounted.

To see all mounted drives open a terminal in the guest to issue mount. This will give you (among others) a line similar to this:

/dev/sr0 on /media/takkat/VBOXADDITIONS_4.2.12_849801 type iso9660 (ro,nosuid,nodev,uid=1000,gid=1000,iocharset=utf8,mode=0400,dmode=0500,uhelper=udisks2)

In the Unity Launcher you will see a CD-ROM icon. To unmount the CD right click on this icon and select "Eject".

enter image description here

We can not unmount the Guest Additions CD from the command line when mounted with the help of then Virtual Box Manager. Please select "Devices -> CD/DVD Devices -> Remove disk from virtual drive" and choose "Force unmount" to remove the CD iso.

To install guest additions we will have to load the CD again from Virtual Box Manager and select the Icon from the Unity Launcher.

See also the following questions which also has a command line method for installing guest additions:

Takkat
  • 144,580
1

I tried this and it worked:

  1. From the terminal (Ctrl+Alt+T) and enter the following commands:

    cd /mnt
    cd /cdrom
    eject
    
  2. From the VirtualBox menu (top left pane) go to "device" and insert guest additions (it should work this time)

  3. Then from the terminal again type:

    sudo sh /media/cdrom/VBoxLinuxAdditions.run
    
amc
  • 7,292
Ian
  • 21
0

For what it's worth, I was unable to install the guest additions until I installed the extension pack from Oracle. After that, right-ctrl+d worked like a charm.

0

I had this problem but at the time I was running ubuntu as a guest (when you start up the system it asks if you want to install ubuntu or run as guest). As soon as I installed ubuntu on the box, the guest additions installed without any problems

0

my workaround in macosx 10.10 host ubuntu 12.04 guest is to copy the virtualbox guest additions iso to a shared folder and just use the terminal in my guest to run (sudo sh /pathto/VboxLinuxAdditions.run)

0

I ran into this problem recently (Sept 2017) trying to install Guest Additions into Oracle VM VirtualBox Manager version 5.1.28, in a newly-installed VM for Ubuntu version 16.04.3. The problem was indeed that the Guest Additions CD image was already mounted. To fix it:

  • In the VM Manager under Settings->Storage, under Controller: Right-click on VBoxGuestAdditions, and select “Remove Attachment." There will be a confirmation box: click “remove.”
  • Click the “+” icon next to “Controller, to add new optical drive.” A dialog box will open.
    Choose “Leave Empty-> Okay”
  • Open the VM and select Devices->Insert Guest Additions. It should install now. Power off the VM (not the VM Manager) and restart the VM. GuestAdditions should now be working.
Dave Rose
  • 751
  • 5
  • 2