Sunday, September 26, 2021

Solved: VBoxGuestAdditions.iso (VERR_PDM_MEDIA_LOCKED)Solved:

   When inserting Guest Additions CD Image in a Debian VM you are getting VERR_PDM_MEDIA_LOCKED 

   There are many solutions, like: 
1) Executing 
  sudo apt-get upgrade 
  sudo apt-get install virtualbox-guest-additions-iso
2) Removing and inserting the cd from the VM configuration

and a third one which is the one that worked with me:

a) Start the VM
b) Open a terminal
c) Execute this:
  sudo su
  cd /media
  mkdir cdrom
  mount /dev/cdrom /media/cdrom
  cd cdrom

Hope this helps.