How to eject the CD of a running VM from the command line

Solution Unverified - Updated -


  • In a RHV environment, a VM is running with a CDROM connected, but the ISO image no longer exists. This causes that the live migrations fail.
  • The administration portal doesn't show any CD connected, so we cannot remove it using the GUI.


  • Red Hat Virtualization (RHV) 4.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content