[et-mgmt-tools] Koan and Xen question

Foreman, Tim tforeman at ibsys.com
Fri Mar 2 18:16:17 UTC 2007


I'm not sure if this is a Koan issue, a Xen issue or an "I'm stupid"
issue, but I'm going to start with Koan. :-)

I've built a Fedora Core 6 box with Xen and Koan installed.

I have another box with Cobbler on it and I'm trying to kickstart a
Xen guest domain with Koan.

I'm trying to build a RH EL 4 U4 guest (which might be part of my
problem.)

I have a profile setup using the default.ks file.

When I run:
'koan --virt --server=kickstart.mtc.ibsys.com --profile=rh4u4_xen_domU'

I get the following output:

- processing profile: rh4u4_xen_domU
- fetching configuration for profile: rh4u4_xen_domU
- url=http://kickstart.mtc.ibsys.com/cobbler/profiles/rh4u4_xen_domU
- {'kickstart':
'http://kickstart.mtc.ibsys.com/cobbler_track/kickstarts/rh4u4_xen_domU/ks.c
fg', 'name': 'rh4u4_xen_domU', 'virt_ram': 512, 'repos': '',
'kernel_options': 'ksdevice=eth0 lang= vga=788
syslog=kickstart.mtc.ibsys.com:25150 devfs=nomount ramdisk_size=16438 append
', 'virt_name': 'virtguest', 'virt_file_size': 5, 'distro': 'rhel4u4',
'virt_paravirt': 'True', 'ks_meta': ''}
- fetching configuration for distro: rhel4u4
- url=http://kickstart.mtc.ibsys.com/cobbler/distros/rhel4u4
- {'kernel': '/var/www/html/kickstart/rhel4u4/i386/isolinux/vmlinuz',
'ks_meta': '', 'breed': 'redhat', 'kernel_options': 'ksdevice=eth0 lang=
vga=788 syslog=kickstart.mtc.ibsys.com:25150 devfs=nomount
ramdisk_size=16438 append ', 'initrd':
'/var/www/html/kickstart/rhel4u4/i386/isolinux/initrd.img', 'arch': 'x86',
'name': 'rhel4u4'}
- downloading initrd initrd.img to /tmp/initrd.img
- url=http://kickstart.mtc.ibsys.com/cobbler/images/rhel4u4/initrd.img
- downloading kernel vmlinuz to /tmp/vmlinuz
- url=http://kickstart.mtc.ibsys.com/cobbler/images/rhel4u4/vmlinuz
- kernel saved = /tmp/vmlinuz
- initrd saved = /tmp/initrd.img
libvir: Xen Daemon error : POST operation failed: (xend.err "Error creating
domain: (22, 'Invalid argument')")
Failed to create domain virtguest
Traceback (most recent call last):
  File "/usr/lib/python2.3/site-packages/koan/app.py", line 97, in main
    k.run()
  File "/usr/lib/python2.3/site-packages/koan/app.py", line 155, in run
    self.do_virt()
  File "/usr/lib/python2.3/site-packages/koan/app.py", line 300, in do_virt
    return self.do_net_install("/tmp",after_download)
  File "/usr/lib/python2.3/site-packages/koan/app.py", line 256, in
do_net_install
    after_download(self, distro_data, profile_data)
  File "/usr/lib/python2.3/site-packages/koan/app.py", line 299, in
after_download
    self.do_virt_net_install(profile_data, distro_data)
  File "/usr/lib/python2.3/site-packages/koan/app.py", line 599, in
do_virt_net_install
    extra=kextra
  File "/usr/lib/python2.3/site-packages/koan/virtcreate.py", line 201, in
start_paravirt_install
    dom = conn.createLinux(cfgxml, 0)
  File "/usr/lib/python2.4/site-packages/libvirt.py", line 249, in
createLinux
    if ret is None:raise libvirtError('virDomainCreateLinux() failed')
libvirtError: virDomainCreateLinux() failed

So, is this a Koan issue? If so, what's happening? Is it a Cobbler issue?
Did I not put something in my profile?

This is my profile:

profile         : rh4u4_xen_domU
distro          : rhel4u4
kickstart       : /etc/cobbler/default.ks
kernel options  : {}
ks metadata     : {}
virt name       : virtguest
virt file size  : 5
virt ram        : 512
virt paravirt   : True
repos           : 

If it's a Xen issue, tell me and I'll try the Xen users list (unless you
have
the solution and want to send it to me. :-)

If it's an "I'm stupid" issue, please tell me what I'm doing wrong. :-)
I've been using Cobbler for a while (and love it) but I'm new to Xen
and Koan.

Thanks!
--
Timothy W. Foreman ~ Security Administrator ~ tforeman at ibsys.com
(651) 365-4181     ~ Internet Broadcasting  ~ www.ibsys.com
--
The Onion: Have you decided what you want to be when you grow up?
Berkeley Breathed: Dad. The rest is frosting.




More information about the et-mgmt-tools mailing list