The virtual machine could not be started because a required feature is not installed

Viewed 22407

I created image and container, trying the START the container and it throws the following error:

Error response from daemon: hcsshim::CreateComputeSystem 8459c6c816e764642634ce29cfee666d30834df0f2792fba9e411d11bd0c33f6: The virtual machine could not be started because a required feature is not installed

I'm using Windows VM with the following configuration:

VM configuration

2 Answers

You have to activate virtualization on your machine. Check if you have activated virtualization in BIOS, if yes, you have to activate the Hyper-V and container support.

Start Windows Powershell as Administrator and run these commands to activate the feautres.

Enable-WindowsOptionalFeature -Online -FeatureName containers –All
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V –All

You have to restart your computer after running these commands.

For further information: https://windowsreport.com/hyper-v-and-containers-not-enabled/

Was getting the same error; it turned out in my docker compose file the isolation setting for Traefik was set to hyperv changing it to process resolved it for me.

Related