[et-mgmt-tools] koan --virt error

hennesd daniel.hennessey at aah.co.uk
Thu May 31 13:13:17 UTC 2007

Hey guys,

I am trying to use "koan" to provision a xen guest instance but it is
failing and I can't work out why.

I have imported my distros, created my profiles and that side of things
all seems to be fine.

I have cobbler installed on a RHEL4 system and I am trying to create the
guest instance on a CentOS5.0 system. I can create a guest instance
using "virt-install" using the same config that koan uses and it all
works fine.

The output from koan follows:

[root at gbw607su1041 ~]# koan -s -x -p CentOS5.0-xen-i386 -V
- {'kickstart':
'name': 'CentOS5.0-xen-i386', 'virt_ram': 256, 'repos': [],
'kernel_options': 'ksdevice=eth0 lang=uk syslog= text
', 'ks_meta': '', 'virt_file_size': 1, 'virt_paravirt': 'True',
'distro': 'CentOS5.0-xen-i386'}
- fetching configuration for distro: CentOS5.0-xen-i386
- {'kernel': '/var/www/cobbler/ks_mirror/CentOS5.0/images/xen/vmlinuz',
'ks_meta': 'tree= ',
'breed': 'redhat', 'source_repos':
[['', ''], ['', '']], 'kernel_options': 'ksdevice=eth0 lang=uk syslog= text ', 'initrd': '/var/www/cobbler/ks_mirror/CentOS5.0/images/xen/initrd.img', 'arch': 'x86', 'name': 'CentOS5.0-xen-i386'}
- downloading initrd initrd.img to /tmp/initrd.img
- url=
- downloading kernel vmlinuz to /tmp/vmlinuz
- url=
- kernel saved = /tmp/vmlinuz
- initrd saved = /tmp/initrd.img
libvir: Xen Daemon error : POST operation failed: (xend.err 'Error
creating domain: Kernel image does not exist: /tmp/vmlinuz')
Failed to create domain testy2
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/koan/app.py", line 108, in main
  File "/usr/lib/python2.4/site-packages/koan/app.py", line 174, in run
  File "/usr/lib/python2.4/site-packages/koan/app.py", line 306, in
    return self.do_net_install("/tmp",after_download)
  File "/usr/lib/python2.4/site-packages/koan/app.py", line 275, in
    after_download(self, distro_data, profile_data)
  File "/usr/lib/python2.4/site-packages/koan/app.py", line 305, in
    self.do_virt_net_install(profile_data, distro_data)
  File "/usr/lib/python2.4/site-packages/koan/app.py", line 629, in
  File "/usr/lib/python2.4/site-packages/koan/virtcreate.py", line 106,
in start_paravirt_install
  File "/usr/lib/python2.4/site-packages/virtinst/ParaVirtGuest.py",
line 220, in start_install
    return XenGuest.XenGuest.start_install(self, consolecb)
  File "/usr/lib/python2.4/site-packages/virtinst/XenGuest.py", line
367, in start_install
    self.domain = self.conn.createLinux(cxml, 0)
  File "/usr/lib/python2.4/site-packages/libvirt.py", line 251, in
    if ret is None:raise libvirtError('virDomainCreateLinux() failed')
libvirtError: virDomainCreateLinux() failed

As you may see, it says that "/tmp/vmlinuz" doesn't exist but I can
confirm that it does by inserting an "os.listdir( '/tmp' )" into the

Any clues?



The information contained in this e-mail is confidential and is intended
for the recipient only.
If you have received it in error, please notify us immediately by reply 
e-mail and then delete it from your system. Please do not copy it or
use it for any other purposes, or disclose the content of the e-mail
to any other person or store or copy the information in any medium. 
The views contained in this e-mail are those of the author and not 
necessarily those of Admenta UK Group.

Admenta UK plc is a company incorporated in England and Wales
under company number 3011757 and whose registered office 
is at Sapphire Court, Walsgrave Triangle, Coventry CV2 2TX

More information about the et-mgmt-tools mailing list