<?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>TLF Blog &#187; templates</title>
	<atom:link href="http://thelinuxfix.com/blog/tag/templates/feed/" rel="self" type="application/rss+xml" />
	<link>http://thelinuxfix.com/blog</link>
	<description>Hosting, Unix, and everything in between.</description>
	<lastBuildDate>Mon, 30 Jan 2012 19:34:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Cloning and Templates with ESXi</title>
		<link>http://thelinuxfix.com/blog/2008/12/24/cloning-and-templates-with-esxi/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=cloning-and-templates-with-esxi</link>
		<comments>http://thelinuxfix.com/blog/2008/12/24/cloning-and-templates-with-esxi/#comments</comments>
		<pubDate>Wed, 24 Dec 2008 15:00:00 +0000</pubDate>
		<dc:creator>Greg</dc:creator>
				<category><![CDATA[TLF Blog]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[cloning]]></category>
		<category><![CDATA[esxi]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[templates]]></category>
		<category><![CDATA[virtual center]]></category>
		<category><![CDATA[virtual machine]]></category>

		<guid isPermaLink="false">http://www.thelinuxfix.com/blog/?p=14</guid>
		<description><![CDATA[For those not familiar with it, VMware ESX is an enterprise-level virtualization solution packed with features, high-availability clusters chief among those.  For those that do not require these extra features, VMware had made, freely available, VMware Server, which ran on a single instance on top of Windows or Linux.  ESX, on the other hand, is [...]]]></description>
			<content:encoded><![CDATA[<p><em>For those not familiar with it, VMware ESX is an enterprise-level  virtualization solution packed with features, high-availability  clusters chief among those.  For those that do not require these extra  features, VMware had made, freely available, VMware Server, which ran on  a single instance on top of Windows or Linux.  ESX, on the other hand,  is entirely self contained and runs on the vmkernel.  In a move that i  can only imagine makes it easier to manage a single code base, VMware  did away with the Server product, to be replaced by ESXi, a stripped  down version of ESX.  It is great for environments where  high-availabilty is not necessary.</em></p>
<p>So now that you know what VMware ESX and ESXi are, let’s get on with  it.  We started implementing ESXi internally, and to our dismay  discovered one other feature that is missing from ESXi &#8211; the ability to  clone virtual machines and to create templates.  Without cloning and  templates, you lose out on one of the biggest advantage of using virtual  machines, VMware or otherwise &#8211; rapid deployment.  I guess VMware wants  you to purchase ESX if you need these features.</p>
<p>Unsatisfied with that assessment, I started digging around and came  up with a procedure to be able to clone VM’s.  It’s more manual than  using the ‘Clone to Virtual Machine…’ option in Virtual Center with ESX,  but that’s what you pay the big bucks for &#8211; ease of management.  In a  nutshell, this is what I did:</p>
<ol>
<li>Build a virtual machine with your OS of choice.  <strong>*cough*</strong> Linux <strong>*cough*</strong></li>
<li>Enable ssh into the ESX host</li>
<li>ssh into the host</li>
<li>Go into the datastore in which you created your VM</li>
<li>Make a copy of the VM you just built</li>
</ol>
<p>There you have your template.  In order to deploy it, it’s not as bad as one might think for a manual process.</p>
<ol>
<li>Go into the datastore you are going to keep your new VM.</li>
<li>Make a new directory &#8211; I always call it the same as the short name of the VM I am creating</li>
<li>Copy only the .vmdk files into the new directory you’ve created.</li>
<li>Logout, and fire up the Virtual Infrastructure Client, and create a new VM as you normally would.</li>
<li>When it asks about the disk, choose “Use an existing disk,” and select the copy of the vmdk.</li>
</ol>
<p>The new Virtual Machine will have been created with the disk.  Boot  the server up and change the network settings and customize to your  heart’s content.  I’ve thrown in a sample session of creating the  template and deploying it below.  Note that in you have to build the  source VM first.</p>
<p><code><br />
[root@tlf1 ~]# ssh tlfesx1<br />
root@tlfesx1’s password:</code></p>
<p><code>Tech Support Mode successfully accessed.<br />
The time and date of this access have been sent to the system logs.<br />
</code><br />
<code>WARNING - Tech Support Mode is not supported unless used in<br />
consultation with VMware Tech Support.</code></p>
<p><code>~ # cd /vmfs/<br />
/vmfs/devices/  /vmfs/volumes/<br />
~ # cd /vmfs/volumes/datastore1/<br />
/vmfs/volumes/4946cee9-8d78d96a-2302-00137250f7df # mkdir template<br />
/vmfs/volumes/4946cee9-8d78d96a-2302-00137250f7df # cp -p tlfsource/*.vmdk template/<br />
/vmfs/volumes/4946cee9-8d78d96a-2302-00137250f7df # mkdir tlfnewsrvr1<br />
/vmfs/volumes/4946cee9-8d78d96a-2302-00137250f7df # cp -p template/sda*.vmdk newserver1/</code></p>
]]></content:encoded>
			<wfw:commentRss>http://thelinuxfix.com/blog/2008/12/24/cloning-and-templates-with-esxi/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

