bubblewrap icon indicating copy to clipboard operation
bubblewrap copied to clipboard

WSL support of bubblewrap

Open mprevot opened this issue 7 years ago • 1 comments
trafficstars

To date, bubble wrap doesn't work on WSL.

Could a bubblewrap developer enumerate things needed to have it work ? so we make a feature request at MSFT.

Regards

mprevot avatar Jun 08 '18 10:06 mprevot

possibly relevant to this: https://blogs.gnome.org/alexl/2018/09/17/flatpak-on-windows/

mwleeds avatar Oct 23 '18 21:10 mwleeds

As of bubblewrap 0.8.0 / WSL2 / Windows 10 (22H2, released in November 2022), this seems to not be a problem anymore ? All tests appear to pass, and at least in my use cases, things seem to work without problems.

aaruni96 avatar Nov 08 '23 14:11 aaruni96

My understanding is that WSL2 is a virtual machine running an actual Linux kernel, so most syscalls should work correctly in WSL2.

Conversely, WSL1 was like Wine in reverse, implementing a subset of Linux syscalls on the Windows kernel, which means it will probably never support running namespace-based tools like bubblewrap.

If bubblewrap works in WSL2, I think we can close this as "not going to happen" for WSL1: it is not up to the bubblewrap maintainers whether WSL1 implements the syscalls that bubblewrap makes.

Could a bubblewrap developer enumerate things needed to have it work ? so we make a feature request at MSFT

If someone wants this, please see the source code for details. (It isn't actually very large.)

smcv avatar Nov 09 '23 13:11 smcv