Red Hat Bugzilla – Bug 601143
attach-disk need more detailed manual for --type cdrom or floppy
Last modified: 2010-11-11 09:49:59 EST
Description of problem:
againt the manual of "virsh". it should clarify "virsh attach-disk" is not to attach a cdrom or floppy, but just to change the medium of the cdrom or floppy of device on guest.
if you use the "virsh attach-device" like that, it actually will replace a new iso for the guest cdrom. but not attach a cdrom. the same with floppy..
ret = qemudDomainChangeEjectableMedia(driver, vm,
if (ret == 0)
dev->data.disk = NULL;
Version-Release number of selected component (if applicable):
Steps to Reproduce:
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux major release. Product Management has requested further
review of this request by Red Hat Engineering, for potential inclusion in a Red
Hat Enterprise Linux Major release. This request is not yet committed for
See also: https://www.redhat.com/archives/libvir-list/2010-March/msg01133.html
update-device is undocumented in the man page, and change-disk is missing in virsh as a nicer shortcut for what update-device exposes.
libvirt-0_8_1-11_el6 has been built in RHEL-6-candidate with the fix.
Verified PASSED with libvirt-0.8.1-11.el6.
Verified with libvirt-0.8.1-27.el6.x86_64 & qemu-kvm-0.12.1.2-2.113.el6.x86_64.
check attach-disk man page has already udpated:
type can indicate cdrom or floppy as alternative to the disk default, although this use only replaces the media within the existing virtual cdrom or floppy device; consider using update-device for this usage instead.
Red Hat Enterprise Linux 6.0 is now available and should resolve
the problem described in this bug report. This report is therefore being closed
with a resolution of CURRENTRELEASE. You may reopen this bug report if the
solution does not work for you.