V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Fdyo
V2EX  ›  Windows

WSL 开源了

  •  
  •   Fdyo · 17 天前 · 6904 次点击

    微软今天正式宣布 Windows 子系统 Linux ( WSL )开源

    原文:微软宣布 WSL 开源

    28 条回复    2025-05-22 14:26:31 +08:00
    Shilion
        1
    Shilion  
       17 天前
    还开源一个新的 TUI 编辑器 https://github.com/microsoft/edit
    Fdyo
        2
    Fdyo  
    OP
       17 天前
    @Shilion 是的。在另一个帖子里提啦。
    binsys
        3
    binsys  
       17 天前
    lxcore 才是兴趣,HV 虚拟机 HCS 接口的...
    liyafe1997
        4
    liyafe1997  
       17 天前 via Android
    已开源组件:

    microsoft/wslg:支持 Linux 图形应用运行的 WSL G ( Wayland/X Server )组件
    GitHub: https://github.com/microsoft/wslg
    microsoft/WSL2-Linux-Kernel: 为 WSL 2 提供支持的 Linux 内核源代码
    GitHub: https://github.com/microsoft/WSL2-Linux-Kernel


    这次有啥新东西吗?这些不是一直都开源的?
    flyqie
        5
    flyqie  
       17 天前 via Android
    @binsys #3

    确实,lxcore 才是最主要的,wsl2 那个 hcs 实现没什么值得研究的。
    GPLer
        6
    GPLer  
       17 天前 via Android   ❤️ 2
    开源的是这个
    https://github.com/microsoft/WSL

    That means that the code that powers WSL is now available on GitHub at Microsoft/WSL and open sourced to the community! You can download WSL and build it from source, add new fixes and features and participate in WSL’s active development.

    之前开源和尚未开源的

    This comes as an addition to the already open sourced WSL components:

    microsoft/wslg: Enabling the Windows Subsystem for Linux to include support for Wayland and X server related scenarios
    microsoft/WSL2-Linux-Kernel: The source for the Linux kernel used in Windows Subsystem for Linux 2 (WSL2)
    The following components are still part of the Windows image and are not open sourced at this time:

    Lxcore.sys, the kernel side driver that powers WSL 1
    P9rdr.sys and p9np.dll, which runs the “\\wsl.localhost” filesystem redirection (from Windows to Linux)

    来源

    https://blogs.windows.com/windowsdeveloper/2025/05/19/the-windows-subsystem-for-linux-is-now-open-source/
    GPLer
        7
    GPLer  
       17 天前 via Android
    @liyafe1997 现在支持从源码构建了,而不仅仅只有个 Kernel 。
    villivateur
        8
    villivateur  
       17 天前
    话说,现在才开源倒是让我挺奇怪的,按理说 Linux 和那一堆 GNU 的应用都是 GPL 协议的,微软应该早开源了才对。
    istomyang
        9
    istomyang  
       17 天前 via Android
    一个跟 linux 深度嵌合的东西,再不开源,人家都不想鸟你了。
    gam2046
        10
    gam2046  
       17 天前
    希望有生之年,社区会复活 WSA
    codehz
        11
    codehz  
       17 天前
    要是能开源 docker for windows 的那个进程隔离机制就好了,(指 windows silo 简仓)
    rmrf
        12
    rmrf  
       17 天前
    挺不错的
    lambdaq
        13
    lambdaq  
       17 天前
    谁来说下是 wsl1 还是 wsl2 ?
    cheng6563
        14
    cheng6563  
       17 天前
    WSL2 真没啥意思
    min
        15
    min  
       17 天前
    裁员裁到大动脉了,所以开源了?
    my101du
        16
    my101du  
       17 天前
    @gam2046 现在可以在 Store 里用腾讯应用宝安装经过“审查”的 app 到电脑。 但估计原汁原味的 Android 的 adb 什么的应该都没有了。
    rahj
        17
    rahj  
       17 天前
    @min 哈哈 这个有可能
    flyqie
        18
    flyqie  
       17 天前 via Android
    @lambdaq #13

    看起来似乎主要是 wsl2
    pony2335
        19
    pony2335  
       17 天前
    @min 哈哈
    Hephaistos
        20
    Hephaistos  
       17 天前   ❤️ 1
    @istomyang "不想鸟"指的是这两年支持的发行版越来越多么?
    MrKrabs
        21
    MrKrabs  
       17 天前
    @Hephaistos 一群 launchd-like 区别很大吗
    liyafe1997
        22
    liyafe1997  
       16 天前
    @villivateur 这些部分(内核和 WSLg 也就是 Wayland/Weston 那部分)一直都是开源的
    volantRookie
        23
    volantRookie  
       16 天前
    建议倒闭,难用
    Jack927
        24
    Jack927  
       16 天前
    可惜的是 wsa 没了,希望 wsa 能复活
    tabc2tgacd
        25
    tabc2tgacd  
       16 天前
    @Jack927 wsa 给腾讯了,现在 win 商店有一个腾讯应用宝就是这玩意吧
    Fdyo
        26
    Fdyo  
    OP
       16 天前   ❤️ 1
    @tabc2tgacd 腾讯应用宝不是 WSA ,虽然都是跑 Android 应用。具体有关腾讯应用宝的一些细节 👉 https://ohh.run/qcxx
    tabc2tgacd
        27
    tabc2tgacd  
       15 天前
    @Fdyo 原来这样,我还以为这是 wsa 呢
    Jack927
        28
    Jack927  
       15 天前   ❤️ 1
    @tabc2tgacd 不一样的, 腾讯应用宝 这块首先是国区特供,其次是技术上应该是一个安卓模拟器。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2623 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 11:50 · PVG 19:50 · LAX 04:50 · JFK 07:50
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.