Docker ошибка hyper v

I’ve been encountering this issue, and as far as I can tell, it has something to do with how Windows starts (or doesn’t start) either the Hyper-V service, its hypervisor, or the Windows Hypervisor Platform. I can’t precisely say when this has started happening, but my best guess is 2 to 3 weeks ago, while I was still using Docker 3.6. I use Docker, VMWare, and WSL. The behavior of the virtualization services is erratic, to say the least, and not necessarily Docker’s fault, but I’m writing this to try and help investigating.

I’ve witnessed the following scenarios, all starting with all applications off.

  1. Docker says it can’t enable the Hyper-V service. I start a WSL window, then VMWare, successfuly. Then I try starting Docker, now it works (simultaneously with WSL+VMWare).
  2. Docker starts fine out of the blue. VMWare suddenly doesn’t start virtual machines. WSL works.
  3. Today, VMWare started fine. Docker didn’t start the first time with the usual error message. After a few minutes, I tried again, and it worked.

My best guess is that a Windows update changed something about how one of the necessary virtualization services actually fires up (or doesn’t), and it’s borking Docker and VMWare.

enter image description hereI am trying to run the docker container but I am getting below error message as Hyper-V and Virtualization is not enabled. But I have enabled Hyper-V and virtualization. I have made the Hyper-V set-up through Bios as well as through the power shell command even though getting this below error. Kindly help me!

Error message :

C:Program FilesDockerDockerResourcesbindocker.exe: Error
response from daemon: failed to start service utility VM
(createreadwrite): CreateComputeSystem
190e30a0debfc2e6f9eeedd4b1732593f80b2b478210faa5f92f8bc69c3a5686_svm:
No hypervisor is present on this system.

[Event Detail: Cannot start
Hyper-V Container
‘190e30a0debfc2e6f9eeedd4b1732593f80b2b478210faa5f92f8bc69c3a5686_svm’
since the hypervisor is not running in the host. Provider:
17103e3f-3c6e-4677-bb17-3b267eb5be57 EventID: 12001]

(extra info: {«SystemType»:»container»,»Name»:»190e30a0debfc2e6f9eeedd4b1732593f80b2b478210faa5f92f8bc69c3a5686_svm»,»Layers»:null,»HvPartition»:true,»HvRuntime»:{«ImagePath»:»C:Program
FilesLinuxContainers»,»LinuxInitrdFile»:»initrd.img»,»LinuxKernelFile»:»kernel»},»ContainerType»:»linux»,»TerminateOnLastHandleClosed»:true}).

See ‘C:Program FilesDockerDockerResourcesbindocker.exe run
—help’.

asked Jun 1, 2019 at 7:25

santhosh kannan's user avatar

1

In my case, I needed also an extra step which enabling the virtualization from the bios.

  • Open the bios
  • going to security => virtualization
  • Enable the two options (see image 01)
  • Restart

Make sure that the virtualization is enabled by running the task manager => Performance => down you should see virtualization enabled (see image 02).

Enable the virtualization from the bios
Make sure that the virtualization is enabled from the task manager

Ps: Check also if the hyper-V and container are enabled from control panel => Programs and features => Turn Windows Features on or off

Enable the Hyper-V and Container From control panel

Make sure to enable all those features pointed by the arrow in the image

All things you need enable for docker

Also make sure to switch to Linux container by seeing this in the docker shortcut in the task manager bar (if you see this result image it means is switched on :)). This to prevent futures problems like in this link.

Switch to Linux container

And then restart your system and restart the docker too.
Hope it will help.

answered May 19, 2020 at 12:09

DINA TAKLIT's user avatar

DINA TAKLITDINA TAKLIT

6,79110 gold badges69 silver badges73 bronze badges

As suggested from the support in a chat I tried to start Hyper-V from the Hyper-V-Manager and this failed. I found a solution for this following this post: https://superuser.com/a/1160635/777303

Basically running bcdedit from the cmd in admin mode showed me that hypervisorlaunchtype was set to off.

Running bcdedit /set hypervisorlaunchtype auto and rebooting solved the problem for me.

answered Mar 8, 2020 at 11:58

Gabriel Weidmann's user avatar

answered Jun 30, 2020 at 19:10

Eric Sjöström's user avatar

Try this:

  • Go to turn windows features on or off (if you write optionalfeatures in cmd you got that files)

  • There search for a file with the name windows hypervisor platform

  • Enable it.

  • Reboot.

answered Jun 1, 2019 at 9:34

Schwarz54's user avatar

Schwarz54Schwarz54

9441 gold badge9 silver badges18 bronze badges

2

  • Go to

Turn Windows features on or off

  • Enable

Containers

  • Reboot

answered Sep 29, 2019 at 10:08

Hamid Reza Sharifi's user avatar

by Tashreef Shareef

Tashreef Shareef is a software developer turned tech writer. He discovered his interest in technology after reading a tech magazine accidentally. Now he writes about everything tech from… read more


Updated on August 26, 2020

Docker Desktop is a software application for Windows machines that allows the developers to build production-ready container applications easily. However, some users have reported Hyper-V and container features are not enabled error while installing Docker Desktop in the computer. You can find similar issues in the Reddit community as well.

Does anyone have any ideas how to enable Hyper-v and containers on Windows 10 Pro 64bit with compatible hardware (according to msinfo32) and all requirements met ie BIOS virtualisation enabled, >4GB RAM and so on. Despite all this none of the commands in powershell or cmd succeed.They complain that one or more parent features must be enabled. There is no error when enabling via Windows features but after the restart Hyper-v regresses to disabled. 

If you are troubled by this error, here are a couple of troubleshooting tips to help you fix Hyper-v and containers features are not enabled error in Windows computer.

How to fix Hyper-v and containers features are not enabled

1. Enable Virtualization in BIOS for Hyper-V

  1. If you haven’t already, you need to enable Hyper-V in BIOS before Docker can install and enable containers features.
  2. Shutdown your computer if it is on.
  3. Restart the computer and press F2 to open the BIOS setup. The function key can be different depending on the motherboard maker.
  4. Use the right-arrow key to navigate to the Advanced tab.
  5. Choose the Virtualization Technology and hit enter.
  6. Select Enable and hit Enter again.
  7. Save the changes (F10) and exit.
  8. Try to run Docker and check if the Hyper-v and containers features are not enabled error is resolved.

How to use Windows Sandbox and VirtualBox VMs simultaneously


2. Enable Hyper-V in Windows 10

  1. If the issue persists, you may have to manually enable Hyper-V virtualization feature in Windows 10.
  2. Press Windows Key + R to open Run.
  3. Type control and click OK.
  4. In the Control Panel, go to Programs > Programs and Features.
  5. From the left pane, click on Turn Windows Features on or off.
    Hyper-v and containers features are not enabled
  6. Select Hyper-V in the Windows Features window.
  7. Click OK to apply the changes.
  8. Once the installation is completed, you are prompted to restart the computer.

Enable Hyper-V with CMD and DISM

  1. Alternatively, you can also use DISM and PowerShell command to enable Hyper-V.
  2. Right-click on Start and select PowerShell (admin).Hyper-v and containers features are not enabled
  3. In the PowerShell window, type the following command and hit enter.
    DISM /Online /Enable-Feature /All /FeatureName:Microsoft-Hyper-V
  4. Close the PowerShell window and launch Docker. Check for any improvements.

3. Try to Remove and Reinstall Hyper-V

  1. If you have already installed Hyper-V, it is possible that the installation may be corrupt resulting in Hyper-v and containers features are not enabled error. Try to remove and install Hyper-V manually to see if that helps.
  2. Right-click on Start and select Windows PowerShell (Admin).
    Hyper-v and containers features are not enabled
  3. In the PowerShell window type the following command and hit enter one by one.
    Disable-WindowsOptionalFeature -FeatureName microsoft-hyper-v -online restart-computer
    Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All restart-computer
    Enable-WindowsOptionalFeature -Online -FeatureName Containers -All
  4. Check for any improvements.
  5. If the issue persists, try to run the following command in the PowerShell and check if it helps.
    MOFCOMP %SYSTEMROOT%System32WindowsVirtualization.V2.mof

RELATED STORIES YOU MAY LIKE:

  • The best virtual machines for Windows 10 to use today
  • How to run 16-bit apps in Windows 10 64-bit [STEP-BY-STEP GUIDE]
  • Windows Virtual Desktop might arrive by the end of the year

newsletter icon

Docker

  • By —Eric Sjöström Jennerstrand
  • Posted on 2020-06-302021-09-09
  • Posted in Docker

Quick Read

  1. Open programs in Windows Settings.
  2. Click program and functions.
  3. Click Activate or deactivate Windows-functions.
  4. Deselect Hyper-V and all child nodes.
  5. Restart computer.
  6. Select Hyper-V and all child nodes.
  7. Restart computer.

The error “An Error Occurred – Cannot Enable Hyper-V Service” is a common error on Windows. And if you are unlucky, like me. This can occur right after installing Docker on windows for the first time (Docker for Windows). Or when you update Docker in some cases. Lucky for you, this can be resolved easily with these 7 simple steps and a few restarts (I know, restarts suck, but just this once)!

An Error Occurred – Cannot Enable Hyper-V Service

Firstly, got to add or remove programs in Windows, and click “Program and functions”, as shown below.

Windows Settings - Apps and functions - Cannot Enable Hyper-V Service

Secondly, at this screen, click Activate or deactivate widows-functions.

Window: Programs and Functions - Cannot Enable Hyper-V Service

If you take a look at the screen below. And look for the Hyper-V section and make sure it’s selected. And now you should make sure all nodes and child nodes is selected, otherwise Hyper-V might not be enabled properly and this last step might not work as expected.

  • If Hyper-V is selected, you should deselect it and all child nodes and restart your computer, go back to the same place and select it again with all child nodes and restart your computer. This should make it work!
  • If Hyper-V is not selected, select it again with all child nodes and restart the computer one last time.

Activate or Deactivate windows-functions - Cannot Enable Hyper-V Service

Conclusion

An Error Occurred – Cannot Enable Hyper-V Service is a common error. But easy to fix in most cases.

  1. Open programs in Windows Settings.
  2. Click program and functions.
  3. Click Activate or deactivate Windows-functions.
  4. Deselect Hyper-V and all child nodes.
  5. Restart computer.
  6. Select Hyper-V and all child nodes.
  7. Restart computer.

If it still dosen’t work, you can try this.

Need some help with your C# coding?

Checkout these simple easy to read articles about foreach loops, for loops and reverse for loops if you want som extra reading:
https://www.jennerstrand.se/foreach-loop-in-c-sharp-simple-use.
https://www.jennerstrand.se/for-loop-in-c-sharp-simple.
https://www.jennerstrand.se/reverse-for-loop-in-c-sharp.

Ajeet Raina Follow
Ajeet Singh Raina is a Docker Captain, Community Leader and Arm Ambassador. He is a founder of Collabnix blogging site and has authored more than 500+ blogs on Docker, Kubernetes and Cloud-Native Technology. He runs a community Slack of 8300+ members and has over 23,000 followers over LinkedIn. You can follow him on Twitter(@ajeetsraina).


15th March 2023


4 min read

If you encounter an error while starting Docker Desktop for Windows, there are a few steps you can take to diagnose and fix the issue. Here are some common causes of the “Docker failed to start” error and their corresponding solutions:

Hyper-V is not enabled or not installed

Docker Desktop for Windows requires Hyper-V to run. If Hyper-V is not installed or not enabled on your system, you will encounter a “Docker failed to start” error.

To enable Hyper-V, follow the below steps:

  • Open the Control Panel on your Windows system.
  • Click on “Programs and Features” and then click on “Turn Windows features on or off”.
  • Scroll down the list of features and look for the “Hyper-V” option. Check the box next to it to enable Hyper-V.
  • Click on “OK” to save your changes.
  • Restart your computer to apply the changes.

Once Hyper-V is enabled, you can try starting Docker Desktop again. If you still encounter issues, you may need to check other possible causes of the issue, such as virtualization being disabled in BIOS or insufficient system resources

Virtualization is not enabled in BIOS

Docker Desktop for Windows requires virtualization to be enabled in the BIOS. If virtualization is not enabled in the BIOS, Docker Desktop for Windows will not be able to start. Here are the steps you can follow to enable virtualization in the BIOS:

  • Restart your computer and enter the BIOS setup by pressing the key indicated on the startup screen (usually F2, F12, or Del).
  • Look for a setting related to virtualization. The name of the setting may vary depending on your BIOS manufacturer (e.g. Intel Virtualization Technology, AMD-V, VT-x).
  • Enable the virtualization setting by selecting it and pressing Enter or by changing its value to “Enabled”.
  • Save the changes and exit the BIOS setup. The key to save the changes may vary depending on your BIOS manufacturer (usually F10 or a similar key).
  • Restart your computer and try starting Docker Desktop again.

If you are still encountering issues after enabling virtualization in the BIOS, you may need to check if your system meets the system requirements for Docker Desktop or if there are any conflicting virtualization technologies installed on your system.

Docker daemon is not running

If the Docker daemon is not running, Docker commands will fail to execute and you may encounter issues when trying to start Docker containers. Here are some steps you can take to troubleshoot the issue:

Check the status of the Docker daemon by running the following command:

sudo systemctl status docker

If the Docker daemon is not running, you will see an error message indicating that the service is inactive or failed. If the service is inactive, you can try starting it manually by running the following command:

sudo systemctl start docker

Check if there are any issues with Docker installation or configuration by running the following command:

If the command fails to execute, there may be issues with your Docker installation or configuration. You can try reinstalling Docker or checking the Docker documentation for troubleshooting steps.

Check if there are any conflicts with other virtualization technologies or firewalls by disabling them temporarily and attempting to start Docker again. For example, if you are using VirtualBox, you may need to disable it temporarily to start the Docker daemon.

Check if there are any errors or warnings in the Docker logs by running the following command:

sudo journalctl -u docker.service

This command will display the logs for the Docker daemon service, which can help diagnose any issues that may be preventing it from running.

Insufficient system resources

Docker Desktop requires a minimum of 2 GB of RAM and 20 GB of disk space to run. If your system does not meet these requirements, you may encounter a “Docker failed to start” error. Try closing any unnecessary applications and freeing up some disk space. You can also try increasing the memory allocation for Docker Desktop in the Settings > Resources menu.

If you are still encountering the “Docker failed to start” error due to insufficient system resources, you may need to check if your system meets the minimum requirements for running Docker Desktop. Here are some steps you can take to troubleshoot the issue:

  • Check the Docker Desktop system requirements to ensure that your system meets the minimum requirements for CPU, RAM, and disk space. You can find the system requirements on the Docker website or in the Docker Desktop documentation.

  • Close any unnecessary applications or processes that may be consuming system resources. You can use the Task Manager or Activity Monitor to check the resource usage of running applications and processes.

  • Increase the system resources allocated to Docker Desktop by adjusting the Docker Desktop settings. You can open the Docker Desktop settings by right-clicking on the Docker Desktop icon in the system tray and selecting “Settings”. In the settings, you can adjust the CPU, memory, and disk space allocated to Docker Desktop.

  • If you are running Docker in a virtual machine, you may need to increase the resources allocated to the virtual machine in order to meet the system requirements for Docker.

  • If you are still encountering issues after trying these steps, you may need to consider upgrading your system hardware or raise your query on the community forum for further assistance.

By following these steps, you should be able to troubleshoot and resolve the “Docker failed to start” error caused by insufficient system resources.

Antivirus or Firewall is blocking Docker

If you are encountering the “Docker failed to start” error because your antivirus or firewall is blocking Docker, you may need to adjust your antivirus or firewall settings to allow Docker to run. Here are some steps you can take to troubleshoot the issue:

  1. Check if your antivirus or firewall is blocking Docker by disabling them temporarily and attempting to start Docker again. If Docker starts successfully with the antivirus or firewall disabled, you will need to adjust the settings to allow Docker to run.

  2. Add Docker to the list of trusted applications or exceptions in your antivirus or firewall settings. You can find instructions for adding exceptions in the documentation for your antivirus or firewall.

  3. Check if there are any specific ports or protocols that Docker requires to run and ensure that they are allowed through your firewall. You can find the required ports and protocols in the Docker documentation.

  4. If you are using Windows Firewall, you can try resetting the firewall settings to their defaults by running the following command in a Command Prompt with administrative privileges:

This command will reset the Windows Firewall settings to their default values and may help resolve any issues caused by misconfigured firewall settings.

  1. If you are still encountering issues after trying these steps, you may need to consider disabling or uninstalling your antivirus or firewall temporarily or seeking additional help from the Docker community or support.

By following these steps, you should be able to troubleshoot and resolve the “Docker failed to start” error caused by antivirus or firewall issues.

Please follow and like us:

Views 15,819

  • Docash 3200 value ошибка e16
  • Do you your usually enjoy flights исправьте ошибки
  • Do you wear an uniform at your school каждое предложение содержит ошибку
  • Do you speak english in the class где ошибка
  • Do you know where is the bank где ошибка