Clearly the python code knows what it wants, and _could_ have not faulted, as is
shown in the error message, but did so rather than offering a retry. It sould
recover from this error.
[root@amd64 ~]# virt-install
Would you like a fully virtualized guest (yes or no)? This will allow you to
run unmodified operating systems. yes
What is the name of your virtual machine? russ1
How much RAM should be allocated (in megabytes)? 1000
What would you like to use as the disk (path)? /var/zen/russ-disk
How large would you like the disk (/var/zen/russ-disk) to be (in gigabytes)? 5
Would you like to enable graphics support? (yes or no) n
What would you like to use for the virtual CD image?
ERROR: CD device must exist!
What would you like to use for the virtual CD image? /var/zen/cd1
Traceback (most recent call last):
File "/usr/sbin/virt-install", line 447, in ?
File "/usr/sbin/virt-install", line 411, in main
dom = guest.start_install(conscb)
File "/usr/lib/python2.4/site-packages/virtinst/XenGuest.py", line 365, in
cxml = self._get_config_xml()
File "/usr/lib/python2.4/site-packages/virtinst/FullVirtGuest.py", line 89, in
return """<domain type='xen'>
File "/usr/lib/python2.4/site-packages/virtinst/FullVirtGuest.py", line 48, in
disk = XenGuest.XenDisk(self.cdrom, readOnly = True,
File "/usr/lib/python2.4/site-packages/virtinst/XenGuest.py", line 50, in __init__
raise ValueError, "Must provide a file, not a directory for the disk"
ValueError: Must provide a file, not a directory for the disk
Patch posted upstream on 10/18/07.
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release. Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products. This request is not yet committed for inclusion in an Update
Created attachment 290796 [details]
5.2 virtinst validation overhaul which fixes this issue
Committed and built.
* Fri Jan 04 2008 Cole Robinson <email@example.com> - 0.103.0-6.el5
- Validation and error message fixes across the board.
- (rhbz #201948 #249424 #372001 #221542)
Build Tag Built by
---------------------------------------- -------------------- ----------------
python-virtinst-0.103.0-6.el5 dist-5E-qu-candidate crobinso
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.