This is an old revision of the document!


A PCRE internal error occured. This might be caused by a faulty plugin

====== Creating Custom pxe images/rom for your network card, which can directly boot from PxeKnife using HTTP ====== You can use the site http://www.alien.doesntexist.org/pxeknife/PHP/gpxe_generation/ which will allow you to generate custom ROM images which are having embedded scripts to boot from PXEKnife over HTTP. As this code is based on //rom-o-matic//, it allows same amount of cusomizability. ===== Supported Network types ===== By default, it supports both network types. - Initially it tries to boot using DHCP - If it fails, then it give interface to the user that can be used to provide following details, and boot using them. - IP address - Netmask - Router - DNS ===== How it is done? ===== This is done by adding embedded scripts into the cusomized boot image created by you. It is modification of //rom-o-matic// codebase. The //rom-o-matic// compilation command is as follows. <code> make -C '$dir' '$target' </code> And we add embedded scripts to it by doing following <code> make -C '$dir' EMBEDDED_IMAGE=./pxeDHCP.gpxe,./pxeSTATIC.gpxe '$target' </code> ==== What are those Scripts ? ==== the script //./pxeDHCP.gpxe// contains following code <code> #!gpxe echo "Hi, We will be using PXEKnife from URL http://www.alien.doesntexist.org/pxeknife" echo "It is assumed that you have dhcp networking" imgload pxeSTATIC.gpxe imgstat ifopen net0 echo "Hit Control+C to cancel DHCP" echo "You may want to do this if you want to use static-IP" echo "Otherwise, it will try DHCP, and then anyway go to static-IP" sleep 4 dhcp net0 set 209:string pxelinux.cfg/default set 210:string http://www.alien.doesntexist.org/pxeknife/ echo "Here we go" chain http://www.alien.doesntexist.org/pxeknife/pxelinux.0 echo "PxeKnife booting cancelled, using local disk instead.." </code> and //./pxeSTATIC.gpxe// contains following script. <code> #!gpxe echo "As you dont have DHCP, you need to give details about network configuration" echo "Soon, you will be presented with interface to provide details about network configuration" echo "Please provide, IP address, Netmask, Gateway and Router" ifopen net0 set net0/ip 10.0.2.15 set net0/netmask 255.255.255.0 set net0/gateway 10.0.2.2 set net0/dns 10.0.2.3 sleep 3 config set 209:string pxelinux.cfg/default set 210:string http://www.alien.doesntexist.org/pxeknife/ echo "Here we go" chain http://www.alien.doesntexist.org/pxeknife/pxelinux.0 echo "PxeKnife booting cancelled, using local disk instead.." </code> ==== Hosting ==== The code is hosted at URL [[http://www.alien.doesntexist.org/pxeknife/PHP/gpxe_generation/]]


Navigation

* [[:start|Home]] * [[:about|About our Project]] * [[:download|Download]] * [[:screenshots|Screenshots]] * Documentation * [[:howtos|HowTo Guides]] * [[:appnotes|Application Notes]] * [[:faq:|FAQs]] * [[:doc|General Doc]] * [[:talks|Videos, Talks, and Papers]] * [[:hardwareissues|Hardware Issues]] * [[:mailinglists|Mailing lists]] * [[http://support.etherboot.org/|Bugtracker]] * [[:contributing|Contributing]] * [[:editing_permission|Wiki Edit Permission]] * [[:wiki:syntax|Wiki Syntax]] * [[:contact|Contact]] * [[:relatedlinks|Related Links]] * [[:commerciallinks|Commercial Links]] * [[:acknowledgements|Acknowledgements]] * [[:logos|Logo Art]]

QR Code
QR Code soc:2009:pravin:journal:pxekniferomomatichttp (generated for current page)