- Newest
- Most votes
- Most comments
hello,
To enable the Virtual Machine Platform Windows feature and install WSL on an EC2 instance running Windows Server 2022, follow these steps:
1.For WSL 1 on Virtualized Instances:
- Run the following command to install WSL 1
wsl --install --enable-wsl1
- Restart your EC2 instance.
- Set WSL 1 as the default version:
wsl --set-default-version 1
2.For WSL 2 on Metal Instances:
- Ensure you are using a .metal instance type.
- Run the following command to install WSL 2:
wsl --install
Note that nested virtualization required for WSL 2 is only supported on .metal instance types in EC2. Virtualized instances can only use WSL 1. For detailed information, refer to the Document
https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/install-wsl-on-ec2-windows-instance.html
i hope this will be helpful to you
Hello.
Is it WSL1 that you are trying to install?
In that case, I think you can install it by following the steps in the document below.
https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/install-wsl-on-ec2-windows-instance.html
For WSL2 you need to use a metal instance.
Hello, according to the document, you can only run nested virtualisation on a *.metal instance type: https://aws.amazon.com/blogs/compute/running-hyper-v-on-amazon-ec2-bare-metal-instances/
Relevant content
- asked 9 months ago
- asked 8 months ago
- asked 2 years ago
- asked 2 years ago
- AWS OFFICIALUpdated 2 years ago