The Windows Subsystem for Linux (WSL) is a feature of Microsoft Windows. By installing WSL on your EC2 Windows instance, you can run native Linux command line tools directly on your Windows instance.
There are two versions of Windows Subsystem for Linux (WSL): WSL 1 and WSL 2. For more information, see Windows Subsystem for Linux Documentation on the Microsoft website.
RequirementsThe operating system must be Windows Server 2019 or later.
You must install WSL 1 on virtualized Windows instances (the instance size is not .metal
).
You can install either WSL 1 or WSL 2 on bare metal instances (the instance size is .metal
). Bare metal instances provide the required support for nested virtualization.
Install WSL. The process that you'll use depends on the version of Windows Server running on the instance.
Windows Server 2022 and later - Run the following standard installation command on your EC2 instance.
wsl --install --enable-wsl1 --no-launch
Windows Server 2019 - Enable WSL and then install WSL as described in Install WSL on previous versions of Windows Server on the Microsoft website.
Restart your EC2 instance.
shutdown -r -t 20
To configure WSL to use WSL 1, run the following command on your instance. This step is required for virtualized instances (the instance size is not .metal
).
wsl --set-default-version 1
Install the default distribution.
wsl --install
Run the following standard installation command on your EC2 instance. By default, WSL 2 is installed.
wsl --install
Add Windows System components
Windows utilities
Did this page help you? - Yes
Thanks for letting us know we're doing a good job!
If you've got a moment, please tell us what we did right so we can do more of it.
Did this page help you? - No
Thanks for letting us know this page needs work. We're sorry we let you down.
If you've got a moment, please tell us how we can make the documentation better.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4