<?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>Diznix Blog &#187; installation</title>
	<atom:link href="http://diznix.com/tag/installation/feed/" rel="self" type="application/rss+xml" />
	<link>http://diznix.com</link>
	<description>News from Nowhere</description>
	<lastBuildDate>Wed, 16 May 2012 00:32:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Kickstarting your Linux Installations</title>
		<link>http://diznix.com/2011/05/19/kickstarting-your-linux-installations/</link>
		<comments>http://diznix.com/2011/05/19/kickstarting-your-linux-installations/#comments</comments>
		<pubDate>Thu, 19 May 2011 04:46:31 +0000</pubDate>
		<dc:creator>dizwell</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[automation]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[Kickstart]]></category>
		<category><![CDATA[operating system]]></category>

		<guid isPermaLink="false">http://diznix.com/?p=892</guid>
		<description><![CDATA[If you install Oracle enough times, you will probably soon become sick of having first to install the same Operating System over and over again, every time remembering to take the same options, type the same info and configure things &#8230; <a href="http://diznix.com/2011/05/19/kickstarting-your-linux-installations/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If you install Oracle enough times, you will probably soon become sick of having first to install the same Operating System over and over again, every time remembering to take the same options, type the same info and configure things identically! If only you could automate and standardise the O/S installation!</p>
<p>Well, of course, you can -so long as you&#8217;re using Red Hat Enterprise Server (or one of its clones, such as Oracle Enterprise Linux, Scientific Linux or Centos). The mechanism to use is called <strong>kickstart</strong> and it&#8217;s been around for years (and it&#8217;s available for Fedora, but nothing in this article should be taken to apply there, because it&#8217;s a very different beast compared to &#8220;proper&#8221; server OSes).</p>
<p>In a nutshell, kickstart is simply a text file that contains a stored list of configuration options taken from a previous, manual OS install. When you come to do your second and subsequent installs, you boot from the OS DVD as normal but then point the installer to this kickstart configuration file to &#8216;auto-fill&#8217; in all other aspects of the new installation process. From that point on, there&#8217;s little or no interaction required: the install just polishes itself off.</p>
<p>Kickstart, in short, makes Red Hat-like operating system installs predictable, reliable, repeatable -and a lot faster!</p>
<p>The kickstart configuration file required for a Red Hat 6-based distro (i.e., Red Hat itself, or a freebie clone like Scientific Linux) is slightly different than that required for a Red Hat 5-based distro, so I have download-able examples of both types here:</p>
<ul>
<li><a href="http://dl.dropbox.com/u/30619235/kickstart/rh5.cfg">Red Hat 5-based kickstart configuration file</a></li>
<li><a href="http://dl.dropbox.com/u/30619235/kickstart/rh6.cfg">Red Hat 6-based kickstart configuration file</a></li>
</ul>
<p>You could download those, see how they work and then edit them to suit. Alternatively, just do a regular, manual install and check out the <strong>/root/anaconda-ks.cfg</strong> file (which is automatically generated every time you do a Red Hat-a-like installation) and go from there.</p>
<p>One of the nice things about Kickstart is that it gives you an easy way of slimming down your distro installs&#8230; you&#8217;ll notice from my example files, for instance, that I add lines such as <strong>-evolution</strong> or <strong>-sendmail</strong>: the minus sign means &#8220;don&#8217;t install&#8221;, so you end up with an O/S install that&#8217;s mercifully free of a lot of the cruft that otherwise tends to clog them up. It&#8217;s trivial, of course, to edit the configuration file to add back anything I&#8217;ve taken out that you think is important.</p>
<p>You&#8217;ll note from my example files, too, that I&#8217;ve taken a fairly generic approach to things: a server installed using these files will end up being called <strong>oraclebox.dizwell.home</strong>, for example. Again, if that&#8217;s not suitable for you (and I doubt that it would be!), feel free to edit the file before you use it. Similarly, I set my root password to <strong>dizwell</strong> and I configure networking with <strong>DHCP</strong> (because I know what I should use as a static IP address in my own home, but what works for me might not work for you). I also use <strong>Greenwich Mean Time</strong> as my time zone. These are all configurable by means of a simple text edit, but you should at least be aware of the need to look at these options!</p>
<p>I suppose the only slight difficulty with kickstart is how you tell the O/S installer where to find the kickstart configuration file in the first place. There are basically two options I use: if I&#8217;m at home, I point the machine being installed to the feeble Apache web server I run on an old, vintage 2003 laptop. If I&#8217;m anywhere else, I point it to a floppy disk image containing the configuration files (or to an actual floppy disk created from that image).</p>
<p>Again, the procedures involved differ slightly between RH5 and RH6. Here&#8217;s an example of me telling Centos 5.6 to use my web server&#8217;s copy of the right file:</p>
<p><a href="http://diznix.com/wp-content/uploads/2011/05/sl6-2011-05-19-14-14-14.png" rel="lightbox[892]"><img class="alignleft size-medium wp-image-930" title="SL6-2011-05-19-14-14-14" src="http://diznix.com/wp-content/uploads/2011/05/sl6-2011-05-19-14-14-14.png?w=300" alt="" width="300" height="225" /></a></p>
<p>Where it says &#8220;boot:&#8221;, you simply type the word <strong>linux</strong> followed by <strong>ks=</strong> and then the location and name of the kickstart configuration file. In my case, my web server is running on 192.168.0.1, and it&#8217;s called &#8220;rh5.cfg&#8221;. Once you get that location/name right, press Enter&#8230; and that should be the last time you have to interact with the O/S installer: everything else will happen automatically.<strong> </strong></p>
<p>Here&#8217;s how you do it in Scientific Linux 6 (you get here by hitting the TAB key when the installation menu is first displayed):</p>
<p><a href="http://diznix.com/wp-content/uploads/2011/05/sl6-2011-05-19-13-54-10.png" rel="lightbox[892]"><img class="alignleft size-medium wp-image-927" title="SL6-2011-05-19-13-54-10" src="http://diznix.com/wp-content/uploads/2011/05/sl6-2011-05-19-13-54-10.png?w=300" alt="" width="300" height="225" /></a>That can be a bit difficult to read, given SL&#8217;s choice of boot wallpaper! So let me spell it out: when you hit TAB with the first menu option highlighted (to &#8216;install or upgrade an existing system&#8217;), you&#8217;ll see the command <strong>vmlinux initrd=initrd.img</strong> already sitting there. So this time, you <em>don&#8217;t</em> have to type the word &#8220;linux&#8221;: all you have to do is to add on the bit which says where the Kickstart file can be found &#8230;which again involves typing <strong>ks=</strong> followed by the correct location and name of the kickstart configuration file.</p>
<p>If in either the Red Hat 5 or 6 cases you&#8217;d instead stored your Kickstart files on a floppy disk (or on a floppy image which is behaving as a floppy disk), instead of typing something like <em>ks=http://192.168.0.1/name-of-config-file.cfg</em>, you&#8217;d type:</p>
<p><strong>ks=hd:fd0/name-of-config-file.cfg</strong></p>
<p>The only real change, therefore, is the device-name bit: <strong>hd:fd0</strong> is how you say &#8220;floppy&#8221;, and <strong>http://w.x.y.z</strong> is how you say &#8220;web server&#8221;.</p>
<p>Incidentally, if you&#8217;re using virtual machines to practice with, you can simply add a floppy drive to your VM and point it to an <em>image</em> of a floppy disk. I have the two Kickstart configuration files saved on such a floppy image, <a href="http://dl.dropbox.com/u/30619235/kickstart/kickstart.img">which you can download here</a>. So just point your VM&#8217;s floppy disk to that download. How you do that depends on your choice of virtualization software. Here&#8217;s how you&#8217;d do it in VMware Workstation, for example:</p>
<p><a href="http://diznix.com/wp-content/uploads/2011/05/vmadd-floppy1.png" rel="lightbox[892]"><img class="alignnone size-full wp-image-931" title="VMadd floppy1" src="http://diznix.com/wp-content/uploads/2011/05/vmadd-floppy1.png" alt="" width="441" height="385" /></a></p>
<p>&#8230;after which, you just click through the wizard and browse to the floppy image in the standard way. The same sort of process works in VirtualBox, too. Happily, the same floppy image works just as well in VMware (Workstation, Server and ESXi) as in VirtualBox.</p>
<p>Note that in all these case, the O/S actually gets installed from a local DVD (or DVD iso, in the case of my virtual machines!). The only bit that gets pulled across from the web server is the kickstart configuration file itself. It doesn&#8217;t have to be like that, though: it&#8217;s possible to write a kickstart file so that the O/S itself is pulled across the network. But that&#8217;s way outside of scope for this little blog piece! Indeed, kickstart is incredibly flexible and full of interesting options, and I&#8217;ve really only just scratched its surface here.</p>
<p>Hopefully, though, this has been enough to show you how kickstart can play a really useful role in simplifying, standardising, speeding up and slimming down your O/S installations -which is where all Oracle RDBMS installers need to start, I think!</p>
]]></content:encoded>
			<wfw:commentRss>http://diznix.com/2011/05/19/kickstarting-your-linux-installations/feed/</wfw:commentRss>
		<slash:comments>7</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

Served from: diznix.com @ 2012-05-20 05:15:18 -->
