On 07/06/2009 08:41 PM, Pete Wright wrote:
> hi all,
> i have had to put getting a full cobblerd port running due to some work
> scheduling stuff. anyway, i have gotten koan to work on a ubuntu 8.x
> hypervisor - and i am attempting to boot another ubuntu host on this
> box. when i run koan on the hypervisor i am getting the following:
>
> pete@vmserver02:~$ sudo koan --server=cobbler --system=vmtest01 --virt
> - looking for Cobbler at
http://cobbler/cobbler_api
> - reading URL:
http://10.32.10.199/cblr/svc/op/ks/system/vmtest01
> install_tree:
http://10.32.10.199/cobbler/ks_mirror/ubuntu_8.10-x86_64
> /bin/sh: rpm: not found
> - using qemu hypervisor, type=kvm
> - virtinst library does not understand variant IntrepidIbex, treating as
> generic
> - adding disk: /var/virtual_machines/vmtest01-disk0 of size 20
> Tue, 07 Jul 2009 01:38:10 DEBUG Disk path not found: Assuming file
> disk type.
> libvir: QEMU error :
> Tue, 07 Jul 2009 01:38:10 DEBUG Fetching URI
>
http://10.32.10.199/cobbler/ks_mirror/ubuntu_8.10-x86_64//fedora.css
> Tue, 07 Jul 2009 01:38:10 DEBUG Cannot find file fedora.css
> Tue, 07 Jul 2009 01:38:10 DEBUG Fetching URI
>
http://10.32.10.199/cobbler/ks_mirror/ubuntu_8.10-x86_64//Fedora
> Tue, 07 Jul 2009 01:38:10 DEBUG Cannot find file Fedora
> Tue, 07 Jul 2009 01:38:10 DEBUG Fetching URI
>
http://10.32.10.199/cobbler/ks_mirror/ubuntu_8.10-x86_64//Server
> Tue, 07 Jul 2009 01:38:10 DEBUG Cannot find file Server
> Tue, 07 Jul 2009 01:38:10 DEBUG Fetching URI
>
http://10.32.10.199/cobbler/ks_mirror/ubuntu_8.10-x86_64//Client
> Tue, 07 Jul 2009 01:38:10 DEBUG Cannot find file Client
> Tue, 07 Jul 2009 01:38:10 DEBUG Fetching URI
>
http://10.32.10.199/cobbler/ks_mirror/ubuntu_8.10-x86_64//RedHat
> Tue, 07 Jul 2009 01:38:10 DEBUG Cannot find file RedHat
> Tue, 07 Jul 2009 01:38:10 DEBUG Fetching URI
>
http://10.32.10.199/cobbler/ks_mirror/ubuntu_8.10-x86_64//CentOS
> Tue, 07 Jul 2009 01:38:10 DEBUG Cannot find file CentOS
> Tue, 07 Jul 2009 01:38:10 DEBUG Fetching URI
>
http://10.32.10.199/cobbler/ks_mirror/ubuntu_8.10-x86_64//directory.yast
> Tue, 07 Jul 2009 01:38:10 DEBUG Doesn't look like a Suse distro
> Invalid URL location given:
>
http://10.32.10.199/cobbler/ks_mirror/ubuntu_8.10-x86_64//directory.yast
> [Errno 14] HTTP Error 404: Not Found
> Tue, 07 Jul 2009 01:38:10 DEBUG Fetching URI
>
http://10.32.10.199/cobbler/ks_mirror/ubuntu_8.10-x86_64//current/images/...
> Tue, 07 Jul 2009 01:38:10 DEBUG Doesn't look like a Debian distro
> Invalid URL location given:
>
http://10.32.10.199/cobbler/ks_mirror/ubuntu_8.10-x86_64//current/images/...
> [Errno 14] HTTP Error 404: Not Found
> <type 'exceptions.ValueError'>
> Could not find an installable distribution at
> 'http://10.32.10.199/cobbler/ks_mirror/ubuntu_8.10-x86_64/'
> File "/usr/lib/python2.5/site-packages/koan/app.py", line 209, in main
> k.run()
> File "/usr/lib/python2.5/site-packages/koan/app.py", line 319, in run
> self.virt()
> File "/usr/lib/python2.5/site-packages/koan/app.py", line 642, in
virt
> return self.net_install(after_download)
> File "/usr/lib/python2.5/site-packages/koan/app.py", line 561, in
> net_install
> after_download(self, profile_data)
> File "/usr/lib/python2.5/site-packages/koan/app.py", line 640, in
> after_download
> self.virt_net_install(profile_data)
> File "/usr/lib/python2.5/site-packages/koan/app.py", line 1123, in
> virt_net_install
> virt_auto_boot = virt_auto_boot
> File "/usr/lib/python2.5/site-packages/koan/qcreate.py", line 203,
> in start_install
> guest.start_install()
> File "/usr/lib/python2.5/site-packages/virtinst/Guest.py", line 818,
> in start_install
> self._prepare_install(meter)
> File "/usr/lib/python2.5/site-packages/virtinst/FullVirtGuest.py",
> line 272, in _prepare_install
> distro = self.os_distro)
> File "/usr/lib/python2.5/site-packages/virtinst/DistroManager.py",
> line 204, in prepare
> self._prepare_kernel_and_initrd(guest, distro, meter)
> File "/usr/lib/python2.5/site-packages/virtinst/DistroManager.py",
> line 174, in _prepare_kernel_and_initrd
> distro = distro)
> File "/usr/lib/python2.5/site-packages/virtinst/DistroManager.py",
> line 94, in acquireKernel
> progresscb=progresscb, distro=distro, scratchdir=scratchdir)
> File "/usr/lib/python2.5/site-packages/virtinst/DistroManager.py",
> line 80, in _storeForDistro
> raise ValueError, _("Could not find an installable distribution at
> '%s'" % baseuri)
>
>
>
> after looking through the code i think koan is trying to get the
> location of the initrd and kernel for this kvm instance. my question
> is, since i've already defined the kernel+initrd on the cobbler server
> is this necessary? or am i completely off?
>
It's not neccessary and I've been wanting to fix this for a while.
Libvirt (well, virtinst) offers a way of getting the kernel+initrd from
the tree.
We shouldn't do this. We should download the kernel and initrd instead
and use those explicitly.
This makes things work without needing the tree-magic and doesn't
require that there be a kickstart to parse out.
(Yes, we parse the kickstart for the URL line...because we can't be sure
the distro was added by cobbler import...therefore we can't
be sure we have the "tree" metadata variable)
Thanks very much for trying to get Ubuntu koan in shape. That's awesome.
*Much* appreciated!
cool thanks for taking a look at this michael (and thanks for bearing
with me while i try to get things running on our env :)! i'll keep
hacking on this (and the cobblerd port) when i have more cycles - but in
the interim i may just utilize kvm's pxe booting feature so i can focus
on getting our preseed configs working as expected.
cheers!
-p
--
Pete Wright
Systems Engineer Demonware
pete(a)demonware.net
office: 310.255.2000 ext 3704
mobile: 604.802.5059