Offline Convert VMware VMs to Hyper-V

Offline Convert VMware VMs to Hyper-V


  1. Firstly, use VMware vCenter to Export VM to OVF Template VM. (OVA is just a compressed archive) OR you can directly copy the .VMDK files while the VMs is Powered Down. IMPORTANT: You need both VMDK files the 1K and the large file
  2. Download and install Microsoft Virtual Machine Convert –
  3. Open Powershell and use the following commands:
    • [sourcecode]Import-Module "C:\Program Files\Microsoft Virtual Machine Converter\MvmcCmdlet.psd1"[/sourcecode]
    • [sourcecode]convertTo-MvmcVirtualHardDisk -SourceLiteralPath "D:\Debian8\Debian8-disk1.vmdk" -DestinationLiteralPath "D:\Debian8.vhdx" -VhdType DynamicHardDisk -VhdFormat Vhdx[/sourcecode]
  4. IMPORTANT: The source file must be the 1K file. Otherwise you will get “No suitable drive was found at path.” Error.

VMware Application Dependency Planner (ADP)

is a free tool for channel partner, in order to access to the tool you need to email our special alias:
[email protected]

ADP is a great tool to provide automated, real-time application discovery and dependency mapping to accelerate DC migration, but due to the complexity of the tool the team will usually ask you a couple of questions to qualify your background before they can provide you the links to the ADP software, to give you a heads up some of the sample questions you will get asked are:

1. What will the software be used for? E.g. Customer engagement, just trying out/testing, provide it to a partner.
2. Do you or the person(s) who is going to use the software have experience with ADP? If yes explain.
3. Do you or the person(s) who is going to use the software have knowledge of networking concepts? In particular: span ports, network protocols such as netflow, understanding of different types of switches both physical and virtual?

You can find an ADP 1.0 training at:

Here are the ADP download links, we would appreciate it to notify us when you’re done downloading. And please go through the documentation carefully.

To deploy ADP with embedded database in Aggregator:

To deploy ADP with database in an external vPostgres appliance:

After deploying ADP core appliance, please install the shell shock patch by logging into appliance as root and follow instructions described in document /2.0/ADP-shell-shock-update.pdf

There is a known OpenSSL libray compatibility issue in the latest ADP build, which prevents configuring external vPostgres database and also doing SSH. The work around is to use ADP and run the shell shock security patch manually to bring it up to ADP level. The only change made in ADP is patching the appliance for shell shock security issue.

vPostgres OVA to be used with ADP core appliance:

OLAP Scripts:
Best regards,
Anton Sabev
VMWare Field Tools Support Team

04/07/2015 22:10 – Roshan Ratnayake wrote:
Hi VMware

I would like to request access to the Application Dependency Planner (ADP) for a upcoming client engagement to assess current state environment and documentation.

1. What will the software be used for? E.g. Customer engagement, just trying out/testing, provide it to a partner.
a. assess current state environment and documentation
2. Do you or the person(s) who is going to use the software have experience with ADP? If yes explain.
a. No specific with the VMware tool, but similar tools from BMC
3. Do you or the person(s) who is going to use the software have knowledge of networking concepts? In particular: span ports, network protocols such as netflow, understanding of different types of switches both physical and virtual?
a. Yes, this will be used by Senior Consultants with extensive VMware and Networking experience.
Training – VMware Partner University – do a search on ADP you should able to review the VoD.

SPAN/RSPAN so that we can mirror the proper traffic

VMware Data Protection with Data Domain and DD Boost

VMware Data Protection with Data Domain and DD Boost


VMware now provides a very powerful Data Protection suite as part of all versions of vSphere. So, you don’t need to invest in another backup solution..

VMware Data Protection can be integrated with EMC DataDomain, EMC DDBoost, and EMC Data Protection Advisor to provide a central integrated backup solution for Virtual Environments.. Data Domains can be used to replicated over WANs.

VMwre Data Protection is Application-aware backups: Application-level backups for Microsoft Exchange, Microsoft SharePoint and Microsoft SQL Server are performed using a lightweight in-guest agent that ensures application-consistent backups and provides granular recovery.

vSphere Data Protection has the capability to properly back up and restore Exchange Server, SQL Server, and SharePoint application databases. SQL Server clusters and Exchange Server database availability groups are also supported. A vSphere Data Protection application agent is installed in the guest OS of each virtual machine running these applications. It is also possible to install these agents on physical machines to protect Exchange Server, SQL Server, and SharePoint application databases. Agents enable application-consistent backup and recovery and provide support for other options such as full, differential, or incremental backups; multistream backups; and database log management.

EMC Data Domain Boost for Enterprise Applications integrates seamlessly with Oracle RMAN, Microsoft SQL Server, SAP, SAP HANA, and IBM DB2 to provide application owners and database administrators with complete control of their own backups, using their native application utilities. This empowers applications owners with the control they desire and eliminates storage silos for application protection.

With vSphere Data Protection, it is possible to restore individual files, folders, and directories within a virtual
machine. An FLR operation is performed using a Web-based tool called vSphere Data Protection Restore Client.The process enables end users to conduct restores on their own, without the assistance of an administrator, by selecting a restore point and browsing the file system as it looked at the time that backup was done. They locate the item(s) to be recovered, select a destination for the restored item(s), and start the recovery. The progress ofthe restore job can be monitored in vSphere Data Protection Restore Client.

Data Domain enables scale beyond the 8TB limit imposed by a Vmware Data Protection appliance.


Limitations of VMware Data Protection

This is a much better solution than Veeam –

Bill of Materials:

  • VMware Data Protection
  • Data Domain Appliances
  • EMC DD Boost
  • EMC Data Protection Advisor
  • EMC Data Domain Management Center
  • EMC Data Domain Extended Retention
  • EMC Data Domain Replicator
  • Riverbed WAN Optimization
  • EMC Data Domain Retention Lock
  • EMC SourceOne

HowTo: Install Nested ESXi 5.5

HowTo: Install Nested ESXi 5.5


  1. Enable Promiscuous Mode on the vSwitch
  2. Edit ESXi : echo ‘vhv.allow = “TRUE”‘ >> /etc/vmware/config
    • Check [nestedHVSupported boolean true – https://your-esxi-ip-here/mob/?moid=ha-host&doPath=capability
  3. Use the Web Client to Create a VM:
    • 2 vCPUS
    • 16 GB RAM
    • 4 GB HD (LSI Logic Parallel)
    • 2 NICS (Driver E1000)
    • Options CPU/MMU Vitulization (Select 4 the option)
    • Guest OS : Other / VMware ESXi 5.x
    • Hardware virtualization : Expose hardware assisted virtualization to the guest OS

    • To enable virtualized HV, use the web client and navigate to the processor settings screen. Check the box next to “Expose hardware-assisted virtualization to the guest operating system.” This setting is not available under the traditional C# client.

  4. Edit the .vmx and echo ‘vhv.enable = “TRUE”‘ >> *.vmx
  5. Check all the settings if you get the following error at ESXi Install:<HARDWARE_VIRTUALIZATION WARNING: Hardware Virtualization is not a feature of the CPU, or is not enabled in the BIOS>
  6. update ESXi
  7. Install VMware Tools VIB
    • [source language=”bash”]</li>
      <li>esxcli system maintenanceMode set -e true
      esxcli software vib install -v /vmfs/volumes/[VMFS-VOLUME-NAME]/esx-tools-for-esxi-9.7.0-0.0.00000.i386.vib -f
      esxcli system shutdown reboot -r “Installed VMware Tools”</li>

    • [source language=”bash”]</li>
      <li>esxcli network firewall ruleset set -e true -r httpClient
      esxcli software vib install -v -f</li>

  8. Inject the VMware Tools VIBs into the ISO
  9. Clone to Template
    1. [source language=”language=”]</li>
      <li>esxcli system settings advanced set -o /Net/FollowHardwareMac -i 1</li>
      <li>open <b>esx.conf </b>and delete the entire <b>/system/uuid</b></li>
      <li> run /sbin/</li>
      <li>esxcli storage vmfs snapshot resignature -l [VMFS-VOLUME]</li>



Reference : –


VMware SDDC Networking Features

VMware SDDC Networking Features


Here is a quick summary of some very new features for VMware vSphere Networking and Multi-Tenant Security..


Cisco Nexus 1000V provides L2 functionality and combines the fabric level networking management seamlessly into the virtual layer for North-South Layer 2/3 Communication. All compatible Cisco Nexus can be managed from the same VSM. This makes it easy for the existing Networking team to be able to manage the networking inside vSphere.  VMware NSX provides granular policy based L4-L7 Networking features integrated into the hypervisor to secure and manage East-West Communication.

  • VMware vDS
  • Cisco Nexus 1000V and Cisco Nexus 1010
  • NSX
  • Network I/O Control (NIOC)
  • vShield



VM Disk Alignment scripts

VM Disk Alignment scripts


  • Get Partition starting offset –
    • [source]wmic partition get BlockSize, StartingOffset, Name, Index[/source]
  • Uber Aligh –
  • dmdiag -v
  • fsutil fsinfo ntfsinfo c:
  • diskpart /script

    list disk
    select disk <DiskNumber>
    create partition primary align=<Offset_in_KB>
    assign letter=<DriveLetter>
    format fs=ntfs unit=64K label="<label>" nowait[/source]

  • NetApp mbralign command –
  • [source]# /opt/netapp/santools/mbralign –scan all

    /opt/netapp/santools/mbralign [filename].vmdk[/source]




Reference :-

FCoE ‘versus’ iSCSI – The Mystery is Solved_2014-02-03_15-34-09

Reference :-

Other Articles:


How to Resize VDI Virtual Disks with PowerCLI Script

How to Resize VDI Virtual Disks with PowerCLI Script

To resize virtual disk in multiple Virtual Machines, a scripted process is recommended as it will make the job quicker and manageable.

This document is based on the following technology:

  • VMware ESX 4.1.0
  • Windows 7 Enterprise 32-bit SP0 Virtual Machine

If different version is used, the manual process and scripted process might need to be adjusted as some PowerCLI functions might have been deprecated.

Tools for Scripted Process

The script has been created to help the whole process quicker and less error prone. The script is developed with VMware vSphere PowerCLI, sysinternal and DiskPart.

There are 2 major steps to resize a disk in Virtual Machine:

  1. Resize the virtual disk of the Virtual Machine
  2. Extend the Guest Operating Systems’ volume

Those 2 steps are explained in more details on the section below

Resize the virtual disk of the Virtual Machine

To resize multiple or potentially hundred or thousand Virtual Machine, doing the manual resizing can definitely lead to error, not to mention the time it is going to take to do it.
A Script has been created to do this particular task. The script is based on VMware vSphere PowerCLI and sysinternal tools. PowerCLI is used to call the vSphere Web Service API to resize the virtual disk on each Virtual Machine. Sysinternal is used to execute the diskpart utility remotely on each Virtual Machine
Script Requirements

To be able to execute the script, the following file(s) and application are required:

  1. vSphere PowerCLI installed on the machine that is going to be used to run the PowerCLI script
  2. PsExec.exe file, downloaded from
  3. A text file contains a list of the computer name per line
  4. A text file contains a list of command for DiskPart

Extend the Guest Operating Systems’ volume


PsExec.ext @C:\Temp\Computers.txt –u DOMAIN\Username –h diskpart /s \\computer\share\Diskpart.txt

list volume

Select Volume 2


vSphere PowerCLI VDI-Extend.PS1

[source language=”powershell”]

#Get the vCenter Server Name
[System.Reflection.Assembly]::LoadWithPartialName(‘Microsoft.VisualBasic’) | Out-Null
$vC = [Microsoft.VisualBasic.Interaction]::InputBox("Enter the vCenter computer name", "Computer", "$env:computername")

#Connect to vCenter
Connect-VIServer -Server $vC

#Prompt File Function
function PromptFor-File
[String] $Type = "Open",
[String] $Title = "Select Computer File (One Computer Name per Line)",
[String] $Filename = $null,
[String[]] $FileTypes,
[switch] $RestoreDirectory,
[IO.DirectoryInfo] $InitialDirectory = $null


if ($FileTypes)
$FileTypes | % {
$filter += $_.ToUpper() + " Files|*.$_|"
$filter = $filter.TrimEnd("|")
$filter = "All Files|*.*"

switch ($Type)
$dialog = New-Object System.Windows.Forms.OpenFileDialog
$dialog.Multiselect = $false
$dialog = New-Object System.Windows.Forms.SaveFileDialog

$dialog.FileName = $Filename
$dialog.Title = $Title
$dialog.Filter = $filter
$dialog.RestoreDirectory = $RestoreDirectory
$dialog.InitialDirectory = $InitialDirectory.Fullname
$dialog.ShowHelp = $true

if ($dialog.ShowDialog() -eq [System.Windows.Forms.DialogResult]::OK)
return $dialog.FileName
return $null

#File Content
$file = PromptFor-File
$content = Get-Content $file

#Get Hard Disk Name
$hdd = [Microsoft.VisualBasic.Interaction]::InputBox("Enter the VM Disk Name", "VM Disk Name", "Hard disk 1")

#Get Hard Disk Size
$hddsGb = [Microsoft.VisualBasic.Interaction]::InputBox("Enter the Disk Size in GB", "VM Disk Size", "")
$hddsKb = [int]$hddsGb * 1024 * 1024

foreach($c in $content)
#Extend the vmdk file
Get-VM -Name $c | Get-HardDisk | Where-Object {$_.Name -eq $hdd} | Set-HardDisk -CapacityKB $hddsKb
Write-Host "This VM: " + $c + " is not recognized" -ForegroundColor Red