Need of iPXE boot in VirtualBox using a ROM with HTTP support
|
2014-11-07, 16:32
(This post was last modified: 2014-11-07 20:28 by q2dg.)
Post: #1
|
|||
|
|||
Need of iPXE boot in VirtualBox using a ROM with HTTP support
Hello.
I want to use iPXE to boot a VirtualBox's virtual machine using a ROM which can use HTTP protocol, but what I finally get is a ROM which can use TFTP and some more protocols, but no HTTP. I write you the steps I've done...I don't know what I'm missing: 1.-After fetching iPXE source code as usual (git clone git://git.ipxe.org/ipxe.git) I've commented the line #undef DOWNLOAD_PROTO_HTTP from ipxe/src/config/vbox/general.h hoping to activate HTTP protocol in my compiled ROM (why is HTTP deactivated by default in vbox specific configuration??!!). I've not seen this step anywhere, but I've done this using "common sense". 2.-Then I've made the compilation with the command: make CONFIG=vbox bin/8086100e.isarom ("8086100e" is the vendor_id of the default net card in VirtualBox, the Intel Pro/1000 MT Desktop) 3.-As seen in https://git.ipxe.org/ipxe.git/blob/HEAD:...ox/README, I've replaced the default rom of VirtualBox with my recently compiled one with the command: vboxmanage setextradata "MyVMName" VBoxInternal/Devices/pcbios/0/Config/LanBootRom /home/myusername/ipxe/src/bin/8086100e.isarom And that's all: iPXE works but HTTP feature is missing, and I don't know why!! I really need it. Thanks a lot. Best regards PD: I use last VirtualBox (4.3.18) in a Fedora 20 x86_64 host machine |
|||
2014-11-07, 23:49
(This post was last modified: 2014-11-08 00:26 by q2dg.)
Post: #2
|
|||
|
|||
RE: Need of iPXE boot in VirtualBox using a ROM with HTTP support
Well...this thread is talking EXACTLY about this issue: http://lists.ipxe.org/pipermail/ipxe-dev...02166.html
Thanks to it I've seen there is a problem with compiled ROM size: in logs of my VM it says: DevPcBios: Failed to open LAN boot ROM file '/home/myusername/ipxe/src/bin/8086100e.isarom', rc=VERR_TOO_MUCH_DATA! ...and in https://git.ipxe.org/ipxe.git/blob/HEAD:...box/README I can read "Max size of a VirtualBox ROM is 56KB, 57344 bytes", when my compiled ROM exceeds 60KB. So...I will keep going... I've solved!! I've added to ipxe/src/config/vbox/general.h these two lines for disabling TFTP and DNS: #undef DOWNLOAD_PROTO_TFTP #undef DNS_RESOLVER and I've got a compiled ROM of just just 57344 bytes. And it works! Yeah!! |
|||
2014-12-03, 16:00
Post: #3
|
|||
|
|||
RE: Need of iPXE boot in VirtualBox using a ROM with HTTP support
Congratulations! The reason for disabling HTTP on the default vbox build is to make sure you get drivers for all the different virtual NICs vbox supports. To do that we had to strip out almost all of the iPXE-specific functionality and only keep core PXE features.
If you can get rid of core PXE-required features on your specific network you can customize the build further. The purpose with the default vbox configuration was to be able to build a ROM that could replace the non-free Intel PXE ROM used by VirtualBox without lacking any core PXE features. |
|||
2015-03-30, 09:36
Post: #4
|
|||
|
|||
RE: Need of iPXE boot in VirtualBox using a ROM with HTTP support
(2014-12-03 16:00)robinsmidsrod Wrote: Congratulations! The reason for disabling HTTP on the default vbox build is to make sure you get drivers for all the different virtual NICs vbox supports. To do that we had to strip out almost all of the iPXE-specific functionality and only keep core PXE features. Well has onyone succeeded in a build of a virtio isarom with http booting ? |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 4 Guest(s)