I believe in Hyper-V!

AdministrationCategory Archives

Convert single VMware virtual disk (.vmdk) to Hyper-V virtual disk (.vhd) with Microsoft Virtual Machine Converter (MVMC)

In this blog post I’ll explain how to convert .vmdk to .vhd and how to create new Hyper-V virtual machine with converted disk.
What is Microsoft Virtual Machine Converter (MVMC)? The Microsoft Virtual Machine Converter Solution Accelerator is a stand-alone solution for the IT Pro or solution provider who wants to convert VMware based virtual machines to Hyper-V based virtual machines. The MVMC solution can perform full conversion of VMware based virtual machines as well as conversions of VMware virtual disks to Hyper-V virtual disks.
Supported & Free – Quick and easy to download, use and start conversions of VMware VMs
Convert to 2012 – Converts and deploys virtual machines or virtual disks from VMware to Hyper-V hosts including Hyper-V on Windows Server 2012
Scriptable –  Fully scriptable command-line interfaces for performing virtual machine and disk conversions that integrates well with data center automation workflows and Windows PowerShell scripts
OS Support – Supports Windows Server 2008 R2, Windows Server 2008, Windows Server 2003 SP2 and Windows Vista & Windows 7 as well as Windows 8

Microsoft Virtual Machine Converter is a FREE tool! You can download from here.
1

With a GUI we can convert VMware based VMs only if have vCenter server, ESX server, or ESXi server.
2

But, what if I have VMware workstation based VMs? Can I convert these VMs? NO, we can’t convert these VMs on that way but can convert virtual disks (.vmdk) (with CLI) and then can create new VM in Hyper-V.
So, this is detailed how to…

Step 1. Convert .vmdk to .vhd
Open command prompt as administrator and navigate to

C:\Program Files (x86)\Microsoft Virtual Machine Converter Solution Accelerator>mvdc.exe “sourcedisk\vmdkdisk\vmdisk.vmdk” “destinationdisk\newvhddisk\newvhd.vhd” press Enter.

3

Step 2. Create Hyper-V virtual machine with converted virtual disk

4

And voila, we have Hyper-V virtual machine up & running ;)

5

MVMC Capabilities

  • Converts VMware VMs to Hyper-V VMs
  • Supports converting to WS2012 Hyper-V
  • Wizard Driven UI for conversion
  • Includes CLI for VM and virtual disk conversion
  • Supports offline conversion of .vmdk to .vhd
  • Removes VMware tools for a clean migration
  • Installs Hyper-V integration services

This isn’t only way for conversion, we can do that in a few ways, but it is one of the simplest.

Enjoy the day!

Delete obsolete virtual networks with dependency in VMM 2012 SP1

Few days ago I modified network settings on one of Hyper-V hosts and also migrated two of VMs to another Hyper-V host. After VMs migration and changed network settings on the Hyper-V everything has been working like a charm! After I do that, on the Virtual Machine Manager I noticed that two network adapters are still there regardless of what no longer exist in Hyper-V host. That isn’t a problem, right click on VM Network and Logical Networks, and that’s it, but…!? When I tried to delete obsolete virtual network got error that have dependent resources on that VM Network like in the picture below.

Blog4

In other words; when I migrate VMs from one Hyper-V host to another VMM didn’t “release” VMs from VM Networks. I’m sure that everything what I done, I did in the right way!
When opened View Dependent Resources I saw two migrated VMs and connected checkpoints.

Blog3

The same dependencies are on the Logical Networks

2

In the next couple of hours I tried to figure out how to solve the problem! In the pictures below is few examples what I tried to do.

Tried to delete through PowerShell.

VMnetwork

Tried to change all .xml configuration file related to VMs

Blog1

At the end, what did I do? It’s simple but it’s manual work!

Step 1

Export VMs

Blog2

Step 2

Delete exported VMs through Virtual Machine Manager

deleteVm

Step 3

Remove Virtual Network from the VM Networks and from the Logical Networks

Blog5
Blog6
Blog7
Blog8
Blog9
Blog10

Step 4

Import VMs

Blog11

Blog12

We are done!

Enjoy in day ;)

Romeo

Install Microsoft .Net Framework 3.5 “offline” in Windows 8

Many times until now I had issues with .Net Framework 3.5 installation on Windows 8. Every time when I installed .Net Framework 3.5 on Windows 8 I needed to bing-it to find resolution, so now I want to have reminder on my blog :).

Why do we need .Net Framework 3.5? Sometimes we use some updated program, Apps, etc. (Last time when I had a problem I installed Team Foundation Server 2012 Build server). To install it online we have to do a huge amount of download from Internet (if you have a lucky with this kind of installation, I didn’t have).

Step 1.

Insert Windows 8 boot media into PC
Capture3

Step 2.

Open Command Prompt (Run as administrator) or (Admin)
Capture4 Capture5

Step 3.

Copy the following line and paste on to Command Prompt (opened with Admin rights) window then press Enter.

Dism /online /enable-feature /featurename:NetFx3 /All /Source:D:\sources\sxs /LimitAccess

Capture

After very short time you’ll have .Net Framework 3.5 installed on your PC.

Capture2

NOTE: Why this is happening? Actually, when we install .Net Framework 3.5 through Windows 8 features, Turn Windows features on or off, Windows needs to download .Net Framework files. But, when we have WSUS on our domain Windows requires this files from WSUS not from Windows online updates, given that WSUS doesn’t have such files in the repository and we get error when try to install .Net Framework.

Enjoy ;)

Romeo