We already could do that with VMWare Workstation and VirtualBox, since at least 2010.
WSL could have been avoided if Microsoft had been more serious about the POSIX subsystem in Windows NT, or later Subsystem for UNIX-based Applications that was available until 2016.
> We already could do that with VMWare Workstation and VirtualBox, since at least 2010.
Yes but MS obviously viewed it as important enough to bring it inside their ecosystem.
As for the POSIX subsystem in NT, MacOS is POSIX compliant but Apple provide virtualization APIs to run Linux.
Because nowadays Linux ABI is more relevant than pure POSIX compliance.
BSDs and all surviving mainframes and micros also have either Linux VM support or syscall compatibility.
Microsoft saw those geeks that were buying Apple as shinny Linux, and then complaining about lack of compatibility, or that they only cared about POSIX toys but not really Linux proper, and saw a business case in shipping Linux in the box to counter that.
Which had they kept and improved POSIX support since Windows NT 3.51, that would never been a matter to discuss about.