10

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 2

9

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/

5
  • The 2nd part I did already, but 1st part to activate the vistualization in BIOS, I don't know how I can boot into BIOS in a VM?
    – superachu
    Aug 13, 2020 at 5:59
  • Do you use VMWare or Virtualbox as virtualization software ?
    – Dokksen
    Aug 13, 2020 at 6:44
  • I can see Oracle VM Virtual box.
    – superachu
    Aug 13, 2020 at 6:54
  • I dont know if it is your problem but you have to enable nested virtualization in Virutalbox Manager. You can do it per Virtualbox GUI by going in your virutal machine settings or if the option is greyed out you can try per command line like -> stackoverflow.com/questions/54251855/…
    – Dokksen
    Aug 13, 2020 at 7:11
  • Running the following command in powershell made it working for me DISM /Online /Enable-Feature /All /FeatureName:Microsoft-Hyper-V
    – superachu
    Sep 11, 2020 at 10:30
1

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.