From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Na4vg-0002fp-4L for qemu-devel@nongnu.org; Wed, 27 Jan 2010 05:15:20 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Na4va-0002ea-FO for qemu-devel@nongnu.org; Wed, 27 Jan 2010 05:15:18 -0500 Received: from [199.232.76.173] (port=54852 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Na4va-0002eT-Bo for qemu-devel@nongnu.org; Wed, 27 Jan 2010 05:15:14 -0500 Received: from mx1.redhat.com ([209.132.183.28]:17428) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Na4vZ-0004ZH-Un for qemu-devel@nongnu.org; Wed, 27 Jan 2010 05:15:14 -0500 Message-ID: <4B601224.2030803@redhat.com> Date: Wed, 27 Jan 2010 11:15:00 +0100 From: Gerd Hoffmann MIME-Version: 1.0 Subject: Re: [Qemu-devel] [RFC] gPXE fw_cfg file interface support References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: gpxe , qemu-devel@nongnu.org > 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