<div class="gmail_quote">On Thu, Mar 8, 2012 at 5:36 PM, Stefan Hajnoczi <span dir="ltr"><<a href="mailto:stefanha@gmail.com">stefanha@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Thu, Mar 8, 2012 at 3:53 PM, Laurent Eschenauer<br>
<<a href="mailto:laurent@eschenauer.be">laurent@eschenauer.be</a>> wrote:<br>
> Below is a kinda crazy idea that I'm working on, and I'm now stuck due to my<br>
> gPxe kernel not having the 'boot protocol' >= 2.08. I'm not a kernel guru;<br>
> so I hope someone on this list may have some ideas/pointers to move<br>
> forward.<br>
><br>
> The context:<br>
> I'm trying to create an Amazon EC2 AMI that just boots a gPxe kernel which<br>
> then chain to the EC2 user data to get its pxe configuration. This would<br>
> enable to directly provision any kind of machine on EC2 using pxe, removing<br>
> the hassle of building/uploading images. Kickstart based install also enable<br>
> to customize the partition table, the packages, etc..<br>
><br>
> What I did so far:<br>
> EC2 (which is Xen based) enable to boot on custom kernels (using pv-grub).<br>
<br>
</div>I'm not sure this can ever work. My Xen knowledge is small. Can you<br>
please confirm that there is a BIOS and a network interface supported<br>
by gPXE inside the EC2 instance?<br></blockquote><div><br></div><div>Good question :-) </div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I suspect the guest may be paravirtualized with no BIOS and Xen pv<br>
devices which gPXE does not support. In other words, gPXE doesn't<br>
support Xen's pv architecture (which is different from the regular x86<br>
architecture).<br></blockquote><div><br></div><div>Indeed, it seems pv-grub requires to boot on a kernel with pv-ops enabled. There is no way to force full virt on EC2 or change anything wrt xen versions or loader etc. </div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Sorry, I don't have time to dig into this but it's a requirement<br>
before it would even be worth trying to execute the gPXE image.</blockquote><div><br></div><div>You've helped a lot already, saving me days of working towards a dead end. I'll try to setup my own xen server + pv-grub to do testing in a controlled environment before going further.</div>
<div><br></div><div>Thanks for the help,</div><div><br></div><div>Laurent</div></div>