在我的虚拟机中安装最新的稳定版 Rancher Desktop 时出现以下错误。
有人可以帮忙吗?
错误:
错误:wsl.exe 退出,代码为 4294967295
命令:
wsl --distribution rancher-desktop --exec mkdir -p /mnt/wsl/rancher-desktop/run/data
日志:
2022-02-02T09:58:39.490Z:运行命令 wsl --distribution 牧场主桌面--exec wslpath -a -u C:\Users\VIVEK~1.NUN\AppData\Local\Temp d-distro-gGd3SG\distro.tar... 2022-02-02T09:58:40.641Z:运行命令 wsl --distribution 牧场主桌面--exec tar -cf /mnt/c/Users/VIVEK~1.NUN/AppData/Local/Temp/rd-distro-gGd3SG/distro.tar -C / /bin/busybox /bin/mount /bin/sh /lib /etc/wsl.conf /etc/passwd /etc/rancher /var/lib... 2022-02-02T09:58:42.628Z: 正在运行命令wsl --import rancher-desktop-data C:\Users\Vivek.Nuna\AppData\Local ancher-desktop\distro-data C:\Users\VIVEK~1.NUN\AppData\Local\Temp d-发行版-gGd3SG\distro.tar --version 2... 2022-02-02T09:58:44.025Z: 运行命令 wsl --distribution rancher-desktop-data --exec /bin/busybox [ ! -d /etc/rancher]... 2022-02-02T09:58:44.025Z: 运行命令 wsl --distribution rancher-desktop-data --exec /bin/busybox [ ! -d /var/lib ]... 2022-02-02T10:03:54.533Z: 运行命令 wsl --terminate rancher-desktop... 2022-02-02T10:03:54.534Z: 运行命令 wsl --terminate rancher-desktop-data... 2022-02-02T10:03:54.971Z:运行命令 wsl --distribution rancher-desktop --exec mkdir -p /mnt/wsl/rancher-desktop/run/data... 2022-02-02T10:04:03.418Z:WSL:执行:mkdir -p /mnt/wsl/rancher-desktop/run/data: Error: wsl.exe exited with code 4294967295
我在 Windows 10 中遇到了同样的问题。
以下解决方案帮助了我:
wsl --update
Rancher Desktop 现在运行良好。
Rancher桌面安装完成后,就可以在Windows命令行中成功使用
docker
和kubectl
命令了
我按照这里的第 4 步和第 5 步解决了这个问题: https://learn.microsoft.com/en-us/windows/wsl/install-manual#step-4---download-the-linux-kernel-update-package
我通过查看 %USERPROFILE%\AppData\Local 找到了这个答案 ancher-desktop\logs\wsl-exec.log 显示: “WSL 2 需要更新其内核组件。有关信息,请访问 https://aka.ms/wsl2kernel”
> wsl --unregister rancher-desktop
> wsl --unregister rancher-desktop-data
如果你是windwos系统。转到:控制面板 -> 程序和资源。然后单击左侧的“启用禁用资源窗口”,它们会启用 Hyper-V。这是必要的,因为 kubernetes 需要访问 VM Vitual Switch。
为了在我的 windows 机器上解决这个问题,我卸载了之前安装的所有 DNS 代理应用程序,之后我从 rancher 桌面重置了 kubernets 集群。之后一切正常。
检查您的机器中是否有像 Acrylic 这样的 DNS 应用程序并卸载它们,如果此解决方案也适用于您,请告诉我。
希望有帮助