Red Hat Bugzilla – Bug 822371
RFE:Hide the Readonly option only for IDE disk.
Last modified: 2014-07-06 15:31:10 EDT
Description of problem:
Customer can check on the Readonly option for IDE disk through virt-manager, but qemu-kvm do not support it.
Version-Release number of selected component (if applicable):
# uname -a
Linux daisy.redhat.com 2.6.32-270.el6.x86_64 #1 SMP Tue May 8 21:44:43 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux
Steps to Reproduce:
1.Prepare one normal guest.
2.Add the second IDE disk on the guest through virt-manager.
#virsh dumpxml test
<disk type='file' device='disk'>
<driver name='qemu' type='raw' cache='none'/>
<target dev='hda' bus='ide'/>
<address type='drive' controller='0' bus='0' target='0' unit='0'/>
3.Check on the Readonly option for the second IDE disk and click Apply button.
4.Start the guest.
# virsh start test
error: Failed to start domain test
error: internal error process exited while connecting to monitor: char device redirected to /dev/pts/13
qemu-kvm: -device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0: Can't use a read-only drive
qemu-kvm: -device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0: Device 'ide-drive' could not be initialized
Hide the Readonly option only for IDE disk.
It will cause some confusion, if the customer can check on this option ,but can not use it.
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.
This request was erroneously removed from consideration in Red Hat Enterprise Linux 6.4, which is currently under development. This request will be evaluated for inclusion in Red Hat Enterprise Linux 6.4.
Honestly tracking these hypervisor bits in the UI is kind of a pain, and tend to become incorrect over time. I'm fine with just letting this fail if the user tries to start a VM like that.