Red Hat Bugzilla – Bug 328841
[5.2]Cannot create the HVM domain using CD-ROM device because virDomainDefineXML() fails.
Last modified: 2009-12-14 16:16:04 EST
Description of problem:
When HVM domain using CD-ROM is created on virt-install,
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)
Steps to Reproduce:
1.Execute virt-install with --cdrom and --hvm.
# vier-install --cdrom /dev/cdrom --hvm ...
Installation of HVM domain succeeds.
Please provide a full command line so we are more likely to be able to
reproduce the problem.
Full command and output message are added.
# virt-install --name HVM_TEST --ram 350 --file /dev/sda8 --hvm --
cdrom /dev/cdrom --vnc --keymap ja
libvir: Xen error : Domain not found: xenUnifiedDomainLookupByUUID
libvir: Xen error : Domain not found: xenUnifiedDomainLookupByName
Creating domain... 0 B 00:00
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 ?
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
return self._do_install(consolecb, meter)
File "/usr/lib/python2.4/site-packages/virtinst/Guest.py", line 787, in
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
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.
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.
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
Okay this was fixed upstream:
libvirt-0.3.3-1.el5 has been built in dist-5E-qu-candidate with the fix
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.