<?xml version="1.0" encoding="utf-8"?>
			
			<rss version="2.0">
			<channel>
			<title>Lynch Consulting Blog - VMWare</title>
			<link>http://www.lynchconsulting.com.au/blog/index.cfm</link>
			<description>A blog about ColdFusion, PHP, Flash, Flex, Web Standards and a mish mash of other technologies</description>
			<language>en-us</language>
			<pubDate>Tue, 07 Sep 2010 13:18:22 --1000</pubDate>
			<lastBuildDate>Wed, 04 Jul 2007 03:04:00 --1000</lastBuildDate>
			<generator>BlogCFC</generator>
			<docs>http://blogs.law.harvard.edu/tech/rss</docs>
			<managingEditor>mark@lynchconsulting.com.au</managingEditor>
			<webMaster>mark@lynchconsulting.com.au</webMaster>
			
			
			
			
			
			<item>
				<title>HOWTO Add 1680x1050 resolution to Windows VMware Server clients</title>
				<link>http://www.lynchconsulting.com.au/blog/index.cfm/2007/7/4/HOWTO-Add-1680x1050-resolution-to-Windows-VMware-Server-clients</link>
				<description>
				
				I make extensive use of VMWare Server on my laptop for Flex and Flash development as Adobe haven&apos;t released Flash and Flex for Linux yet (hint hint).

When I&apos;m flicking back and forth between Windows and Linux I typically leave the Windows window at 1024x768 which allows it to have no scrolling and still fit on my 1680x1050 screen.

However, there are times when you just need more screen real estate in windows and as the VMWare driver doesn&apos;t come with a native 1680x1050 resolution you need to make some minor registry edits to get it working.

A bit of searching got me to an &lt;a href=&quot;http://kb.vmware.com/selfservice/microsites/search.do?cmd=displayKC&amp;externalId=1003&quot;&gt;knowledge base article&lt;/a&gt; but the instructions didn&apos;t work for me, as the registry keys didn&apos;t exist there but were located pretty close.  So without further ado (there&apos;s been quite a bit already I admit).

&lt;ul&gt;
&lt;li&gt;&lt;Run regedit: &lt;strong&gt;Start-&amp;gt;Run&lt;/strong&gt; and type regedit&lt;/li&gt;
&lt;li&gt;Select the registry key &lt;strong&gt;HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Video\{device id}\0000&lt;/strong&gt;.   Note the deviceid is a big horrible uuid, and there may be multiple ones.  Use the one that has a key &quot;Device Description&quot; of VMWare SVGA II&lt;/li&gt;
&lt;li&gt;There are a load of &lt;strong&gt;Resolution.x&lt;/strong&gt; lines, add a new &quot;Binary Value&quot; 1 higher than the highest resolution.  Eg &lt;strong&gt;Resolution.11&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Enter the binary value of: &lt;strong&gt;31 36 38 30 78 31 30 35 30&lt;/strong&gt; which is ASCII for &quot;1680x1050&quot;&lt;/li&gt;
&lt;li&gt;Close regedit and reboot.&lt;/li&gt;
&lt;li&gt;After reboot you should have a new resolution available to you.&lt;/li&gt;
&lt;/ul&gt;

For other resolutions you can use the following numbers keys:
&lt;table&gt;
&lt;tr&gt;&lt;th&gt;ASCII&lt;/th&gt;&lt;th&gt;Value&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;30&lt;/td&gt;&lt;td&gt;0&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;31&lt;/td&gt;&lt;td&gt;1&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;32&lt;/td&gt;&lt;td&gt;2&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;33&lt;/td&gt;&lt;td&gt;3&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;34&lt;/td&gt;&lt;td&gt;4&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;35&lt;/td&gt;&lt;td&gt;5&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;36&lt;/td&gt;&lt;td&gt;6&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;37&lt;/td&gt;&lt;td&gt;7&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;38&lt;/td&gt;&lt;td&gt;8&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;39&lt;/td&gt;&lt;td&gt;9&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;78&lt;/td&gt;&lt;td&gt;x&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;

Cheers,
Mark
				
				</description>
				
				<category>VMWare</category>
				
				<category>Systems admin</category>
				
				<category>HOWTO</category>
				
				<category>Windows</category>
				
				<pubDate>Wed, 04 Jul 2007 03:04:00 --1000</pubDate>
				<guid>http://www.lynchconsulting.com.au/blog/index.cfm/2007/7/4/HOWTO-Add-1680x1050-resolution-to-Windows-VMware-Server-clients</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>VMWare partial snapshot recovery HowTo</title>
				<link>http://www.lynchconsulting.com.au/blog/index.cfm/2007/6/24/VMWare-partial-snapshot-recovery-HowTo</link>
				<description>
				
				I recently came across a Vmware server machine that was had a drive that kept expanding until it filled the entire host machine&apos;s avaiable space.

The machine in question had a number of drives including a 100GB and a 200GB partition and the host machine had a 600GB partition to hold all this.  After digging around a bit I discovered that the drives were performing snapshots.  Which means that they main drive was frozen in time and all changes were written to another file. 

This should have been an easy fix, tick a box in the admin to remove the snapshot. However, in the admin for the machine there were no snapshots registered and no way to remove them.  A bit of hunting found a couple of articles on the subject:
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://virtrix.blogspot.com/2007/06/vmware-dreadful-sticky-snapshot.html&quot;&gt;VMware: The dreadful sticky snapshot&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://searchservervirtualization.techtarget.com/tip/0,289483,sid94_gci1243241,00.html&quot;&gt;VMware Server how-to: Clean up snapshot files to free disk space&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

However, I used the following approach to fix the problem which seems to be simpler than the techniques documented above.

&lt;strong&gt;Note: make sure you have a backup before proceeding - my 600GB backup took 6 hours but was worth it.&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Step 1: Make a backup to another drive (internal or USB)&lt;/li&gt;
&lt;li&gt;Step 2: Check that you can boot your VM from the backup.&lt;/li&gt;
&lt;li&gt;Step 3: Identify and document all disk names and files
&lt;ul&gt;
&lt;li&gt;Document all drives, paths and scsi/ide nodes&lt;/li&gt;
&lt;li&gt;Create a text file in the root of each drive - you can then check for this to ensure you have the correct snapshot.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Step 4: Use the following command to convert a snapshotting disk to a new clean disk:&lt;/li&gt;
&lt;/ul&gt;
&lt;code&gt;
vmware-vdiskmanager -r sourceDisk.vmdk -t 3 destinationDisk.vmdk
&lt;/code&gt;
&lt;ul&gt;
&lt;li&gt;Step 5: In VMWare remove the disk for this machine and then add back your new disk.  Make sure you use the same SCSI/IDE node numbers.&lt;/li&gt;
&lt;/ul&gt;

&lt;strong&gt;Note 1:&lt;/strong&gt; It is important to select the correct snapshot  as the source disk.  For example: sourceDisk.vmdk could have a number of snapshots, sourceDisk-000001.vmdk sourceDisk-000002.vmdk.  Have a look at the timestamps to determine the active one.

&lt;strong&gt;Note 2:&lt;/strong&gt; If you get the following error:
&lt;code&gt;
Failed to open the disk &apos;sourceDisk-000001.vmdk&apos; : The parent of this virtual disk could not be opened (23).
&lt;/code&gt;
Don&apos;t panic - as long as you have the backups you will be fine.  Have a look in the sourceDisk-000001.vmdk and make sure the &quot;parentFileNameHint&quot; path is correct.  I.e. if it is an absolute path and you are trying to restore it from a different location (i.e. your backup) you can correct it or simply make it a relative path.

&lt;strong&gt;Note 3:&lt;/strong&gt; It is also very helpful to edit the network settings for the VM to ensure that the network is &lt;strong&gt;Not Connected&lt;/strong&gt; on boot.  Particularly if there are mail services or similar running on the machine.  This allows you to boot the machine safe in the knowledge that it is completely isolated from outside influence.

&lt;h3&gt;Resources&lt;/h3&gt;
Another useful document which helped out what the file reference on the vmware site - &lt;a href=&quot;http://www.vmware.com/support/ws55/doc/ws_learning_files_in_a_vm.html&quot;&gt;What Files Make Up a Virtual Machine?&lt;/a&gt;

Hope it helps.
Cheers,
Mark
				
				</description>
				
				<category>VMWare</category>
				
				<category>Ubuntu</category>
				
				<category>Systems admin</category>
				
				<category>Linux</category>
				
				<category>HOWTO</category>
				
				<category>Windows</category>
				
				<pubDate>Sun, 24 Jun 2007 06:10:00 --1000</pubDate>
				<guid>http://www.lynchconsulting.com.au/blog/index.cfm/2007/6/24/VMWare-partial-snapshot-recovery-HowTo</guid>
				
			</item>
			
		 	
			</channel></rss>