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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hennesd wrote:
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@gbw607su1041 ~]# koan -s 221.206.29.50 -x -p CentOS5.0-xen-i386 -V
testy2
- {'kickstart':
'http://221.206.29.50/cblr/kickstarts/CentOS5.0-xen-i386/ks.cfg',
'name': 'CentOS5.0-xen-i386', 'virt_ram': 256, 'repos': [],
'kernel_options': 'ksdevice=eth0 lang=uk syslog=221.206.29.50:25150 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=http://221.206.29.50/cblr/links/CentOS5.0-xen-i386 ',
'breed': 'redhat', 'source_repos':
[['http://221.206.29.50/cobbler/ks_mirror/config/CentOS5.0-xen-i386-0.repo', 'http://221.206.29.50/cobbler/ks_mirror/CentOS5.0'], ['http://221.206.29.50/cobbler/ks_mirror/config/CentOS5.0-xen-i386-1.repo', 'http://221.206.29.50/cobbler/ks_mirror/CentOS5.0']], 'kernel_options': 'ksdevice=eth0 lang=uk syslog=221.206.29.50:25150 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=http://221.206.29.50/cobbler/images/CentOS5.0-xen-i386/initrd.img
- downloading kernel vmlinuz to /tmp/vmlinuz
- url=http://221.206.29.50/cobbler/images/CentOS5.0-xen-i386/vmlinuz
- 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
    k.run()
  File "/usr/lib/python2.4/site-packages/koan/app.py", line 174, in run
    self.do_virt()
  File "/usr/lib/python2.4/site-packages/koan/app.py", line 306, in
do_virt
    return self.do_net_install("/tmp",after_download)
  File "/usr/lib/python2.4/site-packages/koan/app.py", line 275, in
do_net_install
    after_download(self, distro_data, profile_data)
  File "/usr/lib/python2.4/site-packages/koan/app.py", line 305, in
after_download
    self.do_virt_net_install(profile_data, distro_data)
  File "/usr/lib/python2.4/site-packages/koan/app.py", line 629, in
do_virt_net_install
    nameoverride=self.virtname
  File "/usr/lib/python2.4/site-packages/koan/virtcreate.py", line 106,
in start_paravirt_install
    guest.start_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
createLinux
    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
code.

Any clues?

TIA

Dan

If SELinux is enabled, that's likely it. You can temporarily disable it if you like, though I'm working on fixing that now -- was going to hit that yesterday but I got sidetracked
by some other cobbler features.

If that's not it, let me know.

--Michael



[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux