<div dir="ltr">On 7 October 2014 13:18, Lennart Sorensen <span dir="ltr"><<a href="mailto:lsorense@csclub.uwaterloo.ca" target="_blank">lsorense@csclub.uwaterloo.ca</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="">On Tue, Oct 07, 2014 at 07:01:42AM -0400, Matt Price wrote:<br>
> Lennart, can you explain that process in more detail?  I mean, what tool<br>
> would one PXE boot from?<br>
><br>
> Walter, that is helpful but still sounds pretty time-consuming -- I would<br>
> like to find a way to have an unattended re-imaging that can run<br>
> more-or-less simultaneously on all the machines.<br>
<br>
</span>If the BIOS has an option for network boot, then you could enable that.<br>
Then the server would have to have 'pxe' (pxe boot daemon) running to<br>
send the boot files to the client when it powers on.  This would then<br>
provide the boot menu and such for the client, which could normally be<br>
to load the kernel and ramdisk from the local disk, or to network boot<br>
a kernel and ramdisk that reflash the local disk, perhaps using partimage<br>
to transfer the image from the server to the client.<br>
<br>
You might even set up wake on lan if supported so you could remotely<br>
turn the machines on when you want them to do the reimaging of the disk.<br>
In fact a lot of machines can have a different boot order for normal<br>
boot versus wake on lan boot making some parts even simpler.</blockquote><div><br></div><div>Scott Sullivan did a talk on setting up PXE boot a couple of years ago.  I<br>recently pointed back to the memories when I put in a new media<br></div><div>machine (Zotac ID-88), and found it wasn't recognizing bootable CDs,<br></div><div>only to realize that some of the messages in the failing boot indicated<br>a "looking for PXE" step.<br><br>I was keen on putting Debian in place, so the following instructions were<br>relevant to that:<br>   <a href="https://wiki.debian.org/PXEBootInstall">https://wiki.debian.org/PXEBootInstall</a><br><br></div><div>The somewhat oversimplifcation is that you need to set up several things<br></div><div>on a central server:<br></div><div>a) Modify DHCP to indicate the offering of PXE boot<br>b) Install tftp on the server, and put install files in a suitable place<br></div><div>    so clients may pull them<br></div><div><br>The "most magical" part, which is open-ended as to how sophisticated<br>it can get, is the part of controlling what gets installed.<br><br>In my "wanna install Debian" case, it was simple enough; I grabbed a<br>stock Debian netboot install and threw that into place.  I didn't much<br>care how time-consuming later steps were.  Presumably this means I'll<br>not likely be pulling many Debian CD images anymore; using PXE is<br></div><div>about as easy, and simpler as it consumes no CDs/DVDs.<br></div><div><br></div><div>If you want to have a bunch of MINT machines with extensive common<br>configuration, then it's worth jumping through some hoops to customize<br>the net install so it needs little work later.<br><br>There are some instructions on this for MINT:<br>   <a href="http://forums.linuxmint.com/viewtopic.php?f=197&t=96322">http://forums.linuxmint.com/viewtopic.php?f=197&t=96322</a><br></div></div><br clear="all"></div><div class="gmail_extra">It's worth your while to look into some automation tools for installing<br>common things that need to be on each machine.  My answer is<br>cfengine2 (I haven't migrated to v3); others like Chef/Puppet/Ansible.<br></div><div class="gmail_extra">My sense is that it's likely preferable to have a fairly simple<br></div><div class="gmail_extra">installation, and use tools to do system management afterwards.<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">I know Scott has gone through the notion of having scripting designed<br></div><div class="gmail_extra">to customize Fedora/CentOS installations; that's a different<br>approach, but certainly valid.  If you wanted MINT, then his scripts<br>are likely useless to you, alas.<br></div><div class="gmail_extra">-- <br>When confronted by a difficult problem, solve it by reducing it to the<br>question, "How would the Lone Ranger handle this?"<br>
</div></div>