Error message “cannot enable hyper-v service" on Windows 10
Published: 2024-06-04 02:16:07

[Docker](https://docker.com) is a popular tool for building, running, and shipping containerized applications. However, some users may encounter the error message "cannot enable hyper-v service" when trying to install Docker Desktop on Windows 10. This error message can be caused by a number of factors, but it can usually be fixed by following a few simple steps.


![Image1](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/aldz3ohekxjxqe9q8pp9.png)



In this blog post, we will walk you through the steps on how to fix the "cannot enable hyper-v service" error. We will also provide some additional tips that may help you avoid this error in the future.

## Step 1: Enable virtualization in your BIOS


The first step is to enable virtualization in your BIOS. This is usually done by pressing a specific key during startup, such as Esc, Delete, or F10. Once you're in the BIOS, look for a setting called "Virtualization" or "VT-x" and enable it.

Note that Windows 10 Home users currently need to upgrade to Windows 10 Pro to allow virtualization.

## Step 2: Enable Hyper-V in Windows Features


![Image2](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/37qdbf2p3ty3w2bkytst.png)



Once you have enabled virtualization in your BIOS, you need to enable Hyper-V in Windows Features. To do this, open the Control Panel and go to Programs and Features > Turn Windows features on or off. Check the box next to "Hyper-V" and click OK.

## Step 3: Restart your computer

Once you have enabled Hyper-V in Windows Features, you need to restart your computer. This will allow the changes to take effect.

## Step 4: Run the command as an administrator

The command ```bcdedit /set hypervisorlaunchtype auto``` will set the hypervisor to launch automatically at startup. This can be helpful if you are still getting the error message "cannot enable hyper-v service" after following the previous steps.

To run this command, open a Command Prompt window as an administrator. Then, type the following command and press Enter:

```
bcdedit /set hypervisorlaunchtype auto
````

## Step 5: Make sure that your drivers are up to date

Outdated drivers can sometimes cause problems with Hyper-V. You can update your drivers by going to the website of your computer manufacturer and downloading the latest drivers for your motherboard and processor.

## Step 6: Disable any third-party security software

Some third-party security software can interfere with Hyper-V. You can temporarily disable your security software to see if that resolves the issue.

## Step 7: Reinstall Docker Desktop

If you have tried all of the previous steps and you are still getting the error message "cannot enable hyper-v service", you can try reinstalling Docker Desktop. To do this, uninstall Docker Desktop from your computer and then download and install the latest version from the Docker website.

## Additional tips

If you are still having trouble, you can try posting your question on the [Docker forums](https://forums.docker.com) or asking for help on the [Docker community Slack](https://communityinviter.com/apps/dockercommunity/docker-community) channel.

You can also try using a different virtualization platform, such as VirtualBox or VMware. If you are using a laptop, make sure that you are not running on battery power. Hyper-V may not be available when running on battery power.
Conclusion

The error message "cannot enable hyper-v service" can be a frustrating problem, but it is usually easy to fix. By following the steps in this blog post, you should be able to get Docker Desktop up and running on your Windows 10 computer without any problems.