Arms-On with WSL: Setting up Home windows Subsystem for Linux on Home windows Server
The current launch of Home windows Server 2016 model 1803 lets WSL to be set up on it. Tom Fenton measures you through the system.
Home windows Subsystem for Linux (WSL) has been offered for Home windows ten considering the fact that 2017, and in a past post I confirmed you how to install WSL on Home windows ten. The current launch of Home windows Server 2016 model 1803 (produced April thirty, 2018) lets WSL to be set up on it, and in this post I’ll show you how.
Although WSL is now offered for Home windows Server, getting a construct of Home windows that supports WSL can be difficult as the only production variations of Home windows Server that are at the moment offered to most customers are pre-1803 builds (Determine one). In purchase to get a model of Home windows Server that supports WSL, you want to be either operating a Home windows Insider Plan for Small business or utilizing a Semi-Annual Channel construct, which is only offered to Software program Assurance or Microsoft Cloud buyers.
I utilized my Home windows Insider Account to download Home windows Server Insider preview construct 17650, and set up it as a virtual machine (VM) with two vCPUs and 8GB of RAM on vSphere six.5. Right after Home windows Server was set up, I confirmed that I was operating a model of it that supports WSL by coming into winver from the command line. Determine two shows the benefits.
Like quite a few other features, WSL can be set up from the Server Manager. To do this, provide up the Server Manager, then choose the following measures: find Add roles or features, find Job-dependent or attribute-dependent installation, find your nearby server and then click Up coming on the Find Server Roles web page. On the Find features web page find Home windows Subsystem for Linux (Determine 3) and, eventually, on the confirmation web page click Install. I experienced to restart my technique just after WSL experienced finished putting in.
Right after restarting my server, I logged back again in and entered WSL on the command prompt and was educated that WSL was functioning but no Linux distributions had been set up (Determine four). It instructed me to go to https://aka.ms/wslstore however, this message seems to be an error as this World-wide-web web site does not exist. Alternatively, I was in a position to enter https://aka.ms/wsl-ubuntu-1604 on my World-wide-web browser and download Ubuntu for WSL. If you want to download OpenSuse, use the URL https://aka.ms/wsl-opensuse-forty two, and for SLES twelve, use the URL https://aka.ms/wsl-sles-twelve.
Once the Ubuntu file was downloaded, I extracted it and double clicked ubuntu when presented with a dialog indicating Home windows Defender SmartScreen prevented an unrecognized application from starting up, I clicked Operate anyway (Determine 5). It took couple minutes to install, and I was then presented with a prompt to enter a user and set the user’s password (Determine six).
Once Ubuntu experienced finished putting in and I experienced made a user, I could then enter wsl on the command prompt and use the WSL bash shell to conduct several functions. To see some of the matters that you can do with WSL, be certain to read my article content about executing day-to-day jobs, operating graphical apps and other features and apps that operate with WSL.
Tom Fenton operates in VMware’s Schooling department as a Senior Program Developer. He has a prosperity of hands-on IT knowledge gained about the previous twenty decades in a range of technologies, with the previous ten decades focused on virtualization and storage. Ahead of re-joining VMware, Tom was a Senior Validation Engineer with The Taneja Group, had been he headed their Validation Services Lab and was instrumental in starting up up its vSphere Virtual Volumes practice. He is on Twitter @vDoppler.