'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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.