<?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>Wheadon&#039;s Words; Mark&#039;s Mutterings &#187; long</title>
	<atom:link href="http://www.markwheadon.com/blog/tag/long/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.markwheadon.com/blog</link>
	<description>Welcome to Mark Wheadon&#039;s blog; I hope you find it useful. Feel free to comment on anything you read here.</description>
	<lastBuildDate>Sun, 02 May 2010 14:14:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Time Machine and VMware Fusion</title>
		<link>http://www.markwheadon.com/blog/2009/03/time-machine-and-vmware-fusion/</link>
		<comments>http://www.markwheadon.com/blog/2009/03/time-machine-and-vmware-fusion/#comments</comments>
		<pubDate>Sun, 22 Mar 2009 11:28:29 +0000</pubDate>
		<dc:creator>Mark Wheadon</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[file-store]]></category>
		<category><![CDATA[filestore]]></category>
		<category><![CDATA[filling disk]]></category>
		<category><![CDATA[fusion]]></category>
		<category><![CDATA[large]]></category>
		<category><![CDATA[long]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[paralells desktop]]></category>
		<category><![CDATA[parallels desktop]]></category>
		<category><![CDATA[problem]]></category>
		<category><![CDATA[slow]]></category>
		<category><![CDATA[time machine]]></category>
		<category><![CDATA[too large]]></category>
		<category><![CDATA[too slow]]></category>
		<category><![CDATA[virtual]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://www.markwheadon.com/blog/?p=525</guid>
		<description><![CDATA[VMWare's Fusion can lead to slow, large Time machine backups.


No related posts.]]></description>
			<content:encoded><![CDATA[<p><em>[This almost certainly applies to most other virtual PC packages as well, so if you're using <a href="http://www.parallels.com/uk/" target="_blank">Parallels Desktop</a></em><em> for example, read on... --Mark]</em></p>
<p>Are you using the excellent <a href="http://www.vmware.com/products/fusion/" target="_blank"><em>VMware Fusion</em></a> and backing up your Mac with <em>Time Machine</em>? If so, you may notice a problem.</p>
<h2>Large backups</h2>
<p>When you&#8217;ve been using <em>Fusion</em>&#8216;s virtual machine (in my case, to run <em>Windows</em>), you will find that <em>Time Machine</em>&#8216;s next backup takes longer than expected &#8212; sometimes <em>much</em> longer.</p>
<p>This is because <em>Fusion</em> stores its virtual machines&#8217; disks as a bunch of large files. When you run your virtual machine using <em>Fusion</em>, the contents of the VM&#8217;s virtual disk changes, and even if you haven&#8217;t made many explicit changes to files, all sorts of small changes happen to the virtual disk&#8217;s contents.</p>
<h2>Incremental can still be too much</h2>
<p><em>Time Machine</em> performs incremental backups. That is, it copies only files that have changed since the last backup. Unfortunately those large files that <em>Fusion</em> uses to store the virtual disk&#8217;s contents? They&#8217;ve probably all changed, at least a little.</p>
<p><a href="http://www.markwheadon.com/blog/wp-content/uploads/2009/03/backup.png"><img class="aligncenter size-large wp-image-537" title="backup" src="http://www.markwheadon.com/blog/wp-content/uploads/2009/03/backup-540x242.png" alt="backup" width="540" height="242" /></a>So, instead of your incremental being a few megabytes and taking a few tens of seconds, it&#8217;s ten gigabytes, takes ages, and rapidly fills your backup disk. (Which causes its own problems: <a href="http://www.markwheadon.com/blog/2009/03/changing-time-machine-backup-schedule/" target="_blank">described here</a>.)</p>
<h2><span style="color: #000000;">An alternative fix</span></h2>
<p><span style="color: #000000;">If you need incremental backups of your VMs, or your VMs are running an operating system that doesn&#8217;t have support for accessing the</span><em><span style="color: #000000;">Mac OS</span></em><span style="color: #000000;"> file-store (</span><em><span style="color: #000000;">Linux</span></em><span style="color: #000000;">, for example), then you&#8217;ll likely find </span><a href="http://www.markwheadon.com/blog/2009/06/backing-up-virtual-machine-using-sparse-bundle/"><span style="color: #000000;">this approach</span></a><span style="color: #000000;"> is the best for you.</span></p>
<p><span style="color: #000000;">If your VM(s) are running </span><em><span style="color: #000000;">Windows</span></em><span style="color: #000000;"> (so you can access the </span><em><span style="color: #000000;">Mac OS</span></em><span style="color: #000000;"> file-store from within the VM) and you don&#8217;t </span><em><span style="color: #000000;">need</span></em><span style="color: #000000;"> a sophisticated incremental backup of your VMs then read on, as the following approach produces by far the most efficient backups.</span></p>
<h2>This fix</h2>
<p>The fix described here is to ensure the files you edit in <em>Fusion</em>&#8216;s virtual world are in the Mac&#8217;s natural file-store (so they continue to be backed up by <em>Time Machine</em>), stop using <em>Time Machine</em> to back up your virtual machines, and then back up your virtual machines in a different way. I&#8217;ll cover each of these steps in turn below.</p>
<h3>Put your files somewhere safe</h3>
<p>Instead of putting your <em>Windows</em> (or whatever) files in the <em>Windows</em> file-store, place them in the Mac&#8217;s file-store (which is available to <em>Windows</em> as the <em>Z:</em> drive by default). This means that your precious files have a proper, incremental backup using <em>Time Machine</em>, and you can restore earlier versions should the need arise.</p>
<h3>Stop Time Machine backing up your VMs</h3>
<p>Open <em>Time Machine Preferences&#8230;</em>, click on <em>Options&#8230;</em> and then the small <em>+</em> to add a Folder to the <em>Do not back up</em> list:</p>
<p><a href="http://www.markwheadon.com/blog/wp-content/uploads/2009/03/add-folder.png"><img class="aligncenter size-medium wp-image-540" title="add-folder" src="http://www.markwheadon.com/blog/wp-content/uploads/2009/03/add-folder-300x236.png" alt="add-folder" width="300" height="236" /></a>Then navigate to <em>Documents</em> below your home directory and there you will find a folder called <em>Virtual Machines</em> &#8212; add that and <em>Time Machine</em> will no longer backup your <em>Fusion</em> VMs.</p>
<h3>And backup your VMs in a different way</h3>
<p><span style="text-decoration: underline;"><a href="http://www.markwheadon.com/blog/wp-content/uploads/2009/03/copying-vm-to-backup.png"><img class="alignright size-medium wp-image-541" title="copying-vm-to-backup" src="http://www.markwheadon.com/blog/wp-content/uploads/2009/03/copying-vm-to-backup-300x106.png" alt="copying-vm-to-backup" width="300" height="106" /></a></span>If, like me, your virtual machine is a secondary system, then you probably have no need of an incremental, sophisticated backup. What&#8217;s important is the files you edit are protected, and they <em>are</em> now protected by <em>Time Machine</em> as part of the Mac&#8217;s natural file-store.</p>
<p>So, simply drag your <em>Documents/Virtual Machines</em> folder onto the backup drive every week or so, and you&#8217;re sorted.</p>
<h2 style="font-size: 1.5em;">Warning</h2>
<p>As with any method of backup which relies on backing up the virtual machine&#8217;s disk image using the host operating system, your backup may not be of any use if it&#8217;s made whilst the VM is running, so I suggest you make sure that <strong>Fusion/Parallels is </strong><em><strong>not running</strong></em><strong> when you copy the</strong><strong> data</strong>.</p>
<h3 style="font-size: 1.17em;">Why?</h3>
<p>Because if you copy the files that <em>Fusion</em> (or <em>Parallels</em>) is using for a disk image, then you&#8217;re backing up what&#8217;s <em>on disk</em>, but not what&#8217;s in memory, in disk buffers, etc. So when you come to restore from backup, you may find that the disk image is corrupted. In the worst case scenario you won&#8217;t be able to start up the VM&#8217;s operating system successfully at all, or restore any files contained within the VM&#8217;s file-store.</p>
<p>By backing up when the VM isn&#8217;t running, you ensure that all data is on disk in a safe, consistent state.</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.markwheadon.com/blog/2009/03/time-machine-and-vmware-fusion/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
