Creating VM´s with configuration version 5.0 on Hyper-V 2016 TP4

Creating a VM in the GUI on a Hyper-V manager with Windows Server 2016 TP4 makes a VM configuration 7.0 by default and once that is done it is not possible to move the VM to a Hyper-V 2012 R2 box.

So if you have a mixed environment and want to be able to move those VM´s to a 2012 R2 Hyper-V box you will have to use powershell to create that VM instead of the GUI. One alternative way is to create them on that 2012 R2 box and then move it to the 2016 but that is not as cool  😉

in the New-VM cmdlet there is a parameter -Version that you can use and set the configuration version to 5.0 instead of 7 and thus enabling it to be compatible with the older version of Hyper-V.

I have two examples in the screendump below where you can see the result,

Screen Shot 2015-11-23 at 13.43.46

My friend Didier has made a blog post about how you upgrade the configuration version if you do not need this backward compatibility and some new features requires the configuration version 7.

Trying to do a Checkpoint on a VM resulting in error 12700

Today I helped a customer that have issues with their new VM´s and doing backup using Veeam and also trying to do Checkpoints within VMM on their Hyper-V 2012 R2 environment.


Looking at the error message from VMM it showed quite clearly that it was just one of the VHDx that was having the issue and looking at where it was residing it showed the reason:

Screen Shot 2015-11-13 at 11.43.59

The file was residing on its own in a CSV volume and directly in the root folder, and as stated in the blog post from the Core Team the VM worker process (VMMS) does not have the relevant permissions on that level and thus getting a access denied error when trying to do a checkpoint.

So how do you solve it? By either manually or with live storage migration moving it into a subfolder which will give the right ACL´s and thus giving the VM worker process rights to create a avhdx file in that folder.

So watch out when you create new VM´s that you actually put all of the virtual disks that belong to it inside folders on those CSV´s!

Managing Azure workloads with Chef and PowerShell DSC at TechDays


Last week at TechDays me self and Fredrik Nilsson had a session about managing your workloads in Azure with Chef and PowerShell DSC. Despite the fact that we had the same timeslot as Arwidmark, Nystrom and Ben Armstrong our room was quite full of kung fu interested geeks 😉

Here is the presentation so you can find the links and info:

Screen Shot 2015-10-26 at 10.34.23


For you guys that did not have the opportunity to be there, a recording will be available although it is in Swedish…

Playing with automation of OMS agent deployment

I have been playing around with automation of the deployment of OMS agents in my lab environment and wanted to share one way to do it, of course there are others.

I found Adam´s contribution to send files over PS2+ WinRM instead of utilizing a remote share or other deployment of the installation file..  Sometimes you maybe have firewall constraints to take into consideration and then this is a handy way to get that MMAgent over and installed if you have maybe only PowerShell remoting open :-)

If you already have WMF 5 deployed you can utilize that instead of the Send-File function as it is in the new PowerShell version by default.

Screen Shot 2015-10-13 at 21.40.01

And here is the code:

good luck in deploying those OMS agents!


Rescue failing deploy from VMM 2012 R2 to Hyper-v hosts

I was contacted by a customer with an issue where he could not use ISO´s or deploy VM´s from his VMM server to the Hyper-V hosts.

Screen Shot 2015-10-13 at 16.36.56

First I started searching the net for solutions and found some that could match:

Move VM error  : suggesting changing BITS port

Deploy VM from VMM : where I updated the hosts certificates on the VMM server,

but they did not help as the error continued, I also tried to reinstall the VMM agents on the hosts if that would have been the cause.

Starting to investigating this issue more thoroughly i noticed some strange things, I could store VM´s from the hosts into the VMM library so that way worked with BITS, So the problem seemed to be related to the VMM Server..

Screen Shot 2015-10-13 at 16.36.39

Talking with my friend and MVP Daniel Neumann he sent me a link to another blog post that describes if you have deleted the VMM certificate (my certificate was there but apparently out of sync in some way) so here is the steps to regenerate the VMM certificate:

1. Launch the VMM PowerShell on the Virtual Machine Manager server.

2. Type the following and press enter:

$credential = get-credential

3. Type the username and password that is a local admin on the VMM server.

4. Type the following and press enter:

Get-VMMManagedComputer -ComputerName “” | Register-SCVMMManagedComputer  -Credential $credential

5. Ensure that the VMM job completes successfully under the Jobs tab in the VMM console.

Note: In my example above, is the FQDN of the VMM server.

And after this the VMM deploy works again!


Moving SCVMM 2012 R2 Server going bad

I have helped two customers moving their System Center VMM 2012 R2 servers to a Hyper-V VM..  Instead of carrying legacy stuff we installed a new Generation 2 VM in Hyper-V with Windows Server 2012 R2.

Easier said than done… or?


So what went wrong at both customers and how did I solve it?

We copied the library and the database backup from the old server. Did a shutdown of that one and then started the new one and added that to the domain and then installed the VMM server.

Patched it to UR7 with windows update and after that we did a restore of the db from the old system with the binary scvmmrecover.exe -path <db-backupfile>.

After that I started the console and trying to check things in properties and stuff and the console crashed  the service got a dump:

Screen Shot 2015-10-08 at 15.48.05

Looking at the dump, I could see that not everything was great with the database, (the old VMM server was patched to UR7 before I did a database backup). Based on the log file something is missing in the restored database…

Screen Shot 2015-10-09 at 10.35.49

So how did I solve it? I uninstalled the UR7 on the VMM server and then reinstalled it and voila, no more crashes!


So now I am a Cloud and Datacenter Management MVP!

Today Microsoft announced a change in the MVP program and they have changed to 10 award categories containing the old ones (although there are a few remaining Power Users that is not IT Pro or Developers and are left unchanged).

This meaning that I (Mr Hyper-V) am now part of the Cloud and Datacenter Management. Together with about 350+ other MVP´s we make quite a large group of community contributors. I have already been contributing in PowerShell, Azure and lots of other areas during the year so based on that it feels good to be recognised for and also be able to be part of a broader contribution community!

And here are the five others:

And here are the unchanged categories:

If you want to read more about this change please follow this link to the MVP Award site

New Azure Backup Server (Disk to Disk to Cloud)

As you might have noticed a “new” backup solution has arrived and that for the Azure Backup, if you check your backup vault in the azure portal you can see that the new option for “Application Workloads” have appeared.

Screen Shot 2015-10-06 at 15.48.36

Downloading and installing it shows that it has traces of the DPM server:

Screen Shot 2015-10-06 at 14.43.46

And it can be installed on a windows 2012 R2, although you need the .Net 3.5 for the SQL 2014 instance (I know it is crazy!). The SQL 2014 license is included in the setup but can only be used for the Azure Backup Server.

Screen Shot 2015-10-06 at 14.51.13

So with some PowerShell and an Internet connection I add the .Net 3.5 and can continue installing…

Screen Shot 2015-10-06 at 14.57.27

 In the installation wizard you add your backup recovery vault from Azure and then when it is installed you will have to install agents on the instances you want to protect. You can install this server in a VM or on a physical box, you will need some storage attached to cope with the backups that will be stored locally before they are lifted to the cloud.

When it comes to licensing I have not found anything else than the documentation on Azure and that says the price for protected instance and that makes this really interesting if you do not have System Center and want to start utilizing a backup solution that can protect Hyper-V, Exchange, SQL etc this becomes a viable solution!

Screen Shot 2015-10-07 at 08.49.01

Also if you are looking at the Microsoft Operational Management Suite where backup is a part of, this new feature makes it even more compelling to start utilizing the suite when not already using System Center.

Using AzurePack with VMware vSphere need third party for VM Clouds

I got a question last week from a customer about if it was possible or supported to use VMware vSphere with Windows Azure Pack. I have got this question a couple of times and wanted to share the info on a quick blogpost :-)

And as you can read on the Technet Site, several of the different roles are supported with WAPack but not VM Clouds:

“Windows Azure Pack supports using VMWare virtual machines for deploying and administering the web sites service, databases, hosting the management portals, and the management API and web services. Third party extensions, however, are required to enable provisioning of virtual machines from a VMWare hypervisor using Windows Azure Pack.”

So here you can use VConnect as a third party extension to be able to utilize that real hybrid view and provisioning VM´s within Azure Pack.

Screen Shot 2015-10-04 at 22.20.59


Customized Dashboards in Microsoft OMS with interesting info

I have been doing some digging in Microsoft Operations Management Suite and the Log analytics part and as you might know there is a “My Dashboards” view where you can save customized log searches as widgets.

Initially I have created two searches that is highly interesting to have for a better control of the environment. The first gives a threshold and highlights the value if there are more than 0 computers missing security updates. The second also have a threshold of 0 but this only for the latest 24 hours and shows how many accounts that have been added to the domain admins security group……

Screen Shot 2015-09-23 at 16.30.58

So here you can see the different log searches and how you can customize depending on how and what data you want to present and highlight.

If you did not know it there is a free tier with up to 500 MB logs/ day and 7 days retention for the Log Analytics so start using it today!