<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div>I was also getting this error when trying to provision Xen guest on a CentOS 5.5 host running Spacewalk 1.0:<br><snip><br><span>url=<a target="_blank" href="http://spacewalk.example.com/cobbler/images/RedHat_54_i386xen:1:SpacewalkDefaultOrganization/initrd.img">http://spacewalk.example.com/cobbler/images/RedHat_54_i386xen:1:SpacewalkDefaultOrganization/initrd.img</a></span><br><span>- reading URL: <a target="_blank" href="http://spacewalk.example.com/cobbler/images/RedHat_54_i386xen:1:SpacewalkDefaultOrganization/initrd.img">http://spacewalk.example.com/cobbler/images/RedHat_54_i386xen:1:SpacewalkDefaultOrganization/initrd.img</a></span><br>downloading kernel vmlinuz to /var/lib/xen/vmlinuz<br><span>url=<a target="_blank"
 href="http://spacewalk.example.com/cobbler/images/RedHat_54_i386xen:1:SpacewalkDefaultOrganization/vmlinuz">http://spacewalk.example.com/cobbler/images/RedHat_54_i386xen:1:SpacewalkDefaultOrganization/vmlinuz</a></span><br><span>- reading URL: <a target="_blank" href="http://spacewalk.example.com/cobbler/images/RedHat_54_i386xen:1:SpacewalkDefaultOrganization/vmlinuz">http://spacewalk.example.com/cobbler/images/RedHat_54_i386xen:1:SpacewalkDefaultOrganization/vmlinuz</a></span><br>exceptions.AttributeError<br>Koan instance has no attribute 'virt_auto_boot'<br>  File "/usr/share/rhn/spacewalkkoan/spacewalkkoan.py", line 191, in initiate_guest<br>    k.run()<br>   File "/usr/lib/python2.4/site-packages/koan/app.py", line 329, in run<br>    self.virt()<br>   File "/usr/lib/python2.4/site-packages/koan/app.py", line 652, in virt<br>    return
 self.net_install(after_download)<br>   File "/usr/lib/python2.4/site-packages/koan/app.py", line 571, in net_install<br>    after_download(self, profile_data)<br>   File "/usr/lib/python2.4/site-packages/koan/app.py", line 650, in after_download<br>    self.virt_net_install(profile_data)<br>   File "/usr/lib/python2.4/site-packages/koan/app.py", line 1113, in virt_net_install<br>    virt_auto_boot      = self.calc_virt_autoboot(pd, self.virt_auto_boot)<br><br>As suggested koan was downgraded to the earlier version in EPEL:<br>[root@spacewalk src]# rpm -e koan --nodeps<br>[root@spacewalk src]# rpm -ivh koan-1.6.6-1.el5.noarch.rpm <br>Preparing...                ########################################### [100%]<br>  
 1:koan                   ########################################### [100%]<br><br>Now everything functions as expected:<br>downloading initrd initrd.img to /var/lib/xen/initrd.img<br><span>url=<a target="_blank" href="http://spacewalk.example.com/cobbler/images/RedHat_54_i386xen:1:SpacewalkDefaultOrganization/initrd.img">http://spacewalk.example.com/cobbler/images/RedHat_54_i386xen:1:SpacewalkDefaultOrganization/initrd.img</a></span><br><span>- reading URL: <a target="_blank" href="http://spacewalk.example.com/cobbler/images/RedHat_54_i386xen:1:SpacewalkDefaultOrganization/initrd.img">http://spacewalk.example.com/cobbler/images/RedHat_54_i386xen:1:SpacewalkDefaultOrganization/initrd.img</a></span><br>downloading kernel vmlinuz to /var/lib/xen/vmlinuz<br><span>url=<a target="_blank"
 href="http://spacewalk.example.com/cobbler/images/RedHat_54_i386xen:1:SpacewalkDefaultOrganization/vmlinuz">http://spacewalk.example.com/cobbler/images/RedHat_54_i386xen:1:SpacewalkDefaultOrganization/vmlinuz</a></span><br><span>- reading URL: <a target="_blank" href="http://spacewalk.example.com/cobbler/images/RedHat_54_i386xen:1:SpacewalkDefaultOrganization/vmlinuz">http://spacewalk.example.com/cobbler/images/RedHat_54_i386xen:1:SpacewalkDefaultOrganization/vmlinuz</a></span><br>libvir: Xen error : Domain not found: xenUnifiedDomainLookupByName<br>libvir: Xen error : Domain not found: xenUnifiedDomainLookupByUUID<br>libvir: Xen error : Domain not found: xenUnifiedDomainLookupByName<br>use virt-manager or reconnect with virsh console guest1<br>- polling for virt completion<br>- install is still running, sleeping for 1 minute (0)<br>- install is still running, sleeping for 1 minute (1)<br><br></div><div style="font-family: times new roman,new
 york,times,serif; font-size: 12pt;"><br><div style="font-family: arial,helvetica,sans-serif; font-size: 13px;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> James Hogarth <james.hogarth@gmail.com><br><b><span style="font-weight: bold;">To:</span></b> spacewalk-list@redhat.com<br><b><span style="font-weight: bold;">Sent:</span></b> Fri, May 21, 2010 7:45:19 AM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [Spacewalk-list] Error on provisioning of VM on kvm system<br></font><br>
On 21 May 2010 12:41, Milan Zazrivec <<a ymailto="mailto:mzazrivec@redhat.com" href="mailto:mzazrivec@redhat.com">mzazrivec@redhat.com</a>> wrote:<br>> On Friday 21 May 2010 12:08:19 James Hogarth wrote:<br>>> On 21 May 2010 10:45, Milan Zazrivec <<a ymailto="mailto:mzazrivec@redhat.com" href="mailto:mzazrivec@redhat.com">mzazrivec@redhat.com</a>> wrote:<br>>> > On Friday 21 May 2010 11:25:26 James Hogarth wrote:<br>>> >> On 21 May 2010 10:21, Milan Zazrivec <<a ymailto="mailto:mzazrivec@redhat.com" href="mailto:mzazrivec@redhat.com">mzazrivec@redhat.com</a>> wrote:<br>>> >> > On Friday 21 May 2010 11:05:08 James Hogarth wrote:<br>>> >> >> On 20 May 2010 10:32, James Hogarth <<a ymailto="mailto:james.hogarth@gmail.com" href="mailto:james.hogarth@gmail.com">james.hogarth@gmail.com</a>> wrote:<br>>> >> >> > On 20 May 2010 09:50, Milan Zazrivec <<a
 ymailto="mailto:mzazrivec@redhat.com" href="mailto:mzazrivec@redhat.com">mzazrivec@redhat.com</a>> wrote:<br>>> >> >> >> On Wednesday 19 May 2010 23:32:06 James Hogarth wrote:<br>>> >> >> >>> KVM host is fully updated Centos 5.5<br>>> >> >> >>><br>>> >> >> >>> Spacewalk instance is a fully updated spacewalk 1.0 (with cobbler<br>>> >> >> >>> 1.6.6 not 2.0.3) on centos 5.5 with epel.<br>>> >> >> >>><br>>> >> >> >>> On an attempt at a remote provisioning I get:<br>>> >> >> >>><br>>> >> >> >>> libvirtd (pid  4266) is running...<br>>> >> >> >>> exceptions.AttributeError<br>>> >> >> >>> Koan instance has no attribute 'virt_auto_boot'<br>>> >> >>
 >>>   File "/usr/share/rhn/spacewalkkoan/spacewalkkoan.py", line 191,<br>>> >> >> >>> in initiate_gu<br>>> >> >> >>>                                                          est<br>>> >> >> >>>     k.run()<br>>> >> >> >>>    File "/usr/lib/python2.4/site-packages/koan/app.py", line 329,<br>>> >> >> >>> in run self.virt()<br>>> >> >> >>>    File "/usr/lib/python2.4/site-packages/koan/app.py", line 652,<br>>> >> >> >>> in virt return self.net_install(after_download)<br>>> >> >> >>>    File "/usr/lib/python2.4/site-packages/koan/app.py", line
 571,<br>>> >> >> >>> in net_install after_download(self, profile_data)<br>>> >> >> >>>    File "/usr/lib/python2.4/site-packages/koan/app.py", line 650,<br>>> >> >> >>> in after_downl<br>>> >> >> >>>                                                          oad<br>>> >> >> >>>     self.virt_net_install(profile_data)<br>>> >> >> >>>    File "/usr/lib/python2.4/site-packages/koan/app.py", line<br>>> >> >> >>> 1113, in virt_net_i<br>>> >> >> >>>                                    
                     nstall<br>>> >> >> >>>     virt_auto_boot      = self.calc_virt_autoboot(pd,<br>>> >> >> >>> self.virt_auto_boot)<br>>> >> >> >>><br>>> >> >> >>> Any ideas? Would be nice to get that as functionality rather than<br>>> >> >> >>> booting from ISOs to use a kickstart...<br>>> >> >> >><br>>> >> >> >> What koan version do you use on your kvm host? Does the error show<br>>> >> >> >> with both 1.6.6 and 2.0.3.1? (currently available at EPEL)<br>>> >> >> >><br>>> >> >> >> -Milan Zázrivec<br>>> >> >> >><br>>> >> >> >>
 _______________________________________________<br>>> >> >> >> Spacewalk-list mailing list<br>>> >> >> >> <a ymailto="mailto:Spacewalk-list@redhat.com" href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a><br>>> >> >> >> <a href="https://www.redhat.com/mailman/listinfo/spacewalk-list" target="_blank">https://www.redhat.com/mailman/listinfo/spacewalk-list</a><br>>> >> >> ><br>>> >> >> > I'm at home today not in the office... when I'm back in tomorrow<br>>> >> >> > morning I'll double check and post results.<br>>> >> >> ><br>>> >> >> > James<br>>> >> >><br>>> >> >> /facepalm<br>>> >> >><br>>> >> >> ...<br>>> >> >><br>>> >> >> [admin@spacewalk ~]$ rpm -q
 koan<br>>> >> >> package koan is not installed<br>>> >> >><br>>> >> >> ...<br>>> >> >><br>>> >> >> That could explain a lot - wasn't it a dependency of spacewalk like<br>>> >> >> cobbler?<br>>> >> ><br>>> >> > cobbler is supposed to run on server (Spacewalk), koan on the client<br>>> >> > (the virt. host in your case).<br>>> >> ><br>>> >> > -MZ<br>>> >> ><br>>> >> > _______________________________________________<br>>> >> > Spacewalk-list mailing list<br>>> >> > <a ymailto="mailto:Spacewalk-list@redhat.com" href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a><br>>> >> > <a href="https://www.redhat.com/mailman/listinfo/spacewalk-list"
 target="_blank">https://www.redhat.com/mailman/listinfo/spacewalk-list</a><br>>> >><br>>> >> Ah sorry - too early and not enough coffee yet ;)<br>>> >><br>>> >> The kvm guest of course hadn't existed by that point as it was just<br>>> >> creating it - but I guess that would just mean I'd need to make sure<br>>> >> koan was included in the package manifest for the kickstart?<br>>> ><br>>> > I don't think koan on the guest is what matters here.<br>>> ><br>>> > If I understand the problem correctly, you're getting a traceback<br>>> > when provisioning a kvm guest from Spacewalk.<br>>> ><br>>> > To be able to achieve that, you need to have several packages installed<br>>> > on your virt. *host* (not guest), one of these packages being koan.<br>>> ><br>>> > Judging by the traceback you showed in the
 initial email, you already<br>>> > have koan installed on your host, but since there are currently<br>>> > two versions of koan available in EPEL-5 (which is where I guess you<br>>> > installed the package from), I was wondering which koan version<br>>> > it is :-) (and whether or not both of them give you the same traceback)<br>>> ><br>>> > -MZ<br>>> ><br>>> > _______________________________________________<br>>> > Spacewalk-list mailing list<br>>> > <a ymailto="mailto:Spacewalk-list@redhat.com" href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a><br>>> > <a href="https://www.redhat.com/mailman/listinfo/spacewalk-list" target="_blank">https://www.redhat.com/mailman/listinfo/spacewalk-list</a><br>>><br>>> I did say I didn't have enough coffee yet.... sorry for sounding a bit<br>>> thick headed ^^<br>><br>>
 :-)<br>><br>>> I get what you are saying now...<br>>><br>>> [admin@virtualserver01 ~]$ rpm -q koan<br>>> koan-2.0.3.1-3.el5<br>>><br>>> So I've got 2.0.3 koan on the KVM host server...<br>><br>> I think it's worth trying to downgrade koan to 1.6.6<br>> (I know that version used to work in the past).<br>><br>> -Milan Zázrivec<br>><br>> _______________________________________________<br>> Spacewalk-list mailing list<br>> <a ymailto="mailto:Spacewalk-list@redhat.com" href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a><br>> <a href="https://www.redhat.com/mailman/listinfo/spacewalk-list" target="_blank">https://www.redhat.com/mailman/listinfo/spacewalk-list</a><br>><br><br>Okay - I'll give it a try on that host later.<br><br>James<br><br>_______________________________________________<br>Spacewalk-list mailing list<br><a ymailto="mailto:Spacewalk-list@redhat.com"
 href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a><br><a href="https://www.redhat.com/mailman/listinfo/spacewalk-list" target="_blank">https://www.redhat.com/mailman/listinfo/spacewalk-list</a><br></div></div>
</div><br>

      </body></html>