I am trying to enable WSL with Ubuntu on a VM with Windows Server 2019. I am using the Powershell, running as Admin and following instructions here : https://docs.microsoft.com/en-us/windows/wsl/install-on-server .
After enabling WSL, I restarted and run :
Get-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
I can status shows as enabled. When I run wsl command I get a access denied message:
PS C:\> wsl
Access is denied.
I went ahead and downloaded Ubuntu distro and ran the executable:
PS C:\Users\ad_svoorakk\Ubuntu> ./ubuntu1804.exe
Installing, this may take a few minutes...
Access is denied.
Please create a default UNIX user account. The username does not need to match your Windows username.
For more information visit: https://aka.ms/wslusers
Enter new UNIX username:
When I enter a username, I see an access denied message and am prompted for username again.
Enter new UNIX username: xxxxxxx
Access is denied.
Enter new UNIX username:
Is there something happening here because this is a VM and there is something I need to do differently? Or does WSL run on VMs at all?