<?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>The Convirture Blog &#187; Jaydeep</title>
	<atom:link href="http://www.convirture.com/blog/author/jaydeep/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.convirture.com/blog</link>
	<description>Converations on ConVirt</description>
	<lastBuildDate>Mon, 30 Jan 2012 22:24:30 +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 a VM or using Gold image to provision VMs using ConVirt</title>
		<link>http://www.convirture.com/blog/2009/knowledgebase/cloning-a-vm-or-using-gold-image-to-provision-vms-using-convirt/</link>
		<comments>http://www.convirture.com/blog/2009/knowledgebase/cloning-a-vm-or-using-gold-image-to-provision-vms-using-convirt/#comments</comments>
		<pubDate>Sat, 08 Aug 2009 22:56:40 +0000</pubDate>
		<dc:creator>Jaydeep</dc:creator>
				<category><![CDATA[HOWTO's]]></category>
		<category><![CDATA[Knowledge Base]]></category>

		<guid isPermaLink="false">http://www.convirture.com/blog/?p=235</guid>
		<description><![CDATA[&#34;Can I clone a VM ?&#34; &#34;I have spent time coming up with a perfect image (gold image), how can I use ConVirt to provision VMs from it ?&#34; As I heard quite a few similar queries, I thought it might be useful to have blog entry that explains it. Apart from some differences between [...]]]></description>
			<content:encoded><![CDATA[<p>&quot;Can I clone a VM ?&quot;</p>
<p>&quot;I have spent time coming up with a perfect image (gold image), how can I use ConVirt to provision VMs from it ?&quot;</p>
<p>As I heard quite a few similar queries, I thought it might be useful to have blog entry that explains it. Apart from some differences between VM Cloning and using a reference image, both boil down to having pre-cooked disk(s) that are ready for creating more VMs from it. It is assumed that the environment would use DHCP and other vm specific customizations would be carried out on first boot.</p>
<p>As ConVirt is built with very flexible provisioning scheme, it only takes few simple steps to achieve this.</p>
<p> <span id="more-235"></span>
<p>1. Select an image from the image store that is similar to your reference disk.</p>
<p>e.g. Select a PV image if your disk contains a Xen PV image or select a Linux_CD_Install if you want to use HVM. We will select the Linux_CD_Install.</p>
<p>2. Use <em>Create Like </em>operation from the context menu after selecting the image. Give it a name say &#8216;Developer Desktop&#8217;</p>
<p>3. Now that you have an image, lets customize and associate it with the reference disk. For this:</p>
<ul>
<li>Find the directory of the image under the image store. This would typically be /var/cache/convirt/image_store/<em>image_name</em>. In this case it would be /var/cache/convirt/image_store/Developer_Desktop </li>
<li>Copy the reference disk under this location. (Note: I have compressed it using gzip)      <br />e.g. cp /mnt/gold_images/dev_desktop.img.gz /var/cache/convirt/Developer_Desktop       <br /><em>Note : </em>If you are copying a disk from an existing Virtual Machine, make sure that it is shutdown so that the disk is in a consistent state. </li>
<li>Select the Developer Desktop image from ConVirt and select &#8216;<em>Edit Settings&#8217; </em>(Fig 1) </li>
<li>In the dialog box, select the disk entry and double click it. It should popup the Disk Information dialog. </li>
<li>Select the &quot;Clone from a reference Disk&quot; option. </li>
<li>Enter the reference disk location. You can use the file selector to select the file. Now instead of using absolute path, it is recommended to use $IMAGE_STORE/$IMAGE/dev_desktop.img.gz </li>
<li>Use Disk Image as the Reference Disk Type. </li>
<li>Select appropriate format. &#8211; [.gz] in this case since the image is compressed using gzip. </li>
<li>Press OK. </li>
</ul>
<p>If you have more disks repeat this step.</p>
<p>4. As we have selected the Linux_CD_Install image, we need couple of more adjustments.</p>
<ul>
<li>Go to the Miscellaneous tab and change the boot parm to &#8216;c&#8217;. This way the VM will not try to boot from a CDROM. (Fig. 2) </li>
<li>Remove the cdrom disk from the disk list. </li>
<li>Make any other adjustments like memory, cpu etc. </li>
</ul>
<p>5. Now that we have our own image, lets change the description to reflect that. Update title, author (in case something goes wrong, people know whom to catch <img src='http://www.convirture.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  ), and procedure specific to the image. You can select the image and choose Edit Description. (Fig. 3 and 4)</p>
<p>6. Thats it !!. You have your own image template that now you can provision for each Developer. Select the image and provision away.</p>
<p style="text-align: center"><strong>Fig 1 : Specify Reference Disk Details</strong></p>
<p style="text-align: left"><img class="aligncenter size-full wp-image-240" title="Disk Information: Specify reference disk, its type and format" alt="Disk Information: Specify reference disk, its type and format" src="http://www.convirture.com/blog/wp-content/uploads/2009/07/disk_info1.gif" width="606" height="417" /></p>
<p style="text-align: center"><strong>Fig 2: Change the Boot Settings</strong></p>
<p style="text-align: left"><img class="aligncenter size-full wp-image-239" title="Change Boot settings" alt="Change Boot settings" src="http://www.convirture.com/blog/wp-content/uploads/2009/07/boot_settings.gif" width="510" height="616" /></p>
<p style="text-align: center"><strong>Fig 3 : Change Description</strong></p>
<p><img class="aligncenter size-full wp-image-241" title="Edit the description of the Image." alt="Edit the description of the Image." src="http://www.convirture.com/blog/wp-content/uploads/2009/07/edit_desc.gif" width="680" height="529" /></p>
<p style="text-align: center"><strong>Fig 4 : New Description</strong></p>
<p><img class="aligncenter size-full wp-image-244" title="Image with new description" alt="Image with new description" src="http://www.convirture.com/blog/wp-content/uploads/2009/07/new_description.gif" width="933" height="599" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.convirture.com/blog/2009/knowledgebase/cloning-a-vm-or-using-gold-image-to-provision-vms-using-convirt/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
	</channel>
</rss>

