The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 807 - File: showthread.php PHP 7.3.15 (Linux)
File Line Function
/showthread.php 807 errorHandler->error





Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
iPXE HTTP boot using PHP
2019-11-18, 00:02
Post: #1
iPXE HTTP boot using PHP
Hi!

* I am trying to load Fedora 30 over http, so I ran a php server

$ php -S 192.168.5.140:8080

* I put an ipxe.usb on a usb stick

$ wget http://boot.ipxe.org/ipxe.usb
$ dd if=bin/ipxe.usb of=/dev/sdb

* then booted up virtualbox from the usb stick

* manually typed to iPXE

iPXE> chain http://192.168.5.140:8080/boot.php

* I got an output from the php server:

[Sun Nov 17 19:16:10 2019] 192.168.5.180:54685 [200]: /boot.php
[Sun Nov 17 19:16:10 2019] 192.168.5.180:57370 [200]: /Fedora30/pxeboot/vmlinuz
[Sun Nov 17 19:16:10 2019] 192.168.5.180:21219 [200]: /Fedora30/pxeboot/initrd.img
[Sun Nov 17 19:16:28 2019] 192.168.5.180:59228 [200]: /Fedora30/install.img/.treeinfo

* and then it all stoped - as i do not have the file .treeinfo

* content of boot.php is:

#!ipxe

set base http://192.168.5.140:8080/Fedora30

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

boot

# end of boot.php

* Fedora files are downloaded from archives.fedoraproject.org

$ wget https://archives.fedoraproject.org/pub/a...s/boot.iso
$ wget https://archives.fedoraproject.org/pub/a...fiboot.img
$ wget https://archives.fedoraproject.org/pub/a...nstall.img
$ wget https://archives.fedoraproject.org/pub/a...acboot.img

$ mkdir -p pxeboot
$ cd pxeboot

$ wget https://archives.fedoraproject.org/pub/a...initrd.img
$ wget https://archives.fedoraproject.org/pub/a...ot/vmlinuz

$ tree
.
├── boot.iso
├── efiboot.img
├── install.img
├── macboot.img
├── pxeboot
├── initrd.img
   └── vmlinuz


* I probably downloaded something wrong as the boot process is not all clear to me

* please, can someone help me get the iPXE boot to work

Many thanks!

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 - cckp - 2019-11-20, 06:18



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