How to start Hyper-V Hypervisor and then end it?


  1. Posts : 69
    Windows 10 Pro x64
       #1

    How to start Hyper-V Hypervisor and then end it?


    Hi!

    I tried Windows Phone Emulator in Hyper-V.
    It reports that Hyper-V Hypervisor is not running error.

    So, How to start Hyper-V Hypervisor?
    And also - how to stop Hyper-V Hypervisor? I need it.

    No matter of solution, I accept also writing into Windows registry - I'm not newbie, but I never used Hyper-V.
    Q is for this: I need to be sure when is Hypervisor on or when is off - for controlling system.

    Miro
      My Computer


  2. Posts : 17,661
    Windows 10 Pro
       #2

    For Hyper-V virtual machines to run, hypervisor needs to be started before Windows kernel. This means that turning it on or off always requires a restart.

    You can add a boot menu option to turn hypervisor on when you need it by modifying Windows boot records. Open an elevated Command Prompt and enter following command to copy current boot configuration to boot menu entry Hypervisor ON:

    bcdedit /copy {current} /d "Hypervisor ON"

    This adds a new default boot configuration with identifier {default}.

    Next, make the new default boot configuration to turn hypervisor on with following command:

    bcdedit /set {default} hypervisorlaunchtype auto

    Default OS or boot configuration will be booted if user makes no selection in given timeframe, by default 30 seconds. As you would not want your new Hypervisor ON boot configuration being default, move it to last item on boot menu:

    bcdedit /displayorder {default} /addlast

    To be sure that your original boot configuration boots to Windows without hypervisor, enter following command:

    bcdedit /set {current} hypervisorlaunchtype off

    Now you will be shown a boot menu every time you boot computer. Select Windows 10 if you want to boot without hypervisor, or select Hypervisor ON when you need Hyper-V.

    Kari

    EDIT:

    Forgot to add screenshot of boot menu created with commands in this post:

    How to start Hyper-V Hypervisor and then end it?-image.png
    Last edited by Kari; 09 Jul 2018 at 06:03. Reason: Added a screenshot
      My Computer


  3. Posts : 15,480
    Windows10
       #3

    Kari said:
    For Hyper-V virtual machines to run, hypervisor needs to be started before Windows kernel. This means that turning it on or off always requires a restart.

    You can add a boot menu option to turn hypervisor on when you need it by modifying Windows boot records. Open an elevated Command Prompt and enter following command to copy current boot configuration to boot menu entry Hypervisor ON:

    bcdedit /copy {current} /d "Hypervisor ON"

    This adds a new default boot configuration with identifier {default}.

    Next, make the new default boot configuration to turn hypervisor on with following command:

    bcdedit /set {default} hypervisorlaunchtype auto

    Default OS or boot configuration will be booted if user makes no selection in given timeframe, by default 30 seconds. As you would not want your new Hypervisor ON boot configuration being default, move it to last item on boot menu:

    bcdedit /displayorder {default} /addlast

    To be sure that your original boot configuration boots to Windows without hypervisor, enter following command:

    bcdedit /set {current} hypervisorlaunchtype off

    Now you will be shown a boot menu every time you boot computer. Select Windows 10 if you want to boot without hypervisor, or select Hypervisor ON when you need Hyper-V.

    Kari

    EDIT:

    Forgot to add screenshot of boot menu created with commands in this post:

    How to start Hyper-V Hypervisor and then end it?-image.png
    Additionally, this allows users to use virtualbox or vmware by selecting "Windows 10" if desired.
      My Computer


  4. Posts : 17,661
    Windows 10 Pro
       #4

    cereberus said:
    Additionally, this allows users to use virtualbox or vmware by selecting "Windows 10" if desired.
    Yes. Booting with hypervisor off allows any type 2 hypervisor to run.

    Kari
      My Computer


  5. Posts : 69
    Windows 10 Pro x64
    Thread Starter
       #5

    Thank you all.
    This I needed.

    Miro
      My Computer


  6. Posts : 1
    Win 10 Pro
       #6

    Kari said:
    For Hyper-V virtual machines to run, hypervisor needs to be started before Windows kernel. This means that turning it on or off always requires a restart.

    You can add a boot menu option to turn hypervisor on when you need it by modifying Windows boot records. Open an elevated Command Prompt and enter following command to copy current boot configuration to boot menu entry Hypervisor ON:

    bcdedit /copy {current} /d "Hypervisor ON"

    This adds a new default boot configuration with identifier {default}.

    Next, make the new default boot configuration to turn hypervisor on with following command:

    bcdedit /set {default} hypervisorlaunchtype auto

    Default OS or boot configuration will be booted if user makes no selection in given timeframe, by default 30 seconds. As you would not want your new Hypervisor ON boot configuration being default, move it to last item on boot menu:

    bcdedit /displayorder {default} /addlast

    To be sure that your original boot configuration boots to Windows without hypervisor, enter following command:

    bcdedit /set {current} hypervisorlaunchtype off

    Now you will be shown a boot menu every time you boot computer. Select Windows 10 if you want to boot without hypervisor, or select Hypervisor ON when you need Hyper-V.

    Kari

    EDIT:

    Forgot to add screenshot of boot menu created with commands in this post:

    How to start Hyper-V Hypervisor and then end it?-image.png
    I am having some kind of a similar issue. Though my issue is, I want to turn off HyperV completely. All was fine in Windows 10 build 1509 and I was able to turn on or off hyperV in windows features without issue.

    Problem started when I updated to anniversary update. I was unable to turn it off; freezing the pc on desktop at start up when turned off. In other words, HyperV services in Windows features needed to be on always for my pc not to freeze. Hence unable to use VM or Android as it cause some kind of conflict resulting in bluescreen.

    I managed to find out that using bcdedit I turned hyperV to off as it was on auto. Now windows is able to load after 2 or 3 hard reset...

    today I tried setting hyperV on auto again on bcdedit, and it booted normally without hanging -_-'
    Seems the ans is in your proposed solution...or if you have any clue of the root cause of this ....

    will try out some experiments to see and successful solution...

    kindly let me know if anyone had similar issue
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 08:00.
Find Us




Windows 10 Forums