Hyper-V – Convert Guest VM from Gen1 to Gen2

Last Updated: October 16th, 2024/Published On: October 8th, 2024/By /Views: 26/

Hyper-V – Convert Guest from Gen 1 to Gen 2

If your guest VM was created as a Gen 1, you’ll be unable to upgrade to Windows 11 unless you convert it to a Gen 2 VM.

*Make sure you have a current backup!

  1. Convert disk from MBR to GPT
    1. Launch the Hyper-V host console that contains the virtual machine that you would like to convert from Generation 1 to Generation 2.

    2. Log in to the VM.

    3. Right-click on the Windows Start icon, and select Powershell (Admin).

    4. Enter the following command and wait for it to finish.

      mbr2gpt.exe /convert /allowFullOS
      *you can ignore the error that says “Failed to update ReAgent.xml”
    5. Shutdown the guest
  2. Create new VM
    1. Create a new VM and select Gen 2 during the creation process.
    2. Attach the disk that the Gen 1 VM was using instead of creating a new one.
    3. Open the settings of the new VM you just created and, under security, enable Secure Boot and TPM.
    4. Make sure all the other settings are appropriate for your VM.
  3. Launch the new VM and make sure it comes online before deleting the old one.
    1. You’ll see the reconfiguration screen upon first boot and the system may need to reboot a couple times.

 

Categories: Blog, Product Specific