VirtualBox – unable to mount Guest Additions ISO file in virtual machine

1.0 Error

For installing the VirtualBox Guest Additions, the relevant ISO file needs to be mounted. On clicking Devices --> Insert Guest Additions CD image, the following error is displayed.
Unable to insert the virtual optical disk /usr/share/virtualbox/VBoxGuestAdditions.iso into the machine <virtual-machine-name>.
Could not mount the media/drive '/usr/share/virtualbox/VBoxGuestAdditions.iso' (VERR_PDM_MEDIA_LOCKED).

2.0 Solution

The solution to the problem of accessing the VBoxGuestAdditions is to copy it from the host operating system to the virtual machine (VM). After copying, it can be mounted on the VM using the mount command. And, then, the script for installing the Guest Additions can be run. For example,

$ cd /tmp
$ # Replace with the IP address of the host operating system network interface
$ rsync -avz .
$ sudo mkdir /media/VBoxGuestAdditions
$ sudo mount -o loop /tmp/VBoxGuestAdditions.iso /media/VBoxGuestAdditions
$ cd /media/VBoxGuestAdditions
$ sudo ./
0 0 votes
Article Rating
Notify of
Inline Feedbacks
View all comments