From a63812d75af8af4a91d304b2b2fc23e357eba395 Mon Sep 17 00:00:00 2001 From: lumarel Date: Thu, 22 Sep 2022 01:18:40 +0200 Subject: [PATCH 1/6] Add note about systemd on WSL --- docs/guides/interoperability/import_rocky_to_wsl.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/guides/interoperability/import_rocky_to_wsl.md b/docs/guides/interoperability/import_rocky_to_wsl.md index bb8203233f..c95710a52d 100644 --- a/docs/guides/interoperability/import_rocky_to_wsl.md +++ b/docs/guides/interoperability/import_rocky_to_wsl.md @@ -42,3 +42,7 @@ This feature should be available on every supported Windows 10 and 11 version ri !!! hint "Windows Terminal" If you have Windows Terminal installed, the new WSL distro name will appear as an option on the pull-down menu, which is quite handy for launching in the future. You can then customize it with colors, fonts, etc. + +!!! hint "systemd" + + Microsoft finally decided to bring systemd into the WSL. ([ref](https://devblogs.microsoft.com/commandline/systemd-support-is-now-available-in-wsl)) You only need to add `systemd=true` to the `boot` ini section in the `/etc/wsl.conf` file! (Please make sure you are running a WSL version equals or later 0.67.6) From 4a2bfb3f8de3fca72dd5f977182576a5a69335b5 Mon Sep 17 00:00:00 2001 From: lumarel Date: Mon, 26 Sep 2022 00:32:33 +0200 Subject: [PATCH 2/6] Add more download options for rootfs --- docs/guides/interoperability/import_rocky_to_wsl.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/guides/interoperability/import_rocky_to_wsl.md b/docs/guides/interoperability/import_rocky_to_wsl.md index c95710a52d..4dba8edd99 100644 --- a/docs/guides/interoperability/import_rocky_to_wsl.md +++ b/docs/guides/interoperability/import_rocky_to_wsl.md @@ -26,9 +26,11 @@ This feature should be available on every supported Windows 10 and 11 version ri - Download the image from the [CDN images folder](https://dl.rockylinux.org/pub/rocky/9/images/) (if it is available) - Download the image from the latest [Github Action build](https://github.com/rocky-linux/sig-cloud-instance-images/actions/workflows/build.yml) - - Extract the image from either Docker Hub or Quay.io ([ref.](https://docs.microsoft.com/en-us/windows/wsl/use-custom-distro#export-the-tar-from-a-container))
` export rockylinux:9 > rocky-9-image.tar` + - Download the image (the layer.tar.xz file) from one of the branches of the [Github repo](https://github.com/rocky-linux/sig-cloud-instance-images/branches) + - Extract the image from either Docker Hub or Quay.io ([ref.](https://docs.microsoft.com/en-us/windows/wsl/use-custom-distro#export-the-tar-from-a-container))\ + ` export rockylinux:9 > rocky-9-image.tar` -2. (optional) You might have to extract the docker rootfs layer from the image you got +2. (optional) You might have to extract the docker rootfs layer from the image you got (you need the tar file) 3. Create the directory where the WSL will store its files (mostly somewhere in the userprofile) 4. Finally, import the image into WSL ([ref.](https://docs.microsoft.com/en-us/windows/wsl/use-custom-distro#import-the-tar-file-into-wsl)): From d908f2197a2596135ea438d8777e779353995263 Mon Sep 17 00:00:00 2001 From: lumarel Date: Mon, 26 Sep 2022 00:33:05 +0200 Subject: [PATCH 3/6] Remove CDN option for now as it's not available right now --- docs/guides/interoperability/import_rocky_to_wsl.md | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/guides/interoperability/import_rocky_to_wsl.md b/docs/guides/interoperability/import_rocky_to_wsl.md index 4dba8edd99..142cb74988 100644 --- a/docs/guides/interoperability/import_rocky_to_wsl.md +++ b/docs/guides/interoperability/import_rocky_to_wsl.md @@ -24,7 +24,6 @@ This feature should be available on every supported Windows 10 and 11 version ri 1. Get the container rootfs. This is possible in multiple ways: - - Download the image from the [CDN images folder](https://dl.rockylinux.org/pub/rocky/9/images/) (if it is available) - Download the image from the latest [Github Action build](https://github.com/rocky-linux/sig-cloud-instance-images/actions/workflows/build.yml) - Download the image (the layer.tar.xz file) from one of the branches of the [Github repo](https://github.com/rocky-linux/sig-cloud-instance-images/branches) - Extract the image from either Docker Hub or Quay.io ([ref.](https://docs.microsoft.com/en-us/windows/wsl/use-custom-distro#export-the-tar-from-a-container))\ From ee51998fcba2ce9f08079933407142f778dfc16f Mon Sep 17 00:00:00 2001 From: lumarel Date: Mon, 26 Sep 2022 00:38:45 +0200 Subject: [PATCH 4/6] Add notice about official MS Store image --- docs/guides/interoperability/import_rocky_to_wsl.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/guides/interoperability/import_rocky_to_wsl.md b/docs/guides/interoperability/import_rocky_to_wsl.md index 142cb74988..3a8667db94 100644 --- a/docs/guides/interoperability/import_rocky_to_wsl.md +++ b/docs/guides/interoperability/import_rocky_to_wsl.md @@ -47,3 +47,7 @@ This feature should be available on every supported Windows 10 and 11 version ri !!! hint "systemd" Microsoft finally decided to bring systemd into the WSL. ([ref](https://devblogs.microsoft.com/commandline/systemd-support-is-now-available-in-wsl)) You only need to add `systemd=true` to the `boot` ini section in the `/etc/wsl.conf` file! (Please make sure you are running a WSL version equals or later 0.67.6) + +!!! hint "Microsoft Store" + + Currently there is no image in the Microsoft Store, if you want to help with bringing it to there join the conversation in the Mattermost SIG/Containers channel! There has been [some effort](https://github.com/rocky-linux/WSL-DistroLauncher) a long time ago, which can get picked up again. From 7f071fc5606bae6605fe1efb7950d00e8cd525fb Mon Sep 17 00:00:00 2001 From: lumarel Date: Mon, 26 Sep 2022 01:46:48 +0200 Subject: [PATCH 5/6] Fix grammatical issue --- docs/guides/interoperability/import_rocky_to_wsl.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guides/interoperability/import_rocky_to_wsl.md b/docs/guides/interoperability/import_rocky_to_wsl.md index 3a8667db94..b133f580ad 100644 --- a/docs/guides/interoperability/import_rocky_to_wsl.md +++ b/docs/guides/interoperability/import_rocky_to_wsl.md @@ -13,7 +13,7 @@ tags: ## Prerequisites -The Windows-Subsystem for Linux feature has to be enable. This is possible with either of these options: +The Windows-Subsystem for Linux feature has to be enabled. This is possible with either of these options: - Open an administrative Terminal (either PowerShell or Command-Prompt) and run `wsl --install` ([ref.](https://docs.microsoft.com/en-us/windows/wsl/install)) - Go to the graphical Windows Settings and enable the optional feature `Windows-Subsystem for Linux` From 865cd72f2b7f4b39674b72a4d4d36053c3a59f4b Mon Sep 17 00:00:00 2001 From: wale soyinka Date: Sun, 25 Sep 2022 20:53:41 -0400 Subject: [PATCH 6/6] Update docs/guides/interoperability/import_rocky_to_wsl.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Serge Croisé --- docs/guides/interoperability/import_rocky_to_wsl.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guides/interoperability/import_rocky_to_wsl.md b/docs/guides/interoperability/import_rocky_to_wsl.md index b133f580ad..28bc269aa6 100644 --- a/docs/guides/interoperability/import_rocky_to_wsl.md +++ b/docs/guides/interoperability/import_rocky_to_wsl.md @@ -13,7 +13,7 @@ tags: ## Prerequisites -The Windows-Subsystem for Linux feature has to be enabled. This is possible with either of these options: +The Windows-Subsystem for Linux feature has to be enabled. This is possible with one of these options: - Open an administrative Terminal (either PowerShell or Command-Prompt) and run `wsl --install` ([ref.](https://docs.microsoft.com/en-us/windows/wsl/install)) - Go to the graphical Windows Settings and enable the optional feature `Windows-Subsystem for Linux`