Using Gentoo On WSL

Using Gentoo On WSL

Otto Deng
Larry the cow finds it magical !


  1. Make sure hardware virtualization is enabled in BIOS.

确保在BIOS开启了虚拟化


2.Log into Windows and open an administrator PowerShell prompt.

以管理员身份打开Powershell


3.Make sure WSL is installed:

安装wsl,详细可见microsoft文档

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform


4.Grab a Gentoo stage3 AMD64 tarball (nomultilib recommended) from your mirror. Uncompress it, but leave it in tar format.

下载stage3

解压

再压缩成(.tar.gz)格式,重命名为rootfs #建议

wsl --import gentoo C:\Users\otto-the-win\gentoo\ C:\Users\otto-the-win\Downloads\rootfs.tar.gz --version 2 #在Powershell执行


5.Download Launch.exe from wsldl, rename Launch.exe to gentoo.exe

上面这个解决方案是个人觉得非常完美的一个

6.put rootfs.tar.gz and gentoo.exe in to same directory


7. under a windows terminal, change to the above folder, run gentoo (will install gentoo linux)

8. start the installed Gentoo linux by just run the gentoo.exe in a terminal

9. run "wsl --set-default-version gentoo 2 "to convert gentoo from wsl 1 to wsl 2.


灵感:https://forums.gentoo.org/viewtopic-t-1116432-start-0.html

Troubleshooting:问你微软(划掉

Report Page