Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 328841

Summary: [5.2]Cannot create the HVM domain using CD-ROM device because virDomainDefineXML() fails.
Product: Red Hat Enterprise Linux 5 Reporter: Masayuki Sunou <fj1826dm>
Component: libvirtAssignee: Daniel Berrangé <berrange>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: high Docs Contact:
Priority: low    
Version: 5.1CC: fukuta.saori, xen-maint
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: RHBA-2008-0291 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-05-21 16:47:51 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Masayuki Sunou 2007-10-12 01:48:48 UTC
Description of problem:
When HVM domain using CD-ROM is created on virt-install, 
virDomainDefineXML() fails.
As a result, although installation of guest OS succeeds, 
guest OS cannot be started, because config file is not created.

Version-Release number of selected component (if applicable):
upstream(revision of Changelog : 1.766)

How reproducible:
always

Steps to Reproduce:
1.Execute virt-install with --cdrom and --hvm. 
  # vier-install --cdrom /dev/cdrom --hvm ...
  
Actual results:
virDomainDefineXML() fails.

Expected results:
Installation of HVM domain succeeds.

Additional info:

Comment 1 Daniel Veillard 2007-10-12 08:25:59 UTC
Please provide a full command line so we are more likely to be able to 
reproduce the problem.

Daniel

Comment 2 Masayuki Sunou 2007-10-12 09:23:10 UTC
Full command and output message are added.

# virt-install --name HVM_TEST --ram 350 --file /dev/sda8 --hvm --
cdrom /dev/cdrom --vnc --keymap ja


Starting install...
libvir: Xen error : Domain not found: xenUnifiedDomainLookupByUUID
libvir: Xen error : Domain not found: xenUnifiedDomainLookupByName
Creating domain...                                                 0 B 00:00
virDomainDefineXML() failed
Domain installation may not have been
 successful.  If it was, you can restart your domain
 by running 'virsh start HVM_TEST'; otherwise, please
 restart your installation.
Fri, 12 Oct 2007 18:17:52 ERROR    virDomainDefineXML() failed
Traceback (most recent call last):
  File "/usr/bin/virt-install", line 485, in ?
    main()
  File "/usr/bin/virt-install", line 449, in main
    dom = guest.start_install(conscb,progresscb)
  File "/usr/lib/python2.4/site-packages/virtinst/Guest.py", line 740, in 
start_install
    return self._do_install(consolecb, meter)
  File "/usr/lib/python2.4/site-packages/virtinst/Guest.py", line 787, in 
_do_install
    self.conn.defineXML(boot_xml)
  File "/usr/lib/python2.4/site-packages/libvirt.py", line 589, in defineXML
    if ret is None:raise libvirtError('virDomainDefineXML() failed', conn=self)
libvirtError: virDomainDefineXML() failed


Comment 3 Daniel Veillard 2007-10-12 09:34:04 UTC
What version of libvirt is used ? This could be a mismatch between the 
latest virt-install version (installed from an RPM ?) and an older 
libvirt which didn't have full support for it.

Daniel

Comment 4 Masayuki Sunou 2007-10-15 00:29:54 UTC
The version is as follows. 
 o Libvirt is got from CVS.
   --> Revision of Changelog is "1.766"
 o Virt-install is got from Mercurial.
   --> Changeset is "286:531b73491ac2"

Both virt-install and libvirt are the latest versions. 


Comment 5 RHEL Program Management 2007-10-19 15:55:28 UTC
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
release.

Comment 6 Daniel Veillard 2007-11-06 13:33:30 UTC
Okay this was fixed upstream:

https://www.redhat.com/archives/libvir-list/2007-November/msg00004.html

Daniel

Comment 8 Daniel Veillard 2007-12-11 15:12:58 UTC
libvirt-0.3.3-1.el5 has been built in dist-5E-qu-candidate with the fix
 
Daniel


Comment 11 errata-xmlrpc 2008-05-21 16:47:51 UTC
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.

http://rhn.redhat.com/errata/RHBA-2008-0291.html