0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

AWS WorkSpacesではWSL2が使えないよという話(備忘録)

Last updated at Posted at 2025-03-24

これは何?

現在(2025/03/01)の時点でAWS WorkSpacesのWindows環境にてWSL2を利用できるか否かを確認したため、その結果をまとめたものです。

結論だけ知りたい方へ

AWS WorkSpacesにてWSL2を利用することはできません。
※WSL1であれば利用可能

詳細

AWSの公式ドキュメントを確認すると、Windows Server 2019 based では、WSL2 が利用できないことが確認できる[1]。
※ページ下部にリンクあり

Windows subsystem for Linux
With the launch of Windows Server 2019 as the underlying operating system for Amazon WorkSpaces, customers have been eager to implement Windows Subsystem for Linux (WSL), specifically WSL2. Because WSL2 invokes a virtual machine (Hyper-V) in order to perform its functions, it cannot run on Amazon WorkSpaces, which are managed by AWS hypervisors.
Customers should know that only WSL1 will be available for this reason, and understand the differences between WSL1 and WSL2.

※日本語訳

Amazon WorkSpaces の基盤となるオペレーティング・システムとして Windows Server 2019 が発表されたことで、顧客は Windows Subsystem for Linux(WSL)、特に WSL2 の実装を熱望している。WSL2 はその機能を実行するために仮想マシン(Hyper-V)を呼び出すため、AWS ハイパーバイザーによって管理されている Amazon WorkSpaces 上で実行することはできません。
このため、顧客は WSL1 のみが利用可能であることを知り、WSL1 と WSL2 の違いを理解する必要がある。

それ以外のwindowsOS(Windows Server 2022 basedなど)でも利用できるか念のためAWSへ確認したところ以下公式ドキュメントと同様の回答を頂きました。

「WSL2 を使用するためには Hyper-V を呼び出す必要があるが、WorkSpaces は AWS ハイパーバイザーによって管理されているため、Windows Server 2022 based の場合でも WSL2 をご利用いただくことができません」

最後に

今回、開発環境を用意するためにworkspacesを利用しwindows環境でWSL2を利用できるか確認しましたが、利用できませんでした。
windows環境でWSLを利用する場合はWSL1を利用するか、そもそもwindows環境ではなくLinux環境を利用することを検討することが必要となるといった状態nため、頭の片隅に置いてもらえると幸いです。

参考資料

[1] Containers and Windows subsystem for Linux on Amazon WorkSpaces - Best Practices for Deploying WorkSpaces - https://docs.aws.amazon.com/whitepapers/latest/best-practices-deploying-amazon-workspaces/containers-and-windows-subsystem-for-linux-on-amazon-workspaces.html

[2] how to enable wsl ubuntu in workspaces? | AWS re:Post - https://repost.aws/questions/QUtd5l9K3xRXaZ1NRPPosUrw/how-to-enable-wsl-ubuntu-in-workspaces

[3] WSL2 now available on Windows Server 2022 - https://techcommunity.microsoft.com/blog/itopstalkblog/wsl2-now-available-on-windows-server-2022/3447570

[4] Bundles and images for WorkSpaces Personal - Amazon WorkSpaces - https://docs.aws.amazon.com/workspaces/latest/adminguide/amazon-workspaces-bundles.html

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?