Solved

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

Posted on 2014-10-19
9
917 Views
Last Modified: 2014-11-12
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?
0
Comment
Question by:A_AmericanELectric
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
9 Comments
 
LVL 58

Accepted Solution

by:
Cliff Galiher earned 500 total points
ID: 40390890
You can't just change a disk to VHDX and boot it in a gen2 VM. The disk won't have the necessary UEFI boot code, and a ton of internal integration code in the OS besides. If you want Gen2, you have to install the OS fresh.
0
 

Author Closing Comment

by:A_AmericanELectric
ID: 40390895
Thanks Cliff. Please look back on that last thread before I close it.
0
 
LVL 24

Expert Comment

by:VB ITS
ID: 40390918
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
0
Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

 

Author Comment

by:A_AmericanELectric
ID: 40391155
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?
0
 
LVL 24

Expert Comment

by:VB ITS
ID: 40391164
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
0
 

Author Comment

by:A_AmericanELectric
ID: 40391171
2012 R2
0
 

Author Comment

by:A_AmericanELectric
ID: 40393038
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?
0
 

Author Comment

by:A_AmericanELectric
ID: 40393462
Please check this out guys
ID: 28541193
0
 
LVL 24

Expert Comment

by:VB ITS
ID: 40393502
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?
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

If your vDisk VHD file gets deleted from the image store accidentally or on purpose, you won't be able to remove the vDisk from the PVS console. There is a known workaround that is solid.
In this Micro Tutorial viewers will learn how they can get their files copied out from their unbootable system without need to use recovery services. As an example non-bootable Windows 2012R2 installation is used which has boot problems.
This tutorial will walk an individual through the process of installing the necessary services and then configuring a Windows Server 2012 system as an iSCSI target. To install the necessary roles, go to Server Manager, and select Add Roles and Featu…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question