Hide Forgot
Description of problem: Sometimes, user want to install a guest with no media attached virtual CD-ROM device, but currently it's not allowed. Version-Release number of selected component (if applicable): libvirt-0.8.7-14.el6.x86_64 python-virtinst-0.500.5-2.el6.noarch How reproducible: Always Steps to Reproduce: # virt-install -n demo -r 512 --disk /var/lib/libvirt/images/demo.img,device=disk,size=6 --disk device=cdrom,perms=ro -l http://download.englab.nay.redhat.com/pub/rhel/rel-eng/latest-RHEL-6/6.1/Server/x86_64/os/ --vnc --noreboot Actual results: ERROR A size must be specified for non-existent disks. Expected results: It can be attached an empty virtual CD-ROM device when guest installing. Additional info:
Since RHEL 6.1 External Beta has begun, and this bug remains unresolved, it has been rejected as it is not proposed as exception or blocker. Red Hat invites you to ask your support representative to propose this request, if appropriate and relevant, in the next release of Red Hat Enterprise Linux.
Feature request, deferring to 6.2
Yes this should be straight forward to do for 6.2
Upstream now: http://git.fedorahosted.org/git?p=python-virtinst.git;a=commit;h=1ebef797def83f9247a642ac1850a66aba0bef7d
Fixed in python-virtinst-0.600.0-1.el6
Verified with the following components: python-virtinst-0.600.0-1.el6. libvirt-0.9.4-0rc1.el6.x86_64 kernel-2.6.32-171.el6.x86_64 qemu-kvm-0.12.1.2-2.174.el6.x86_64 Steps: #virt-install -n demo -r 512 --disk /var/lib/libvirt/images/deme.img,device=disk,size=6 --disk device=cdrom,perms=ro -l http://download.englab.nay.redhat.com/pub/rhel/nightly/RHEL6.2-20110801.n.0/6.2/Server/x86_64/os --vnc --noreboot Starting install... Retrieving file .treeinfo... | 3.3 kB 00:00 ... Retrieving file vmlinuz... | 7.4 MB 00:00 ... Retrieving file initrd.img... | 54 MB 00:00 ... Allocating 'deme.img' | 6.0 GB 00:00 Creating domain... | 0 B 00:00 (installation succeed) #virsh dumpxml demo ... <disk type='block' device='cdrom'> <driver name='qemu' type='raw'/> <target dev='hdc' bus='ide'/> <readonly/> <alias name='ide0-1-0'/> <address type='drive' controller='0' bus='1' unit='0'/> </disk> ...
Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: Previously, virt-install could only specify cdrom and floppy devices with inserted media. Now virt-install has an option to specify empty cdrom and floppy drives.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2011-1643.html