From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Jia Subject: Re: [libvirt-users] vm pxe fail Date: Tue, 4 Sep 2012 07:31:07 -0400 (EDT) Message-ID: <373249598.27726511.1346758267120.JavaMail.root@redhat.com> References: <5044B02C.1040604@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: Andrew Holway , kvm@vger.kernel.org To: Avi Kivity Return-path: Received: from mx3-phx2.redhat.com ([209.132.183.24]:60104 "EHLO mx3-phx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932095Ab2IDLbO (ORCPT ); Tue, 4 Sep 2012 07:31:14 -0400 In-Reply-To: <5044B02C.1040604@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: ----- Original Message ----- From: "Avi Kivity" To: "Alex Jia" Cc: "Andrew Holway" , kvm@vger.kernel.org Sent: Monday, September 3, 2012 9:27:08 PM Subject: Re: [libvirt-users] vm pxe fail On 08/31/2012 05:37 PM, Alex Jia wrote: > Hi Andrew, > Great, BTW, in fact, you may pxe boot via VF of Intel82576, however, Intel82576 SR-IOV network adapters > don't provide a ROM BIOS for the cards virtual functions (VF), but an image of such a ROM is available, > and with this ROM visible to the guest, it can PXE boot. > > In libvirt's xml, you need to configure guest XML like this: > > > >
> > > > > > You need to build a ipxe-808610ca.rom by yourself, if you're interested in this, > please refer to http://ipxe.org/. Is there a way to automate this? Perhaps a database matching PCI IDs and ipxe .roms, which qemu could consult? Hi Avi, Good question, I haven't try this via qemu yet, from libvirt POV, basically, we may filter and parse 'lspci' or 'virsh nodedev-list --tree' output to get a bus, slot and function number then add them into above guest XML, WRT above 'ipxe-808610ca.rom' file, we may directly 'git clone git://git.ipxe.org/ipxe.git' then compile it and generate a .rom file such as 82576.rom or use a vendor+product id as a rom name if you like. Regards, Alex -- error compiling committee.c: too many arguments to function