<?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>Markus Bäker &#187; Hyper-V</title>
	<atom:link href="http://www.mbaeker.de/category/hyper-v/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mbaeker.de</link>
	<description>Use %~dp0 !!!</description>
	<lastBuildDate>Tue, 31 Jan 2012 10:49:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Hyper-V: Extra Rechte auf Hyper-V f&#252;r Nicht-Adminuser einrichten</title>
		<link>http://www.mbaeker.de/2012/01/hyper-v-extra-rechte-auf-hyper-v-fr-nicht-adminuser-einrichten/</link>
		<comments>http://www.mbaeker.de/2012/01/hyper-v-extra-rechte-auf-hyper-v-fr-nicht-adminuser-einrichten/#comments</comments>
		<pubDate>Sun, 22 Jan 2012 12:50:37 +0000</pubDate>
		<dc:creator>markus</dc:creator>
				<category><![CDATA[Deutsch]]></category>
		<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[Virtual Machine Manager]]></category>

		<guid isPermaLink="false">http://www.mbaeker.de/?p=824</guid>
		<description><![CDATA[Grundsätzlich darf auf einen Hyper-V Server nur ein Administrator zugreifen (Mitglied der lokalen Administratorengruppe). Setzt man den System Center Virtual Machine Manager (SCVMM) ein, so ermöglicht dieser einem u.a. ein rollenbasiertes Management. Dabei erfindet er das Rad nicht neu, sondern setzt ein Feature des Hyper-Vs ein, dass in meinen Augen zwar gut dokumentiert aber relativ [...]]]></description>
			<content:encoded><![CDATA[<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; float: left; padding-top: 0px; border: 0px;" title="user-admin" src="http://www.mbaeker.de/wp-content/uploads/2012/01/user-admin.png" alt="user-admin" width="64" height="64" align="left" border="0" />Grundsätzlich darf auf einen Hyper-V Server nur ein Administrator zugreifen (Mitglied der lokalen Administratorengruppe). Setzt man den System Center Virtual Machine Manager (SCVMM) ein, so ermöglicht dieser einem u.a. ein rollenbasiertes Management. Dabei erfindet er das Rad nicht neu, sondern setzt ein Feature des Hyper-Vs ein, dass in meinen Augen zwar gut dokumentiert aber relativ unbekannt ist.</p>
<p>Dazu verwendet Hyper-V das rollenbasierte Accessmanagement (RBAC) und die dafür verfügbare GUI AzMan. Die Konfigurationsinformationen werden in einer XML Datei unter ProgramData\Microsoft\Windows\Hyper-V\InitialStorage.xml abgelegt. <strong>Achtung: Verwendet man den VMM Agent, so wird der Ort der XML Datei auf ProgramData\microsoft\Virtual Machine Manager\HyperVAuthStore.xml geändert!</strong></p>
<p>Ich beschreibe hier die Vorgehensweise, wie man einer zusätzlichen benutzergruppe das Recht einräumen kann auf die Konsole der Virtuellen Maschinen zugreifen zu können:</p>
<p>Zuerst startet man die AzMan Konsole:</p>
<p><a href="http://www.mbaeker.de/wp-content/uploads/2012/01/image.png"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="image" src="http://www.mbaeker.de/wp-content/uploads/2012/01/image_thumb.png" alt="image" width="315" height="158" border="0" /></a></p>
<p><span id="more-824"></span></p>
<p>Über Stamm der Konsole wählt man den Autorisierungsspeicher (XML-Format) aus:</p>
<p><a href="http://www.mbaeker.de/wp-content/uploads/2012/01/image1.png"><img style="background-image: none; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="image" src="http://www.mbaeker.de/wp-content/uploads/2012/01/image_thumb1.png" alt="image" width="244" height="127" border="0" /></a></p>
<p>Wie oben beschrieben liegt die XML Datei auf dem Hyper-V Host unter c:\ProgramData\…</p>
<p><a href="http://www.mbaeker.de/wp-content/uploads/2012/01/image2.png"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="image" src="http://www.mbaeker.de/wp-content/uploads/2012/01/image_thumb2.png" alt="image" width="378" height="143" border="0" /></a></p>
<p><a href="http://www.mbaeker.de/wp-content/uploads/2012/01/image3.png"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="image" src="http://www.mbaeker.de/wp-content/uploads/2012/01/image_thumb3.png" alt="image" width="297" height="171" border="0" /></a></p>
<p>Jetzt kann man eine neue Rollendefinition unter Definitionen\Rollendefinitionen ablegen. In diesem Bespiel nenne ich die Rolle “Connect with VMV”:</p>
<p><a href="http://www.mbaeker.de/wp-content/uploads/2012/01/image4.png"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="image" src="http://www.mbaeker.de/wp-content/uploads/2012/01/image_thumb4.png" alt="image" width="381" height="133" border="0" /></a></p>
<p>In der neuen Definition werden unter Vorgänge die zu vergebenden Rechte festgelegt:</p>
<p><a href="http://www.mbaeker.de/wp-content/uploads/2012/01/image5.png"><img style="background-image: none; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="image" src="http://www.mbaeker.de/wp-content/uploads/2012/01/image_thumb5.png" alt="image" width="244" height="190" border="0" /></a></p>
<p>“Allow Input to Virtual Machine” und “Allow Output from Virtual Machine” ermöglicht den Zugriff auf die Console (Output) und die Steuerung von Tastatur und Maus (Input). Eine View-Only Rolle hätte somit nur ein Output Recht. Die Rolle sieht jetzt so aus:</p>
<p><a href="http://www.mbaeker.de/wp-content/uploads/2012/01/image6.png"><img style="background-image: none; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="image" src="http://www.mbaeker.de/wp-content/uploads/2012/01/image_thumb6.png" alt="image" width="244" height="158" border="0" /></a></p>
<p>Der Rolle muss jetzt unter Rollenzuweisungen eine Berechtigungsgruppe zugeordnet werden:</p>
<p><a href="http://www.mbaeker.de/wp-content/uploads/2012/01/image7.png"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="image" src="http://www.mbaeker.de/wp-content/uploads/2012/01/image_thumb7.png" alt="image" width="491" height="172" border="0" /></a></p>
<p>Hier kann man lokale Gruppen, Active Directory Gruppen oder auch einzelne Benutzer hinzufügen.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mbaeker.de/2012/01/hyper-v-extra-rechte-auf-hyper-v-fr-nicht-adminuser-einrichten/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SCVMM: mit Powershell Teil 1</title>
		<link>http://www.mbaeker.de/2011/12/scvmm-mit-powershell-teil-1/</link>
		<comments>http://www.mbaeker.de/2011/12/scvmm-mit-powershell-teil-1/#comments</comments>
		<pubDate>Sun, 04 Dec 2011 13:03:46 +0000</pubDate>
		<dc:creator>markus</dc:creator>
				<category><![CDATA[Deutsch]]></category>
		<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[Powershell]]></category>
		<category><![CDATA[System Center]]></category>
		<category><![CDATA[Virtual Machine Manager]]></category>

		<guid isPermaLink="false">http://www.mbaeker.de/?p=787</guid>
		<description><![CDATA[Ich habe gerade das Glück etwas mehr mit Powershell und System Center Virtual Machine Manager 2012 (SCVMM, RC) zu arbeiten. Daher werde ich hier wieder ein paar Codesnippsel posten, um bestimmte Funktionen zu automatisieren: die erste Funktion soll eine neue Cloud für Hyper-V erzeugen . Zusätzlich wird ein neue Rolle für diese Cloud angelegt, die [...]]]></description>
			<content:encoded><![CDATA[<p>Ich habe gerade das Glück etwas mehr mit Powershell und System Center Virtual Machine Manager 2012 (SCVMM, RC) zu arbeiten. Daher werde ich hier wieder ein paar Codesnippsel posten, um bestimmte Funktionen zu automatisieren:</p>
<p>die erste Funktion soll eine neue Cloud für Hyper-V erzeugen . Zusätzlich wird ein neue Rolle für diese Cloud angelegt, die nur VMs verwalten darf.</p>
<pre class="brush: powershell; title: ; notranslate">
#creates a new cloud and a corresponding usergroup
function createCloud([string]$name,[string]$hostgroupname)
{
   #retrieving first GUID for creating the new cloud
     $job= ([System.Guid]::NewGuid().toString())
   #define Cloud limitations (here: no limit)
     Set-SCCloudCapacity -JobGroup $job -UseCustomQuotaCountMaximum $true -UseMemoryMBMaximum $true -UseCPUCountMaximum $true -UseStorageGBMaximum $true -UseVMCountMaximum $true
   #setting the used network (here: the network has the same name as the cloud)
     $resources = @()
     $resources += Get-SCLogicalNetwork -Name $Name
   #defining that the cloud can be used on hyper-v server
     $addCapabilityProfiles = @()
     $addCapabilityProfiles += Get-SCCapabilityProfile -Name &quot;Hyper-V&quot;
   #adding the settings to the cloud with the defined GUID
     Set-SCCloud -JobGroup $job -RunAsynchronously -AddCloudResource $resources -AddCapabilityProfile $addCapabilityProfiles
   #adding the cloud to the hostgroup
     $hostGroups = @()
     $hostGroups += Get-SCVMHostGroup -Name $hostgroupname
   #creating the cloud and the rest from the first job <img src='http://www.mbaeker.de/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />
     New-SCCloud -JobGroup $Job -VMHostGroup $hostGroups -Name $Name -RunAsynchronously

#creating the usergroup
   #GUID for the second job
     $job= ([System.Guid]::NewGuid().toString())
   #the roleis for the newly created cloud
     $scopeToAdd = @()
     $scopeToAdd += Get-SCCloud -name $name
   #the user of this role can start, stop and shutdown virtual machines in the cloud and start a remote control
     Set-SCUserRole -JobGroup $job -AddScope $scopeToAdd -Permission @(&quot;RemoteConnect&quot;, &quot;Shutdown&quot;, &quot;Start&quot;, &quot;Stop&quot;) -ShowPROTips $false
     $cloud = Get-SCCloud -Name $name
   #add all settings to the role
     Set-SCUserRoleQuota -Cloud $cloud -JobGroup $job -QuotaPerUser -UseCPUCountMaximum -UseMemoryMBMaximum -UseStorageGBMaximum -UseCustomQuotaCountMaximum -UseVMCountMaximum
   #create the role with the job guid
     New-SCUserRole -Name $name -UserRoleProfile &quot;SelfServiceUser&quot; -Description &quot;&quot; -JobGroup $job
}
</pre>
<p>Die Funktion kann einfach per</p>
<pre class="brush: powershell; title: ; notranslate">

createCloud &quot;MeineCloud&quot; &quot;Alle Hosts&quot;
</pre>
<p>aufgerufen werden.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mbaeker.de/2011/12/scvmm-mit-powershell-teil-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>EventID 21502 im Hyper-V Cluster</title>
		<link>http://www.mbaeker.de/2011/08/eventid-21502-im-hyper-v-cluster/</link>
		<comments>http://www.mbaeker.de/2011/08/eventid-21502-im-hyper-v-cluster/#comments</comments>
		<pubDate>Thu, 11 Aug 2011 18:07:57 +0000</pubDate>
		<dc:creator>markus</dc:creator>
				<category><![CDATA[Deutsch]]></category>
		<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[HP]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.mbaeker.de/?p=659</guid>
		<description><![CDATA[Als Ergänzung vom Blog-Eintrag Re-Import von VMs folgt eine Lösung, wenn nach einem Re-Import die Maschine im Cluster nicht startbar ist. Die Detailansicht im Cluster-Manager sieht wie im nachfolgenden Bild aus: Die Konfiguration sollte eigentlich immer Online sein. Sie steht für die Registrierung der Virtuellen Maschine auf dem jeweiligen Hyper-V Knoten. Im Eventlog unter System [...]]]></description>
			<content:encoded><![CDATA[<p>Als Ergänzung vom Blog-Eintrag <a href="http://www.mbaeker.de/2011/05/re-import-vms-into-hyper-v/">Re-Import von VMs</a> folgt eine Lösung, wenn nach einem Re-Import die Maschine im Cluster nicht startbar ist. Die Detailansicht im Cluster-Manager sieht wie im nachfolgenden Bild aus:</p>
<p><a href="http://www.mbaeker.de/wp-content/uploads/2011/08/image001-hv.png"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="image001-hv" src="http://www.mbaeker.de/wp-content/uploads/2011/08/image001-hv_thumb.png" alt="image001-hv" width="470" height="80" border="0" /></a></p>
<p>Die Konfiguration sollte eigentlich immer Online sein. Sie steht für die Registrierung der Virtuellen Maschine auf dem jeweiligen Hyper-V Knoten.<br />
<span id="more-659"></span><br />
Im Eventlog unter System kann man folgende Fehlermeldung finden:<br />
<code><br />
Log Name:      SystemSource: Microsoft-Windows-Hyper-V-High-Availability<br />
Date:          01.08.2011 09:13:21<br />
Event ID:      21502<br />
Task Category: None<br />
Level:         Error<br />
Keywords:<br />
User:          SYSTEM<br />
Computer:      hyper-v<br />
Description:<br />
'Virtual Machine Configuration Ubuntu - 32bit - ubu1' failed to register the virtual machine with the virtual machine management service.<br />
</code></p>
<p>Tiefer in den Logs ist  unter Applications\Microsoft\Windows\Hyper-V-Config\Admin folgendes zu finden:</p>
<p><code><br />
Log Name:      Microsoft-Windows-Hyper-V-Config-Admin<br />
Source:        Microsoft-Windows-Hyper-V-Config<br />
Date:          01.08.2011 09:13:21<br />
Event ID:      4096<br />
Task Category: None<br />
Level:         Error<br />
Keywords:<br />
User:          NETWORK SERVICE<br />
Computer:      hyper-v<br />
Description:<br />
The Virtual Machines configuration C2DCF4AF-BBC7-4563-93A5-6C62522E33B3 at 'C:\ClusterStorage\Volume4\Ubuntu - 32bit - ubu1' is no longer accessible: The system cannot find the path specified. (0x80070003)<br />
</code></p>
<p>Da hat er recht. Im Zuge des Re-Imports hat sich auch die Cluster Storage Nummerierung geändert. Bloss wo speichert er diese Informationen? Da es sich um einen Clusterfehler handelt, lohnt ein Blick in die private Properties:</p>
<p><code><br />
cluster /cluster:hypervcluster res "Virtual Machine Configuration Ubuntu - 32bit - ubu1" /priv</p>
<p>Listing private properties for 'Virtual Machine Configuration Ubuntu - 32bit - ubu1':<br />
T  Resource             Name                           Value<br />
-- -------------------- ------------------------------ -----------------------<br />
SR Virtual Machine Configuration Ubuntu - 32bit - ubu1 VmSwitchPorts<br />
SR Virtual Machine Configuration Ubuntu - 32bit - ubu1 VmPhysicalDisks<br />
S  Virtual Machine Configuration Ubuntu - 32bit - ubu1 VmID      c2dcf4af-bbc7-4563-93a5-6c62522e33b3<br />
S  Virtual Machine Configuration Ubuntu - 32bit - ubu1 VmStoreRootPath      C:\ClusterStorage\Volume4\Ubuntu - 32bit - ubu1<br />
M  Virtual Machine Configuration Ubuntu - 32bit - ubu1 DependsOnSharedVolumes      cb598e77-d541-4481-9285-484fb52e8ce3:1048576<br />
</code><br />
Da haben wir den fehlerhaften Pfad.</p>
<p>Ein kurzer Befehl korrigiert diesen:<br />
<code><br />
cluster /cluster:hypervcluster res "Virtual Machine Configuration Ubuntu - 32bit - ubu1" /priv "VmStoreRootPath"="C:\ClusterStorage\Volume6\Ubuntu - 32bit - ubu1"<br />
</code><br />
Und sofort startet die Ressource im Cluster wieder:</p>
<p><a href="http://www.mbaeker.de/wp-content/uploads/2011/08/image002-hv.png"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="image002-hv" src="http://www.mbaeker.de/wp-content/uploads/2011/08/image002-hv_thumb.png" alt="image002-hv" width="548" height="72" border="0" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mbaeker.de/2011/08/eventid-21502-im-hyper-v-cluster/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SCVMM/Hyper-V: L&#246;schen von VMs</title>
		<link>http://www.mbaeker.de/2011/05/scvmmhyper-v-lschen-von-vms/</link>
		<comments>http://www.mbaeker.de/2011/05/scvmmhyper-v-lschen-von-vms/#comments</comments>
		<pubDate>Thu, 19 May 2011 18:14:44 +0000</pubDate>
		<dc:creator>markus</dc:creator>
				<category><![CDATA[Deutsch]]></category>
		<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[System Center]]></category>
		<category><![CDATA[Virtual Machine Manager]]></category>
		<category><![CDATA[HAL]]></category>
		<category><![CDATA[Snapshot]]></category>

		<guid isPermaLink="false">http://www.mbaeker.de/?p=470</guid>
		<description><![CDATA[Kann mir einer das mal erklären? Löscht man in Hyper-V eine VM, die Snapshots hat, dann werden erst alle Snapshots gelöscht, also in das Hauptfile zurückgeschrieben und dann die entsprechende Disk. Was für einen Sinn macht das? Besonders extrem wird es, wenn man ein Storage Migration mit SCVMM (System Center Virtual Machine Manager 2012) macht. [...]]]></description>
			<content:encoded><![CDATA[<p><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: left; border-top: 0px; border-right: 0px; padding-top: 0px" title="timer" border="0" alt="timer" align="left" src="http://www.mbaeker.de/wp-content/uploads/2011/05/timer.png" width="64" height="64" />Kann mir einer das mal erklären? Löscht man in Hyper-V eine VM, die Snapshots hat, dann werden erst alle Snapshots gelöscht, also in das Hauptfile zurückgeschrieben und dann die entsprechende Disk. Was für einen Sinn macht das?</p>
<p>Besonders extrem wird es, wenn man ein Storage Migration mit SCVMM (System Center Virtual Machine Manager 2012) macht. Dabei wird eine neue VM angelegt, die Disks kopiert und dann die alte VM mit den Disks gelöscht. Was dann bei einer VM mit Snapshots passiert kann man sich denken:</p>
<p>Ansicht des Jobs im SCVMM 2012:</p>
<p><a href="http://www.mbaeker.de/wp-content/uploads/2011/05/scvmm.png" rel="shadowbox"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="scvmm" border="0" alt="scvmm" src="http://www.mbaeker.de/wp-content/uploads/2011/05/scvmm_thumb.png" width="578" height="167" /></a></p>
<p>Wie man sieht wurden die Disks innerhalb 3 Minuten kopiert und jetzt (ca. 14:05) hängt er immer noch beim Entfernen der VM.</p>
<p>In der Hyper-V Konsole sieht es zu dem Zeitpunkt so aus:</p>
<p><a href="http://www.mbaeker.de/wp-content/uploads/2011/05/hyper-v.png" rel="shadowbox"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="hyper-v" border="0" alt="hyper-v" src="http://www.mbaeker.de/wp-content/uploads/2011/05/hyper-v_thumb.png" width="575" height="211" /></a></p>
<p>Destroying ist bei 25% <img style="border-bottom-style: none; border-left-style: none; border-top-style: none; border-right-style: none" class="wlEmoticon wlEmoticon-smile" alt="Smiley" src="http://www.mbaeker.de/wp-content/uploads/2011/05/wlEmoticon-smile.png" /></p>
<p>Ich kann mir den Sinn davon nicht erklären. Vielleicht irgendein anderer hier??</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mbaeker.de/2011/05/scvmmhyper-v-lschen-von-vms/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Support policy for Microsoft SQL Server products that are running in a hardware virtualization environment</title>
		<link>http://www.mbaeker.de/2011/05/support-policy-for-microsoft-sql-server-products-that-are-running-in-a-hardware-virtualization-environment/</link>
		<comments>http://www.mbaeker.de/2011/05/support-policy-for-microsoft-sql-server-products-that-are-running-in-a-hardware-virtualization-environment/#comments</comments>
		<pubDate>Sun, 15 May 2011 10:32:52 +0000</pubDate>
		<dc:creator>markus</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Snapshot]]></category>

		<guid isPermaLink="false">http://www.mbaeker.de/2011/05/support-policy-for-microsoft-sql-server-products-that-are-running-in-a-hardware-virtualization-environment/</guid>
		<description><![CDATA[If you want to know if it is supported to run the SQL Server in a virtualized environment than this is the right article for you: http://support.microsoft.com/kb/956893/en-us Summaries: SQL 2005 or higher is supported on Hyper-V or a hypervisor validated in the SVVP program Snapshots of the VM are NOT supported. Hyper-V Dynamic Memory is [...]]]></description>
			<content:encoded><![CDATA[<p><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: left; border-top: 0px; border-right: 0px; padding-top: 0px" title="checkmark" border="0" alt="checkmark" align="left" src="http://www.mbaeker.de/wp-content/uploads/2011/05/checkmark.png" width="67" height="67" />If you want to know if it is supported to run the SQL Server in a virtualized environment than this is the right article for you: </p>
<p><a href="http://support.microsoft.com/kb/956893/en-us">http://support.microsoft.com/kb/956893/en-us</a></p>
<p>Summaries:</p>
<ol>
<li>SQL 2005 or higher is supported on Hyper-V or a hypervisor validated in the SVVP program</li>
<li>Snapshots of the VM are NOT supported.</li>
<li>Hyper-V Dynamic Memory is supported but only useful with SQL Server version Enterprise and Datacenter</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.mbaeker.de/2011/05/support-policy-for-microsoft-sql-server-products-that-are-running-in-a-hardware-virtualization-environment/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Re-Import VMs into Hyper-V</title>
		<link>http://www.mbaeker.de/2011/05/re-import-vms-into-hyper-v/</link>
		<comments>http://www.mbaeker.de/2011/05/re-import-vms-into-hyper-v/#comments</comments>
		<pubDate>Tue, 03 May 2011 16:57:21 +0000</pubDate>
		<dc:creator>markus</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Batchdatei]]></category>
		<category><![CDATA[scripts]]></category>
		<category><![CDATA[Snapshot]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.mbaeker.de/2011/05/re-import-vms-into-hyper-v/</guid>
		<description><![CDATA[Normaly you can only import a Virtual Machine (VM) into Hyper-V if you have exported it. If you lose your Hyper-V settings or have to import it into a new Hyper-V Server in case of a desaster recovery than you can use the steps descripted in this (and other) blog post: http://blogs.msdn.com/b/robertvi/archive/2008/12/19/howto-manually-add-a-vm-configuration-to-hyper-v.aspx The problem is [...]]]></description>
			<content:encoded><![CDATA[<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; float: left; padding-top: 0px; border: 0px;" title="tools" src="http://www.mbaeker.de/wp-content/uploads/2011/05/tools.png" border="0" alt="tools" width="99" height="99" align="left" />Normaly you can only import a Virtual Machine (VM) into Hyper-V if you have exported it. If you lose your Hyper-V settings or have to import it into a new Hyper-V Server in case of a desaster recovery than you can use the steps descripted in this (and other) blog post: <a title="http://blogs.msdn.com/b/robertvi/archive/2008/12/19/howto-manually-add-a-vm-configuration-to-hyper-v.aspx" href="http://blogs.msdn.com/b/robertvi/archive/2008/12/19/howto-manually-add-a-vm-configuration-to-hyper-v.aspx">http://blogs.msdn.com/b/robertvi/archive/2008/12/19/howto-manually-add-a-vm-configuration-to-hyper-v.aspx</a></p>
<p>The problem is that you have to handle many long pathes and cryptical GUIDs. I had to do that for a bunch of different VMs and being chronical lacy I created three batch files for it:</p>
<ol>
<li>importVM.cmd “GUID” “Path to Virtual Machine” creates the link and corrects the permissions on the link and the vm folder</li>
<li>importSnapshot.cmd “SnapshotGuid” “VMGuid” “Path to Snapshot” creates the snapshot link and the right permission.</li>
</ol>
<p>Not very impressiv? Well, the third batch files combines this two scripts:</p>
<ol>
<li>addMachine.cmd: Takes the basis path (the path where the sub-folder Virtual Machine, Snapshots exists) and extracts the VM-GUID, all Snapshots-GUIDs and the other pathes to automaticly create the links and permissions.</li>
</ol>
<p>So with one simple command (addMachine.cmd C:\ClusterStorage\Volume4\VM1) you can import the complete VM.</p>
<p>&#8212; addMachine.cmd &#8212;&#8212;</p>
<p><span id="more-454"></span></p>
<pre>setlocal ENABLEDELAYEDEXPANSION

set vmBasisPath=%~1

for /f %%a in ('dir "%vmBasisPath%\Virtual Machines\" /b /ad') do (
  set guid=%%a
)

echo %guid%
call "%~dp0importVM.cmd" %guid% "%vmBasisPath%"

for /f %%a in ('dir "%vmBasisPath%\Snapshots\" /b /ad') do (
  call "%~dp0importSnapshot.cmd" %%a %guid% "%vmBasisPath%\Snapshots"
)

endlocal</pre>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>&#8212; importVM.cmd &#8212;&#8212;&#8212;-</p>
<pre>setlocal

set guid=%~1
set vmPath=%~2
set xmlPath=%vmpath%\Virtual Machines\%guid%.xml

mklink "c:\ProgramData\Microsoft\Windows\Hyper-V\Virtual Machines\%guid%.xml" "%xmlpath%"

Icacls "c:\ProgramData\Microsoft\Windows\Hyper-V\Virtual Machines\%guid%.xml" /grant "NT VIRTUAL MACHINE\%GUID%":(F) /L
Icacls "%vmpath%" /grant "NT VIRTUAL MACHINE\%GUID%":(F) /T

Endlocal</pre>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>&#8212; importSnapshot.cmd &#8211;</p>
<pre>setlocal

set guid=%~1
set vmguid=%~2

rem C:\ClusterStorage\Volume4\mcFly2\Snapshots
set snapPath=%~3

if not EXIST "%snapPath%\%guid%.xml" goto ende

Mklink "C:\ProgramData\Microsoft\Windows\Hyper-V\Snapshots\%guid%.xml" "%snapPath%\%guid%.xml"
Icacls C:\ProgramData\Microsoft\Windows\Hyper-V\Snapshots\%guid%.xml /grant "NT VIRTUAL MACHINE\%vmguid%":(F) /L

:ende
Endlocal</pre>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mbaeker.de/2011/05/re-import-vms-into-hyper-v/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Definieren des zu verwendenden Netzwerkes f&#252;r LiveMigration</title>
		<link>http://www.mbaeker.de/2011/03/definieren-des-zu-verwendenden-netzwerkes-fr-livemigration/</link>
		<comments>http://www.mbaeker.de/2011/03/definieren-des-zu-verwendenden-netzwerkes-fr-livemigration/#comments</comments>
		<pubDate>Tue, 15 Mar 2011 17:36:03 +0000</pubDate>
		<dc:creator>markus</dc:creator>
				<category><![CDATA[Deutsch]]></category>
		<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[HAL]]></category>
		<category><![CDATA[LiveMigration]]></category>

		<guid isPermaLink="false">http://www.mbaeker.de/?p=412</guid>
		<description><![CDATA[In einigen Fällen möchte man definieren, welche Netzwerkkarte(n) ein Hyper-V Cluster für die Übertragung der RAM Inhalte bei einer Live Migration verwenden soll. Diese Option ist in der Cluster Konsole relativ versteckt und kann pro Virtueller Maschine definieren. Damit ich sie beim nächsten Mal wiederfinde dokumentiere ich sie mal hier: Zuerst schaut man sich in [...]]]></description>
			<content:encoded><![CDATA[<p><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: left; border-top: 0px; border-right: 0px; padding-top: 0px" title="icon-17" border="0" alt="icon-17" align="left" src="http://www.mbaeker.de/wp-content/uploads/2011/03/icon-171.png" width="64" height="64" />In einigen Fällen möchte man definieren, welche Netzwerkkarte(n) ein Hyper-V Cluster für die Übertragung der RAM Inhalte bei einer Live Migration verwenden soll.</p>
<p>Diese Option ist in der Cluster Konsole relativ versteckt und kann pro Virtueller Maschine definieren. Damit ich sie beim nächsten Mal wiederfinde dokumentiere ich sie mal hier:</p>
<p>Zuerst schaut man sich in der Clusterkonsole die Details einer Virtuellen Maschine an:</p>
<p><a href="http://www.mbaeker.de/wp-content/uploads/2011/03/LiveMigrationNetzwerk1.png" rel="shadowbox"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="LiveMigrationNetzwerk1" border="0" alt="LiveMigrationNetzwerk1" src="http://www.mbaeker.de/wp-content/uploads/2011/03/LiveMigrationNetzwerk1_thumb.png" width="591" height="67" /></a></p>
<p>Danach öffnet man die Eigenschaften der Clusterressource (im Bild blau markiert).</p>
<p>In diesem Dialog kann man auf der Registerkarte die zu verwendenden Netzwerke und auch deren Priorität auswählen.</p>
<p><a href="http://www.mbaeker.de/wp-content/uploads/2011/03/LiveMigrationNetzwerk2.png" rel="shadowbox"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="LiveMigrationNetzwerk2" border="0" alt="LiveMigrationNetzwerk2" src="http://www.mbaeker.de/wp-content/uploads/2011/03/LiveMigrationNetzwerk2_thumb.png" width="314" height="388" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mbaeker.de/2011/03/definieren-des-zu-verwendenden-netzwerkes-fr-livemigration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows 2008 R2 SP1 Beta &#8211; Dynamic Memory</title>
		<link>http://www.mbaeker.de/2010/07/windows-2008-r2-sp1-beta-dynamic-memory/</link>
		<comments>http://www.mbaeker.de/2010/07/windows-2008-r2-sp1-beta-dynamic-memory/#comments</comments>
		<pubDate>Thu, 22 Jul 2010 18:36:40 +0000</pubDate>
		<dc:creator>markus</dc:creator>
				<category><![CDATA[Deutsch]]></category>
		<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[SP1]]></category>
		<category><![CDATA[Treiber]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.mbaeker.de/?p=344</guid>
		<description><![CDATA[Einige der wenigen Neuerungen im Service Pack 1 für Windows 2008 R2 ist Dynamic Memory für die Hyper-V Rolle. Eine gute Erklärung findet man unter http://blogs.technet.com/b/virtualization/archive/2010/07/12/dynamic-memory-coming-to-hyper-v-part-6.aspx. Zum Testen habe ich einen der Hyper-V Server Knoten im Cluster mit der Betaversion ausgestattet. Wie im Artikel oben beschrieben wird das Verändern des genutzten Speichers durch die Gast-OS [...]]]></description>
			<content:encoded><![CDATA[<p><img style="display: inline; margin-left: 0px; margin-right: 0px; border: 0px;" title="gkrellm2" src="http://www.mbaeker.de/wp-content/uploads/2010/07/gkrellm2.png" border="0" alt="gkrellm2" width="74" height="74" align="left" /> Einige der wenigen Neuerungen im Service Pack 1 für Windows 2008 R2 ist Dynamic Memory für die Hyper-V Rolle. Eine gute Erklärung findet man unter <a href="http://blogs.technet.com/b/virtualization/archive/2010/07/12/dynamic-memory-coming-to-hyper-v-part-6.aspx" target="_blank">http://blogs.technet.com/b/virtualization/archive/2010/07/12/dynamic-memory-coming-to-hyper-v-part-6.aspx</a>.</p>
<p>Zum Testen habe ich einen der Hyper-V Server Knoten im Cluster mit der Betaversion ausgestattet. Wie im Artikel oben beschrieben wird das Verändern des genutzten Speichers durch die Gast-OS durchgeführt. Dazu scheint Microsoft ein neues Device in den VMBus einzuhängen.</p>
<p>Da es ein neues Feature ist, findet die VM mit Windows 2008 Server SP2 noch keinen Treiber dafür. Ich werde daher weiterprobieren <img src='http://www.mbaeker.de/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p><a href="http://www.mbaeker.de/wp-content/uploads/2010/07/vmBUS.png"><img style="display: inline; border: 0px;" title="vmBUS" src="http://www.mbaeker.de/wp-content/uploads/2010/07/vmBUS_thumb.png" border="0" alt="vmBUS" width="244" height="175" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mbaeker.de/2010/07/windows-2008-r2-sp1-beta-dynamic-memory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Kostenloses eBook &#252;ber Microsoft Virtualisierung</title>
		<link>http://www.mbaeker.de/2010/02/kostenloses-ebook-ber-microsoft-virtualisierung/</link>
		<comments>http://www.mbaeker.de/2010/02/kostenloses-ebook-ber-microsoft-virtualisierung/#comments</comments>
		<pubDate>Sat, 27 Feb 2010 22:36:36 +0000</pubDate>
		<dc:creator>markus</dc:creator>
				<category><![CDATA[Deutsch]]></category>
		<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.mbaeker.de/2010/02/kostenloses-ebook-ber-microsoft-virtualisierung/</guid>
		<description><![CDATA[&#160; Microsoft Press hat sein kostenloses eBook über Server und Desktop Virtualisierung auf Windows 2008 R2 aktualisiert. Es enthält u.a. Themen bezüglich Servervirtualisierung Hyper-V Neuigkeiten mit Hyper-V in R2 Local Desktop Virtualisierung Windows XP Mode App-V Med-V Windows Virtual PC Remote Desktop Virtualisierung Remote Desktop Service App-V for RDS VDI Virtualization Management Cloud Computing Ich [...]]]></description>
			<content:encoded><![CDATA[<p><img title="icon-10" style="border-right: 0px; border-top: 0px; display: inline; margin-left: 0px; border-left: 0px; margin-right: 0px; border-bottom: 0px" height="64" alt="icon-10" src="http://www.mbaeker.de/wp-content/uploads/2010/02/icon10.png" width="64" align="left" border="0" /> </p>
<p>&#160;</p>
<p>Microsoft Press hat sein kostenloses eBook über Server und Desktop Virtualisierung auf Windows 2008 R2 aktualisiert. Es enthält u.a. Themen bezüglich</p>
<ol>
<li>Servervirtualisierung
<ul>
<li>Hyper-V </li>
<li>Neuigkeiten mit Hyper-V in R2 </li>
</ul>
</li>
<li>Local Desktop Virtualisierung
<ul>
<li>Windows XP Mode </li>
<li>App-V </li>
<li>Med-V </li>
<li>Windows Virtual PC </li>
</ul>
</li>
<li>Remote Desktop Virtualisierung
<ul>
<li>Remote Desktop Service </li>
<li>App-V for RDS </li>
<li>VDI </li>
</ul>
</li>
<li>Virtualization Management </li>
<li>Cloud Computing </li>
</ol>
<p>Ich habe mir mal das VDI Kapitel genau durchgelesen, um zu schauen, ob ich noch relevante Punkte für meinen VDI Vortrag nächste Woche finde. Es ist als Einstieg in die Materie gut geschrieben und hat darüber hinaus viele Links und einige interessante weiterführende Informationen.</p>
<ol>Herunterzuladen ist das Buch als PDF oder XPS unter:</ol>
<p><a title="http://blogs.msdn.com/microsoft_press/archive/2010/02/16/free-ebook-understanding-microsoft-virtualization-r2-solutions.aspx" href="http://blogs.msdn.com/microsoft_press/archive/2010/02/16/free-ebook-understanding-microsoft-virtualization-r2-solutions.aspx">http://blogs.msdn.com/microsoft_press/archive/2010/02/16/free-ebook-understanding-microsoft-virtualization-r2-solutions.aspx</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mbaeker.de/2010/02/kostenloses-ebook-ber-microsoft-virtualisierung/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

