qemu-devel
[Top][All Lists]
Advanced

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

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


From: Gerd Hoffmann
Subject: Re: [Qemu-devel] [RFC] gPXE fw_cfg file interface support
Date: Wed, 27 Jan 2010 11:15:00 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.5) Gecko/20091209 Fedora/3.0-4.fc12 Thunderbird/3.0

gPXE>  imgfetch fw_cfg:genroms/static.gpxe

Neat idea. On the qemu side we better shouldn't abuse the -option-rom switch though as seabios will try to load these files as option roms.

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

cheers,
  Gerd





reply via email to

[Prev in Thread] Current Thread [Next in Thread]