[gPXE] [Qemu-devel] [RFC] gPXE fw_cfg file interface support

Stefan Hajnoczi stefanha at gmail.com
Fri Jan 29 05:06:23 EST 2010


On Wed, Jan 27, 2010 at 10:15 AM, Gerd Hoffmann <kraxel at redhat.com> wrote:
>> Note that this patch only adds the fw_cfg file interface mechanism, it
>> does not
>> automatically probe for a special file when gPXE starts.  You will
>> need to manually
>> "chain fw_cfg:genroms/file".
>
> That should be changed too IMHO.  qemu needs some kind of new switch, so you
> can place the firmware file into some other virtual directory where gpxe
> could look by default, i.e. something like "fw_cfg:gpxe/default". Then you
> can easily have qemu guests netboot from somewhere without any local
> pxe/tftp setup, like this:
>
>  qemu -fw-file gpxe/default=bko.gpxe
>
> with bko.gpxe being:
>
>  #!gpxe
>  dhcp net0
>  set 209:string pxelinux.cfg/default
>  set 210:string http://boot.kernel.org/bko/
>  chain http://boot.kernel.org/bko/pxelinux.0

That sounds good.  I will send out a new patch which fetches
fw_cfg:gpxe/default on startup.

Stefan


More information about the gPXE mailing list