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

Re: [Xen-users] Startup-Hook Script ?


  • To: xen-users@xxxxxxxxxxxxxxxxxxx
  • From: "Fajar A. Nugraha" <fajar@xxxxxxxxx>
  • Date: Tue, 01 Jul 2008 16:43:09 +0700
  • Delivery-date: Tue, 01 Jul 2008 02:43:48 -0700
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

Steffen Heil wrote:
Great idea. I didn't know I could implement bootloaders myself.
I merged my block-script with your bootloader-script and it works great.


Last problem: The "exit 3" does not seem to work correctly. Whenever a
problem exists, xm create just hangs instead of stopping...


When that happens, I have to "xm destroy" the newly created domU :)

I believe that's because --output (/var/run/xend/boot/xenbl.3079 in my example) is a pipe, and xen is simply waiting on that pipe. It doesn't know that the bootloader has quit. Perhaps you can try feeding it with an empty line, or perhaps some garbage like

linux (kernel /tmp/not_found)(ramdisk /tmp/not_found)(args "")

whose purpose is simply to tell xen it has finished. AFAIK, if xen can't find the mentioned kernel/initrd it simply quits with an error message anyway.

Regards,

Fajar

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.