I'm new to cobbler, seems interesting to explore this. As for rebooting a system post-build, I have had success moving the native "/etc/rc.d/rc.local" out of the way, instantiating my own to accomplish the tasks I want via `exec`. I'm "exec"ing a secondary script, so that at the end of the processing of my other script I put "/etc/rc.d/rc.local" back, and reboot as the last thing I do. R, -Joe Wulf, CISSP, USN(RET) Senior IA Engineer ProSync Technology Group, LLC www.prosync.com -----Original Message----- From: et-mgmt-tools-bounces@xxxxxxxxxx [mailto:et-mgmt-tools-bounces@xxxxxxxxxx] On Behalf Of Michael DeHaan Sent: Friday, April 25, 2008 15:56 To: Fedora/Linux Management Tools Subject: Re: Restarting xen guest after koan installation Brenton Leanhardt wrote: > I'm having trouble getting my Xen paravirt guests to reboot after > kickstarting via koan. From what I hear on IRC this is possible > though I was not able to get it working with the kickstart that iranzo > kindly let me borrow. > > Here's my configuration: > RHEL 5.1 koan-0.8.0-1.el5 > xen-libs-3.0.3-41.el5 > kernel-xen-2.6.18-53.el5 > xen-3.0.3-41.el5 > > Fedora 8 with Cobbler 0.8.3 > > After looking at the koan and virtinst code I simply don't see how it > would be possible for the guest to be rebooted after installation. > What led me down the path of thinking this is not a problem with my > kickstart is that fact that at kickstart time 'virsh dumpxml <myDomU>' > shows that on_reboot is set to "destroy". This appears to be the > desired behavior from looking at virtinst. I tried changing virtinst > to restart after installation but the OS cmdline causes the guest to > get rekicked (that's probably why it's set to "destroy"). "restart" > in virtinst the OS cmdline. > > Is there some magical flag to koan I'm missing to make rebooting > possible? For my purposes I even looked into using libvirt to change > the DomU's in memory configuration at kickstart time. That doesn't > seem to be possible from looking at the API (probably for good > reasons). There is a limitation in the libraries (Xen I think?) that you can't reboot a guest automatically after installation. I've wanted to work around this also. This is however, something you could script with Func, and possibly cobbler post-install triggers. --Michael > > --Brenton > > _______________________________________________ > et-mgmt-tools mailing list > et-mgmt-tools@xxxxxxxxxx > https://www.redhat.com/mailman/listinfo/et-mgmt-tools _______________________________________________ et-mgmt-tools mailing list et-mgmt-tools@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/et-mgmt-tools _______________________________________________ et-mgmt-tools mailing list et-mgmt-tools@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/et-mgmt-tools