From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [libvirt-users] vm pxe fail Date: Tue, 04 Sep 2012 14:44:36 +0300 Message-ID: <5045E9A4.8060600@redhat.com> References: <373249598.27726511.1346758267120.JavaMail.root@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: Alex Jia Return-path: Received: from mx1.redhat.com ([209.132.183.28]:44996 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752375Ab2IDLos (ORCPT ); Tue, 4 Sep 2012 07:44:48 -0400 In-Reply-To: <373249598.27726511.1346758267120.JavaMail.root@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On 09/04/2012 02:31 PM, Alex Jia wrote: > ----- 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. We could have qemu autoload /usr/share/qemu/roms/vendor-device.rom, and symlink /usr/share/qemu/roms to /usr/share/ipxe/roms or something. -- error compiling committee.c: too many arguments to function