<?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>kill the radio &#187; clone</title>
	<atom:link href="http://blog.killtheradio.net/tag/clone/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.killtheradio.net</link>
	<description>or die trying</description>
	<lastBuildDate>Thu, 15 Dec 2011 20:21:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>VirtualBox: how to &#8220;clone&#8221; your VMs</title>
		<link>http://blog.killtheradio.net/how-tos/virtualbox-how-to-clone-your-vms/</link>
		<comments>http://blog.killtheradio.net/how-tos/virtualbox-how-to-clone-your-vms/#comments</comments>
		<pubDate>Tue, 27 Oct 2009 04:13:51 +0000</pubDate>
		<dc:creator>Andrew Lyon</dc:creator>
				<category><![CDATA[How to's]]></category>
		<category><![CDATA[clone]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[virtualization]]></category>

		<guid isPermaLink="false">http://blog.killtheradio.net/?p=263</guid>
		<description><![CDATA[Notice the &#8220;clone&#8221; in quotes. Why? You can&#8217;t actually clone a VM technically. We can work around that, though. Keep in mind, this guide is for VirtualBox &#60;= 3.0.8 (later versions may have a clone button or something). One thing you CAN do is export to OVF and re-import, but I&#8217;ve found that OVF loses [...]]]></description>
			<content:encoded><![CDATA[<p>Notice the &#8220;clone&#8221; in quotes. Why? You can&#8217;t actually clone a VM technically. We can work around that, though. Keep in mind, this guide is for VirtualBox &lt;= 3.0.8 (later versions may have a clone button or something).</p>
<p>One thing you CAN do is export to OVF and re-import, but I&#8217;ve found that OVF loses many settings (like video ram, network settings, whether you use SATA or not, etc). I prefer not to even bother with this method.</p>
<p>The next thing you can do is just clone your VM&#8217;s hard disk(s):</p>
<ol>
<li>Go into the ~/.VirtualBox/HardDisks/ folder. Copy and paste (windows) or cp (linux/unix) from db_master1.vdi to db_master2.vdi. If you try to import this into the Virtual Media Manager, it will piss and moan about the UUID being duplicate or some shit.</li>
<li><strong>VBoxManage internalcommands setvdiuuid db_master2.vdi</strong> &#8211; this is the magic command that allows you to import that new HD.</li>
<li>Create a new VM, and set db_master2.vdi as the primary drive.</li>
<li>Configure your new VM to have the same settings. (this is a pain, but there really aren&#8217;t that many settings).</li>
</ol>
<p>There are a few things you&#8217;ll have to dick with once you have your VM cloned. If you&#8217;re into networking/cluster/HA crap like me, you&#8217;ll probably have a static IP. This obviously needs to be changed. It&#8217;s different for every distro, but it&#8217;s in /etc/rc.d/rc.inet1.conf for Slackware, and /etc/networking/interfaces for Debian (any other distro can go to hell).</p>
<p>Your old network interfaces, eth[0...n] will now be eth[(n+1)...(n*2)]: eg, if you had eth0 and eth1 before, they will now be eth2 and eth3. To reset this, (in Slackware):</p>
<ol>
<li>Open/etc/udev/rules.d/75-network-devices.rules in your favorite editor</li>
<li>Remove all the entries.</li>
<li>Restart. (note &#8211; someone please correct me if you don&#8217;t need a restart&#8230; perhaps /sbin/udevtrigger will fix this?)</li>
<li>You will now have eth0 and eth1 again. Hoo-fucking-ray.</li>
</ol>
<p>The process is the same for Debian, but the 75-network-devices.rules will most likely have a different name.</p>
<p>Good luck.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.killtheradio.net/how-tos/virtualbox-how-to-clone-your-vms/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

