Virtualization · VM Hardware › Virtual Devices
CD/DVD
Cheat sheet · https://pcornel.dk/topic.php?topic=3470
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
| Boundary | Meaning | Evidence limit |
|---|---|---|
| Drive | Virtual optical device | Can exist empty |
| Media | ISO/physical source | Separate attachment |
| Guest read | Media filesystem accessible | Guest proof |
| Boot | Firmware selects device | Separate path |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3470