Red Hat Bugzilla – Bug 503473
virt-install: Failed to install guest domain with option xen --hvm --location <url>
Last modified: 2009-12-14 16:18:59 EST
Description of problem:
POST operation failed: xend_post: error from xen daemon: (xend.err "Error creating domain: (14, 'Bad address')")
Domain installation may not have been
successful. If it was, you can restart your domain
by running 'virsh start foo'; otherwise, please
restart your installation.
ERROR POST operation failed: xend_post: error from xen daemon: (xend.err "Error creating domain: (14, 'Bad address')")
Traceback (most recent call last):
File "/usr/sbin/virt-install", line 865, in ?
File "/usr/sbin/virt-install", line 763, in main
File "/usr/sbin/virt-install", line 818, in do_install
dom = install_func(conscb, progresscb, wait=(not wait))
File "/usr/lib/python2.4/site-packages/virtinst/Guest.py", line 541, in start_install
return self._do_install(consolecb, meter, removeOld, wait)
File "/usr/lib/python2.4/site-packages/virtinst/Guest.py", line 633, in _do_install
self.domain = self.conn.createLinux(install_xml, 0)
File "/usr/lib64/python2.4/site-packages/libvirt.py", line 974, in createLinux
if ret is None:raise libvirtError('virDomainCreateLinux() failed', conn=self)
libvirtError: POST operation failed: xend_post: error from xen daemon: (xend.err "Error creating domain: (14, 'Bad address')")
Version-Release number of selected component (if applicable):
Steps to Reproduce:
# virt-install \
--name foo \
--ram 512 \
--file /var/lib/xen/images/foo.img \
--file-size 4 \
Creating domain error.
Should be no error.
I'm pretty sure that --location is incompatible with --hvm in RHEL-5 Xen. So we should fix libvirtd to disallow that combination. However, if you want to continue testing, use --hvm with --cdrom to do your installs.
Please provide the output of virt-install with the --debug flag added. Also provide the /var/log/xen/xend.log file.
Created attachment 346073 [details]
Yes, I used --cdrom to do the testing for fully-virt. Also, I think the option "Network install tree(HTTP,FTP,or NFS)" should be disabled in virt-manager when you select "Fully virtualized" to install guest.
Run virt-install again with the --debug flag. Attached xend.log for your reference.
As Chris suggests the use of --location here, means it is trying to boot the HVM guest off a kernel+initrd. This definitely doesn't work in RHEL-5 Xen. What I'm not so sure of, is whether we used to handle --location differently for RHEL-5. Need to check there's no regression in --location handling from RHEL-5.3.
For HVM, we used to try to fetch a boot iso via the url passed to --location. So this is a regression.
Hmm, fetching of the boot.iso from a URL is supposed to be done via the --cdrom arg, which takes a file path or a URI.
Yeah, not sure if you recall John Levon mentioning this psuedo regression a while back. Sounds like an historical mistake that we need to revive for RHEL.
We have to be careful though, because HVM + --location does need to use kernel+initrd for KVM installs. So any change will need to be restricted to Xen.
Fixed in python-virtinst-0.400.3-2.el5. Closing as NEXTRELEASE, since this bug has
not existed in any released package as it was brought in by the rebase.