And am I losing anything by switching?
I guess youâre losing a âlack of integrationâ?
I finally got round to trying this out and I have to say the integration between Linux and Windows is amazing, and well worth checking out for this reason alone. For example, being able to launch Windows applications from the a Linux terminal and vice versa is a real joy, and something I never imagined possible.
However, there are actually a number of caveats people need to be aware of before attempting to go down this route, particularly if like me they have a VirtualBox setup:
systemd
does not run on the version of Linux which runs in WSL2; if you are running a Linux distro which uses systemd to launch services and you have installed quite a few of them, you will need to migrate to starting/stopping them manually;- there is a small number of distros which are supported and which can be downloaded from the Windows Store (f.e. Ubuntu, Fedora, Kali etc.) If you are using another distro, you will have to find someone who has created a version for WSL2 and install that yourself.
- the biggest caveat of all: you cannot run WSL2 and VirtualBox at the same time, at least not on Windows 10 Home edition. You may be able to do it on Windows 10 Pro. When you install the former, it disables something so the latter wonât be able to run. In case you do find yourself in this situation, you can switch back by running the following command in Windows cmd/powershell:
bcdedit /set hypervisorlaunchtype auto
(Setting this to off
will allow you to run WSL2).
If you are running Windows 10 Pro, and are ok with caveats 1 and 2, it looks like WSL2 is a very attractive option. Otherwise you may have to stick with VirtualBox.
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.