Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This ArchWSL is not compatible with WSL2 #89

Closed
M87BlackHole opened this issue Jun 14, 2019 · 31 comments
Closed

This ArchWSL is not compatible with WSL2 #89

M87BlackHole opened this issue Jun 14, 2019 · 31 comments

Comments

@M87BlackHole
Copy link

\rootfs is changed into a vhdx

@12101111
Copy link

It works well for me.
Install as wsl1 and wsl --set-version arch 2
图片

@M87BlackHole
Copy link
Author

Yes, I have done this, but it cannot work.

@lifanxi
Copy link

lifanxi commented Jul 23, 2019

image
I have the similar issue, cannot convert my existing WSL Arch Linux to WSL 2.

@arlllk
Copy link

arlllk commented Jul 23, 2019

I installed it two times (I broke the first one, that's on me).
But what I did install it, after setting wsl --set-default-version 2 , i and I was able to change to the default fakeroot, without any problems.

I never tried to install any other way, because I set the default version when it came out.
Maybe this way works.😅

@PSzczepanski1996
Copy link

image

It works after second time? Not sure.

@arlllk
Copy link

arlllk commented Jul 24, 2019

The way I didt was

  1. wsl --set-default-version 2
  2. Then install Arch

@PSzczepanski1996
Copy link

PSzczepanski1996 commented Jul 24, 2019

For me Arch is working fine.

Compile test of my hobby project:

make -j5  0.30s user 2.16s system 29% cpu 8.340 total //wsl1
make -j5  0.58s user 0.88s system 51% cpu 2.848 total //wsl2

@PSzczepanski1996
Copy link

ldconfig: File /usr/lib/libswrAVX.so.0.0.0 is empty, not checked.
ldconfig: File /usr/lib/librustc-c5b1587cca8ef79c.so is empty, not checked.
ldconfig: File /usr/lib/librustc_metadata-340eee917a2638d0.so is empty, not checked.
ldconfig: File /usr/lib/libEGL_mesa.so.0 is empty, not checked.
ldconfig: File /usr/lib/libglapi.so is empty, not checked.
ldconfig: File /usr/lib/libswrAVX.so.0 is empty, not checked.
ldconfig: File /usr/lib/librustc_errors-ee0f04cc5ea7be1d.so is empty, not checked.
ldconfig: File /usr/lib/libOSMesa.so is empty, not checked.
ldconfig: File /usr/lib/librustc_driver-313a9fde3f3ffdb3.so is empty, not checked.
ldconfig: File /usr/lib/libxatracker.so is empty, not checked.
ldconfig: File /usr/lib/libGLX_indirect.so.0 is empty, not checked.
ldconfig: File /usr/lib/librustc_incremental-95966278b65b0f1e.so is empty, not checked.
ldconfig: File /usr/lib/librustc_typeck-e2903780703cd2c8.so is empty, not checked.
ldconfig: File /usr/lib/libgbm.so.1 is empty, not checked.
ldconfig: File /usr/lib/librustc_interface-f532ff5e2c519508.so is empty, not checked.
ldconfig: File /usr/lib/librustc_mir-416e0ebe6034b16b.so is empty, not checked.
ldconfig: File /usr/lib/libGLX_mesa.so.0.0.0 is empty, not checked.
ldconfig: File /usr/lib/libEGL_mesa.so.0.0.0 is empty, not checked.
ldconfig: File /usr/lib/librustc_borrowck-637151f0e6538457.so is empty, not checked.
ldconfig: File /usr/lib/libsyntax_ext-f0d2026542f8e507.so is empty, not checked.
ldconfig: File /usr/lib/librustc_cratesio_shim-b164ef10f53c5aa1.so is empty, not checked.
ldconfig: File /usr/lib/librustc_target-22de2d30899b1c84.so is empty, not checked.
ldconfig: File /usr/lib/libOSMesa.so.8.0.0 is empty, not checked.
ldconfig: File /usr/lib/librustc_plugin-ecefaca193e6944b.so is empty, not checked.
ldconfig: File /usr/lib/libxatracker.so.2 is empty, not checked.
ldconfig: File /usr/lib/librustc_allocator-ac283b0735e349b2.so is empty, not checked.
ldconfig: File /usr/lib/libGLX_mesa.so is empty, not checked.
ldconfig: File /usr/lib/librustc_codegen_ssa-42ed48590f1cf042.so is empty, not checked.
ldconfig: File /usr/lib/libxatracker.so.2.5.0 is empty, not checked.
ldconfig: File /usr/lib/libsyntax_pos-9d13af6e78e337c4.so is empty, not checked.
ldconfig: File /usr/lib/librustc_traits-4207402e33a390db.so is empty, not checked.
ldconfig: File /usr/lib/libpkgconf.so.3 is empty, not checked.
ldconfig: File /usr/lib/librustc_privacy-4f5e75a96511f77a.so is empty, not checked.
ldconfig: File /usr/lib/libswrAVX2.so.0 is empty, not checked.
ldconfig: File /usr/lib/librustc_passes-4d5d572deb8cd310.so is empty, not checked.
ldconfig: File /usr/lib/libglapi.so.0.0.0 is empty, not checked.
ldconfig: File /usr/lib/libpkgconf.so.3.0.0 is empty, not checked.
ldconfig: File /usr/lib/librustc_codegen_utils-d1cdfed74738c364.so is empty, not checked.
ldconfig: File /usr/lib/librustc_lint-7f9e72d70536740e.so is empty, not checked.
ldconfig: File /usr/lib/libOSMesa.so.8 is empty, not checked.
ldconfig: File /usr/lib/libEGL_mesa.so is empty, not checked.
ldconfig: File /usr/lib/libswrAVX.so is empty, not checked.
ldconfig: File /usr/lib/libglapi.so.0 is empty, not checked.
ldconfig: File /usr/lib/libterm-15879d30d5614437.so is empty, not checked.
ldconfig: File /usr/lib/libarena-1049600338db0885.so is empty, not checked.
ldconfig: File /usr/lib/libserialize-53ef96713d73996f.so is empty, not checked.
ldconfig: File /usr/lib/libGLX_mesa.so.0 is empty, not checked.
ldconfig: File /usr/lib/librustc_fs_util-2df39053f6ecd7c7.so is empty, not checked.
ldconfig: File /usr/lib/libswrAVX2.so.0.0.0 is empty, not checked.
ldconfig: File /usr/lib/librustc_save_analysis-d9e5fb873491f4d5.so is empty, not checked.
ldconfig: File /usr/lib/libtest-13781f136b7f2a4f.so is empty, not checked.
ldconfig: File /usr/lib/libsyntax-2fa3e7aa31b9b9e3.so is empty, not checked.
ldconfig: File /usr/lib/libfmt_macros-18cb175548ae156b.so is empty, not checked.
ldconfig: File /usr/lib/libpkgconf.so is empty, not checked.
ldconfig: File /usr/lib/libgraphviz-e962f2e250c9810f.so is empty, not checked.
ldconfig: File /usr/lib/librustc_resolve-5015b1e238dbbdf9.so is empty, not checked.
ldconfig: File /usr/lib/libgbm.so.1.0.0 is empty, not checked.
ldconfig: File /usr/lib/librustc_macros-866b6c5bb932066b.so is empty, not checked.
ldconfig: File /usr/lib/libgbm.so is empty, not checked.
ldconfig: File /usr/lib/libswrAVX2.so is empty, not checked.
ldconfig: File /usr/lib/libstd-5e8d2eef5cf4a17a.so is empty, not checked.
ldconfig: File /usr/lib/librustc_data_structures-ea8e4ee585295ff9.so is empty, not checked.

I can't run compton, what the hell was done with container? I did anything other than rebooting an computer...

@PSzczepanski1996
Copy link

So, pretty much now whole container is broken and I can't even start zsh.
Use WSL2 with ArchWSL with caution:
image

@maeehart
Copy link

maeehart commented Aug 1, 2019

I did this too. For me the conversion finished OK, but after the conversion, I cannot start the container:

c:\Users\XXX\bin\Arch>Arch.exe
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

@garth
Copy link

garth commented Aug 1, 2019

I managed to get Arch running with WSL2 until the most recent windows build 18950. It works if you convert back to V1. Even on the windows store the number of available distros is now about 1/2 so I guess something has changed when they added localhost support.

A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

@ghost
Copy link

ghost commented Aug 3, 2019

The new version of init in Windows build 18950 tries to create the /bin directory and fails with all distributions that link /usr/bin to /bin, including Arch. See: microsoft/WSL#4371 - a fix is incoming.

@radu-matei
Copy link

I can also confirm that reverting to version 1 works, at least until a new Insiders build is out.
(Note: I don't work on the WSL team).

@GoncaloHit
Copy link

following this, is it fixed yet ? i had to convert back to wsl 1

@radu-matei
Copy link

I just tried with 18956 and the issue is still present.

@zhscn
Copy link

zhscn commented Aug 13, 2019

after updating into 18956, arch broke out with WSL2

@bytemain
Copy link

in 18956, Arch WSL2 is unable to start.

@yuk7 yuk7 removed the need-repro label Aug 15, 2019
@Biswa96
Copy link

Biswa96 commented Aug 17, 2019

Guys, the issue is not in this distribution. See microsoft/WSL#4371. Windows 10 insider build 18947 and above have this issue. Revert back to 18945 if possible.

Generally when a issue is marked as "fixinbound" in WSL repo, it reaches to insider build between 4-5 weeks. So wait for next build...

@GoodbyeNJN
Copy link

Hello guys, this solution works fine in 18963.

@Biswa96
Copy link

Biswa96 commented Aug 18, 2019

That is not a "solution", it's a workaround. If someone make any mistake during the operation the whole distribution may break. After all the issue is from WSL devs. Also we should not break "the Arch way" 🤓

@arlllk
Copy link

arlllk commented Aug 18, 2019

I find it better to wait for a build with wsl fixed, breaking WSL distros is horrible because you lose everything, the vhdx used by WSL2 is inaccessible AFAIK so, I will wait for a correct fix 😅

@ghost
Copy link

ghost commented Aug 20, 2019

Hello guys, this solution works fine in 18963.

It solves the immediate problem of not being able to get to Arch in WSL2, but it breaks Arch in various ways. E.g. installing packages with yay sometimes just deletes the /usr/bin symlink and creates an empty directory instead. :-)

@dxhisboy
Copy link

That is not a "solution", it's a workaround. If someone make any mistake during the operation the whole distribution may break. After all the issue is from WSL devs. Also we should not break "the Arch way"

It not only breaks the Arch way, but also makes the package "filesystem" cannot be upgraded.

@PSzczepanski1996
Copy link

image

It's fixed now guys, take a care ;)

@PSzczepanski1996
Copy link

I was testing it by few mins and did an reboot and nothing broke, so I assume this is for 80% sure fixed.
Please somebody confirm that here too.

@arlllk
Copy link

arlllk commented Sep 1, 2019

To me was all ok too.

@ghost
Copy link

ghost commented Sep 2, 2019

To me was all ok too.
win10 ver 18970.rs

@radu-matei
Copy link

I can confirm that this distro is working again in build 18980.1

@yuk7
Copy link
Owner

yuk7 commented Oct 18, 2019

This is fixed in 18970.

@kridenberg
Copy link

There is still an error on the latest win10 build(
зображення

@yuk7
Copy link
Owner

yuk7 commented Feb 7, 2020

@kridenberg
Please see:
microsoft/WSL#4860 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests