Link to home
Start Free TrialLog in
Avatar of A_AmericanELectric
A_AmericanELectricFlag for United States of America

asked on

Rebuilding: New Hyper-V Host VHD(X)s Not Working

I'm upgrading and replacing hardware/ software with a new Hyper-V host and I have a new, 750GB RAID 5 Vol called "GuestVol" .
I have a couple of VMs that I really want to reuse so I copied their VHDs from the old RAID1 Vol (which is scheduled to be removed) over to GuestVol. I would like to go with all Gen 2 VMs but I know that Gen 2 does not support .VHD so I used disk edit to convert to VHDX but I keep getting the same error:
Boot Failed EFI SCSI Device
I know if this were a physical disk I could just boot to BIOS and turn off the EFI but thats not the case here.
Am I stuck with GEN 1 or is there a solution?
ASKER CERTIFIED SOLUTION
Avatar of Cliff Galiher
Cliff Galiher
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of A_AmericanELectric

ASKER

Thanks Cliff. Please look back on that last thread before I close it.
Do you still have access to the old virtual machine, including the necessary configuration and VHD files? If so have a look at this tool which can convert your Gen 1 VM to a Gen 2 VM: https://code.msdn.microsoft.com/windowsdesktop/Convert-VMGeneration-81ddafa2

Note that you'll obviously need to run this script on a 2012 R2 Hyper-V host.

If the old host is running 2008 R2 and below, please be advised that you cannot simply export the VM then import the VM into a 2012 R2 Hyper-V host any more as Microsoft have made some changes to the WMI namespace. Here's more information if you're curious as to why: http://blogs.technet.com/b/rmilne/archive/2013/10/22/windows-hyper-v-2012-amp-8-1-hyper-v-did-not-find-virtual-machine-to-import.aspx
I think I can get this. I placed the script in a folder- C:\script

I have confirmed that it will run Gen 1

PS C:\script>Convert-VMGeneration.ps1 -VMName "APLUSSERVER-3" -Path E:\APLUSSERVER-3 -VHDXSizeGB 80

So this will give me a APLUSSERVER-3 Gen2 in the same directory?
It should duplicate the VM and append (Generation 2) to the files and folders of the new Gen2 VM.

Is the OS of the VM that you're converting running Windows 2012, 2012 R2, Windows 8 or Windows 8.1? If not then the VM won't work as Generation 2 VMs must be running these OS's.

Here's why 2008 R2 and Windows 7 VMs aren't supported as Gen2 VMs:
Why are 64-bit versions of Windows Server 2008 R2 and Windows 7 not supported as generation 2 guest operating systems?

Although Windows Server 2008 R2 and Windows 7 support UEFI, they depend on a programmable interrupt controller (PIC), which is not present in generation 2 virtual machine hardware.
http://technet.microsoft.com/en-us/library/dn282285.aspx
2012 R2
There is a little bug in the script.
I just got back in the next day to find powershell still on "preparing image" .
I had to hit the enter key while on the PS window to get it to go to "applying image"

Do you happen to know how long it usually takes with good hardware resources?
Please check this out guys
ID: 28541193
Depends on how large the VM is. I didn't have to wait too long for a 2012 R2 VM with a 80GB VHD file.

Please check this out guys
ID: 28541193
Sorry but what is this ID number for specifically?