<?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>JJClements.co.uk &#187; cpu</title>
	<atom:link href="http://www.jjclements.co.uk/tag/cpu/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jjclements.co.uk</link>
	<description>Clem&#039;s Technical Blog</description>
	<lastBuildDate>Tue, 15 Nov 2011 00:16:50 +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>VMware VMotion CPU problem after vSphere upgrade</title>
		<link>http://www.jjclements.co.uk/2009/09/15/vmware-vmotion-cpu-problem-after-vsphere-upgrade/</link>
		<comments>http://www.jjclements.co.uk/2009/09/15/vmware-vmotion-cpu-problem-after-vsphere-upgrade/#comments</comments>
		<pubDate>Tue, 15 Sep 2009 13:12:37 +0000</pubDate>
		<dc:creator>James Clements</dc:creator>
				<category><![CDATA[VMware]]></category>
		<category><![CDATA[cpu]]></category>
		<category><![CDATA[vCenter]]></category>
		<category><![CDATA[VMotion]]></category>

		<guid isPermaLink="false">http://www.jjclements.co.uk/?p=358</guid>
		<description><![CDATA[I wanted to install some DRAC 5 cards into each of my Dell PowerEdge 2900 VMware ESX hosts, so I decided to VMotion off the Virtual Machines onto other hosts in the cluster before shutting down the node. The first Virtual Machine migrated without a problem but when I tried a second I received an [...]]]></description>
			<content:encoded><![CDATA[<p>I wanted to install some DRAC 5 cards into each of my Dell PowerEdge 2900 VMware ESX hosts, so I decided to VMotion off the Virtual Machines onto other hosts in the cluster before shutting down the node. The first Virtual Machine migrated without a problem but when I tried a second I received an error stating the there was a CPU incompatibility between the host and the Virtual Machine.</p>
<p><span id="more-358"></span></p>
<p>Here is the error:</p>
<p><img src="http://www.jjclements.co.uk/wp-content/uploads/2009/09/vmotioncpuidmaskerror.png" alt="vmotioncpuidmaskerror.png" /></p>
<p><em><br />
Host CPU is incompatible with the Virtual Machine's requirements at CPUID level 0x1 register 'ecx'.<br />
Host bits: 0000:0000:0000:0000:0010:0010:0000:0001<br />
Required: 1000:0000:0000:000x:xxx0:0x1x:xxx0:x001<br />
Mismatch detected for these features:<br />
*General incompatibilities; refer to KB article 1993 for possible solutions.<br />
</em></p>
<p>The only recent change was the upgrade to vSphere 4. The error detailed an incompatibility issue between the host and Virtual Machine CPU. The host hardware hadn't changed so I decided to investigate the Virtual Machine. After a quick look at the affected Virtual Machine's .vmx configuration file I noticed what appeared to be a CPU ID Mask. I checked the .vmx configuration against a couple of other Virtual Machines that were still able to VMotion and sure enough the CPU ID Mask was not present in these Virtual Machines.</p>
<p>The 5 lines in the non VMotion'ing Virtual Machine's .vmx file were:</p>
<blockquote><p>
cpuid.1.ecx = "R----R----R--R-0-----------H-R--"</p>
<p>cpuid.1.ecx.amd = "R---------------------------R---"<br />
cpuid.80000001.ecx.amd = "------------------RR-RR---------"<br />
cpuid.80000001.edx = "----R---------------------------"<br />
cpuid.80000001.edx.amd = "--------------------------------"
</p></blockquote>
<p>I shut the Virtual Machine in question down and removed the 5 lines above from the .vmx file. I powered on the Virtual Machine and tried to VMotion it. I still received the same error as above. I shut down the Virtual Machine again, verified that the CPU ID Mask was not present in the .vmx and then powered it back on. After the second full shutdown I could successfully VMotion the Virtual Machine again.</p>
<p>NOTE: I have noticed that if you edit a .vmx file before shutting a Virtual Machine down it appears that the changes are overwritten because the running configuration is saved over the top of the existing configuration in the .vmx file itself. The easiest way to make a change to a .vmx is to shut the Virtual Machine down before editing it.</p>
<p>The CPU ID Mask can also be modified from the vSphere client by:</p>
<p>1) Shutdown the Virtual Machine<br />
2) Right-click the Virtual Machine and select "Edit Settings..."<br />
3) Select the "Options" tab<br />
4) Click on "CPUID Mask"<br />
5) Click on the "Advanced..." button</p>
<p>This issue affected 3 of 8 Virtual Machines in my 3 node vSphere cluster and I'm unsure why it only affected certain Virtual Machines. There seems to be nothing in common (that I could think of anyway) between the 3 affected Virtual Machines that I believe could have attributed to this problem.</p>
<p>EDIT (29/10/09): It seems VMware are now aware of the problem and have issued a workaround that requires you to use the vSphere client to remove the CPU ID mask. <a href="http://kb.vmware.com/kb/1011294" target="_blank" rel="nofollow">KB1011294</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jjclements.co.uk/2009/09/15/vmware-vmotion-cpu-problem-after-vsphere-upgrade/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

