WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

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

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
<Prev in Thread] Current Thread [Next in Thread>