vNext.be | Operations Manager, Opalis, PowerShell, …

TAG | VMWare

Sometime, you have a Virtual Machine in a Microsoft VHD format and you would like to use it with your VMware Workstation application. So this little guide will explain how to perform this operation.

Pre-requisites

 

Step 1

 

Create a working folder on one of your computer drive and paste your VHD file into it.

Step 2

 

For the conversion, VMware Converter needs a VMC file. A VMC is the configuration file of the Microsoft Virtual Machine, it’s in this file that you the all the settings of the VM.

So, download the VMC file that is available here (http://www.vnext.be/wp-content/uploads/2010/09/MyVM.Rename-to-dot-vmc.txt), rename the extension to .vmc and paste it to your working folder:

Open it with notepad and edit the path to your VHD file like below:

Step 3

 

Start VMware Converter 4 standalone

Click on Convert Machine:

  • Select source type : Backup image or third-party virtual machine
  • Virtual machine file : The path to your VHD file


Click on Next and choose the following parameters:

  • Select destination type : VMware Workstation or other VMware virtual machine
  • Select VMware product : VMware Workstation 7.0.x

Click on Next and choose the following parameters:
Adapt the parameters to your need, but be sure that Install VMware Tools is set to YES

Click on Next and review all the information:

Click on Finish and wait the end of the process:

After a few minutes, the process is complete:

Go to your working folder, enter in the new created folder and double click on the .vmx file.

VMware workstation will now start:

Review your Virtual Machine configuration and start your new VM:

After you’re first Log on, Windows will install the drivers related to VMware Workstation, so let the process continue and restart you virtual machine when it’s done:

When all the drivers have been installed and you virtual machine restarted, you will have to reactive your copy of Windows:

When the activation process ended, you could now enjoy your virtual machine with VMware Workstation:

Christopher KEYAERT

· · · · ·

Hello All,

If you only use the command GET-VM, you will receive back the VMs List only from the Virtucal Center that you last connect on. If you want the get all the VM from your both virutal centers, you absolutely need to add the parameter -server $vcs to you command.

If you want to connect to more than one virtual center at the same time, here the starting code :

1
2
3
4
5
6
7
$vcs = @()
$vcs += connect-viserver vc1.mydom.local
$vcs += connect-viserver vc2.mydom.local
# You could add many as you need...

# Command example
get-vm -server $vcs | export-csv C:\Export.csv

In a general way, don’t forget to add -server $vcs to every command than you use with the VI Toolkit.

As always, RTM -> the documentation on VI Toolkit :
http://communities.vmware.com/docs/DOC-4210

Christopher Keyaert

· · ·

Christopher Keyaert
Copyright 2010 © vNext.be