Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pxe automatic os installation infinite installation.
2014-03-25, 02:32
Post: #2
RE: pxe automatic os installation infinite installation.
The way I do it is:

1) set the dhcpd.conf param "next-file" to something like http://${dhcp-server}/ipxe.cgi?mac=${net0/mac}
2) write the ipxe.cgi script so that it gets the client's MAC address, lookups it up in a database that says if it should install the OS or not.
2a) If it's blank in the database, then generate an ipxe script that presents a tools menu with a few seconds of timeout. After timing out, exit from ipxe and let bios boot normally.
2b) If the database entry for that host isn't blank, generate an ipxe script that will install the OS (again: after displaying a tools menu with a short timeout that defaults to installing the given OS)
3) At the end of the automated install, run wget http://1.2.3.4/clearMe.cgi Which is a script that does a lookup of the remote IP address and clears out the OS install field in the database.

That keeps it so that other machines don't have access to the database directly.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: pxe automatic os installation infinite installation. - TheAmigo - 2014-03-25 02:32



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