I was recently working on setting up Docker Desktop on a Windows EC2 instance provided by a client and ran into a virtualization issue that took some time to identify.
Context
Docker Desktop on Windows depends on a virtualization backend (WSL2 or Hyper-V), so hardware virtualization support is a mandatory requirement.
Issue
While enabling the required features, I kept hitting errors indicating that virtualization was not supported on the instance — even though the OS and configuration steps were correct.
Root Cause
On AWS, running Docker Desktop inside a Windows EC2 instance requires nested virtualization, since you’re effectively trying to run a virtualization layer inside a VM.
This is not supported on all instance families.
After digging through the AWS documentation, I found that nested virtualization is currently supported only on:
- C8i
- M8i
- R8i
The issue was resolved after switching the instance to one of the supported families.
Takeaway
If you’re planning to run Docker Desktop on a Windows EC2 instance, check nested virtualization support first — otherwise WSL2/Hyper-V will fail regardless of correct OS-level setup.
This detail is easy to miss because it’s buried quite deep in the documentation, so sharing it here to save someone else the troubleshooting time.
Top comments (0)