Solved

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

Posted on 2014-10-19
9
882 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
  • 5
  • 3
9 Comments
 
LVL 57

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
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Harden RDP Server 4 30
VMWARE heartbeat 2 49
Delete Public Folder DB after migration 4 20
sql server service accounts 4 26
Veeam Backup & Replication has added a new integration – Veeam Backup for Microsoft Office 365.  In this blog, we will discuss how you can benefit from Office 365 email backup with the Veeam’s new product and try to shed some light on the needs and …
Is your company's data protection keeping pace with virtualization? Here are 7 dynamic ways to adapt to rapid breakthroughs in technology.
This tutorial will walk an individual through the process of configuring basic necessities in order to use the 2010 version of Data Protection Manager. These include storage, agents, and protection jobs. Launch Data Protection Manager from the deskt…
How to install and configure Citrix XenApp 6.5 - Part 1. In this video tutorial we have explained step by step installation of Citrix XenApp 6.5 Server on Windows Server 2008 R2 is explained in this video. We have explained the difference between…

777 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