CBL-Mariner Linux 1.0 Released by Microsoft, Here’s How to Install it

Believe or not, Microsoft own Linux distro.

Definately, Microsoft has shown much more love for Linux in recent years. Windows Subsystem for Linux is a clear example of this.

Microsoftโ€™s Linux System Group is the team at Microsoft which created the WSL2. And now the team recently released the first stable version of its own Linux distro called CBL-Mariner. If you were wondering, CBL stands for Common Base Linux. The distro is used by Microsoft engineering teams to build its cloud infrastructure and edge products and services.

CBL-Mariner consumes limited disk and memory resources. The lightweight characteristics of CBL-Mariner also provides faster boot times and a minimal attack surface.

However, let’s make an important clarification: CBM-Mariner is not a general purpose Linux disro. Its purpose is to be used as an internal lightweight Linux distro for Microsoftโ€™s engineering teams into the Azure infrastructure.

How to Install Microsoft CBL-Mariner Linux

Microsoft made CBL-Mariner available on GitHub under an MIT License. While the source code is available, there are no ISO images, but you can build your own. Here’s how to do it by using Ubuntu.

1. Build your own installation ISO image

First, let’s install some prerequisites we’ll need for building the ISO image:

sudo apt install make tar wget curl rpm qemu-utils golang-go genisoimage python2-minimal bison gawk

Next, clone the CBL-Mariner GitHub repo:

git clone https://github.com/microsoft/CBL-Mariner.gitCode language: PHP (php)
Cloning into 'CBL-Mariner'...
remote: Enumerating objects: 32298, done.
...
Receiving objects: 100% (32298/32298), 506.43 MiB, done.
Resolving deltas: 100% (15482/15482), done.Code language: JavaScript (javascript)

Finally, enter into CBL-Mariner/toolkit directory and build the installation ISO image. The following builds a bootable ISO image from precompiled RPMs:

cd CBL-Mariner/toolkit
sudo make iso REBUILD_TOOLS=y REBUILD_PACKAGES=n CONFIG_FILE=./imageconfigs/full.json
...
WARN[0001]  99.64% done, estimate finish Mon Jul 12 21:58:14 2021 
WARN[0001] Total translation table size: 2048           
WARN[0001] Total rockridge attributes bytes: 29673      
WARN[0001] Total directory bytes: 71680                 
WARN[0001] Path table size(bytes): 222                  
WARN[0001] Max brk space used 44000                     
WARN[0001] 346267 extents written (676 MB)Code language: CSS (css)

Done. You’ll find the ISO file in the ../out/images/full/ directory under a name such as full-1.0.20210712.2155.iso.

2. Install Microsoft CBL-Mariner Linux on VirtualBox

Create a new VirtualBox VM. Configure the hardware with 1 CPU, 1GB of RAM and an 8GB disk. This would be enough for a test. Select a start-up disk, in our case full-1.0.20210712.2155.iso, and begin the installation process following the screens shown below.

2.1 Choose ‘Graphical Installer‘ option.

Installation Welcome Screen

2.2 Select ‘CBL-Mariner Full‘ for installation type.

CBL-Mariner Installation Wizard

2.3 Accept terms and conditions.

Accept Terms and Conditions

2.4 Select ‘Erase disk‘ option. Of course, there is an option to manually partition the disk.

CBL-Mariner Partitioning

2.5 Enter your preferred name, username and password. Note that this user will have root/sudo privilege. When you’re done, just hit the ‘Install‘ button.

CBL-Mariner System Configuration

2.6 Wait for installation to complete…

Installation in progress...

2.7 As you can see on the image below, the installation process is extremely fast.

Microsoft CBL-Mariner Linux Successfully Installed

Congratulations! You have successfully managed to install Microsoft CBL-Mariner Linux on VirtualBox. Now just login with previously created user credentials.

Microsoft CBL-Mariner Linux Started

As you can see, the CBL-Mariner package system is RPM-based. It use tdnf (Tiny DNF) which is a C implementation of the DNF package manager without Python dependencies. Alternatively, you can also use the well-know dnf command for the package management.

Bobby Borisov

Bobby Borisov

Bobby, an editor-in-chief at Linuxiac, is a Linux professional with over 20 years of experience. With a strong focus on Linux and open-source software, he has worked as a Senior Linux System Administrator, Software Developer, and DevOps Engineer for small and large multinational companies.

Think You're an Ubuntu Expert? Let's Find Out!

Put your knowledge to the test in our lightning-fast Ubuntu quiz!
Ten questions to challenge yourself to see if you're a Linux legend or just a penguin in the making.

1 / 10

Ubuntu is an ancient African word that means:

2 / 10

Who is the Ubuntu's founder?

3 / 10

What year was the first official Ubuntu release?

4 / 10

What does the Ubuntu logo symbolize?

5 / 10

What package format does Ubuntu use for installing software?

6 / 10

When are Ubuntu's LTS versions released?

7 / 10

What is Unity?

8 / 10

What are Ubuntu versions named after?

9 / 10

What's Ubuntu Core?

10 / 10

Which Ubuntu version is Snap introduced?

The average score is 68%