Pcornel
Browse topics
Options
Recent
Favorites
Virtualization · Technical reference

CD/DVD

Direct 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.

When to use this

Use it for installation media, rescue media, guest-tools media or troubleshooting optical device versus media attachment.

First 30 seconds

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.

Operational verification

ISO → virtual drive → guest

Evidence · next step

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
Common mistakes
Common traps

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.

Common mistakes
  • 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.
Platform / version applicability
virtualization-hardware
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

Platformvirtualization-hardware
Scope / prerequisiteUse it for installation media, rescue media, guest-tools media or troubleshooting optical device versus media attachmen…
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Key points
  • 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.
Key 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)
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
Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docvirtualization-hardware current

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%
Terminology layer

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.

Aliases that resolve here
virtual cd dvdvm optical drivevirtual dvd drive
Embedded reference data

Quick lookup tables

VM Hardware → Virtual Devices → CD/DVD reference map

Fast VM-hardware boundaries for VM Hardware → Virtual Devices → CD/DVD.

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

Confirm action

Continue?