How to quickly disable hyper-v to be able to run VB machines

Discussions related to using VirtualBox on Windows hosts.
Locked
moeen49
Posts: 3
Joined: 3. May 2011, 02:44
Primary OS: MS Windows 2008
VBox Version: OSE self-compiled
Guest OSses: Windows 2008

How to quickly disable hyper-v to be able to run VB machines

Post by moeen49 »

Hi,

I have VB on a windows 2008 r2 server. It is working perfectly fine.

When I activate Hyper-V role, VB can’t run and it complains about not being able to access to hardware virtualization.

At this point I have to activate and deactivate hyper-v role (needs restart – long process) to be able to switch between HyperV and VB.

Is there any quicker way to temporarily disable Hyper-V, so I can run VB and then enable Hyper-V again?

I have tried to stop the hyper-v in its console, it didn't help.

Thank you,
vbox4me2
Volunteer
Posts: 5218
Joined: 21. Nov 2008, 20:27
Location: Rotterdam
Contact:

Re: How to quickly disable hyper-v to be able to run VB machines

Post by vbox4me2 »

You might be able to do this but after about 30 switches between the 2, hyperv can crash the Host because of a registry mess-up, so make a choice between the 2.
moeen49
Posts: 3
Joined: 3. May 2011, 02:44
Primary OS: MS Windows 2008
VBox Version: OSE self-compiled
Guest OSses: Windows 2008

Re: How to quickly disable hyper-v to be able to run VB machines

Post by moeen49 »

vbox4me2 wrote:You might be able to do this but after about 30 switches between the 2, hyperv can crash the Host because of a registry mess-up, so make a choice between the 2.
And that is why I am asking this question. Is the any better temporary way of disabling hyper-v?

Thanks,
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: How to quickly disable hyper-v to be able to run VB machines

Post by Sasquatch »

No, and even if there was, you might get the same result noted above: crashes because of Hyper-V messing things up. Make up your mind, use Hyper-V or VB, don't mix and match. You can't run KVM and Xen at the same time on Linux either and I'm pretty sure they conflict each other in packages.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Björn König
Posts: 3
Joined: 21. Sep 2012, 05:04

Re: How to quickly disable hyper-v to be able to run VB mach

Post by Björn König »

You can disable Hyper-V without deinstalling it. Start a command prompt with administrator rights and execute the following command:

Code: Select all

bcdedit /set hypervisorlaunchtype off
Reboot windows. Hyper-V is disabled now. If you want to enable it, then run this command:

Code: Select all

bcdedit /set hypervisorlaunchtype auto
and reboot again.

This solution still needs a reboot, but you don't mess up your registry and don't lose configuration settings.

I think this issue will become a topic because Windows 8 Pro edition provides the Hyper-V feature.

Best regards
Björn
BillG
Volunteer
Posts: 5102
Joined: 19. Sep 2009, 04:44
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows 10,7 and earlier
Location: Sydney, Australia

Re: How to quickly disable hyper-v to be able to run VB mach

Post by BillG »

Or you can prevent the hypervisor from loading by changing hypervisorlaunchtype from auto to no. That is the official Microsoft method.
Bill
Johannnz
Posts: 1
Joined: 26. Apr 2015, 23:53

Re: How to quickly disable hyper-v to be able to run VB mach

Post by Johannnz »

Björn König wrote:You can disable Hyper-V without deinstalling it. Start a command prompt with administrator rights and execute the following command:

Code: Select all

bcdedit /set hypervisorlaunchtype off
Reboot windows. Hyper-V is disabled now. If you want to enable it, then run this command:

Code: Select all

bcdedit /set hypervisorlaunchtype auto
and reboot again.

This solution still needs a reboot, but you don't mess up your registry and don't lose configuration settings.

I think this issue will become a topic because Windows 8 Pro edition provides the Hyper-V feature.

Best regards
Björn

It Worked very well for me, I have been trying a lot of things, but this just this worked.. I really appreciate your help.

Regards
Johan

It Worked very well for me, I have been trying a lot of things, but this just this worked.. I really appreciate your help.
Locked