41

I keep getting this error dialog with an Unable to mount error E_FAIL ( 0x80004005 ) when I try to mount Guest Additions:

enter image description here

I tried the Force Unmount, but that just closes the dialog with no action taken. If I then reattempt to mount Guest Additions, I just get this same dialog box again. Any help would be greatly appreciated!

10 Answers10

37

Finally, I figured it out. Here is how you get arount this. First, load Disk Utility and manually eject the disk in the CDROM, by clicking on the Eject button, after selecting the CDROM device. Then try to remount Guest Additions using the key combination Host + D and voila, Guest Additions should mount successfully.

28

I came across this today and it seems it could not be fixed via GUI operations. So I did it via command line. It worked like a charm!

  1. Devices -> Install Guest Additions...(it's like insert a cd to cdrom drive)
  2. Open a terminal to login the guest machine
  3. Type below

    sudo mkdir --p /media/cdrom
    sudo mount -t auto /dev/cdrom /media/cdrom/
    cd /media/cdrom/
    sudo sh VBoxLinuxAdditions.run
    
  4. You now can do full screen, shared folder, clipboard sharing, etc

Ace
  • 391
11

I could not get the autorun to work, installed manually by doing:

cd /media/VBOXADDITIONS_4.2.4_81684/
sudo sh VBoxLinuxAdditions.run
4

Unmounting the volume on devices -> CD -> Remove disk from virutal drive

This will show the "Remove disk from Virtual drive" option as disabled on the same page once you clicked.

Then Press Host (Keyboard:Right Ctrl) + D i.e Host+D

This started working installing automatically on my Ubuntu screen.

2

I had to add one more step.

  1. Unmount Volume
  2. Eject
  3. Rerun Install Guest Additions
jokerdino
  • 41,732
1

I ran into this error under this scenario.

  1. Turned on Fedora 18
  2. Opened Terminal, Logged in as root
  3. Attempted to install Guest Additions. It failed with a package missing error
  4. Installed the package and rebooted the system
  5. Logged in as guest user and attempted to run Guest Addition, as I was thinking logging in root is not necessary

No matter how many tries I did, I kept on running into VERR_PEM_MEDIA_LOCKED error.

Trying to install by logging into root made this error go away.

So, it seems the OS somehow remembers the user you tried to run the Guest Additions first time, and in successive runs, if you are not logged as that user, it complains.

Alaa Ali
  • 32,213
Kumar
  • 11
  • 1
1

For linux host it can be done as follows. Open the os in virtualbox whose resolution you want to change and follow the following steps.

  1. sudo gedit /etc/fstab
  2. enter root password
  3. Change this line

    /dev/sr0 /media/cdrom0 udf,iso9660 user,noauto 0 0

                                  **to**
    

    /dev/sr0 /media/cdrom0 udf,iso9660 user,exec 0 0

    save it and close it.

  4. Press ctrl+D
  5. Guest additions will install now.
  6. Reboot . press ctrl+f.

precaution

In step 1 , you can use any text editor instead of gedit , which may be present in your distro.

Source/Credit

https://forums.virtualbox.org/viewtopic.php?f=3&t=58799

kashish
  • 1,342
0

I got this dialog when tried to "insert" already mounted guest additions disk, that' s why (but effectively it was already 'inserted' so it was possible to follow the installation instruction despite of error message)

0

Here is what I followed and it worked. Nothing else. Mine is Ubuntu 14.04 Trusty...

1) Once in Ubuntu, Go to the files folder.

2) On the left side, you will see some options among which there will be "My Computer" and above it "The virtual drive (Named as your ISO file)"

3) Right click on it and select eject.

4) Go back to the "VIRTUALBOX" and go to devices option and select Install Guest Addition CD Image.

5) Hopefully, you wont get the same error.

6) Follow on accordingly. Select "Run". Verify your Password.

7) Let the terminal run and once asked, press enter.

8) Reboot your Virtualbox and this time you will notice the full resolution version.

0

The above solution only partly worked for me. The .iso doesn't show as mounted unless the disk is removed using the Virtualbox Manager (Machine > Settings > Storage). Once properly mounted (Devices > Insert Guest Additions CD Image...), I needed to copy the autorun utility:

cp /media/cdrom/VBoxLinuxAdditions.run ~/Desktop

Then make it executable:

chmod +x ~/Desktop/VBoxLinuxAdditions.run

And finally:

sh ~/Desktop/VBoxLinuxAdditions.run

Not sure exactly why other methods didn't work for me, but this is how I was able to install it successfully.