How To Fix The Error Unable To Insert The Virtual Optical Disk VBoxGuestAdditions.iso Into The Machine

After installing the virtual machine in VirtualBox, I want to change the virtual machine’s screen resolution in the virtual machine. So I click the VirtualBox Manager or Virtual Machine’s Devices —> Insert Guest Additions CD image… menu item.

But it shows the error message like Unable to insert the virtual optical disk C:\Program Files\Oracle\VirtualBox\VBoxGuestAdditions.iso into the machine macOS. This article will tell you how to fix it.

1. The Detailed Error Messages.

  1. My virtual machine is macOS, so I get the below error message. If your virtual machine is Linux you will get the errors similar.
    Unable to insert the virtual optical disk C:\Program Files\Oracle\VirtualBox\VBoxGuestAdditions.iso into the machine macOS.
    
    Could not mount the media/drive 'C:\Program Files\Oracle\VirtualBox\VBoxGuestAdditions.iso' (VERR_PDM_MEDIA_LOCKED).
    
    Result Code: E_FAIL (0x80004005)
    Component: ConsoleWrap
    Interface: IConsole {872da645-4a9b-1727-bee2-5585105b9eed}
    Callee: IMachine {85632c68-b5bb-4316-a900-5eb28d3413df}

2. The Steps To Fix The Error Unable To Insert The Virtual Optical Disk VBoxGuestAdditions.iso Into The Machine.

  1. Power off the macOS virtual machine.
  2. Right-click the macOS virtual machine in the VirtualBox manager left panel.
  3. Then click the Settings… menu item in the popup menu list.
  4. Click the Storage item on the left side.
  5. Then click the Adds optical drive. icon button on the right side.
  6. In the popup macOS – Optical Disk Selector window, select the VBoxGuestAdditions.iso from the Attached list.
  7. Click the OK button to save the selection.
  8. Now start the macOS virtual machine, you will find the VBox_GAs optical disk on the desk.
  9. Double click it to open it, and then double click the VBoxDarwinAdditions.pkg file to run it.
  10. If the installation failed at the end, you may need to disable the macOS System Integrity Protection feature ( How To Turn On/Off SIP (System Integrity Protection) On Mac OS ).
  11. And then run the below commands to enable the writing permission to the folder /System/Library/Extensions/.
    sudo mount -uw /
    
    sudo chown :admin /System/Library/Extensions/
    
    sudo chmod 775 /System/Library/Extensions/
  12. And now you can install the VBox guest additions in the macOS virtual machine.
0 0 votes
Article Rating
Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Inline Feedbacks
View all comments
Clicky
0
Would love your thoughts, please comment.x
()
x