Could not insert VBoxGuestAdditions.iso, machine has no optical drives

Discussions related to using VirtualBox on Windows hosts.
Post Reply
GraceYu
Posts: 8
Joined: 12. Jan 2020, 03:18

Could not insert VBoxGuestAdditions.iso, machine has no optical drives

Post by GraceYu »

Hi,

From VM, I select Device->Insert Guest Additions CD Image.
Error: Could not insert the c:\program files\oracle\virtualbox\VBoxGuestAdditions.iso disk image file, machine has no optical drives. Please add drive using storage page of virtual machine setting windows.

Please guide on how to create optical drives.

Thanks.
Last edited by GraceYu on 13. Jan 2020, 07:01, edited 1 time in total.
BillG
Volunteer
Posts: 5105
Joined: 19. Sep 2009, 04:44
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows 10,7 and earlier
Location: Sydney, Australia

Re: Could not insert VBoxGuestAdditions.iso, machine has no optical drives

Post by BillG »

How did you manage to create a vm without one?

Shut down the vm. From the VirtualBox Manager window, select your vm then select Settings. In Settings, select Storage. Beside the controller entry you will see two disk icons with green Plus signs on them. The left one allows yo to add an optical drive, the other is for adding a hard drive.
Optical.PNG
Bill
GraceYu
Posts: 8
Joined: 12. Jan 2020, 03:18

Re: Could not insert VBoxGuestAdditions.iso, machine has no optical drives

Post by GraceYu »

Hi,

I shutdown the VM, at storage I added VBoxGuestAdditions.iso as Optical drive IDE secondary master.
I start the VM, at Devices->Optical drives VBoxGuestAdditions.iso is selected.
At Devices->Insert Guest Additions CD Image, now I have error Unable to insert virtual optical disk c:\program files\oracle\virtualbox VBoxGuestAdditions.iso .
Could not mount the media/drive 'C:\Program Files\Oracle\VirtualBox\VBoxGuestAdditions.iso' (VERR_PDM_MEDIA_LOCKED).

Kindly assist.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Could not insert VBoxGuestAdditions.iso, machine has no optical drives

Post by mpack »

VERR_PDM_MEDIA_LOCKED means what it says: can't insert new CD because OS has locked the current CD in the drive.

p.s. You can't add an ISO as a drive. The ISO represents removable media. You add the drive to the VM recipe, then you can insert and eject media from the drive. It's important to think about these things correctly.
Post Reply