Cloud and Datacenter Management Blog

Microsoft Hybrid Cloud blogsite about Management


Leave a comment

#WindowsAdminCenter and Windows Server 20H2 Core with WSL2 #Ubuntu Distro #Winserv #WSL2

Windows Server 2019 Core and WSL 2 Ubuntu 18.04

The Windows Subsystem for Linux (WSL) gives you the most command-line tools, utilities, and applications directly on Windows. I’m using Microsoft Windows Admin Center and Windows Server Core 20H2 with Build version 19042.746 to deploy WSL 2 with Ubuntu 18.04 Linux Distro. Here you find the installation of the Windows Server Core 20H2 with Windows Admin Center

In the following steps we will install the Following :

  • Windows Subsystem for Linux (WSL)
  • Move from WSL 1.0 to WSL 2.0
  • Install Ubuntu 18.04 Linux distro

Installing Windows Subsystem for Linux (WSL)

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

This will install the WSL Feature.
When it ask do you want to Restart select No, because we will install the Next Feature :

Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform

Select now Yes for Restarting the Server.

Moving from WSL 1.0 to WSL version 2.0

Before we Move from WSL version 1 to WSL version 2, we need a WSL Kernel Update.
Download here https://aka.ms/wsl2kernel

I Created a Share on the Windows Server via WIndows Admin Center.
And Uploaded the WSL_Update_X64.msi

Run WSL_Update_X64 and Click on Next.

Click on Finish

WSL –Set-Default-Version 2
Now we have Windows Subsystem for Linux version 2 Active.

Install Ubuntu 18.04 Linux Distro for WSL2

With the following Powershell Invoke-WebRequest we get Ubuntu 18.04


Invoke-WebRequest -Uri https://aka.ms/wsl-ubuntu-1804 -OutFile ~/Ubuntu1804.zip -UseBasicParsing
md C:\Distros\Ubuntu1804
Expand-Archive ~/Ubuntu1804.zip C:\Distros\Ubuntu1804


Run Ubuntu 18.04

Ubuntu 18.04 is Running in WSL2 on Windows Server Core 20H2 πŸ˜‰

Conclusion

First of All Microsoft Windows Admin Center is supporting me in the Installation of Windows Subsystem for Linux. We have WSL 2 Running with Ubuntu 18.04 with a lot of possibilities!
What I really like is integration, like in Windows 10 and Docker for desktop with the WSL 2 Engine. Here my Blogpost
Together with VSCode Remote WSL is Cool.

Would be awesome to run Docker Windows and Linux Containers in combination with WSL 2 integration on Windows Server Core edition. Maybe in the Future, who knows?


Leave a comment

Running #Dapr in WSL2 Ubuntu 20-04 distro in #WindowsInsider Build 21277 RS and #VSCode

Working with Dapr in WSL2 Remote VSCode and Ubuntu 20.04 distro

Dapr is a portable, event-driven runtime that makes it easy for any developer to build resilient, stateless and stateful applications that run on the cloud and edge and embraces the diversity of languages and developer frameworks.

 

Developer language SDKs and frameworks

To make using Dapr more natural for different languages, it also includes language specific SDKs for Go, Java, JavaScript, .NET and Python. These SDKs expose the functionality in the Dapr building blocks, such as saving state, publishing an event or creating an actor, through a typed, language API rather than calling the http/gRPC API. This enables you to write a combination of stateless and stateful functions and actors all in the language of their choice. And because these SDKs share the Dapr runtime, you get cross-language actor and functions support.

SDKs

Dapr in Standalone version.

I’m using Windows Insider Build version 21277-RS with Docker for Windows Edge and Visual Studio Code.

Docker for Windows Edge Version Running.

Because Docker for Windows Edge support WSL2 Engine and Visual Studio Code too, brought me to an idea to build dapr into Ubuntu 20.04 WSL Distro on my Windows Insiders 21277 RS version on my Surface Book 3. There for you must activate the WSL2 integration with my default WSL distro Ubuntu-20.04.

Docker for Windows WSL 2 Integration.

In your Ubuntu-20.04 WSL2 version, you can install Dapr into your linux distro, more information you find here on dapr.io

Microsoft Windows Subsystem for Linux Installation Guide for Windows 10 with all kind of Linux distro’sΒ 

Dapr init ( in the Ubuntu-20.04 WSL2 Linux distro )

Here you find the Dapr dev environment installation types for Dapr init, I did the standalone version. Dapr makes then the following containers :

Dapr Containers.

Then we have the following running :

  • Dapr Dashboard
  • Zipkin

Zipkin is a distributed tracing system. It helps gather timing data needed to troubleshoot latency problems in service architectures. Features include both the collection and lookup of this data.

Zipkin Traces

Dapr Dashboard

Now we have Dapr running in the WSL2 Ubuntu-20.04 distro, you can use Visual Studio Code on Windows Insiders using Remote WSL and work with your favourite dapr SDK like the list above πŸ˜‰

Dapr Extension in VSCode

From here you can work with your dapr application.

In this guide dapr is running with Docker containers, but you can also install it on Kubernetes or K8s, AKS, Azure any where, see this overview :

Dapr with Kubenetes Containers.

Dapr Overview.

Important Note : Dapr is now production ready with version 1.0 ! Developers, DevOps, AzOps, you can start with it and Build and Test your own microservices and Container apps !Β  Hope you are having fun with it too πŸ˜‰

 

 


Leave a comment

Windows Insiders – WSL 2 – Windows Terminal #WIMVP #WindowsInsiders #Kali #Azure

Windows Insiders Preview Build 19613

If you like to test the new features of Windows 10 and give feedback to the Microsoft product team, then the Windows Insiders Program is the place to Join. Here you can become a Windows Insider

I’m a Windows Insider since 2014 and a Windows Insider MVP since July 2019 and I love the collaboration with the Community and with the Microsoft Product Team to make a better product like Windows 10 together.

On my windows Insiders Build version 19613, I like to have my tools and Apps installed like :

I’m in the Microsoft Windows Insiders FAST Ring, and I want to test everything like Windows 10 operating system but my Tools must also be working on every new Windows Insiders Build.

Installing WSL 2 and Windows Terminal on Windows Insider Build version

Open Powerhell in Administrator modus

dism.exe /online /enable-feature /featurename:Microsoft-WindowsSubsystem-Linux /all /norestart

dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart

When both dism commands are successfully completed, you have to restart your machine.

wsl –set-default-version 2

Now you have set WSL 2 version in the basic, but you have to install a Linux distro where you can find
here in the Microsoft Store

I installed Kali Linux distro from the Microsoft Store.

Enter a New User name and password.

Kali Linux distro is now running on WSL 2 on my Windows Insiders Build.

One of the Cool features in Windows Insiders Build version 19613 is that you can use your File explorer for Kali Linux πŸ˜‰


Linux in Windows Insider Explorer.

Exploring Kali Linux

And of course updating the Kali Linux distro with

Sudo apt-get update

And at last…….

sudo apt-get upgrade

The Next tool is Windows Terminal (Preview) from the Microsoft Store

Just Click on Get ( in the Microsoft Store)

Click on Launch

This Windows Terminal Preview version on Windows Insiders can run :

  • Command Prompt
  • Powershell
  • Kali Linux distro (WSL 2)
  • Azure CloudShell

From here I can Manage and Install Microsoft Azure Cloud Services with Cloud Shell running on my Windows Insiders Build
for testing all the new features and this goes really easy :

Click next to PowerShell in the pulldown bar on Azure Cloud Shell and copy the Code
into the next URL https://microsoft.com/devicelogin

Enter here your Code from Windows Terminal.

Done you are logged-In Azure via Windows Terminal on Windows Insiders Build.

Azure Cloud Shell in Windows Terminal πŸ˜‰

Conclusion

The Windows Insiders Program is Awesome to join when you like to test the Newest features of Windows 10 but also the Tools and applications running on the newest Windows Insiders Build version are Cool. When you work with Fast ring releases and Preview versions of tools you can hit a bug, or something is not working. That’s the moment you give feedback in the Windows Insider Feedback HUB to support the Microsoft Windows Insiders Product Team to fix the Bug.

Together we are building for the future of Windows 10 !

Windows Insider Program Feedback Hub.

And as a Windows Insider you can earn Badges for your Support πŸ˜‰