<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Zelut's Blog &#187; Automation</title>
	<atom:link href="http://blog.zelut.org/category/automation/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.zelut.org</link>
	<description>Brain Dump of a Linux Admin</description>
	<lastBuildDate>Sat, 12 Feb 2011 16:31:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>How To Configure PXE Boot on CentOS 5</title>
		<link>http://blog.zelut.org/2009/03/21/how-to-configure-pxe-boot-on-centos-5/</link>
		<comments>http://blog.zelut.org/2009/03/21/how-to-configure-pxe-boot-on-centos-5/#comments</comments>
		<pubDate>Sat, 21 Mar 2009 16:55:09 +0000</pubDate>
		<dc:creator>Christer</dc:creator>
				<category><![CDATA[Automation]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[dban]]></category>
		<category><![CDATA[pxe]]></category>

		<guid isPermaLink="false">http://blog.zelut.org/?p=95</guid>
		<description><![CDATA[The other day I blogged about how to extract the kernel and ramdisk from the DBAN downloadable image.  These two files would be useful in the situation where you might want to PXE (network) boot a machine and have it wiped.  (Something like this may be common prior to dispositioning a machine at work, or [...]]]></description>
			<content:encoded><![CDATA[<p>The other day I blogged about how to extract the kernel and ramdisk from the DBAN downloadable image.  These two files would be useful in the situation where you might want to PXE (network) boot a machine and have it wiped.  (Something like this may be common prior to dispositioning a machine at work, or before you give an old machine away.)  Whatever your reasons might be, I thought I would outline the steps that I have taken to install and configure PXE on a CentOS 5 installation.</p>
<p><strong>Installation</strong></p>
<blockquote><p><code>yum install tftp-server</code></p></blockquote>
<p><strong>DBAN Configuration</strong></p>
<p>After following my previous instructions on <a title="extract DBAN PXE image" href="http://blog.zelut.org/2009/03/08/dban-via-pxe-automagically-wipe-a-drive-via-network-boot/" target="_blank">how to extract the DBAN PXE images</a>, copy the two files (kernel.bzi and initrd.gz) to the /tftpboot/ directory.</p>
<blockquote><p><code>mkdir -p /tftpboot/dban<br />
cp kernel.bzi /tftpboot/<br />
cp initrd.gz /tftpboot/<br />
</code></p></blockquote>
<p><strong>PXE Configuration</strong></p>
<p>You&#8217;ll also need to configure the PXE system to know what to launch/run when a specific command is given at boot.  In this case we&#8217;ll only have the DBAN option, which we could run by using the &#8216;dban&#8217; command:</p>
<p><code>/tftpboot/pxelinux.cfg/default</code></p>
<blockquote><p>display msgs/boot.msg<br />
prompt 1<br />
## dban<br />
label dban<br />
kernel dban/kernel.bzi<br />
append load_ramdisk=1 initrd=dban/initrd.gz root=/dev/ram0 init=/rc quiet nuke=&#8221;dwipe&#8221; &#8211;autonuke &#8211;method dodshort&#8221;</p></blockquote>
<p>The first line in that file, &#8220;display&#8221; tells it to display a file as a menu prompt at boot time.  The second step in this section is creating that menu prompt:</p>
<p><code>/tftpboot/msgs/boot.msg</code></p>
<blockquote><p>**WARNING** TYPE &#8216;dban&#8217; TO AUTO-WIPE THE PXE BOOTED MACHINE.  **WARNING**</p></blockquote>
<p><strong>Start The Service</strong></p>
<p>Now that we have everything configured we&#8217;ll go ahead and start the service:</p>
<blockquote><p><code>service xinetd restart</code></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://blog.zelut.org/2009/03/21/how-to-configure-pxe-boot-on-centos-5/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>DBAN via PXE: Automagically Wipe a Drive via Network Boot</title>
		<link>http://blog.zelut.org/2009/03/08/dban-via-pxe-automagically-wipe-a-drive-via-network-boot/</link>
		<comments>http://blog.zelut.org/2009/03/08/dban-via-pxe-automagically-wipe-a-drive-via-network-boot/#comments</comments>
		<pubDate>Sun, 08 Mar 2009 17:02:21 +0000</pubDate>
		<dc:creator>Christer</dc:creator>
				<category><![CDATA[Automation]]></category>
		<category><![CDATA[dban]]></category>
		<category><![CDATA[pxe]]></category>

		<guid isPermaLink="false">http://blog.zelut.org/?p=55</guid>
		<description><![CDATA[One of my first assignments when I signed on with my new job was to rebuild and improve the internal repository server.  When I started it was quite a mess!  It only mirrored the last two revisions of Red Hat Enterprise, and didn&#8217;t have a whole lot of functionality.  Now that I&#8217;m done it supports [...]]]></description>
			<content:encoded><![CDATA[<p>One of my first assignments when I signed on with my new job was to rebuild and improve the internal repository server.  When I started it was quite a mess!  It only mirrored the last two revisions of Red Hat Enterprise, and didn&#8217;t have a whole lot of functionality.  Now that I&#8217;m done it supports Red Hat 3-5, both i386 and x86_64 as well as the respective CentOS releases.  It mirrors Ubuntu, Fedora, openSUSE and I added a few little tricks to the PXE server which allows us to build or destroy machines without needing to burn a CD.  One of the features that I really like is the addition of DBAN to the PXE setup, allowing us to securely wipe drives on multiple machines without the need for any CDs or other boot media.  Here is how I went about it:</p>
<p><strong>Create Required Directories </strong></p>
<blockquote><p><code>mkdir /tftpboot/dban/</code></p></blockquote>
<p><strong> Download Latest Dban </strong></p>
<blockquote><p><code>wget -c http://prdownloads.sourceforge.net/dban/dban-1.0.7_i386.iso</code></p></blockquote>
<p><strong> Extract Dban Kernel and Initrd </strong></p>
<blockquote><p><code>mount -o loop dban-1.0.7_i386.iso /mnt/<br />
cp /mnt/dban_1_0_7_i386.ima ~<br />
mount -o loop ~/dban_1_0_7_i386.ima /mnt/<br />
cp /mnt/{initrd.gz,kernel.bzi} /tftpboot/dban/<br />
umount /mnt/ &amp;&amp; umount /mnt/</code></p></blockquote>
<p>These instructions don&#8217;t outline how to actually setup the PXE functionality, but simply go over how to extract the required kernel and ramdisk image which will allow for network booting.  It would be nice if the DBAN site would offer something like this directly, but until then its not much more work.  I&#8217;ll do another post soon on how to setup the actual PXE server and configure it to use this newly extracted kernel and ramdisk.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.zelut.org/2009/03/08/dban-via-pxe-automagically-wipe-a-drive-via-network-boot/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced
Database Caching 1/15 queries in 0.007 seconds using disk: basic
Object Caching 268/284 objects using disk: basic

Served from: blog.zelut.org @ 2012-02-07 11:52:49 -->
