Enable Hyper-V on Windows 10/11 Home
Windows 10/11 Home edition doesn't come with Hyper-V by default, if you try to enable it from "Turn on Windows features" option from control panel you would not find Hyper-V listed.
This is because Hyper-V is a Professional and Enterprise edition feature, but it is possible to enable it from the command line.
Enable Hyper-V from command line
Step 1. Check Minimum System Requirements
Your PC should support Hardware virtualisation for Hyper-V to work.
Note: Many Windows 10 PCs—and all PCs that come preinstalled with Windows 11—already have virtualization enabled, so you may not need to follow these steps.
For Windows 10, run the followind command in the terminal
Get-ComputerInfo -property "HyperV*"
You should get the below output
This means that your PC supports hardware virtualisation.
Step 2. Enable Hyper-V
Create a file on your PC called "enable-hyperv.bat" and paste the following code in it.
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
Now run the batch file as an administrator, as shown below.
This will go through several steps and will take some time to complete. Though it might seem it's repeating the same steps, let it complete without interruption.
Once the process is complete, you should see the following message asking for confirmation to reboot your PC. Press Y to reboot.
Step 3. Check if Hyper-V is enabled
Open your teminal and run
optionalfeatures to see the status of Windows features. You should be able to see a Hyper-V feature listed now.
Starting Hyper-V Manager
Go to the start menu and search for Hyper-V, open the Hyper-V Manager.
From here you can start creating VMs, creating a new VM, or even creating a new VM template.
For a quick start, follow this guide to installing Ubuntu on Hyper-V