<?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>vNiklas Virtualization blog</title>
	<atom:link href="http://vniklas.djungeln.se/feed/" rel="self" type="application/rss+xml" />
	<link>http://vniklas.djungeln.se</link>
	<description>A blog about my exerience with virtualization and life</description>
	<lastBuildDate>Wed, 16 May 2012 18:29:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Shrink HyperV virtual hard disk Win8 / Win2012 with PowerShell</title>
		<link>http://vniklas.djungeln.se/2012/05/13/shrink-hyperv-virtual-hard-disk-win8-win2012-with-powershell/</link>
		<comments>http://vniklas.djungeln.se/2012/05/13/shrink-hyperv-virtual-hard-disk-win8-win2012-with-powershell/#comments</comments>
		<pubDate>Sun, 13 May 2012 21:28:22 +0000</pubDate>
		<dc:creator>Niklas</dc:creator>
				<category><![CDATA[Automation]]></category>
		<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[Powershell]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[Win8]]></category>

		<guid isPermaLink="false">http://vniklas.djungeln.se/?p=738</guid>
		<description><![CDATA[I read this post by Ben (Virtual PC Guy) Armstrong about shrinking a virtual hard disk and thought this should be done with powershell. So first I have to shrink the partition inside the VM, for this I use the New-CIMSession (instead of powershell remoting and such) and then I shut down the VM and [...]]]></description>
			<content:encoded><![CDATA[<p>I read this <a href="http://blogs.msdn.com/b/virtual_pc_guy/archive/2012/05/07/shrinking-a-virtual-hard-disk-in-windows-8.aspx" target="_blank">post by Ben (Virtual PC Guy) Armstrong about shrinking a virtual hard disk</a> and thought this should be done with powershell.</p>
<p>So first I have to shrink the partition inside the VM, for this I use the New-CIMSession (instead of powershell remoting and such) and then I shut down the VM and shrink the VHDx file, As someone correctly noted, this shrink of the virtual disk file is only possible when using the new VHDx format.</p>
<p><a href="http://vniklas.djungeln.se/wp-content/uploads/2012/05/Screen-Shot-2012-05-13-at-23.23.50.png"><img class="aligncenter size-full wp-image-744" title="Screen Shot 2012-05-13 at 23.23.50" src="http://vniklas.djungeln.se/wp-content/uploads/2012/05/Screen-Shot-2012-05-13-at-23.23.50.png" alt="" width="593" height="111" /></a></p>
<p>The VM is part of the same domain as the hyper-V server from which I am running the script, this made it easier to make a cim connection. The VM is also a Win 8 beta cause I need the latest win framework with powershell 3.</p>
<p>As you can see, the disk in my VM is 60 GB and I want to shrink it to the minimum size * 20% (so i get at least some space left <img src='http://vniklas.djungeln.se/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p><a href="http://vniklas.djungeln.se/wp-content/uploads/2012/05/Screen-Shot-2012-05-13-at-23.09.19.png"><img class="aligncenter size-full wp-image-739" title="Screen Shot 2012-05-13 at 23.09.19" src="http://vniklas.djungeln.se/wp-content/uploads/2012/05/Screen-Shot-2012-05-13-at-23.09.19.png" alt="" width="512" height="300" /></a><a href="http://vniklas.djungeln.se/wp-content/uploads/2012/05/Screen-Shot-2012-05-13-at-23.12.05.png"><img class="aligncenter size-full wp-image-740" title="Screen Shot 2012-05-13 at 23.12.05" src="http://vniklas.djungeln.se/wp-content/uploads/2012/05/Screen-Shot-2012-05-13-at-23.12.05.png" alt="" width="286" height="97" /></a>Now I will run my little script and here is what that looks like</p>
<pre>
# vNiklas Masterblaster shrink
#
# Niklas Akerlund / 2012-05-13

$VM = "Shrink8"

$cim = New-CimSession $VM

$partitionC = Get-Partition -CimSession $cim -DriveLetter C

$newSize = ($partitionC | Get-PartitionSupportedSize).SizeMin*1.20

Resize-Partition -PartitionNumber $partitionC.PartitionNumber -DiskNumber $partitionC.DiskNumber -Size $newSize -CimSession $cim

Get-Volume C -CimSession $cim

$VM = Get-VM $VM

Stop-VM $VM

$hdd = $VM | Get-VMHardDiskDrive

Resize-VHD -Path $hdd.Path -ToMinimumSize

Start-VM $VM
</pre>
<p>And here you can see the result, a quite simple solution..</p>
<p><a href="http://vniklas.djungeln.se/wp-content/uploads/2012/05/Screen-Shot-2012-05-13-at-23.18.45.png"><img class="aligncenter size-full wp-image-741" title="Screen Shot 2012-05-13 at 23.18.45" src="http://vniklas.djungeln.se/wp-content/uploads/2012/05/Screen-Shot-2012-05-13-at-23.18.45.png" alt="" width="515" height="297" /></a><a href="http://vniklas.djungeln.se/wp-content/uploads/2012/05/Screen-Shot-2012-05-13-at-23.19.51.png"><img class="aligncenter size-full wp-image-742" title="Screen Shot 2012-05-13 at 23.19.51" src="http://vniklas.djungeln.se/wp-content/uploads/2012/05/Screen-Shot-2012-05-13-at-23.19.51.png" alt="" width="288" height="92" /></a></p>
<p>Good luck in your shrinking <img src='http://vniklas.djungeln.se/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p><strong>Update:  </strong>I totally missed that B<a href="http://blogs.msdn.com/b/virtual_pc_guy/archive/2012/05/10/shrinking-a-vhd-in-windows-8-fast.aspx" target="_blank">en had done a post about doing it with powershell</a>, just after his other post when i was making this post&#8230; At least my solution show how to connect to a VM with CIM <img src='http://vniklas.djungeln.se/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://vniklas.djungeln.se/2012/05/13/shrink-hyperv-virtual-hard-disk-win8-win2012-with-powershell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bare metal deploy with SCVMM 2012 fail with error 800b0109 in WinPE</title>
		<link>http://vniklas.djungeln.se/2012/05/11/bare-metal-deploy-with-scvmm-2012-fail-with-error-800b0109-in-winpe/</link>
		<comments>http://vniklas.djungeln.se/2012/05/11/bare-metal-deploy-with-scvmm-2012-fail-with-error-800b0109-in-winpe/#comments</comments>
		<pubDate>Fri, 11 May 2012 13:56:40 +0000</pubDate>
		<dc:creator>Niklas</dc:creator>
				<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[Powershell]]></category>
		<category><![CDATA[SCVMM]]></category>
		<category><![CDATA[Virtualization]]></category>

		<guid isPermaLink="false">http://vniklas.djungeln.se/?p=728</guid>
		<description><![CDATA[Today I was at a customer and upgraded their VMM 2012 from RC to RTM. We got an issue when trying to run a bare metal deploy after the upgrade, at first we did not understand what was causing the error, but my suspicion was on the winpe that was published by VMM in the [...]]]></description>
			<content:encoded><![CDATA[<p>Today I was at a customer and upgraded their VMM 2012 from RC to RTM. We got an issue when trying to run a bare metal deploy after the upgrade, at first we did not understand what was causing the error, but my suspicion was on the winpe that was published by VMM in the WDS PXE.</p>
<p><a href="http://vniklas.djungeln.se/wp-content/uploads/2012/05/Screen-Shot-2012-05-11-at-14.25.50.png"><img class="aligncenter size-full wp-image-729" title="Screen Shot 2012-05-11 at 14.25.50" src="http://vniklas.djungeln.se/wp-content/uploads/2012/05/Screen-Shot-2012-05-11-at-14.25.50.png" alt="" width="498" height="232" /></a>Here is the error in the VMM Console also</p>
<p><a href="http://vniklas.djungeln.se/wp-content/uploads/2012/05/Screen-Shot-2012-05-11-at-15.21.35.png"><img class="aligncenter size-full wp-image-730" title="Screen Shot 2012-05-11 at 15.21.35" src="http://vniklas.djungeln.se/wp-content/uploads/2012/05/Screen-Shot-2012-05-11-at-15.21.35.png" alt="" width="551" height="242" /></a>And then i used PowerShell to update the VMM WinPE that resides in the WDS, this because their environment had new HP blades and i needed to add a nic driver. If you do not need to add anything to the winpe you can right click on the VMM console and the PXE  and you find a selection &#8220;Update WinPE Image&#8221; this will use an image from the WAIK installed on the VMM Server. Here is the <a href="http://technet.microsoft.com/en-us/library/hh801477" target="_blank">link</a> for the powershell cmdlet that updates the WinPE</p>
<p><a href="http://vniklas.djungeln.se/wp-content/uploads/2012/05/Screen-Shot-2012-05-11-at-15.27.26.png"><img class="aligncenter size-full wp-image-731" title="Screen Shot 2012-05-11 at 15.27.26" src="http://vniklas.djungeln.se/wp-content/uploads/2012/05/Screen-Shot-2012-05-11-at-15.27.26.png" alt="" width="306" height="149" /></a>The Powershell I ran was as below, I had to run the dism tools with elevated rights, this can be done by right click on the Powershell console and &#8220;Run As Administrator&#8221;</p>
<pre>
Import-Module "C:\Program Files\Microsoft System Center 2012\Virtual Machine Manager\bin\psModules\virtualmachinemanager\virtualmachinemanager.psd1"
Get-SCVMMServer localhost
$mountdir = "E:\mount"

$winpeimage = "E:\temp\custom_winpe.wim"

$winpeimagetemp = $winpeimage + ".tmp"

mkdir "E:\mount"

copy $winpeimage $winpeimagetemp

dism /mount-wim /wimfile:$winpeimagetemp /index:1 /mountdir:$mountdir

$path = "E:\temp\drivers\be2nd62.inf" # $driver.sharepath
dism /image:$mountdir /add-driver /driver:$path

Dism /Unmount-Wim /MountDir:$mountdir /Commit

publish-scwindowspe -path $winpeimagetemp
</pre>
<p>Here is a <a href="http://social.technet.microsoft.com/Forums/en-GB/virtualmachinemanager/thread/146987c4-5703-479e-998e-9e4b68e90385" target="_blank">link to the technet forum</a> where I found another guy having the same issue, whom I helped.</p>
<p>After updating the WinPE we tried to do a new bare metal deploy and this time we had no issues with the certificate.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://vniklas.djungeln.se/2012/05/11/bare-metal-deploy-with-scvmm-2012-fail-with-error-800b0109-in-winpe/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PowerCLI report on datastores, overprovision and number of powered on VM´s</title>
		<link>http://vniklas.djungeln.se/2012/05/08/powercli-report-on-datastores-overprovision-and-number-of-powered-on-vm%c2%b4s/</link>
		<comments>http://vniklas.djungeln.se/2012/05/08/powercli-report-on-datastores-overprovision-and-number-of-powered-on-vm%c2%b4s/#comments</comments>
		<pubDate>Tue, 08 May 2012 19:38:54 +0000</pubDate>
		<dc:creator>Niklas</dc:creator>
				<category><![CDATA[Automation]]></category>
		<category><![CDATA[PowerCLI]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://vniklas.djungeln.se/?p=721</guid>
		<description><![CDATA[Today I had an reason for running PowerCLI again, the case was to get an quick report on the datastores at a customer, I have made a post about the one-liner that get the number of running VM´s on a datastore. As i described in that post, if your SAN does not support VAAI then [...]]]></description>
			<content:encoded><![CDATA[<p>Today I had an reason for running PowerCLI again, the case was to get an quick report on the datastores at a customer, I have made a<a title="Check number of running VMs on datastores" href="http://vniklas.djungeln.se/2011/12/19/check-number-of-running-vms-on-datastores/" target="_blank"> post about the one-liner that</a> get the number of running VM´s on a datastore. As i described in that post, if your SAN does not support VAAI then you do not want to many VM´s on each datastore because of the SCSI-locking that can occur. This is just an extension of that because we also wanted to check how overprovisioned the datastores was (when using thin provisioning there is a risk that you will fill your datastores as the VM´s fill their vmdk disk´s)</p>
<p>The PowerCLI code looks like this</p>
<pre>
Get-Datastore | Select Name,@{N="TotalSpaceGB";E={[Math]::Round(($_.ExtensionData.Summary.Capacity)/1GB,0)}},@{N="UsedSpaceGB";E={[Math]::Round(($_.ExtensionData.Summary.Capacity - $_.ExtensionData.Summary.FreeSpace)/1GB,0)}}, @{N="ProvisionedSpaceGB";E={[Math]::Round(($_.ExtensionData.Summary.Capacity - $_.ExtensionData.Summary.FreeSpace + $_.ExtensionData.Summary.Uncommitted)/1GB,0)}},@{N="NumVM";E={@($_ | Get-VM | where {$_.PowerState -eq "PoweredOn"}).Count}} | Sort Name | Export-Csv -Path C:\temp\vmds-datastore.csv -NoTypeInformation -UseCulture
</pre>
<p>And this is when i have run it on my test system, the difference here is that i removed the Export-CSV to get the output in the console</p>
<p style="text-align: center;"><a href="http://vniklas.djungeln.se/wp-content/uploads/2012/05/Screen-Shot-2012-05-08-at-20.56.58.png"><img class="aligncenter  wp-image-722" title="Screen Shot 2012-05-08 at 20.56.58" src="http://vniklas.djungeln.se/wp-content/uploads/2012/05/Screen-Shot-2012-05-08-at-20.56.58.png" alt="" width="659" height="160" /></a></p>
<p>And here is a simple excel report</p>
<p><a href="http://vniklas.djungeln.se/wp-content/uploads/2012/05/Screen-Shot-2012-05-08-at-21.24.30.png"><img class="aligncenter size-full wp-image-723" title="Screen Shot 2012-05-08 at 21.24.30" src="http://vniklas.djungeln.se/wp-content/uploads/2012/05/Screen-Shot-2012-05-08-at-21.24.30.png" alt="" width="435" height="80" /></a></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://vniklas.djungeln.se/2012/05/08/powercli-report-on-datastores-overprovision-and-number-of-powered-on-vm%c2%b4s/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VMware vCloud Director vApp and DRS cluster affinity with PowerCLI</title>
		<link>http://vniklas.djungeln.se/2012/05/03/vmware-vcloud-director-vapp-and-drs-cluster-affinity-with-powercli/</link>
		<comments>http://vniklas.djungeln.se/2012/05/03/vmware-vcloud-director-vapp-and-drs-cluster-affinity-with-powercli/#comments</comments>
		<pubDate>Thu, 03 May 2012 14:11:17 +0000</pubDate>
		<dc:creator>Niklas</dc:creator>
				<category><![CDATA[Automation]]></category>
		<category><![CDATA[PowerCLI]]></category>
		<category><![CDATA[Powershell]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://vniklas.djungeln.se/?p=704</guid>
		<description><![CDATA[To fully utilize the performance in a vApp in vCloud Director I got the task to create an affinity rule based on the VMs in the vApp. This can be the case for example when you have VMs in an vApp that exchange high loads of data. In our case we have virtual ESXi Servers [...]]]></description>
			<content:encoded><![CDATA[<p>To fully utilize the performance in a vApp in vCloud Director I got the task to create an affinity rule based on the VMs in the vApp. This can be the case for example when you have VMs in an vApp that exchange high loads of data. In our case we have virtual ESXi Servers that have a vsa for shared storage and need good performance when deploying VM´s and storage vMotion etc.</p>
<p>When deploying several vApps from the same template it is not just to run Get-CIVM and then use the VM name returned to run Get-VM for the correlation between the VM in VCD and in vCenter, as you can see in the screendumps these two have the same name but followed with an identifier from vCD in the vSphere Client. This is also described in the <a href="http://blogs.vmware.com/vsphere/2012/02/uniquely-identifying-virtual-machines-in-vsphere-and-vcloud-part-1-overview.html" target="_blank">vSphere blog</a>.</p>
<p><a href="http://vniklas.djungeln.se/wp-content/uploads/2012/05/Screen-Shot-2012-05-03-at-14.51.34.png"><img class="aligncenter size-full wp-image-705" title="Screen Shot 2012-05-03 at 14.51.34" src="http://vniklas.djungeln.se/wp-content/uploads/2012/05/Screen-Shot-2012-05-03-at-14.51.34.png" alt="" width="402" height="40" /></a></p>
<p><a href="http://vniklas.djungeln.se/wp-content/uploads/2012/05/Screen-Shot-2012-05-03-at-14.57.01.png"><img class="aligncenter size-full wp-image-706" title="Screen Shot 2012-05-03 at 14.57.01" src="http://vniklas.djungeln.se/wp-content/uploads/2012/05/Screen-Shot-2012-05-03-at-14.57.01.png" alt="" width="610" height="79" /></a></p>
<p>The fine part is that the MoRef is unique (in the relation one vcd &lt;-&gt; one vcenter) so I can check on that which VMs in the vCenter belongs to the same vCloud Director vApp.</p>
<p><a href="http://vniklas.djungeln.se/wp-content/uploads/2012/05/Screen-Shot-2012-05-03-at-15.11.10.png"><img class="aligncenter size-full wp-image-710" title="Screen Shot 2012-05-03 at 15.11.10" src="http://vniklas.djungeln.se/wp-content/uploads/2012/05/Screen-Shot-2012-05-03-at-15.11.10.png" alt="" width="635" height="69" /></a></p>
<p>I got the code for the MoRef in this <a href="http://communities.vmware.com/docs/DOC-18513" target="_blank">community post</a>.</p>
<p>And here is my script</p>
<pre>
&lt;#
.Synopsis
   Add an affinity rule for a vCloud Director vAPP
.DESCRIPTION
   This function takes a vApp as parameter and creates an affinity rule for them to keep them together
.EXAMPLE
   Add-CIVAppAffinity -CIVApp Green01
.NOTES
Author: Niklas Akerlund / RTS
Date: 2012-05-03
#&gt;
function Add-CIVAppAffinity
{
    Param
    (
        # Parameter for the vAPP
        [Parameter(Mandatory=$true,
                   ValueFromPipelineByPropertyName=$true,
                   Position=0)]
        $CIVApp,

        # If the rule should apply on a different cluster
        $Cluster = &quot;vCD-Cluster&quot;
    )

	$pod = Get-CIVapp $CIVApp
	if ($pod){
		$PodVMs = Get-CIVM -VApp $pod
		$VMs = @()
		$Cluster = Get-Cluster $Cluster
		Foreach ($PodVM in $PodVMs) {
			$VMname = $PodVM.Name + &quot;*&quot;
			$VM =  Get-VM $VMname | where {$_.ExtensionData.MoRef.Value -eq $PodVM.ExtensionData.VCloudExtension[0].Any[0].VmVimObjectRef.MoRef}
			$VMs +=$VM
		}

		if (!(Get-DrsRule -Cluster $Cluster -Name $pod.Name -ErrorAction SilentlyContinue)){
			New-DrsRule -Name $pod.Name -Cluster $Cluster -KeepTogether $true -VM $VMs
		}else{
			Remove-DrsRule -Rule (Get-DrsRule -Cluster $Cluster -Name $pod.Name) -Confirm:$false
			New-DrsRule -Name $pod.Name -Cluster $Cluster -KeepTogether $true -VM $VMs
		}
	}
}
</pre>
<p>And when checking the cluster i can see that my DRS affinity rule has been created and the VMs have been migrated to the same host</p>
<p><a href="http://vniklas.djungeln.se/wp-content/uploads/2012/05/Screen-Shot-2012-05-03-at-16.01.25.png"><img class="aligncenter size-full wp-image-712" title="Screen Shot 2012-05-03 at 16.01.25" src="http://vniklas.djungeln.se/wp-content/uploads/2012/05/Screen-Shot-2012-05-03-at-16.01.25.png" alt="" width="334" height="54" /></a></p>
<p><a href="http://vniklas.djungeln.se/wp-content/uploads/2012/05/Screen-Shot-2012-05-03-at-15.59.571.png"><img class="aligncenter size-full wp-image-714" title="Screen Shot 2012-05-03 at 15.59.57" src="http://vniklas.djungeln.se/wp-content/uploads/2012/05/Screen-Shot-2012-05-03-at-15.59.571.png" alt="" width="614" height="100" /></a></p>
<p>It is not so extensive but it helps us with the case to create DRS affinity on the VMs in a particular vApp <img src='http://vniklas.djungeln.se/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  , The Rule is deleted when the vApp is removed, I have an extra check in the script and remove it if it still exist of some reason.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://vniklas.djungeln.se/2012/05/03/vmware-vcloud-director-vapp-and-drs-cluster-affinity-with-powercli/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Upgrade SCVMM 2012 RC to RTM</title>
		<link>http://vniklas.djungeln.se/2012/04/26/upgrade-scvmm-2012-rc-to-rtm/</link>
		<comments>http://vniklas.djungeln.se/2012/04/26/upgrade-scvmm-2012-rc-to-rtm/#comments</comments>
		<pubDate>Thu, 26 Apr 2012 13:49:59 +0000</pubDate>
		<dc:creator>Niklas</dc:creator>
				<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[SCVMM]]></category>
		<category><![CDATA[Virtualization]]></category>

		<guid isPermaLink="false">http://vniklas.djungeln.se/?p=692</guid>
		<description><![CDATA[Today I wanted to upgrade my test environment from SC VMM 2012 RC to RTM, as it clearly says in the documentation, this is not supported (unless you are a TAP customer). But do not shout out in anger just until you read the forum, cause you can actually get the db upgrade util even [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://vniklas.djungeln.se/wp-content/uploads/2012/04/Screen-Shot-2012-04-26-at-13.06.10.png"><img class="aligncenter size-full wp-image-693" title="Screen Shot 2012-04-26 at 13.06.10" src="http://vniklas.djungeln.se/wp-content/uploads/2012/04/Screen-Shot-2012-04-26-at-13.06.10.png" alt="" width="425" height="178" /></a></p>
<p>Today I wanted to upgrade my test environment from SC VMM 2012 RC to RTM, as it clearly says in the documentation, <a href="http://technet.microsoft.com/en-us/library/hh430992.aspx">this is not supported </a>(<a href="http://blogs.technet.com/b/hectorl/archive/2011/09/08/system-center-virtual-machine-manager-vmm-2012-rc-now-available-for-download.aspx" target="_blank">unless you are a TAP customer</a>). But do not shout out in anger just until you <a href="http://social.technet.microsoft.com/Forums/en-US/virtualmachingmgrsetup/thread/d64abf06-a3aa-421e-9abf-f88249fe233a" target="_blank">read the forum</a>, cause you can actually get the db upgrade util even if you weren&#8217;t in the TAP program.</p>
<p>Now I was one of the lucky to be in the TAP program so I could download the upgrade binary. First I had to uninstall the VMM Server and the Console, not to forget was to retain the database data (otherwise an upgrade would kind of be meaningless)</p>
<p><a href="http://vniklas.djungeln.se/wp-content/uploads/2012/04/Screen-Shot-2012-04-26-at-13.59.31.png"><img class="aligncenter size-full wp-image-695" title="Screen Shot 2012-04-26 at 13.59.31" src="http://vniklas.djungeln.se/wp-content/uploads/2012/04/Screen-Shot-2012-04-26-at-13.59.31.png" alt="" width="414" height="275" /></a>When the uninstall was complete, start an elevated prompt and run the tool, if you run UpgradeVMM2012RC.exe /?  you can see what different parameters you can use.</p>
<p style="text-align: center;"><a href="http://vniklas.djungeln.se/wp-content/uploads/2012/04/Screen-Shot-2012-04-26-at-14.05.47.png"><img class="aligncenter  wp-image-694" title="Screen Shot 2012-04-26 at 14.05.47" src="http://vniklas.djungeln.se/wp-content/uploads/2012/04/Screen-Shot-2012-04-26-at-14.05.47.png" alt="" width="526" height="135" /></a></p>
<p style="text-align: left;">Now I could continue with the installation, but next little problem was to reconnect the old library (my library was not on the default path) so if would choose the existing I would not get my Library correct and I could not change that either in the installation wizard, I selected create a new and got the following error:</p>
<p style="text-align: left;"><a href="http://vniklas.djungeln.se/wp-content/uploads/2012/04/Screen-Shot-2012-04-26-at-14.09.23.png"><img class="aligncenter  wp-image-696" title="Screen Shot 2012-04-26 at 14.09.23" src="http://vniklas.djungeln.se/wp-content/uploads/2012/04/Screen-Shot-2012-04-26-at-14.09.23.png" alt="" width="586" height="354" /></a>This was solved by going to the actual folder and deselect share, without restarting the installation i could continue</p>
<p style="text-align: left;"><a href="http://vniklas.djungeln.se/wp-content/uploads/2012/04/Screen-Shot-2012-04-26-at-14.10.42.png"><img class="aligncenter size-full wp-image-697" title="Screen Shot 2012-04-26 at 14.10.42" src="http://vniklas.djungeln.se/wp-content/uploads/2012/04/Screen-Shot-2012-04-26-at-14.10.42.png" alt="" width="561" height="473" /></a></p>
<p style="text-align: left;">Then I was finished installing and the only thing left was to update the VMM agents on the hosts, some people had problems with the need to remove the agent manually but my update was successful</p>
<p style="text-align: center;"><a href="http://vniklas.djungeln.se/wp-content/uploads/2012/04/Screen-Shot-2012-04-26-at-14.24.41.png"><img class="aligncenter  wp-image-698" title="Screen Shot 2012-04-26 at 14.24.41" src="http://vniklas.djungeln.se/wp-content/uploads/2012/04/Screen-Shot-2012-04-26-at-14.24.41.png" alt="" width="363" height="330" /></a></p>
<p style="text-align: center;">
<p style="text-align: center;"><a href="http://vniklas.djungeln.se/wp-content/uploads/2012/04/Screen-Shot-2012-04-26-at-14.26.09.png"><img class="aligncenter  wp-image-699" title="Screen Shot 2012-04-26 at 14.26.09" src="http://vniklas.djungeln.se/wp-content/uploads/2012/04/Screen-Shot-2012-04-26-at-14.26.09.png" alt="" width="582" height="89" /></a></p>
<p style="text-align: left;">So now I am running the RTM version of SC VMM 2012 <img src='http://vniklas.djungeln.se/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p style="text-align: left;"><a href="http://vniklas.djungeln.se/wp-content/uploads/2012/04/Screen-Shot-2012-04-26-at-14.18.57.png"><img class="aligncenter size-full wp-image-700" title="Screen Shot 2012-04-26 at 14.18.57" src="http://vniklas.djungeln.se/wp-content/uploads/2012/04/Screen-Shot-2012-04-26-at-14.18.57.png" alt="" width="421" height="466" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://vniklas.djungeln.se/2012/04/26/upgrade-scvmm-2012-rc-to-rtm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VMware vExpert 2012 award</title>
		<link>http://vniklas.djungeln.se/2012/04/24/vmware-vexpert-2012-award/</link>
		<comments>http://vniklas.djungeln.se/2012/04/24/vmware-vexpert-2012-award/#comments</comments>
		<pubDate>Tue, 24 Apr 2012 12:00:02 +0000</pubDate>
		<dc:creator>Niklas</dc:creator>
				<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://vniklas.djungeln.se/?p=679</guid>
		<description><![CDATA[&#160; I am one of the lucky to be awarded as this year VMware vExpert. As described by the application for VMTN vExpert: The annual VMware vExpert title is given to individuals who have significantly contributed to the community of VMware users over the past year. The title is awarded to individuals (not employers) for [...]]]></description>
			<content:encoded><![CDATA[<p>&nbsp;</p>
<p style="text-align: center;"><a href="http://vniklas.djungeln.se/wp-content/uploads/2012/04/VMW_Q109_LGO_vExpert_MetalNoShadow_HiRes.jpg"><img class="aligncenter  wp-image-683" title="VMW_Q109_LGO_vExpert_MetalNoShadow_HiRes" src="http://vniklas.djungeln.se/wp-content/uploads/2012/04/VMW_Q109_LGO_vExpert_MetalNoShadow_HiRes-1024x512.jpg" alt="" width="574" height="286" /></a></p>
<p>I am one of the lucky to be awarded as this year VMware vExpert.</p>
<p>As described by the application for VMTN vExpert:</p>
<p><em>The annual VMware vExpert title is given to individuals who have significantly contributed to the community of VMware users over the past year. The title is awarded to individuals (not employers) for their commitment to sharing their knowledge and passion for VMware technology above and beyond their job requirements.</em></p>
<p>My focus has been on automation and I try to share my findings in PowerCLI, and of course in other areas too.</p>
<p>Is there a PowerCLI way then I will use it!</p>
]]></content:encoded>
			<wfw:commentRss>http://vniklas.djungeln.se/2012/04/24/vmware-vexpert-2012-award/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows Server 2012 (8 beta) Hyper-V enabled inside a VMware Fusion VM</title>
		<link>http://vniklas.djungeln.se/2012/04/23/windows-server-2012-8-beta-hyper-v-enabled-inside-a-vmware-fusion-vm/</link>
		<comments>http://vniklas.djungeln.se/2012/04/23/windows-server-2012-8-beta-hyper-v-enabled-inside-a-vmware-fusion-vm/#comments</comments>
		<pubDate>Mon, 23 Apr 2012 20:43:30 +0000</pubDate>
		<dc:creator>Niklas</dc:creator>
				<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[Win8]]></category>

		<guid isPermaLink="false">http://vniklas.djungeln.se/?p=670</guid>
		<description><![CDATA[I did see that a new version of VMware Fusion has been released as a technology preview and in the release notes I could find that it was possible to run ESXi host-vm with nested 64 bit VM´s in. Of course I had to test and see if I also could get a new Windows [...]]]></description>
			<content:encoded><![CDATA[<p>I did see that a new version of <a href="http://communities.vmware.com/community/vmtn/beta/fusiontp2012?view=overview" target="_blank">VMware Fusion</a> has been released as a technology preview and in the release notes I could find that it was possible to run ESXi host-vm with nested 64 bit VM´s in. Of course I had to test and see if I also could get a new Windows 2012 (8 beta) with Hyper-V role enabled and running.</p>
<p>There was some problems that had to be adressed before I got it working, google and help from <a href="http://www.roelvanlisdonk.nl/?p=2521" target="_blank">fellow IT-neerds</a> that had done the same in VMware Workstation solved my problems. And yes it is actually usefull, because I can run a test environment on my Apple laptop to test/demo things <img src='http://vniklas.djungeln.se/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>After a clean install i got this error when trying to enable</p>
<p style="text-align: center;"><a href="http://vniklas.djungeln.se/wp-content/uploads/2012/04/Screen-Shot-2012-04-23-at-22.35.30.png"><img class="aligncenter  wp-image-673" title="Screen Shot 2012-04-23 at 22.35.30" src="http://vniklas.djungeln.se/wp-content/uploads/2012/04/Screen-Shot-2012-04-23-at-22.35.30.png" alt="" width="529" height="142" /></a></p>
<p>I had to add these lines to the vmx file inside the VM package</p>
<p>hypervisor.cpuid.v0 = FALSE<br />
vhv.enable = TRUE</p>
<p>I also manually set the preferred virtualization engine to Intel VT-x with EPT</p>
<p style="text-align: center;"><a href="http://vniklas.djungeln.se/wp-content/uploads/2012/04/Screen-Shot-2012-04-23-at-22.36.53.png"><img class="aligncenter  wp-image-674" title="Screen Shot 2012-04-23 at 22.36.53" src="http://vniklas.djungeln.se/wp-content/uploads/2012/04/Screen-Shot-2012-04-23-at-22.36.53.png" alt="" width="450" height="254" /></a></p>
<p>Then i could add the Hyper-V role, but when rebooting i got a nice new kind of blue screen with the error HAL_MEMORY_ALLOCATION.</p>
<p style="text-align: center;"><a href="http://vniklas.djungeln.se/wp-content/uploads/2012/04/Screen-Shot-2012-04-23-at-21.45.26.png"><img class="aligncenter  wp-image-672" title="Screen Shot 2012-04-23 at 21.45.26" src="http://vniklas.djungeln.se/wp-content/uploads/2012/04/Screen-Shot-2012-04-23-at-21.45.26.png" alt="" width="529" height="337" /></a></p>
<p>That was solved with the following line in the vmx file, I have no idea what it means exactly but it has to be something with the memory allocation,</p>
<p>mce.enable = TRUE</p>
<p>Here you can see my screendump on my Hajper-V VM with a Hyper-V VM running inside it <img src='http://vniklas.djungeln.se/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p style="text-align: center;"><a href="http://vniklas.djungeln.se/wp-content/uploads/2012/04/Screen-Shot-2012-04-23-at-21.58.55.png"><img class="aligncenter  wp-image-671" title="Screen Shot 2012-04-23 at 21.58.55" src="http://vniklas.djungeln.se/wp-content/uploads/2012/04/Screen-Shot-2012-04-23-at-21.58.55-1024x822.png" alt="" width="614" height="493" /></a></p>
<p style="text-align: left;">I have not installed VMware tools in the host, this because when enabling the Hyper-V role the OS that is installed becomes an Parent VM, so the tools will not be utilized on the Fusion VM´s hardware.  <a href="http://vniklas.djungeln.se/wp-content/uploads/2012/04/Screen-Shot-2012-04-23-at-21.58.55.png"><br />
</a></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://vniklas.djungeln.se/2012/04/23/windows-server-2012-8-beta-hyper-v-enabled-inside-a-vmware-fusion-vm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A PowerShell function for Snapshot reporting in VMM2012</title>
		<link>http://vniklas.djungeln.se/2012/04/16/a-powershell-function-for-snapshot-reporting-in-vmm2012/</link>
		<comments>http://vniklas.djungeln.se/2012/04/16/a-powershell-function-for-snapshot-reporting-in-vmm2012/#comments</comments>
		<pubDate>Mon, 16 Apr 2012 15:03:09 +0000</pubDate>
		<dc:creator>Niklas</dc:creator>
				<category><![CDATA[Automation]]></category>
		<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[Powershell]]></category>
		<category><![CDATA[SCVMM]]></category>
		<category><![CDATA[Virtualization]]></category>

		<guid isPermaLink="false">http://vniklas.djungeln.se/?p=655</guid>
		<description><![CDATA[Hello I am in the hotel waiting for the MMS 2012 to start so there is time for some automation . Last week when I was teaching a course one of the attendes said after I showed the custom value function, that he also wanted a similar function for easy in the console check how [...]]]></description>
			<content:encoded><![CDATA[<p>Hello</p>
<p>I am in the hotel waiting for the MMS 2012 to start so there is time for some automation <img src='http://vniklas.djungeln.se/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> . Last week when I was teaching a course one of the attendes said after I showed the <a title="Add my own custom properties and populate them with powershell in VMM2012" href="http://vniklas.djungeln.se/2012/02/18/add-my-own-custom-properties-and-populate-them-with-powershell-in-vmm2012/">custom value function</a>, that he also wanted a similar function for easy in the console check how many snapshots every VM had. In the VMM 2012 console I have not found an built-in function to actually show this.</p>
<p>I have modified the function and created the run script, this is scheduled to run once a hour so you have a updated view of your environment. At least in the Hyper-V for Windows 2008 R2 it is not recommended to use in production.</p>
<p>It is quite easy to create a new custom property that we then will populate,</p>
<pre>
New-SCCustomProperty -Name "Snapshot Count" -Description "" -AddMember @("VM")
</pre>
<p>In the GUI there is no way to remove a custom property, I can only remove it from assigned properties. During the course I created an property just for showing and want to get rid of it. Of course there is a powershell cmdlet for that:</p>
<pre>
Get-SCCustomProperty -Name "Muuuu" | Remove-SCCustomProperty
</pre>
<p style="text-align: center;"><a href="http://vniklas.djungeln.se/wp-content/uploads/2012/04/Screen-Shot-2012-04-15-at-16.36.441.png"><img class="aligncenter  wp-image-657" title="Screen Shot 2012-04-15 at 16.36.44" src="http://vniklas.djungeln.se/wp-content/uploads/2012/04/Screen-Shot-2012-04-15-at-16.36.441.png" alt="" width="590" height="267" /></a></p>
<p style="text-align: left;">But now to the part of getting the script to show snapshots (yes I know, in VMM it is called Checkpoints but i refuse to call it that)</p>
<p style="text-align: left;">First I have the PowerShell function</p>
<pre>
function Set-CVSnapShot{
&lt;#
.SYNOPSIS
Function to Update custom values for VM&acute;s in VMM 2012
&nbsp;
.DESCRIPTION
Use this function to &nbsp;set the custom value Snapshot count
&nbsp;
.PARAMETER &nbsp;VMs
Use this parameter to update just that VM&acute;s custom snapshot value
&nbsp;
.NOTES
Author: Niklas Akerlund / RTS
Date: 2012-04-16
#&gt;
&nbsp; &nbsp; param (
&nbsp; &nbsp;[Parameter(Position=0,HelpMessage=&quot;A virtual machine pleaze&quot;,
&nbsp; &nbsp; ValueFromPipeline=$True)]
&nbsp; &nbsp; $VMs = &quot; &quot;
&nbsp; &nbsp; )
&nbsp; &nbsp;
&nbsp; 	if ($VMs -eq &quot; &quot;){
&nbsp; &nbsp; 	$VMs = Get-SCVirtualMachine
	}else{
		$VMs = Get-SCVirtualMachine &nbsp;$VMs
	}

&nbsp; 	$CustomSnapShot = Get-SCCustomProperty -Name &quot;Snapshot Count&quot;
&nbsp; &nbsp;
	foreach ($VM in $VMs){
		$count = ($VM | Get-SCVMCheckpoint).Count

	 &nbsp; &nbsp;if($count -ne $null){
	 &nbsp; &nbsp; &nbsp; &nbsp;Set-SCCustomPropertyValue -InputObject $VM -CustomProperty $CustomSnapShot -Value $count&nbsp;
	 &nbsp; &nbsp;}else{
	 &nbsp; &nbsp; &nbsp; &nbsp;Set-SCCustomPropertyValue -InputObject $VM -CustomProperty $CustomSnapShot -Value 0&nbsp;
	 &nbsp; &nbsp;}
&nbsp; &nbsp;}
}
</pre>
<p><span style="text-align: left;">then I have a very easy script that I task scheduled in my VMM server</span></p>
<pre>
# Script to use for scheduled updates of Custom values
#
# Niklas Akerlund / RTS 2012-04-16

ipmo 'C:\Program Files\Microsoft System Center 2012\Virtual Machine Manager\bin\psModules\VirtualMachineManager' | Out-Null

. .\Set-CVSnapshot.ps1
Set-CVSnapshot
</pre>
<p style="text-align: center;"><a href="http://vniklas.djungeln.se/wp-content/uploads/2012/04/Screen-Shot-2012-04-16-at-07.52.13.png"><img class="aligncenter  wp-image-662" title="Screen Shot 2012-04-16 at 07.52.13" src="http://vniklas.djungeln.se/wp-content/uploads/2012/04/Screen-Shot-2012-04-16-at-07.52.13.png" alt="" width="624" height="281" /></a></p>
<p style="text-align: left;">And in the VMM Console it looks like this</p>
<p style="text-align: center;"><a href="http://vniklas.djungeln.se/wp-content/uploads/2012/04/Screen-Shot-2012-04-16-at-07.52.35.png"><img class="aligncenter  wp-image-663" title="Screen Shot 2012-04-16 at 07.52.35" src="http://vniklas.djungeln.se/wp-content/uploads/2012/04/Screen-Shot-2012-04-16-at-07.52.35.png" alt="" width="638" height="322" /></a></p>
<p style="text-align: left;">I will talk to some VMM responsibles at MMS and see if they find an interest and build the view instead of me running it in a sheduled task (as the information is there in the database)</p>
]]></content:encoded>
			<wfw:commentRss>http://vniklas.djungeln.se/2012/04/16/a-powershell-function-for-snapshot-reporting-in-vmm2012/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Importing VM´s with PowerShell into Win8 Hyper-V 3.0</title>
		<link>http://vniklas.djungeln.se/2012/04/04/importing-vm%c2%b4s-with-powershell-into-win8-hyper-v-3-0/</link>
		<comments>http://vniklas.djungeln.se/2012/04/04/importing-vm%c2%b4s-with-powershell-into-win8-hyper-v-3-0/#comments</comments>
		<pubDate>Wed, 04 Apr 2012 14:43:08 +0000</pubDate>
		<dc:creator>Niklas</dc:creator>
				<category><![CDATA[Automation]]></category>
		<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[Win8]]></category>

		<guid isPermaLink="false">http://vniklas.djungeln.se/?p=634</guid>
		<description><![CDATA[I am working on setting up my lab environment for the M50273 Design course that I am going to teach next week. The import process is a bit heavy without powershell, cause it is 18 VMs that has to be imported. In a MOC (Microsoft Official Course) the lab setup consists of several VM´s that have [...]]]></description>
			<content:encoded><![CDATA[<p>I am working on setting up my lab environment for the M50273 Design course that I am going to teach next week.</p>
<p>The import process is a bit heavy without powershell, cause it is 18 VMs that has to be imported. In a MOC (Microsoft Official Course) the lab setup consists of several VM´s that have base vhd disks and then several tiers of differential disks that need to be connected before import, in every directory there is a .bat file that creates the symlinks, I decided to keep them but run them in a script.</p>
<p><a href="http://vniklas.djungeln.se/wp-content/uploads/2012/04/Screen-Shot-2012-04-04-at-15.22.27.png"><img class="aligncenter size-full wp-image-635" title="Screen Shot 2012-04-04 at 15.22.27" src="http://vniklas.djungeln.se/wp-content/uploads/2012/04/Screen-Shot-2012-04-04-at-15.22.27.png" alt="" width="338" height="118" /></a></p>
<p>And here you can see the result of running the .bat file</p>
<p><a href="http://vniklas.djungeln.se/wp-content/uploads/2012/04/Screen-Shot-2012-04-04-at-15.23.52.png"><img class="aligncenter size-full wp-image-636" title="Screen Shot 2012-04-04 at 15.23.52" src="http://vniklas.djungeln.se/wp-content/uploads/2012/04/Screen-Shot-2012-04-04-at-15.23.52.png" alt="" width="279" height="110" /></a></p>
<p>The setup guide for the course says that I should install a Windows 2008 R2 host and then import the VM´s but i want to use Win8 instead, this to be able to run the built-in hyper-v cmdlets and also test if I could run the course VM´s on it.</p>
<p>I did not have <a href="http://blogs.catapultsystems.com/mdowst/archive/2012/03/30/hyper-v-3-0-powershell-%E2%80%93-troubleshoot-import-incompatibilities.aspx" target="_blank">this problem (Matthew Dowst) </a>when importing my VM´s to the host but another networking issue occured, when checking the VM settings as you can see in the screen dump that the virtual network adapter is there but not working correctly, a little powershell again helps <img src='http://vniklas.djungeln.se/wp-includes/images/smilies/icon_razz.gif' alt=':-P' class='wp-smiley' /> </p>
<p style="text-align: center;"><a href="http://vniklas.djungeln.se/wp-content/uploads/2012/04/Screen-Shot-2012-04-04-at-14.23.11.png"><img class="aligncenter  wp-image-637" title="Screen Shot 2012-04-04 at 14.23.11" src="http://vniklas.djungeln.se/wp-content/uploads/2012/04/Screen-Shot-2012-04-04-at-14.23.11.png" alt="" width="569" height="283" /></a></p>
<p style="text-align: left;">And this powershell command that takes the network adapter on the vm and connects it to the Internal switch :</p>
<pre>
Get-VM *HOU-DPM-E* | Get-VMNetworkAdapter | Connect-VMNetworkAdapter -SwitchName Internal
</pre>
<p>So then it looks like this in VM settings:</p>
<p style="text-align: center;"><a href="http://vniklas.djungeln.se/wp-content/uploads/2012/04/Screen-Shot-2012-04-04-at-14.24.08.png"><img class="aligncenter  wp-image-639" title="Screen Shot 2012-04-04 at 14.24.08" src="http://vniklas.djungeln.se/wp-content/uploads/2012/04/Screen-Shot-2012-04-04-at-14.24.08.png" alt="" width="577" height="466" /></a></p>
<p style="text-align: left;">So to automate the import process I created a small script that looks in a directory for VM´s in folders to import, then starts each .bat script to create the symlinks and imports the machine and lastly renames it (cause in the import process it is named REARMEDxxx) and connects the vm to the right network</p>
<p style="text-align: left;">As you can see, in this script i have not created a function or fancy parameters, that might come in a version 0.2.</p>
<pre>
# Import VMs for Course
#
# Niklas Akerlund / RTS 2012-04-04

$VMs = Get-Item -Path "E:\Program Files\Microsoft Learning\50273\Drives\*" | Select-Object Name,FullName

foreach ($VM in $VMs){

    if(Get-VM $VM.Name -ErrorAction SilentlyContinue ){
        Write-Host $VM.Name "Already imported"
    }else{
        # Create Symlinks
        $symbat = (Get-Item ($VM.FullName + "\*.bat")).FullName
        &#038; $symbat

        $expfile = (Get-Item ($VM.FullName + "\Virtual Machines\*.exp")).FullName

        Import-VM -Path $expfile 

        Get-VM REA* | Rename-VM -NewName $VM.Name
        Get-VM $VM.Name | Get-VMNetworkAdapter | Connect-VMNetworkAdapter -SwitchName Internal
    }
}
</pre>
<p style="text-align: center;">It looks something like this when running<br />
<a href="http://vniklas.djungeln.se/wp-content/uploads/2012/04/Screen-Shot-2012-04-04-at-14.28.05.png"><img class="aligncenter  wp-image-643" title="Screen Shot 2012-04-04 at 14.28.05" src="http://vniklas.djungeln.se/wp-content/uploads/2012/04/Screen-Shot-2012-04-04-at-14.28.05.png" alt="" width="807" height="184" /></a></p>
<p>And when it is done I have all my 18 VMs imported and with the right network connected:<br />
<a href="http://vniklas.djungeln.se/wp-content/uploads/2012/04/Screen-Shot-2012-04-04-at-16.39.15.png"><img src="http://vniklas.djungeln.se/wp-content/uploads/2012/04/Screen-Shot-2012-04-04-at-16.39.15.png" alt="" title="Screen Shot 2012-04-04 at 16.39.15" width="654" height="276" class="aligncenter size-full wp-image-645" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://vniklas.djungeln.se/2012/04/04/importing-vm%c2%b4s-with-powershell-into-win8-hyper-v-3-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHD Virtual Backup and Replication for VMware v5.4</title>
		<link>http://vniklas.djungeln.se/2012/03/31/phd-virtual-backup-and-replication-for-vmware-v5-4/</link>
		<comments>http://vniklas.djungeln.se/2012/03/31/phd-virtual-backup-and-replication-for-vmware-v5-4/#comments</comments>
		<pubDate>Sat, 31 Mar 2012 12:56:06 +0000</pubDate>
		<dc:creator>Niklas</dc:creator>
				<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://vniklas.djungeln.se/?p=592</guid>
		<description><![CDATA[I have been looking at the PHD Virtual Backup for VMware v5.4 to compare it with other backup vendors.. The new version has some features that is nice, both the replication function and the FLR with iSCSI target can be useful, not to forget the OpenExport and OpenRestore, where you can restore your VM´s to [...]]]></description>
			<content:encoded><![CDATA[<p>I have been looking at the <a href="http://www.phdvirtual.com/vmware-backup/overview" target="_blank">PHD Virtual Backup for VMware v5.4</a> to compare it with other backup vendors..</p>
<p>The new version has some features that is nice, both the replication function and the FLR with iSCSI target can be useful, not to forget the OpenExport and OpenRestore, where you can restore your VM´s to hosts without PHD Virtual Backup sw as they are exported as OVF and can easily be imported into other hosts.</p>
<p>Here is a list of some of the features</p>
<ul>
<li>vSphere Client integration</li>
<li>Support for Changed Block Tracking (CBT)</li>
<li>Export Virtual Machine Backup</li>
<li>Virtual Machine Replication</li>
<li>Application Consistent Backup using VSS (Windows only)</li>
<li>Application Object level recovery</li>
<li>OpenExport &amp; OpenRestore</li>
<li>E-mail notification</li>
<li>Support for Thin Provisioned Disks</li>
<li>Backup Retention and Archiving</li>
<li>Distributed Virtual Switch Support</li>
<li>Supports all Operating Systems supported by VMware vSphere</li>
</ul>
<p>The installation of the product is as easy as VMware Data Recovery, you download and extract the OVF and import it into your environment, as I do things with PowerShell/PowerCLI I can use Import-VApp cmdlet</p>
<p style="text-align: center;"><a href="http://vniklas.djungeln.se/wp-content/uploads/2012/03/Screen-Shot-2012-03-29-at-20.23.18.png"><img class="aligncenter  wp-image-609" title="Screen Shot 2012-03-29 at 20.23.18" src="http://vniklas.djungeln.se/wp-content/uploads/2012/03/Screen-Shot-2012-03-29-at-20.23.18.png" alt="" width="585" height="250" /></a></p>
<p>When I then want to install the vSphere Client plugin I can browse the web-service on the appliance and that way get the sw, It is also on the extracted folder you got from the download, but of course you can get the IP adress of the appliance and open an IE window from powershell <img src='http://vniklas.djungeln.se/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p style="text-align: center;"><a href="http://vniklas.djungeln.se/wp-content/uploads/2012/03/Screen-Shot-2012-03-29-at-21.49.05.png"><img class="aligncenter  wp-image-610" title="Screen Shot 2012-03-29 at 21.49.05" src="http://vniklas.djungeln.se/wp-content/uploads/2012/03/Screen-Shot-2012-03-29-at-21.49.05.png" alt="" width="682" height="267" /></a></p>
<p style="text-align: left;">Once installed I need to set up a backup storage and credentials for my vCenter ( If you want you can just enter the ip/fqdn for your ESXi host)</p>
<p style="text-align: left;"><a href="http://vniklas.djungeln.se/wp-content/uploads/2012/03/Screen-Shot-2012-03-29-at-21.50.31.png"><img class="aligncenter size-full wp-image-612" title="Screen Shot 2012-03-29 at 21.50.31" src="http://vniklas.djungeln.se/wp-content/uploads/2012/03/Screen-Shot-2012-03-29-at-21.50.31.png" alt="" width="512" height="137" /></a></p>
<p style="text-align: left;">For backup storage i can choose, attached disk/NFS or CIFS share. The most important thing here is that you think this through where you place your backup data, you do not want to put your backups in the same datastores as your VM´s because if you have a SAN-failure you want to be able to restore <img src='http://vniklas.djungeln.se/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> . One thing I want is to be able to use more than one disk but it is not possible in the PHD VBA in this version.</p>
<p style="text-align: left;"><a href="http://vniklas.djungeln.se/wp-content/uploads/2012/03/Screen-Shot-2012-03-29-at-21.50.57.png"><img class="aligncenter size-full wp-image-613" title="Screen Shot 2012-03-29 at 21.50.57" src="http://vniklas.djungeln.se/wp-content/uploads/2012/03/Screen-Shot-2012-03-29-at-21.50.57.png" alt="" width="495" height="187" /></a></p>
<p>You can then go ahead and start taking backup. Either you can choose the whole datacenter or cluster or just VM´s, the nice part here is that you can select a Host cluster and exclude the VM´s that you not want to take backup on and when doing like this, new VM´s that are added later are automatically added to the backup job.</p>
<p style="text-align: center;"><a href="http://vniklas.djungeln.se/wp-content/uploads/2012/03/Screen-Shot-2012-03-31-at-11.53.23.png"><img class="aligncenter  wp-image-615" title="Screen Shot 2012-03-31 at 11.53.23" src="http://vniklas.djungeln.se/wp-content/uploads/2012/03/Screen-Shot-2012-03-31-at-11.53.23.png" alt="" width="538" height="379" /></a></p>
<p style="text-align: left;">Here you can see that when I later add the TESTNEW VM it is automatically added to the backupjob</p>
<p style="text-align: center;"><a href="http://vniklas.djungeln.se/wp-content/uploads/2012/03/Screen-Shot-2012-03-31-at-12.00.34.png"><img class="aligncenter  wp-image-616" title="Screen Shot 2012-03-31 at 12.00.34" src="http://vniklas.djungeln.se/wp-content/uploads/2012/03/Screen-Shot-2012-03-31-at-12.00.34.png" alt="" width="536" height="385" /></a></p>
<p>I can use the functionality quiesce VM to get a consistent snapshot for my backup, then my windows applications (that are VSS aware) will be in a good state to take backup, this is not possible to do with other OS (for example Linux), so think a bit if this is enough for your VM´s, maybe you must have an backup solution that uses an agent inside the VM also?!</p>
<p style="text-align: center;"><a href="http://vniklas.djungeln.se/wp-content/uploads/2012/03/Screen-Shot-2012-03-29-at-22.08.56.png"><img class="aligncenter  wp-image-617" title="Screen Shot 2012-03-29 at 22.08.56" src="http://vniklas.djungeln.se/wp-content/uploads/2012/03/Screen-Shot-2012-03-29-at-22.08.56.png" alt="" width="537" height="377" /></a></p>
<p style="text-align: left;">For the replication functionality I can add an secondary PHD VBA that is on a DR site and it is configured to use the backup store of the first VBA so I will not need to create more than one VM snapshot for both backup and replication. When i fail-over the VM to the backup-site no more replication will occur and i can then start replicating it back when the primary site is back online.</p>
<p style="text-align: center;"><a href="http://vniklas.djungeln.se/wp-content/uploads/2012/03/Screen-Shot-2012-03-30-at-10.19.31.png"><img class="aligncenter  wp-image-623" title="Screen Shot 2012-03-30 at 10.19.31" src="http://vniklas.djungeln.se/wp-content/uploads/2012/03/Screen-Shot-2012-03-30-at-10.19.31.png" alt="" width="716" height="145" /></a></p>
<p>To do File-level restore you select the VM and the backup date and click create, this will create an iSCSI target that you can connect to and get the data that you want restored. To get application level restore you will have to do the same thing and then connect the database etc in recovery-mode.</p>
<p><a href="http://vniklas.djungeln.se/wp-content/uploads/2012/03/Screen-Shot-2012-03-30-at-14.56.30.png"><img class="aligncenter size-full wp-image-618" title="Screen Shot 2012-03-30 at 14.56.30" src="http://vniklas.djungeln.se/wp-content/uploads/2012/03/Screen-Shot-2012-03-30-at-14.56.30.png" alt="" width="451" height="171" /></a></p>
<p>To get the OVF´s in OpenExport function you have to install the PHDVB_Exporter sw, PHD recommend you to install it on a physical machine, but it is supported to install in a VM also.</p>
<p><a href="http://vniklas.djungeln.se/wp-content/uploads/2012/03/Screen-Shot-2012-03-31-at-07.10.13.png"><img class="aligncenter size-full wp-image-619" title="Screen Shot 2012-03-31 at 07.10.13" src="http://vniklas.djungeln.se/wp-content/uploads/2012/03/Screen-Shot-2012-03-31-at-07.10.13.png" alt="" width="273" height="229" /></a></p>
<p style="text-align: center;"><a href="http://vniklas.djungeln.se/wp-content/uploads/2012/03/Screen-Shot-2012-03-31-at-06.46.54.png"><img class="aligncenter  wp-image-620" title="Screen Shot 2012-03-31 at 06.46.54" src="http://vniklas.djungeln.se/wp-content/uploads/2012/03/Screen-Shot-2012-03-31-at-06.46.54.png" alt="" width="398" height="297" /></a></p>
<p style="text-align: left;">When you have installed it, you have to configure a location for the exported VM´s, also you need to configure where the PHD VBA appliance backups are. When that is done you can continue to create an export job. The export of the backups are set to use the latest backup, this isn not anything I can change in this version.</p>
<p style="text-align: center;"><a href="http://vniklas.djungeln.se/wp-content/uploads/2012/03/Screen-Shot-2012-03-31-at-06.51.42.png"><img class="aligncenter  wp-image-621" title="Screen Shot 2012-03-31 at 06.51.42" src="http://vniklas.djungeln.se/wp-content/uploads/2012/03/Screen-Shot-2012-03-31-at-06.51.42.png" alt="" width="510" height="252" /></a></p>
<p style="text-align: left;">One thing i wish for in the next release is that they fix the scheduling, as of now when the export job is finished it create a task in the scheduled task manager and there you have to configure that it can run without logged on and when it should run, this should be in the gui of the Export software.</p>
<p style="text-align: center;"><a href="http://vniklas.djungeln.se/wp-content/uploads/2012/03/Screen-Shot-2012-03-31-at-06.52.40.png"><img class="aligncenter  wp-image-622" title="Screen Shot 2012-03-31 at 06.52.40" src="http://vniklas.djungeln.se/wp-content/uploads/2012/03/Screen-Shot-2012-03-31-at-06.52.40.png" alt="" width="541" height="267" /></a></p>
<p style="text-align: left;">When checking the export directory you can see that the OVF and the vmdk files are there, ready to be imported or backed up by a tape.</p>
<p style="text-align: center;"><a href="http://vniklas.djungeln.se/wp-content/uploads/2012/03/Screen-Shot-2012-03-31-at-07.17.52.png"><img class="aligncenter  wp-image-625" title="Screen Shot 2012-03-31 at 07.17.52" src="http://vniklas.djungeln.se/wp-content/uploads/2012/03/Screen-Shot-2012-03-31-at-07.17.52.png" alt="" width="554" height="226" /></a></p>
<p><strong>Conclusion</strong></p>
<p>What do we need and why is the question when choosing the backup solution. When is Host level backup software enough and when do we need agents in our VM´s? If you decided that Host level backup solution with snapshot technology is enough on your virtualization platform I would say that the reasons for using PHD instead of the VMware Datarecovery are the replication function, File Level restore via iSCSI and the Export to OVF. Also the possibility to set an backup to archive that will exclude that VM backup will be deleted by the retention policy is a powerfull feature for example regulatory reasons. The VMware Data Recovery also require the vCenter and in some cases you maybe do not have that or want to connect to it.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://vniklas.djungeln.se/2012/03/31/phd-virtual-backup-and-replication-for-vmware-v5-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

