Reputation: 39
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 Files\Docker\Docker\Resources\bin\docker.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 Files\LinuxContainers","LinuxInitrdFile":"initrd.img","LinuxKernelFile":"kernel"},"ContainerType":"linux","TerminateOnLastHandleClosed":true}).
See 'C:\Program Files\Docker\Docker\Resources\bin\docker.exe run --help'.
Upvotes: 4
Views: 13840
Reputation: 105
Try this: https://www.jennerstrand.se/an-error-occurred-cannot-enable-hyper-v-service/
Basicly:
Upvotes: 1
Reputation: 8388
In my case, I needed also an extra step which enabling the virtualization from the bios.
Make sure that the virtualization is enabled by running the task manager => Performance => down you should see virtualization enabled (see image 02).
Ps: Check also if the hyper-V and container are enabled from control panel => Programs and features => Turn Windows Features on or off
Make sure to enable all those features pointed by the arrow in the image
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.
And then restart your system and restart the docker too. Hope it will help.
Upvotes: 2
Reputation: 887
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.
Upvotes: 1
Reputation: 454
Turn Windows features on or off
Containers
Upvotes: 0
Reputation: 1004
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.
Upvotes: 0