I believe in Hyper-V!

VirtualizationCategory Archives

Migrate VMware virtual machine to Microsoft Azure with MVMC 3.0

Dear blog readers, in this blog post I would like to show you how to migrate VMware virtual machine to Microsoft Azure with Microsoft Virtual Machine Converter 3.0. The whole procedure is very simple and straight forward.

My infrastructure looks as follows
1. ESXi 5.5 with couple of VMs
2. Hyper-V host 2012 R2 with MVMC 3.0 installed

First what I need is a storage on Microsoft Azure. As you can see on the picture below I have few storages all ready created.
1

Now we are almost ready to put VM to Azure ;) Open MVMC 3.0 and follow the steps…
1

As you can see on the picture we only can convert VMware virtual machine disk to VHD (not to VHDX) and also, we must provide subscription of Azure account and certificate Thumbprint.
2

Open Microsoft Azure console and under Settings you can find Subscription ID and Certificate Thumbprint.
2
3

We can go ahead with migration..

3

Choose Storage account…

4

Enter ESXi server details….

5

and select virtual machine for migration/conversion
6 
7

Choose the place on the Hyper-V host where you want to convert VM
8

On the Summary window check details and click on Finish.
9

Conversion will start…
10

We are done with conversion and now….
11

Logon on Microsoft Azure portal and under created storage you will be see converted .VHD.
12

The next step is to create virtual machine and give her the converted virtual disk.
13 
4

At the and of conversion process we have Hyper-V virtual machine in the Microsoft Azure.
1 
2

And voila :) We are done!
3

Now I have to pack my stuff for the MVP Summit in Redmond. MVP fellows see you there… Can’t wait.

Enjoy the day and enjoy virtualization :)

Cheers,

Romeo

Convert Physical machine to Virtual machine with MVMC 3.0

In this blog post I would like to show you how to convert Physical machine to Virtual machine with MVMC 3.0 which you can download from here. In this version of MVMC we can convert physical machine to virtual machine, other features are more or less the same.

New features in MVMC 3.0

The 3.0 release of MVMC adds the ability to convert a physical computer running Windows Server 2008 or above server operating systems or Windows Vista or above client operating systems to a virtual machine running on Hyper-V host.

Here you can read about standard features in MVMC.

Make sure you have the following pre-requisite on the computer on which you want to run MVMC and they are as follows:
1. Windows Server 2012 R2, Windows Server 2012, or Windows Server 2008 R2 SP1 operating systems.

2. Microsoft .NET Framework 3.5 and .NET Framework 4 if you install MVMC on Windows Server 2008 R2 SP1

3. Microsoft .NET Framework 4.5 if you install MVMC on Windows Server 2012 R2, Windows Server 2012, or Windows 8.

4. Visual C++® Redistributable for Visual Studio® 2012 Update 1

5. Enable the Background Intelligent Transfer Service (BITS) feature in Windows Server.

6. Enable Hyper-V on the destination host

NOTE: If you don’t enable features mentioned above will get this error:
ErrorImportant

From the one side I have Physical machine with Windows Server 2012R2 installed on it, and from the other side I have Hyper-V host.

Here is a pictures guide how to convert ;)
Start MVMC and click Next
1 
On the next screen choose Physical machine conversion
2

Enter the name or IP address and credentials of your physical machine under the Source then go ahead

3

Click on Scan System to see system information
 4 
5
Here we can see Volume Configuration

6

On the next step we need to enter Virtual machine name, number of processors and Memory

7
8

Here we need to fill Hyper-V host information

 9
Then we need to choose virtual machine and workspace location
10 
11

Then, Network Configuration
12 
13

At the end of the wizard we can see Summary and click on Finish to start conversion
14 
15 
16 

At the end of the conversion process you can see converted machine
17

Enjoy in virtualization :)

Cheers,

Romeo

Convert single .VMDK to .VHDX with Microsoft Virtual Machine Converter 2.0 (MVMC)

Hi there,

In the last couple of weeks I was on a vacation and can tell you this vacation was the best in the last ten years :) Now I’m ready for the new challenges!

In this blog post I would like to show how to convert single VMware virtual disk (.VMDK) to Hyper-V (.VHDX) with free tool, Microsoft Virtual Machine Converter 2.0 (MVMC) which you can download from here. Few months ago I wrote blog post on similar topic, but this is a new version of MVMC with lots of new features.

What is Microsoft Virtual Machine Converter (MVMC)?
Microsoft® Virtual Machine Converter (MVMC) is a Microsoft-supported, stand-alone solution for the information technology (IT) pro or solution provider who want to convert virtual machines and disks from VMware hosts to Hyper-V® hosts and Windows Azure™.
New Features in MVMC 2.0
MVMC 2.0 release of MVMC includes the following new features:

  • Converts virtual disks that are attached to a VMware virtual machine to virtual hard disks (VHDs) that can be uploaded to Windows Azure.
  • Provides native Windows PowerShell capability that enables scripting and integration into IT automation workflows.
    Note The command-line interface (CLI) in MVMC 1.0 has been replaced by Windows PowerShell in MVMC 2.0.
  • Supports conversion and provisioning of Linux-based guest operating systems from VMware hosts to Hyper-V hosts.
  • Supports conversion of offline virtual machines.
  • Supports the new virtual hard disk format (VHDX) when converting and provisioning in Hyper-V in Windows Server® 2012 R2 and Windows Server 2012.
  • Supports conversion of virtual machines from VMware vSphere 5.5, VMware vSphere 5.1, and VMware vSphere 4.1 hosts Hyper-V virtual machines.
  • Supports Windows Server® 2012 R2, Windows Server® 2012, and Windows® 8 as guest operating systems that you can select for conversion.

6

As you noticed, with Microsoft Virtual Machine Converter we can convert / migrate to Azure and to Hyper-V but only based VMs only if have vCenter server or ESXi server, but what if I have VMware Workstation based VMs.. cannot convert with MVMC. On that way can convert only .vmdk to .vhdx and then create new Hyper-V VM with converted virtual disk.
So, how to do it?

With PowerShell, of course :) In the previous version of MVMC we could do with CLI.

I know, I know… most of you will tell me; you have lots of free tools for conversion but I want use only Microsoft tools! ;)

Here is short explanation how to…

Install MVMC 2.0 (2.1 ;) ), open PowerShell as administrator and write
get-command -Module mvmccmdlet

Here you can see MVMC modules
1

If you don’t see modules, need to create user profile and to import modules

Create user profile

PS C:\Windows\system32> $env:psmodulepath -split ';'
C:\Users\rm\Documents\WindowsPowerShell\Modules
C:\Program Files\WindowsPowerShell\Modules
C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
PS C:\Windows\system32> $profile
C:\Users\rm\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1
PS C:\Windows\system32>

Now we can convert .vmdk to .vhdx through PowerShell. Open PowerShell as administrator and…

ConvertTo-MvmcVirtualHardDisk -SourceLiteralPath “D:\VMwareConvert\Windows8x64VMware\Windows8x64
.vmdk” -DestinationLiteralPath “D:\VMwareConvert\Windows8x64Hyper-V” -VhdType DynamicHardDisk -VhdFormat Vhdx

3

For a 17GB virtual drive I needed 6 minutes on SSD

4

At the end we can create Hyper-V virtual machine with converted virtual disk.

5

I’d like to thanks my great friend Aleksandar “The PowerShell Guru” Nikolic for the big help.

Also, I must mention a new book “System Center 2012 R2 Virtual Machine Manager Cookbook – Second Edition” from my Hyper-V MVP fellow Alessandro Cardoso.

Hope to see you soon ;)

Cheers,

Romeo