'virsh detach-disk' fails to detach a DVD image from a guest OS

Solution Verified - Updated -

Issue

  • Although "virsh attach-disk" can attach a DVD image to a guest OS, "virsh detach-disk" fails to detach the DVD image from the guest OS.
    error: Failed to detach disk
    error: this function is not supported by the connection driver: This type of device cannot bi hot unplugged
    
  • Steps to reproduce are as follows:
    1. Start a guest OS.
    2. Attach a DVD image to the guest OS.
       # virsh attach-disk <guest-name> <image-file> hdc --type cdrom --mode readonly
       <The above command should succeed.>
    3. Detach the DVD image from the guest OS.
       # virsh detach-disk <guest-name> hdc
       <The above command should fail with error messages>.
    

Environment

  • Red Hat Enterprise Linux 6
  • libvirt-client-0.8.1-27.el6.x86_64

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