Bug 691304 - RFE: Need virtual CD-ROM device with no media attached after install complete
Summary: RFE: Need virtual CD-ROM device with no media attached after install complete
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: python-virtinst
Version: 6.1
Hardware: Unspecified
OS: Linux
high
medium
Target Milestone: rc
: ---
Assignee: Cole Robinson
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks: 693512
TreeView+ depends on / blocked
 
Reported: 2011-03-28 06:37 UTC by Nan Zhang
Modified: 2011-12-06 16:16 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
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.
Clone Of:
Environment:
Last Closed: 2011-12-06 16:16:19 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:1643 0 normal SHIPPED_LIVE python-virtinst bug fix and enhancement update 2011-12-06 00:50:36 UTC

Description Nan Zhang 2011-03-28 06:37:19 UTC
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:

Comment 1 RHEL Program Management 2011-04-04 02:14:46 UTC
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.

Comment 2 Cole Robinson 2011-04-07 15:46:20 UTC
Feature request, deferring to 6.2

Comment 4 Cole Robinson 2011-06-07 16:26:14 UTC
Yes this should be straight forward to do for 6.2

Comment 6 Cole Robinson 2011-07-28 15:34:28 UTC
Fixed in python-virtinst-0.600.0-1.el6

Comment 8 Huming Jiang 2011-08-02 09:36:08 UTC
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>
...

Comment 9 Cole Robinson 2011-11-07 17:10:59 UTC
    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.

Comment 10 errata-xmlrpc 2011-12-06 16:16:19 UTC
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


Note You need to log in before you can comment on or make changes to this bug.