相关信息
主要介绍如何在Windows下安装WSL(Linux子系统)实现显卡共享
https://github.com/mishamosher/CentOS-WSL
如果无法访问GitHub可以使用我上传的地址
http://openwrt.mrbun.cn:5000/sharing/QvxNHFAlh
bashvi /etc/wsl.conf
# 输入以下内容
[boot]
systemd=true
# 退出wsl并重启wsl
exit
wsl --shutdown
wsl
# 验证是否已经开启systemctl
ps --no-headers -o comm 1
bashcp /usr/lib/wsl/lib/nvidia-smi /usr/bin/nvidia-smi
chmod ogu+x /usr/bin/nvidia-smi
bash[wsl2]
networkingMode=bridged
vmSwitch=openwrt
ipv6=true
bashwin+r shell:startup
set ws=wscript.CreateObject("wscript.shell")
ws.run "wsl -d CentOS9-stream", 0
本文作者:MrBun
本文链接:
版权声明:本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!