locked
Cannot change generation 2 vm's boot order RRS feed

Answers

  • Hi Robert, did you perchance do the "fix" to make Hyper-V manageable on via windows 10 machine?

    the fix in question is the mofcomp WindowsVirtualization.V2.mof that makes the server manageable from Windows 10 but breaks Gen 2.

    Tuesday, July 5, 2016 8:40 PM
  • Yes. Reinstalling Hyper-V role solved this issue. Thank you all for the help.

    My LinkedIn profile

    Wednesday, July 6, 2016 7:13 AM

All replies

  • Did you try to stop the VM, disable secure boot, boot the VM and stop it, enable secure boot again and check that the HDD,DVD and network are present. 
    Tuesday, July 5, 2016 9:55 AM
  • Thank you for the reply. I tried it but with no luck.

    My LinkedIn profile

    Tuesday, July 5, 2016 10:09 AM
  • can you boot the VM properly 
    are you able to use bcdedit /enum firmware inside de VM ?
    Tuesday, July 5, 2016 10:30 AM
  • PS C:\Users\Administrator> bcdedit /enum

    Windows Boot Manager
    --------------------
    identifier              {bootmgr}
    device                  partition=\Device\HarddiskVolume2
    path                    \EFI\Microsoft\Boot\bootmgfw.efi
    description             Windows Boot Manager
    locale                  en-US
    inherit                 {globalsettings}
    bootshutdowndisabled    Yes
    default                 {current}
    resumeobject            {e03bd4f1-3e49-11e6-ac2f-a3d2ec0238a7}
    displayorder            {current}
    toolsdisplayorder       {memdiag}
    timeout                 30

    Windows Boot Loader
    -------------------
    identifier              {current}
    device                  partition=C:
    path                    \Windows\system32\winload.efi
    description             Windows Server 2012 R2
    locale                  en-US
    inherit                 {bootloadersettings}
    recoverysequence        {e03bd4f3-3e49-11e6-ac2f-a3d2ec0238a7}
    recoveryenabled         Yes
    isolatedcontext         Yes
    allowedinmemorysettings 0x15000075
    osdevice                partition=C:
    systemroot              \Windows
    resumeobject            {e03bd4f1-3e49-11e6-ac2f-a3d2ec0238a7}
    nx                      OptOut
    PS C:\Users\Administrator>

    I can boot VMs properly but I'm not able to change boot priority. The same for generation 1 VMs works as expected. I think it is something with Hyper-V host's configuration because it also doesn't work for new VMs.


    My LinkedIn profile

    Tuesday, July 5, 2016 11:02 AM
  • It's strange
    Did you copy the VHD from a generation 1 VM ? 

    Tuesday, July 5, 2016 11:17 AM
  • It also doesn't work for new VMs created with new disks.

    My LinkedIn profile


    Tuesday, July 5, 2016 11:21 AM
  • On the physical server, do you use Legacy BIOS or UEFI ? 
    Tuesday, July 5, 2016 11:53 AM
  • Physical host is running UEFI.

    My LinkedIn profile

    Tuesday, July 5, 2016 3:38 PM
  • In the event viewer is there anything under applications and services Microsoft windows hyper-v-XXX

    Did you try to restart the host ? 

    Is it an HP/Dell ? 

    Tuesday, July 5, 2016 6:48 PM
  • This is HP DL380 G9. I tried to restart host but with no luck. Event Viewer doesn't show any errors or warnings related to this issue.

    My LinkedIn profile

    Tuesday, July 5, 2016 6:50 PM
  • "it also doesn't work for new VMs."

    So when you create a VM, by default it is created without a DVD.  If you go back into the settings of that VM and add a DVD, does an entry for the DVD get placed into the boot order?

    If not, then it sounds like something is really hosed and the best solution, even though you do not want to do it, would be to rebuild.  Even if it were able to get 'fixed', would you ever be confident that something else was not wrong with the installation?


    . : | : . : | : . tim

    Tuesday, July 5, 2016 7:12 PM
  • Tim, thanks for the reply. As you mentioned, I can add DVD drive but it doesn't appear in boot order. I also think that this issue is related to the operating system installed on the physical server.

    If you don't have any other ideas, I will try to reinstall Hyper-V role tomorrow.


    My LinkedIn profile

    Tuesday, July 5, 2016 7:20 PM
  • Hi Robert, did you perchance do the "fix" to make Hyper-V manageable on via windows 10 machine?

    the fix in question is the mofcomp WindowsVirtualization.V2.mof that makes the server manageable from Windows 10 but breaks Gen 2.

    Tuesday, July 5, 2016 8:40 PM
  • Thank you for the reply. It appears that one of my team mates has done it:

    MOFCOMP %SYSTEMROOT%\System32\WindowsVirtualization.V2.mof

    I have found this thread: https://social.technet.microsoft.com/Forums/en-US/1cc9115d-5fce-4a64-a90f-d3fdc008b861/windows-10-build-10240-managing-hyperv-on-2012-r2-datacenter-cannot-connect. So, I will reinstall Hyper-V role today and then check if everything works correctly.


    My LinkedIn profile

    Wednesday, July 6, 2016 6:15 AM
  • Yes. Reinstalling Hyper-V role solved this issue. Thank you all for the help.

    My LinkedIn profile

    Wednesday, July 6, 2016 7:13 AM
  • Thank you for the reply. It appears that one of my team mates has done it:

    MOFCOMP %SYSTEMROOT%\System32\WindowsVirtualization.V2.mof

    I have found this thread: https://social.technet.microsoft.com/Forums/en-US/1cc9115d-5fce-4a64-a90f-d3fdc008b861/windows-10-build-10240-managing-hyperv-on-2012-r2-datacenter-cannot-connect. So, I will reinstall Hyper-V role today and then check if everything works correctly.


    My LinkedIn profile

    Hi I know this is an old thread but i am facing the same issue. I ran the MOFCOMP to fix my Windows 10 Connection to Hyper-V but now I don't see the boot orders in Gen2 on My Hyper-V 2016 Server. Is there any way to fix this without having to reinstall the role? because my firewall / gateway is on this Hyper-V Server and if i remove the role i am afraid i'll lose connection to the VMs and the server itself including all other workstations so no one would be able to access or remote in. so Reinstallation is out of question for me

    MCITP:Server Administration|MCTS: Server 2008| MCSE: Server 2003| MCSA + M: Exchange Server 2003| MCP: Windows XP|

    Thursday, November 1, 2018 11:11 AM
  • Can anyone tell me how to reinstall Hyper-V 
    Monday, February 10, 2020 2:15 AM
  • Using the built-in Server Manager, you simply select the Hyper-V role and select uninstall.  Reboot the system.  Then, using the Server Manager, select the Hyper-V role to install.  Reboot the system.


    tim

    Monday, February 10, 2020 3:44 PM
  • May I know, if i reinstall the Hyper-V role, does it impact the cluster configuration. For your information, my hyperv host is configured with failover cluster manager. How I can reinstall the roles in safe way? This is because most of our virtual machine inside hyperv host are production server. 


    sha

    Thursday, July 23, 2020 6:31 AM