Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
iPXE HTTP boot using PHP
2019-11-19, 23:16 (This post was last modified: 2019-11-19 23:22 by darkoni.)
Post: #2
RE: iPXE HTTP boot using PHP
Hi everyone !

If you take a look for the chain command

http://ipxe.org/cmd/chain

you can see

chain http://boot.ipxe.org/demo/boot.php

and you can download content of http://boot.ipxe.org/demo/boot.php to see what is inside Smile

Code:
#!ipxe

kernel vmlinuz-3.16.0-rc4 bootfile=http://boot.ipxe.org/demo/boot.php fastboot initrd=initrd.img
initrd initrd.img
boot

and you can also try to see if there is any content on

http://boot.ipxe.org/

There is !!! Also for Fedora :-)

http://boot.ipxe.org/fedora/14/install.ipxe

Code:
#!ipxe

echo
prompt -k 0x197e -t 2000 Press F12 to install Fedora... || exit

set base http://download.fedoraproject.org/pub/fedora/linux/releases/14/Fedora/x86_64/os/images

kernel ${base}/pxeboot/vmlinuz stage2=${base}/install.img
initrd ${base}/pxeboot/initrd.img
boot

Then I wget the mentioned files to my local machine

Code:
base=http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/14/Fedora/x86_64/os/images
wget ${base}/pxeboot/vmlinuz
wget ${base}/install.img
wget ${base}/pxeboot/initrd.img

and rewrite boot.php

Code:
#!ipxe

set base http://192.168.5.140:8080/Fedora14
kernel ${base}/vmlinuz inst.stage2=${base}/install.img
initrd ${base}/initrd.img
boot

And everything works !!!

Filesystem is loaded from install.img !!!

It works !!!

PS: why is there no mention of the argument inst.stage2 in documentation ?

http://ipxe.org/cmd/chain

If you just write the argument stage2= - it doesn't work...

Please, can you mention the argument inst.stage2 in the documentation ?

PPS: tommorow I will try to run Fedora 30 Live in this way, so stay in touch :-)

Darkoni
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
iPXE HTTP boot using PHP - darkoni - 2019-11-18, 00:02
RE: iPXE HTTP boot using PHP - darkoni - 2019-11-19 23:16
RE: iPXE HTTP boot using PHP - cckp - 2019-11-20, 06:18



User(s) browsing this thread: 1 Guest(s)