I believe in Hyper-V!

AdministrationCategory Archives

How to create Hyper-V virtual machine on Windows 10 to be compatible with WS2012 R2 [Version 5.0 – Backward Compatibility]

Hi there,

In this blog post I’d like to explain how to create Hyper-V virtual machine on Windows 10 to be compatible with Windows Server 2012 R2!
In the last couple of months my users are using Windows 10 on the local machines, (desktops and laptops) and sometime they need to move virtual machines created on the Windows 10 to Hyper-V hosts which have been using Windows Server 2012 R2 as OS.
When you create virtual machine on Windows 10, Configuration Version is 7.0 and you cannot change that or during virtual machine creation choose configuration version.
From the other side, virtual machine configuration version on Windows Server 2012 R2 is 5.0 and we cannot import virtual machine created on Windows 10 to Windows Server 2012 R2 because of differences on configuration version.

VMConfVer
So, what we can do in that case?
The first; if we have virtual machine with configuration version 7.0, we can copy .VHDX on Hyper-V host with WS2012 R2, create new virtual machine and add copied virtual disk. But, we lost virtual machine configuration and checkpoints.
The second; we can create virtual machine on Windows 10 through PowerShell, where can choose virtual machine configuration version.
Here is an example, and full script you can download .ps1.
1

Enjoy virtualization Winking smile

Cheers

Romeo

WEBINAR: Troubleshooting Microsoft Hyper-V – 4 Tales from the Trenches

Join to this amazing webinar organized by Altaro Software. In this webinar you’ll learn Hyper-V troubleshooting basics and solutions to common problems represented by Andy Syrewicze (@asyrewicze) and Didier van Hoye (@WorkingHardInIT)

Sign up now to join us on February 25th, 2016 at 4pm CET / 10am EST
(30-45mins + live Q&A!) for some tales from the trenches!

Sign up here:

webinar-Join-button-troubleshooting-hyperv

Upgrade TFS 2013 to TFS 2015 RC [New hardware upgrade procedure]

This days I had honor to upgrade TFS 2013 to TFS 2015 RC. RC is release candidate and it’s not officially supported, but if you have “support” from your MVP fellows and experts it’s not that hard to do something like this Smile.

Of course, at the beginning I had a couple of issues with upgrade, but at the end everything went perfectly thanks to the Microsoft and MVPs experts and now I want to share this experience with you.

The TFS infrastructure is as follows:

TFS 2013
1. Windows Server 2012
2. TFS Version: 12.0.21005 (Tfs2013.RTM)
3. SQL Server 2012 with SP2 Enterprise Edition

TFS 2015 RC
1. Windows Server 2012 R2
2. TFS 2015 RC
3. SQL Server 2012 with SP2 Enterprise Edition

Both servers are in the same domain and they have been using the same service accounts.

We did following (this is classic/usual upgrade procedure):
1. TFS Backup procedure through TFS Administration Console –> Scheduled Backups –> Manual backup (on the TFS 2013 side)
2. Databases have been restored through TFS Administration Console –> Restore Databases (on the TFS 2015 RC side)
3. During the Upgrade process on the last wizard tab we’ve got the error visible in the picture below.

1

And what to do now? Sad smile

1. Restore TFS databases again
2. Open SQL Server Management Studio on the TFS 2015 RC
3. Execute the following script in the Tfs_Configuration database:

[sourcecode language='sql'  padlinenumbers='true' collapse='false' wraplines='false']
UPDATE  tbl_RegistryItems
SET     RegValue = SUBSTRING(RegValue, 1, CHARINDEX(', Version=', RegValue) - 1)
WHERE   PartitionId = 1
        AND ParentPath = '#\Configuration\ServiceProvider\ExtensibleTypes\'
        AND CHARINDEX(', Version=', RegValue) > 0
[/sourcecode]

 

SQLquery1

4. Run Upgrade procedure again and voila Winking smile

Complete
Complete2
Complete3

Microsoft will fix this issue in Team Foundation Server 2015 RTM!

Enjoy in upgrade Hot smile

Cheers,

Romeo