Use it for installation media, rescue media, guest-tools media or troubleshooting optical device versus media attachment.
CD/DVD
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.
1. Virtual CD/DVD mounts ISO images.
2. Eject after install — mounted ISOs block migration if not shared.
3. Boot order includes CD when installing.
4. Keep ISOs on shared storage.
5. Check for stale mounts.
ISO → virtual drive → guest
Validate the ISO/source hash or boot order depending on the failing boundary.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
It does not show ISO authenticity or that a different boot path will work.
Next check: Validate the ISO/source hash or boot order depending on the failing step.
- ISOs left connected after installation, blocking vMotion/live migration when the ISO is on local storage.
- Booting from the CD on every restart because boot order was not changed.
- Connecting host physical drives to VMs, exposing host media.
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
virtual CD/DVD device → media attachment → guest optical driver/filesystem → optional firmware boot → workload/install
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- 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.
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)
ReferenceWhat it is1 section · depth on demand
Managing virtual drives
An ISO mounted from a host-local datastore blocks vMotion/live migration and DRS. Disconnect media after installation (Set-CDDrive -NoMedia, qm set 120 --ide2 none,media=cdrom, Set-VMDvdDrive -Path $null). UEFI VMs usually use a SATA CD-ROM.
ReferenceImportant terms & boundaries2 sections · depth on demand
What this shows and what it does not
Guest seeing the drive shows device presentation, not that the intended media is mounted/readable or selected for boot.
ISO content/source integrity is handled in the ISO Topic.
In depth
A virtual CD/DVD drive maps an ISO file, a host drive or nothing. Leave it disconnected after installation: a VM with an ISO attached from local host storage cannot live-migrate to hosts without that file, and backup jobs may include it.
qm set 120 --ide2 none,media=cdrom
Set-VMDvdDrive -VMName vm1 -Path $null
virsh change-media vm1 sda --eject
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in VM Hardware → Virtual Devices → CD/DVD. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://libvirt.org/docs.html · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
VM Hardware → Virtual Devices → CD/DVD reference map
Fast VM-hardware boundaries for VM Hardware → Virtual Devices → CD/DVD.
| 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 |