WSL 2 有谁成功安装上的吗?

2019-06-26 10:26:52 +08:00
 ksc010
https://docs.microsoft.com/zh-cn/windows/wsl/wsl2-install
6154 次点击
所在节点    问与答
29 条回复
RHG
2019-06-26 15:02:35 +08:00
系统需要 18917 或更高版本。
引用英文版内容:
“ Troubleshooting:
Below are related errors and suggested fixes when installing WSL 2. Please refer to the WSL troubleshooting page for other general WSL errors and their solutions.

Installation failed with error 0x80070003

Please make sure that virtualization is enabled inside of your computer's BIOS. The instructions on how to do this will vary from computer to computer, and will most likely be under CPU related options.
Error when trying to upgrade: Invalid command line option: wsl --set-version Ubuntu 2

Please make sure that you have the Windows Subsystem for Linux enabled, and that you're using Windows Build version 18917 or higher. To enable WSL run this command in a Powershell prompt with admin privileges: Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux. You can find the full WSL install instructions here).”
guyeu
2019-06-26 17:01:52 +08:00
装上了,体验其实没啥差别,等待 docker for wsl2 ing。
ksc010
2019-06-26 17:55:20 +08:00
@RHG
@guyeu
我倒是安装上了 但是 闪退
运行 wsl 提示“远程主机强迫关闭了一个现有的连接。”
ksc010
2019-06-26 17:57:34 +08:00
“装上了,体验其实没啥差别,等待 docker for wsl2 ing。”
----------------------------------------
不是说 wsl 2 支持 docker 吗?
起码一些网络程序应该可以的 比如 netstat

之所以想用 wsl 2 是因为 php-fpm 和 nginx 通讯都有问题
guyeu
2019-06-26 18:02:13 +08:00
@ksc010 #3 #4 你或许需要看下是哪个东西报了这个错,我这边所有发行版运行都没问题。
关于 docker,可以在 wsl 2 里安装 docker 了,但是如果把 docker 作为守护进程在 wsl2 里运行的话,重启 windows 的时候就会失效,即使启动了 wsl2 也不行。

docker 官方准备发布一个基于 wsl2 而不是 hyper-v 实现的 docker 的 windows 应用程序,我说的是这个。
deorth
2019-06-26 19:07:35 +08:00
有没有在 wsl2 跑了图形的,wsl1 的硬件图形加速基本没有,用 VcXsrv 跑桌面,试了一圈也就 xfce 能用
0312birdzhang
2019-06-26 19:21:47 +08:00
@guyeu docker 已经可以跑了,等 systemd 吧
mrcode
2019-06-26 22:41:31 +08:00
虽然看上去是装上了,但是打不开了。。
pengwen
2019-06-26 22:44:17 +08:00
wsl2 的 io 真的很慢
godlovesxcjtest
2019-06-26 22:50:58 +08:00
别用,现在还不是很成熟,我用过,各种 bug
Midnight
2019-06-26 23:55:18 +08:00
目前使用 wsl2 还不如虚拟机来得干脆
wuhann
2019-06-26 23:59:53 +08:00
那么这玩意和自己 hyper-v 装一个系统的区别是什么
ys0290
2019-06-27 00:24:47 +08:00
@deorth VcXsrv 需要安装桌面?我没装桌面也给启动了
creedowl
2019-06-27 00:27:28 +08:00
wsl2 和 vmware 能兼容了吗
12101111
2019-06-27 02:09:27 +08:00
@wuhann @Midnight 0.5s 启动,50M 内存占用,全局文件相互访问,win32 程序互调用
deorth
2019-06-27 07:05:25 +08:00
@ys0290 不需要,只是我想跑个桌面。万年 explorer 腻了
starsky007
2019-06-27 08:11:12 +08:00
看了下回复,还是继续我的 VirtualBox + Vagrant 吧
mmdsun
2019-06-27 08:37:34 +08:00
wsl2 有 azure 技术加持。
guyeu
2019-06-27 13:51:45 +08:00
@0312birdzhang #7 那你等吧,愿它长寿。
我等 docker for wsl2 就行。
0312birdzhang
2019-06-27 14:07:00 +08:00
@guyeu #19 docker for wsl2 已经可以了,1903 版本上就可以了,不用等了。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/577550

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX