I believe in Hyper-V!

Hyper-VCategory Archives

About Hyper-V technology

Hyper-V Replica [test environment]

In one of my latest post I wrote about how to install Hyper-V role inside Hyper-V virtual machine. Many of my colleagues asked me, why you do that? Actually, I have two answers. The first is: I don’t have free hardware in my company for testing purposes, and the second is; for my lectures/demos on various conferences when I talk about Hyper-V Replica (not only about Hyper-V Replica). When I have test environment on my laptop I’m pretty sure that demos will work.
So, let’s go back to the title. In one of my demos I need to do Hyper-V Replica between two Hyper-V hosts and you can see step-by-step guide in the pictures and short explanations below.

1. In this test environment I want replicate VM RHV from Hyper-V host called WD2012CORE to Hyper-V host called Hyper-VReplica. The procedure is straight forward, just follow the wizard :). Select VM which you wont replicate and select Enable Replication.

1
2

Choose on which Hyper-V host you want replicate your VM’s. As I mention before, I replicate from WS2012CORE to Hyper-VReplica Hyper-V host.

3
4

Under the Specify Connection Parameters tab can choose Authentication Type. Be default wizard offers us Kerberos authentication (HTTP), but we can use certificate-based authentication (HTTPS) if we wont secure transmission between Hyper-V hosts. Of course, if you want use certificate based authentication need to have certificate. But considering that this is test environment I chose Kerberos authentication.

5 

On the next tab select virtual disk location and click Next

6 

In my case I chose option Only the latest recovery point, but in production environment we need to have another plan, depends of your needs.

7

When you go to Choose Initial Replication Method can choose three ways how want to transfer initial copy to Hyper-V Replica server. In my case I chose option Send initial copy over the network. For my production environment is very interesting to use option Send initial copy using external media. Why this is a good solution? For example; if have very big virtual machines (I mean on big capacity) than you can send initial copy on an external media (external HDD) and take it to a remote location. In this case, does not overload the network resources if you have slow connection between two locations, like I have.

8

At the end check parameters on Summary and click Finish.
9

Log on Hyper-V Replica server and will see your replicated Hyper-V virtual machine.
10

If you want to check replica status right click on VM and you will be see Replication Health for replicated VM.
11

All above we do through GUI, but I like do that with PowerShell. So, how to replicate VM with PowerShell from Hyper-V host to Hyper-V Replica server you can see below.

PowerShell 3.0 includes 22 Cmdlets for configuring, enabling, monitoring, and managing Hyper-V Replica on an automated basis. This time I’ll be just write PS script for above mentioned example. I one of my next blog post I’ll be describe how to use PowerShell for Hyper-V Replica step-by-step.

So, in this example I replicate virtual machine WinDays13 from Hyper-V host WS2012CORE to Hyper-V host Hyper-V Replica. First I need to enable Hyper-V Replica on Hyper-V host.

1

And the second I need to enable replication for virtual machine.

2

Voila! VM WinDays13 is replicated.

3

At the end of this article I’d like to mention one very important thing! Hyper-V Replica isn’t BACKUP! We use Hyper-V Replica for a DISASTER RECOVERY.

It’s Monday, let’s get to work.

Cheers,

Romeo.

Issue with Migration of Virtual Machines |System Center 2012 SP1 Virtual Machine Manager|

Today I tried migrate virtual machine from one stand alone Hyper-V host to another through System Center 2012 SP1 Virtual Machine Manager and got errors like in the picture below.
The first error was: The credentials supplied to the package were not recognized…
and the second was: Live Migrating Hyper-V virtual machines may fail with error 0x80070569

1

After a little of investigation I found resolution on Ben Armstrong blog and on Microsoft support site. So, what we have to do?

1. Step
– Open Properties on the Hyper-V host
– Go to the Host Access
– Add Run As account created earlier

6

2. Step
– On the Domain Controller create new GPO with the parameters like in the picture below and Link in OU where your Hyper-V hosts are.

7

– Update group policy on every Hyper-V host | gpupdate /force |. (You may need to wait several minutes for Active Directory replication to occur).

8

We are done! Open VMM Console and migrate VMs as you wish.

9

2 
3

Voila, VM is migrated. Of course, migration time depends on the virtual machine size.

Enjoy in day!

Romeo

MVP Global Summit 2013 – It was nice, it was good!

As my friend Adis Jugo says, “It was nice, it was good!”

MVP13Header

First of all what I must mention! All what we heard at the MVP Summit sessions is strictly confidential and under NDA (Non-disclosure agreement) and I can’t tell anything about what will be new in Microsoft world. What happened at MVP Summit, stays at summit ;)
So, this blog post will be just short review about my impressions from summit!

MVP Global Summit is the biggest conference for MVPs organized by Microsoft, almost 1500 MVP from over the world in one place, Bellevue and Redmond, Washington state.
From our region, Croatia, Slovenia, Bosnia and Herzegovina, Macedonia and Serbia were almost 20 MVPs.

MVP crowd from CEE & Italy
18-02 (16) 18-02 (17)

Rookie MVPs (Ivan Kardum, Spaso Lazarevic and I) at First MVP meeting in Rock Bottom
17-02 (20)

Most of us arrived two days before Summit and we had little time to visit Seattle, Bellevue and Redmond and of course we had reserved time for shopping :). Ogy, thanks for a great ride through the streets of America :)

At Monday, 18th my Product Group (Virtual Machine) had sessions in Microsoft Campus (Redmond) and finally I met few great MVPs from Virtual Machine product group (Lenardo Carvalho, Dariusz Porowski, Carsten Rachfahl, Alessandro Cardoso, Thomas Maurer…) and few great people from Microsoft, Ben Armstrong aka VirtualPCGuy (our PG lead), Jose Barreto

From Monday until Thursday we had all day sessions and were really busy.
mvpsummit

Picture for history, VirtualPC Guy (Ben Armstrong, Hyper-V guru) and I in Hyatt Regency hotel
WP_000671

Also, you can see great video interview with Ben Armstrong recorded by MVP Virtual Machine fellow Carsten Rachfahl.

Each day after sessions we had a party or something similar (networking with other MVPs or Microsoft employees). Wednesday evening was reserved for the big attendee party in the CenturyLink Field stadium Seattle.
20-02 (12) 

For me personally, the best party was in Wild Ginger organized by Alessandro Teglia (CEE & Italy MVP lead).

At the end, it was great, it was amazing. One great experience! I hope that I’ll go again next year!

2013 MVP Global Summit is behind us, let’s go to work.

Cheers,

Romeo