Create WSL2 compatible Arch/EOS images and transfer it to Windows (WSL2)

i need help to create a arch/eos image on my EOS host and ship it to WSL2. The use case is my python project has some crazy requirements that would not install on Windows. So the plan is to use WSL2 on the target windows machine to run it.

This bypasses the complex installation process required to do on the target machine. This is very similar to what docker would do. Again, i dont want to run into the complexity of having EOS host and Windows target.

Any help is highly appreciated. please.

There is already an official Archlinux image available for WSL2.

2 Likes

i think i was not clear. i dont have windows :slight_smile:

2 Likes

What is your question then?

An Arch Image for WSL2 is already available…not sure what you want to achieve by creating another one which you can’t test yourself as you don’t have Windows.

1 Like

confused1

2 Likes

No windows.

1 Like

They must be using QubeOS in that house :rofl:

dear all,

thanks for your overwhelming response. i am a developer and i have a python project that is heavily dependent on GUI components. This is EOS and i want to add the python project, install its dependencies to the arch wsl2 and then ship the whole thing to the target machine.

here target machine belongs to customer and of course they have windows 10 and WSL2 only. i dont want to go through the shame of not abling to install my dependencies, in front of my client.

so the idea is to do all the circus here in EOS and just drop it in the target, machine. (belonging to the customer).

sorry once again not being clear.

i thought if i mentioned target and if it is not of the same architecture, it is assumed that the machine is not with me. of course, i could deliver the archive to the client (customer) and it should work.

PS /home/pannet1> Invoke-WebRequest -Uri "https://geo.mirror.pkgbuild.com/images/latest/Arch-Linux-x86_64-basic.qcow2" -OutFile arch.qcow2   
PS /home/pannet1> ls                                                                                                    
Archive     Desktop    dotfiles   go     Personal  Postman   Public   Templates  Yandex.Disk
arch.qcow2  Documents  Downloads  Music  Pictures  Programs  Scripts  Videos
PS /home/pannet1>

The above is the first step chatgpt provided in the series of steps to do.

very clever play of words

1 Like

directly from the makers of WSL2:

2 Likes

I know it’s not the answer your looking for but my guess is trying to great. WSL image for your app is likely more complicated. If you really want to use WSL create a proper arch package for your application, then install it on your clients computer after installing the regular arch WSL image.

However I think you will probably get better results if you just use win python and either make a proper windows installer with some like pyonstaller, or ship your app with a portable version of python. Either way you’re going to need windows installed in a VM or something similar to put it all together. At least that’s my 2 cents for what it’s worth

1 Like

I’ve been trying to do this for :enos: arm for the past 1-2 months and it’s not as easy to create a Custom Distro WSL image that works well. Also you would need a Windows machine to test that the image works. I’m not sure how you would solve this issue.

1 Like

I was under the impression that WSL/WSL2 uses the linux kernel 5.x. If we make a EOS distro for WSL then how will that work? We are all on 6.x branch. Am I missing something over here?

I am not trying to be snarky, but I would think that if you are developing for a customer it should be easier if you actually develop and test on the architecture you are targeting. A Windows license and development system would be a tool you should have if you want to sell your work to clients who run Windows.

1 Like

thanks. yeap, multiple solutions for the same problem, exists.

the project is scratched for non-technical reasons. anyways for academic interest, this was the requirements, i was trying to install.

git+https://github.com/pannet1/toolkit
git+https://github.com/ecomsense/stock-brokers
numpy==1.26.4
Flask==3.1.0
pandas==2.2.3
pyotp==2.9.0
requests==2.32.3
requests-oauthlib==2.0.0
selenium==4.27.1
websocket-client==1.8.0
finplot
pendulum
stock-indicators
curl_cffi
pyyaml

thanks once again. i am overwhelmed by your suggestions and love.