Code Monkey home page Code Monkey logo

hypervswitch's Introduction

Hyper-V Switch

A simple GUI to enable or disable Hyper-V without uninstallation, allowing the use of other virtualisation solutions.

Website: http://unclassified.software/apps/hypervswitch


Update in 2022:

It seems like virtualisation technology has caught up on this topic. Current versions of VMware and VirtualBox should run just fine on Windows systems with Hyper-V enabled. This is documented in the FAQ of WSL (Windows Subsystem for Linux). I can verify this running 64-bit Windows and Linux guests in VMware 15.5.6 at the same time as a 64-bit Android system in the Android emulator that comes with Visual Studio and .NET MAUI. On Windows 10 22H2. Even on an Intel Core i7-3770 processor, one generation older than VMware’s original minimum requirements. So this tool is now probably obsolete for most users.


Hyper-V is Microsoft’s virtualisation solution that can be installed with Windows. Visual Studio device emulators for Windows 10 Mobile rely on Hyper-V for the guest system. While this may work in most cases, it has the major disadvantage that Hyper-V is running permanently when installed, unlike application hypervisors like VMware or VirtualBox. With the Hyper-V hypervisor already running, these other virtualisation solutions cannot work properly, for example 64-bit support is no longer available and performance is degraded because the VT-x CPU hardware extensions are not available inside a VM guest (which your entire Windows desktop will then be). When using device emulators for Android or other VM solutions for other work, Hyper-V interferes badly with those virtualisation applications.

The only option that Microsoft allows is uninstalling the Hyper-V role from Windows. This takes a short time and then restarts the system. It is also a bit hidden within the classic control panel in a lenghty list of features. When installing it again, you need to know which features to select.

Another solution is to configure the BCD boot configuration file to set a parameter that enables or disables Hyper-V on system startup. This parameter can be set with the command line tool bcdedit.exe and Administrator privileges. Again, this is not an intuitive way to work with multiple virtualisation solutions.

Hyper-V Switch automates the second described procedure, reading and writing the BCD file, displaying the current state and offering a one-click action to toggle Hyper-V and restart the computer. The restart is still required because to toggle Hyper-V usage, Windows needs to be booted either without permanent virtualisation or as a virtualised guest from the beginning. Also this information is only available (and can be changed) with Administrator privileges.

To avoid the UAC (Administrator) confirmation for every start of this program, you can create a scheduled task to run this program file, set no trigger, activate the “Highest privileges” option and then create a batch file to run something like schtasks /run /tn HyperVSwitchTaskName.

hypervswitch's People

Contributors

ygoe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hypervswitch's Issues

Does not work with Ryzen 3 2200G

It says Hyper V is active, however, not currently running so a restart may be pending

After several restarts, it is the same.

I was a able to start docker so Hyper V should be running

Restart code does not work properly

The restart code with ExitWindowsEx as in v1.0 worked fine in Windows 7. In Windows 10 is logs off the user but does not restart the computer. This has been changed in v1.1 but now it always fails with error 1314 (“A Required Privilege Is Not Held by the Client”). A fallback method (call shutdown.exe) is in place. This needs proper testing on all systems and cleaning up. Maybe only the current fallback method should be used everywhere.

Memory integrity toggle

It seems like on Windows 11, hypervisorlaunchtype gets ignored and Hyper-V stays on if memory integrity is enabled.

Is it possible to add an option to disable/enable it in the GUI for when the button is used?

I certainly don't want to leave memory integrity off when I switch back to having Hyper-V on.

Reboot with Shift-Click vs. Click

Hi Yves,
thanks for this nice utility!

Would it be possible to offer an option for the mouse click combination which leads to an immediate reboot? For example, I would prefer an exact opposite behaviour of the reboot mouse click combination without confirm and immediate automatic reboot (click) and the manually reboot method (shift click). This would be more safe in my opinion.

And just another issue: I would rename the tool to something like HyperVOnOff or HyperVSwitcher, because at the moment it is not possible to find it just with the expression HyperVSwitch because this is a functionality inside Hyper-V. If I had not write down the name I would not have found this download side again! :-)

Best regards,
Thorsten

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.