I am trying to run the command
sudo mount -t vboxsf SharedUbuntuWindows SharedUbuntuWindows
but I get the error
unknown filesystem type 'vboxsf'
on my guest Ubuntu machine. I am following these instructions but I cannot find ‘Install Guest Additions’ under ‘Devices’. Instead, I see ‘Insert Guest Additions CD image’. Am I even on the proper path to solve the issue?
This is what I see when I select ‘Insert Guest Additions CD image…’. Pressing ‘Force Unmount’ only makes the pop-up dialog disappear, but I still am unable to run the command
sudo mount -t vboxsf SharedUbuntuWindows SharedUbuntuWindows.
Insert Guest Additions CD Image is the same thing as
Install Guest Additions in a different version of Virtual Box. That is the correct menu item. When you choose it, it will be as if you inserted an installation CD to your virtual machine. Run the appropriate setup program from the virtual CD drive.
Guest additions should include the software you need to use the vboxfs filesystem type.
EDIT: Based on your updated question, the real cause error you are seeing is
VERR_PDM_MEDIA_LOCKED. Googling for that produces the answer in the first result: http://maheshhika.wordpress.com/2012/09/28/virtual-box-verr_pdm_media_locked/
Essentially, you need to unmount your virtual cd drive before inserting the guest additions cd image. The linked article provides instructions for doing this. Hitting the ‘Force Unmount’ button would be another way to unmount your drive, and after doing that the insert guest additions cd menu option should work the second time you use it.
Keep in mind that you not only have to insert the virtual cd, but actually run the installer before the
vboxfs filesystem type will work.
All the answer say to go via GUI and “Leave emtpy” the CD drive, but that wasn’t working for me: still
In my case I updated my macOS, I was forced to upgrade Virtualbox to 5.2 (I installed without uninstalling first). And now I get reported (by vbguest plugin ) that I need an updated version of GuestAdditions.
The plugin wasn’t able to update it. Every reload was always finding the old one (5.1; installed on VirtualBox 5.1).
I tried all the solution on the net and couldn’t make it work via GUI (like all the other answers).
VirtualBox was NOT able to really mount the
GuestAdditions.iso image automatically via the “Device -> Insert GuestAdditions CD Image…”.
So I did
sudo su cd /media mkdir cdrom mount /dev/cdrom /media/cdrom
Finally I got it mounted! Then just go into the mounted dir (
cd cdrom) and exec the installer with
sh VBoxLinuxAdditions.run (remember you are root).
And I finally got it mounted without the annoying
VERR_PDM_MEDIA_LOCKED error! ??
just spent some time trying to fix it. This question is old, but maybe my answer serves someone.
A very easy way that I discovered to fix VERR_PDM_MEDIA_LOCKED for guest additions with a ubuntu guest and windows 10 host is:
- Shut down (not save state) your virtualbox
- Right-click on your machine in the virtualbox manager -> settings
- Click on storage
- Right-click on the cd drive and “remove attachment”
- After removing, click on the little CD symbol next to “Controller: IDE”
- Choose “leave empty”
Now you restart your machine and click “devices”->”Insert guest additions” and it works
The solution below worked for me:
Go to “Devices” menu -> “CD/DVD Devices” -> “Choose a virtual CD/DVD disk file…” -> select “VBoxGuestAdditions.iso” from the Oracle/VirtualBox installation directory.
(*) Clicking on “Force Unmount” had no effect, in my environment.
Is there. From console type:
> sudo mount /dev/cdrom /media/cdrom
Well I was facing the same problem and the solution was simple that open the virtual machine OS and the after opening it open its display setting and the change the resolution accordingly this will fill the screen in background completely.
Prerequisite: Before starting the virtual box instance, you have to go to
Settings > Storage and add the guest additions ISO as an optical drive.
The problem happens when we select
Devices > Insert guest additions CD image. But instead, if you go to
Devices > Optical Drives, you’ll see the guest additions ISO. Simply select it and it’ll automatically prompt you and run the installation.