On Tue, 2023-01-17 at 11:42 +0100, Roger Oberholtzer wrote:
On Tue, Jan 17, 2023 at 11:26 AM Mathias Homann
wrote: Am 17.01.2023 um 11:02 schrieb Andrei Borzenkov:
On Tue, Jan 17, 2023 at 12:52 PM Mathias Homann
wrote: Sidenote: it is extremely simple to "get" any linux into your WSL, I actually have a RHEL 8 in my WSL as well :)
Care to elaborate howto for dummies?
1. take any linux that supports docker
2. run a base container based on the linux distribution you want, apply customizations if required
3. once the container has terminated, export the container as a tar file
4. import that tarfile in WSL like so:
wsl --import <DistroName> <InstallLocation> <InstallTarFile>|
That's all folks.
In greater detail:
https://learn.microsoft.com/en-us/windows/wsl/use-custom-distro
That is how I got RHEL8 into WSL on my computer - Exported a container based on the freely available/usable UBI8 image :)
We have a Leap OEM installer that we build with KIWI. It is a disk image (including the partition table). It is 'installed' by dd to the disk. KIWI makes a nice boot wrapper that lets you select the disk and does the dd. Or just dd the image yourself. When it is first booted, the usual locale questions are asked. Like a new laptop would usually do.
Maybe I can tar the OS partition and try this.
I'm mainly curious how the /etc/fstab is managed so all is found as expected. Maybe the OS's fstab is not used to start the OS?
Aren't the images in the Microsoft store available somewhere? In OBS?
Take a look at: https://en.opensuse.org/openSUSE:WSL If I remember correctly, the Leap .appx images aren't published directly to download.opensuse.org [as TW is], but you can get them from build.opensuse.org ; these are the items which we feed into the Microsoft Store. https://build.opensuse.org/package/binaries/openSUSE:Leap:15.4:WSL/kiwi-imag... As I said earlier, Microsoft has the `--web-download` flag available (so long as your version of WSL is up-to-date) to assist users who can't reach the Store directly. Unfortunately, there are issues w/ the DistributionInfo.json file which my github.com/microsoft/wsl PR is attempting to address. We'll be meeting with Microsoft in the not-too-distant future to sort the discrepancies out. -- ~ Scott Bradnick |- Windows Subsystem for Linux (WSL) Developer |-- Tumbleweed: |--- Dell Precision 5540 [NVIDIA Quadro T1000] (x86_64) |--- O-DROID H2+ [UHD Graphics 600] (x86_64) |--- IceWhale ZimaBoard 832 [Intel HD Graphics 500] (x86_64) |--- 2x Raspberry Pi 4 Model B Rev 1.2 (aarch64) |--- 1x Raspberry Pi 3 Model B Rev 1.2 (aarch64) |--- WinBook TW100 (x86_64) https://keys.openpgp.org/ :: DBC5AA9A2D2BAEBC