Pcornel
Virtualization · VM Hardware › Virtual Devices

CD/DVD

Cheat sheet · https://pcornel.dk/topic.php?topic=3470

Back to the Topic

Answer

The virtual optical drive is the device; the mounted media is a separate object/state. A guest can enumerate the drive even when no media is inserted.

Remember

  • Drive present and media mounted are separate states.
  • An ISO can be attached to a virtual optical drive without any physical optical hardware.
  • Booting from optical media also depends on firmware/boot order.
  • Leaving install media attached can affect boot behavior.

First checks

  • virsh change-media <vm> sda --eject — eject CD (libvirt)
  • qm set <vmid> --ide2 none,media=cdrom — empty CD drive (Proxmox)
  • Set-VMDvdDrive -VMName <vm> -Path $null — eject (Hyper-V)

Commands

qm set 120 --ide2 none,media=cdrom

Verify in this order

ISO → virtual drive → guest

Where it usually breaks

First mismatch in host capability/IOMMU/NUMA → hypervisor allocation/mapping → virtual hardware model → guest driver/enumeration → workload use; preserve identity/native error/pre-state before mutation.

VM Hardware → Virtual Devices → CD/DVD reference map

BoundaryMeaningEvidence limit
DriveVirtual optical deviceCan exist empty
MediaISO/physical sourceSeparate attachment
Guest readMedia filesystem accessibleGuest proof
BootFirmware selects deviceSeparate path

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3470

Confirmation

Confirm action

Continue?