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

Discussions related to using VirtualBox on Windows hosts.

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

Postby moeen49 » 3. May 2011, 02:53

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,
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

Postby vbox4me2 » 3. May 2011, 11:58

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.
vbox4me2
Volunteer
 
Posts: 5218
Joined: 21. Nov 2008, 20:27
Location: Rotterdam

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

Postby moeen49 » 3. May 2011, 22:44

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,
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

Postby Sasquatch » 3. May 2011, 23:09

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.
Sasquatch
Volunteer
 
Posts: 17800
Joined: 17. Mar 2008, 13:41
Location: /dev/random
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux

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

Postby Björn König » 21. Sep 2012, 05:10

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

Code: Select all   Expand viewCollapse view
bcdedit /set hypervisorlaunchtype off

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

Code: Select all   Expand viewCollapse view
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
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

Postby BillG » 21. Sep 2012, 08:11

Or you can prevent the hypervisor from loading by changing hypervisorlaunchtype from auto to no. That is the official Microsoft method.
Bill
BillG
Volunteer
 
Posts: 3251
Joined: 19. Sep 2009, 04:44
Location: Sydney, Australia
Primary OS: MS Windows other
VBox Version: PUEL
Guest OSses: Win 7 Win8.1 Win10 WinServer

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

Postby Johannnz » 26. Apr 2015, 23:56

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   Expand viewCollapse view
bcdedit /set hypervisorlaunchtype off

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

Code: Select all   Expand viewCollapse view
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.
Johannnz
 
Posts: 1
Joined: 26. Apr 2015, 23:53


Return to VirtualBox on Windows Hosts

Who is online

Users browsing this forum: Bing [Bot] and 29 guests