2

微软改主意了:Windows Server提供WSL2支持

 1 year ago
source link: https://blog.csdn.net/csdnnews/article/details/125065404
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

微软改主意了:Windows Server提供WSL2支持

整理 | 章雨铭 责编 | 张红月
出品 | CSDN(ID:CSDNnews)

2020年微软在Windows 10上引入了对Windows Subsystem for Linux 2(WSL 2)的支持,除了客户端,用户希望在服务端引入WSL 2支持的呼声越来越大。然而微软却公开发布了一些不在Windows Server 2022中运行WSL2的原因:WSL2不是为在生产场景中使用而设计的。

但最近,微软似乎改了主意:5月25日,微软宣布在Windows Server 2022中运行基于WSL2的Linux发行版。尽管官方更新日志中没有提到这一变化,但微软的项目经理Craig Loewen在GitHub的评论中确认了这一点。

在这里插入图片描述

Craig Loewen确认Windows Server添加对WSL2的支持

WSL2:Linux内核和Windows完全兼容

WSL2(Windows Subsystem for Linux 2)在2019年5月首次亮相,它使用虚拟化技术在轻量级实用程序虚拟机(VM)中运行开源Linux内核,这种虚拟机比传统的虚拟机更轻、带给用户更加原生的体验。这样Windows用户能够运行流行的Linux应用程序,如Docker。有了WSL2,微软开始将一个完整的Linux内核与Windows一起运行,系统调用可以完全兼容。

2020年上半年,微软发布了在Windows10上WSL 2的支持。当时,微软也是通过半年一次的更新来支持Windows Server,就和Windows 10一样,只有运行Windows Server半年更新频率的渠道用户才能得到对WSL2的支持。去年,微软停止了Windows Server的半年期更新渠道,回到了主要版本,如Windows Server 2022。但是,和Windows Server 2019一样,这个新版本仍然不包括对WSL2的支持。

在2021年,为了回应用户将该技术向后移植到Windows Server 2019的请求,Windows Server的首席项目经理Jeff Woolsey在2021年初回应说WSL“非常适合开发”和“非常适合Windows客户端”,但他认为WSL2不是为在生产场景中使用而设计的。

在这里插入图片描述

Jeff Woolsey2021年2月回应

以为不可能,但却实现了

但是用户仍然在GitHub上发表对于Windows Server 2022引入支持的WSL希望。

在这里插入图片描述
在这里插入图片描述

有的网友认为这希望渺茫,但微软似乎听到了这一诉求,在Windows Server 2022中提供了WSL 2支持。

在这里插入图片描述
本次更改将在下个月推出,如果用户正在运行Windows Server 2022,并且想要使用WSL 2 Linux发行版,可以从Windows Update获取最新的更新。

不少网友都拍手叫好,此举对你有帮助吗?欢迎留言告诉我们。

参考资料:

https://www.theregister.com/2022/05/26/wsl2_windows_server_2022/

https://www.solidot.org/story?sid=71670

https://github.com/microsoft/WSL/issues/6301

文章知识点与官方知识档案匹配,可进一步学习相关知识

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK