<?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>VCritical &#187; clusters</title>
	<atom:link href="http://www.vcritical.com/tag/clusters/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.vcritical.com</link>
	<description>Informed Virtualization Criticism</description>
	<lastBuildDate>Mon, 12 Jul 2010 22:38:36 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Choose any two: Hyper-V, HA, Linux</title>
		<link>http://www.vcritical.com/2009/06/choose-any-two-hyper-v-ha-linux/</link>
		<comments>http://www.vcritical.com/2009/06/choose-any-two-hyper-v-ha-linux/#comments</comments>
		<pubDate>Fri, 12 Jun 2009 17:58:41 +0000</pubDate>
		<dc:creator>Eric Gray</dc:creator>
				<category><![CDATA[Virtualizationism]]></category>
		<category><![CDATA[clusters]]></category>
		<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MSCS]]></category>
		<category><![CDATA[SCVMM]]></category>
		<category><![CDATA[VMware HA]]></category>

		<guid isPermaLink="false">http://www.vcritical.com/?p=1180</guid>
		<description><![CDATA[It is very difficult to cleanly shut down a Linux VM on Hyper-V if it is configured for HA.  This is because there is no orderly guest shutdown feature in the integration components.]]></description>
			<content:encoded><![CDATA[<p>Everyone knows that Hyper-V is a <em>great</em> platform for running your Linux workloads &#8212; as long as the distribution you need just happens to be the ONE that Hyper-V supports.  Yes, <a href="http://www.vcritical.com/2009/02/hyper-v-linux-smokescreen/">someday there will be two</a>&#8230; patience, patience.</p>
<p>You have probably also heard over and over about Hyper-V and High Availability (HA) virtual machines.  <em>And please, don&#8217;t forget &#8212; <a href="http://blogs.technet.com/virtualization/archive/2009/05/06/microsoft-hyper-v-server-2008-r2-release-candidate-free-live-migration-ha-anyone.aspx" target="_blank">HA is free</a>!</em></p>
<p>Should one conclude that a supported Linux VM on Hyper-V would be fully functional in an HA configuration?</p>
<p>No, one should not.</p>
<p>Hyper-V HA is based on Microsoft&#8217;s general purpose Failover Clustering &#8212; originally designed for applications like Exchange and SQL Server.  If you can say one thing about MSCS, it tries very hard to keep managed services online.  Sometimes <em>too hard</em>.<span id="more-1180"></span></p>
<p>In fact, without tight integration between Clustering and the protected services, it&#8217;s especially difficult to stop things in an orderly fashion.  System Center Virtual Machine Manger 2008 has this integration, and stopping an HA VM with the SCVMM Administrator Console will normally initiate a proper shutdown.  But, in order to do that, guest operating systems need to have <a href="http://www.vcritical.com/2009/04/hyper-v-linux-integration-components-no-longer-connected/">integration components</a> that offer the &#8220;Operating system shutdown&#8221; service .</p>
<p>Linux integration components for Hyper-V <strong>do not offer this service</strong>, and the following error is seen when attempting to shut down a Linux VM via SCVMM:</p>
<p><img class="alignnone size-full wp-image-1190" title="Cannot shut down Linux VM from SCVMM" src="http://www.vcritical.com/wp-content/uploads/2009/06/cannot_shut_down_vm.png" alt="Cannot shut down Linux VM from SCVMM" width="499" height="239" /></p>
<p>The next thing to try is shutting down the Linux VM from the Failover Cluster Manager UI &#8212; one of the many other &#8220;single panes of glass&#8221; needed to manage your Microsoft virtualization infrastructure.</p>
<p><img class="alignnone size-full wp-image-1192" title="Shut down VM from Failover Cluster Manager" src="http://www.vcritical.com/wp-content/uploads/2009/06/shut_down_fcm.png" alt="Shut down VM from Failover Cluster Manager" width="368" height="232" /></p>
<p>Evidently, this approach does not perform the same validation as the SCVMM interface &#8212; there is no error and the guest OS actually does not shut down cleanly &#8212; the VM is simply stopped.  It turns out that, like physical machines, virtual machines don&#8217;t really enjoy being abruptly powered off.  Here you can see this poor filesystem being repaired during the next boot:</p>
<p><img class="alignnone size-full wp-image-1193" title="filesystem_not_clean" src="http://www.vcritical.com/wp-content/uploads/2009/06/filesystem_not_clean.png" alt="filesystem_not_clean" width="506" height="318" /></p>
<p>It appears that the only option for shutting down a Linux VM on Hyper-V is through the guest interface itself.</p>
<p><img class="alignnone size-full wp-image-1194" title="guest_shutdown" src="http://www.vcritical.com/wp-content/uploads/2009/06/guest_shutdown.png" alt="guest_shutdown" width="311" height="238" /></p>
<p>Unfortunately, when the VM shuts down, Failover Clustering notices immediately and assumes there has been a failure.  One restart, coming up&#8230;</p>
<p><img class="alignnone size-full wp-image-1195" title="false_vm_failure" src="http://www.vcritical.com/wp-content/uploads/2009/06/false_vm_failure.gif" alt="false_vm_failure" width="388" height="180" /></p>
<p>With Hyper-V you can run HA virtual machines and you can run Linux virtual machines, but you can&#8217;t run HA Linux virtual machines.</p>
<p><strong>The only hypervisor that offers full functionality for both Windows and Linux guest operating systems is VMware ESX.</strong></p>


<p>Related posts:<ol><li><a href='http://www.vcritical.com/2009/07/even-gpl-cant-make-hyper-v-linux-vms-well/' rel='bookmark' title='Permanent Link: Even GPL can&#8217;t make Hyper-V Linux VMs well'>Even GPL can&#8217;t make Hyper-V Linux VMs well</a></li>
<li><a href='http://www.vcritical.com/2008/12/igt-part-4-failover-frustration/' rel='bookmark' title='Permanent Link: IGT Part 4: Failover frustration'>IGT Part 4: Failover frustration</a></li>
<li><a href='http://www.vcritical.com/2009/02/hyper-v-linux-smokescreen/' rel='bookmark' title='Permanent Link: Hyper-V Linux Smokescreen'>Hyper-V Linux Smokescreen</a></li>
<li><a href='http://www.vcritical.com/2009/04/hyper-v-linux-integration-components-no-longer-connected/' rel='bookmark' title='Permanent Link: Hyper-V Linux integration components no longer Connected'>Hyper-V Linux integration components no longer Connected</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.vcritical.com/2009/06/choose-any-two-hyper-v-ha-linux/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>
