CBL-Mariner Linux is a lightweight operating system, containing only the packages needed for a cloud environment. CBL-Mariner can be customized through custom packages and tools, to fit the requirements of your application. CBL-Mariner undergoes Azure validation tests, is compatible with Azure agents, and is built and tested by the Azure Edge & Platform to power various use cases, ranging from Azure services to powering IoT infrastructure. CBL-Mariner is the internally recommended Linux distribution for use with Microsoft cloud services and related products.
In the following steps we are going to install CBL-Mariner 2.0 on Hyper-V as a virtual Docker Container Host.
First you have to download CBL-Mariner 2.0 (Azure Linux) ISO here
Enable Secure Boot Template: Microsoft UEFI Certificate Authority
When you have made your Virtual Machine on Microsoft Hyper-V, you have to change the Security Boot Template from Microsoft Windows to Microsoft UEFI Certificate Authority and then you can boot from the ISO.
Select the Installation Experience
I used the Graphical Installer,
Select Next.
Default is the installation type: CBL-Mariner Core
I selected Installation type: CBL-Mariner Full
Read and Accept the CBL-Mariner Eula.
Here you can Partition your Storage.
Enter the Computer hostname and Create a User account.
Install Now.
Installing CBL-Mariner 2.0 on the VM.
And yes It’s fast 😉
Login with your new created user account.
It’s a habbit of my to update always the OS before doing other installations, so in the next steps we are going to upgrade to the latest updates since the ISO is released. Then we are going to install Azure-CLI and Docker Host for Containers.
Type the Command: Sudo dnf upgrade
The OS is now asking a couple of times if it’s OK to install.
Installing of Packages to update the System.
Upgrade of CBL-Mariner 2.0 is Completed.
Installing Microsoft Azure-CLI on CBL-Mariner 2.0
The Azure Command-Line Interface (CLI) is a cross-platform command-line tool to connect to Azure and execute administrative commands on Azure resources. It allows the execution of commands through a terminal using interactive command-line prompts or a script. Here you can find more about Microsoft Azure-CLI
First, we install the ca-certificates
then
we install Microsoft Azure-CLIÂ
    type Y if this is OK.
Azure-CLI is installed.
The Latest Microsoft Azure-CLI is running on your up-to-date CBL-Mariner VM.
Type command: cat /etc/os-release
and you can see the exact version of CBL-Mariner 2.0
Installing Docker Container host on CBL-Mariner 2.0
Docker provides the ability to package and run an application in a loosely isolated environment called a container. The isolation and security lets you run many containers simultaneously on a given host. Containers are lightweight and contain everything needed to run the application, so you don’t need to rely on what’s installed on the host. You can share containers while you work, and be sure that everyone you share with gets the same container that works in the same way.
Docker provides tooling and a platform to manage the lifecycle of your containers:
- Develop your application and its supporting components using containers.
- The container becomes the unit for distributing and testing your application.
- When you’re ready, deploy your application into your production environment, as a container or an orchestrated service. This works the same whether your production environment is a local data center, a cloud provider, or a hybrid of the two.
Now we are going to install the Docker Container host software on Microsoft CBL-Mariner 2.0 (Azure Linux):
Type Command: sudo tdnf install moby-engine moby-cli ca-certificates -y
Type command: sudo systemctl enable docker.service
Type command: sudo systemctl start docker.service
and then
type command: sudo systemctl status docker.service
Now you can pull or create your containers from here for example:
Type Command: docker run -it -d –name my_container ubuntu bash
Here I’m inside the Ubuntu Linux Container running on CBL-Mariner 2.0 with Docker Container Host.
Docker Container Ubuntu image.
More information about Microsoft CBL-Mariner 2.0 you can find here:
Microsoft CBL-Mariner 2.0 (Azure Linux) on Github
Microsoft CBL-Mariner 2.0 (Azure Linux) Security
Microsoft CBL-Mariner 2.0 (Azure Linux) Toolkit docs
Conclusion
Running Microsoft CBL-Mariner 2.0 (Azure Linux) on Azure Stack HCI Hyper-V Cluster or in Microsoft Azure Cloud can be very powerfull as a lightweight Linux operating system at the Edge. Now we did running Docker Container Host on CBL-Mariner 2.0 (AzureLinux) but you can also install Microsoft Azure Arc agent to use this Operating System in a Adaptive Cloud way for Azure Hybrid Management and security. Try it yourself first in your test lab and when you have build a great security by design solution, use it in production for your business.
Join Containers in the Cloud LinkedIn Community Group for Free










































































































