Skip to content

Instantly share code, notes, and snippets.

@viveknaskar
Created September 13, 2020 13:32
Show Gist options
  • Save viveknaskar/33585c082b48ab79a3f46f2aa1da29e7 to your computer and use it in GitHub Desktop.
Save viveknaskar/33585c082b48ab79a3f46f2aa1da29e7 to your computer and use it in GitHub Desktop.
Running Hyper-V in Windows Home Edition
pushd "%~dp0"
dir /b %SystemRoot%\servicing\Packages\*Hyper-V*.mum >hyper-v.txt
for /f %%i in ('findstr /i . hyper-v.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i"
del hyper-v.txt
Dism /online /enable-feature /featurename:Microsoft-Hyper-V -All /LimitAccess /ALL
pause
@viveknaskar
Copy link
Author

Hyper-V enables you to run Docker or Kubernetes in your local Windows system but unfortunately, it cannot be installed in Windows Home Edition.

But you can enable Hyper-V in Windows Home Edition, by following the few steps:

  1. To check if virtualization is supported on Windows 8 and above, run the following command on your Windows terminal or command prompt.
    systeminfo

If you see the following output, virtualization is supported on Windows.

 Hyper-V Requirements:   VM Monitor Mode Extensions: Yes
                          Virtualization Enabled In Firmware: Yes
                          Second Level Address Translation: Yes
                          Data Execution Prevention Available: Yes
  1. Open cmd in administrator mode and create copy the code and save it as vir.bat

  2. Run vir.bat and you would see logs like below:

image

  1. Press Y and reboot your system!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment