Menu Close

Azure Migrate | Prepare for testing

Reading Time: 2 minutes

Hi All,

Since i was invited for testing the new Azure solution called Azure Migrate i had to come up with some test workload! Since i only have Hyper-V and Azure Migrate only is available now for VMWare i had to run VMWare on Hyper-V. After some searches on the internet i found this website from Dan Scott-Raynsford which provided me all the info i needed. Ofcourse i wanted to run the latest ESXi 6.5 on Hyper-V but this VMWare forum states that it is not yet possible.

So a quick enumeration of the steps i took:

  • Downloaded and installed the latest PowerCLI from here;
  • Downloaded the latest ESXi-Customizer-PS script from here;
  • Ran the .\ESXi-Customizer-PS-v2.5.1.ps1 -v60 -vft -load net-tulip script that did the following
    • Downloaded ESXi-6.0.0-20171003001-standard-customized.iso
    • Logfiles are in %LocalAppData%\Temp\ESXi-Customizer-PS-XXXX.log
  • Created a new virtual machine called ESX01 with powershell$ESXhostName = “ESX01”
    New-VM -Name $ESXhostName -Path “C:\Hyper-V\” -MemoryStartupBytes 8GB -Generation 1 -NewVHDPath “C:\Hyper-V\ESX01\Virtual Hard Disks\ESX01-OS.vhdx” -NewVHDSizeBytes 30GB
    Set-VM -Name $ESXhostName -ProcessorCount 2
    Set-VMDvdDrive -VMName $ESXhostName -Path “D:\ESX-in-Hyper-V\ESXi-6.0.0-20171003001-standard-customized.iso”Remove-VMNetworkAdapter -VMName $ESXhostNameAdd-VMNetworkAdapter -VMName $ESXhostName -IsLegacy $true -SwitchName “Virtual Switch (EXT)”Set-VMNetworkAdapter -VMName $ESXhostName -MacAddressSpoofing On
  • I did not use the Enable-NestVM.ps1 because i the release i’m running of Windows Server 2016 it can be done with the following Powershell commandSet-VMProcessor -VMName $ESXhostName -ExposeVirtualizationExtensions $true
  • Started the VM (Start-VM -VM $ESXhostName)
  • Tab to edit the boot.cfg by adding IgnoreHeadless=TRUE

  • The installation completed and the VM Rebooted and ejected the ISO automatically
  • Added the ignoreHeadless=TRUE to the boot options by pressing SHIFT+O
  • Logged in to the console by pressing F2, enabled ESXi Shell in troubleshoot options
  • ALT-F1 to bring up console, logged in and entered the following command: esxcfg-advcfg –set-kernel “TRUE” ignoreHeadless
  • Now the ESX Host VM can be restarted without the SHIFT-O option.

Here is the first public information regarding Azure Migrate:

Azure Migrate Announcement

Azure Migrate Home

 

2 Comments

Leave a Reply

Your email address will not be published.