Are you a developer working on Microsoft’s cloud platforms like Azure? Then, you should read this post. Microsoft has released a new open-source Linux project, ‘CBL-Mariner’, an internal Linux distribution for Microsoft’s cloud infrastructure as part of an open-source initiative. Well, this is not the first initiative project by Microsoft. It has contributed its investments in developing various Linux-based technologies, such as SONiC, Azure Sphere OS, and Windows Subsystem for Linux (WSL). Now, you might want to know where should I download the CBL-Mariner ISO file. Microsoft didn’t release a bootable ISO file for the public. You have to build a CBL-Mariner ISO Image on your own. Let’s explore how to build a CBL-Mariner ISO Image in this demo.
Let’s clear the concept, CBL-Mariner is an open-source internal Linux distribution developed for Microsoft’s cloud infrastructure and edge products and services. It is not the OS developed for end-users like Ubuntu, Debian, and Mint Linux distributions. It is designed to provide a consistent platform for cloud services. Visit this git page to read more about CBL-Mariner.
Microsoft didn’t release installable files like its ISO, VHDX, or VMDK. We will show you how to build ISO images on your own and also share pre-built ISO images to make you more convenient. We are going to build a CBL-Mariner ISO image on Ubuntu Linux for demonstration purposes. Let’s quickly install the required packages on the Ubuntu on which we are going to build the CBL-Mariner ISO file.
Packages Required to Build CBL-Mariner ISO file:
Ubuntu Linux or any popular distribution.
Go Language
Docker Engine
make
tar
wget
curl
rpm
qemu-utils
golang-1.15-go
genisoimage
python-minimal
bison
gawk
git
How to Build CBL-Mariner ISO Image?
Run this command to add a backports repo to install the necessary version of Go on Ubuntu:
$ sudo add-apt-repository ppa:longsleep/golang-backports
$ sudo apt-get update
Run this command to install make, tar, wget, curl, rpm, qemu-utils, golang-1.15-go, genisoimage, python-minimal3.8, bison, and gawk packages on Ubuntu:
$ sudo apt -y install make tar wget curl rpm qemu-utils golang-1.15-go genisoimage python-minimal bison gawk
Run this command to install pigz on Ubuntu. This is an optional package to install. It is recommended but not required to have:
$ sudo apt -y install pigz
Create soft link of go inside user’s bin directory to fix go 1.15 link:
$ sudo ln -vsf /usr/lib/go-1.15/bin/go /usr/bin/go
Run these commands to install the Docker engine on Ubuntu
$ curl -fsSL https://get.docker.com -o get-docker.sh
$ sudo sh get-docker.sh
$ sudo usermod -aG docker $USER
Note: Log out and Log in to save the changes to the user.
Install git on Ubuntu if not installed:
$ sudo apt install git
Clone CBL-Mariner to your local disk:
$ git clone https://github.com/microsoft/CBL-Mariner.git
Check out the desired release branch. Sync to the latest stable build.
$ git checkout 1.0-stable
Change your directory to CBL-Mariner/toolkit/ and build ISO bootable image using this command:
$ cd CBL-Mariner/toolkit/
$ sudo make iso REBUILD_TOOLS=y REBUILD_PACKAGES=n CONFIG_FILE=./imageconfigs/full.json
Note: This process may take 1 to 2 Hrs. Wait to complete the process.
$ sudo add-apt-repository ppa:longsleep/golang-backports
$ sudo apt-get update
$ sudo apt -y install make tar wget curl rpm qemu-utils golang-1.15-go genisoimage python-minimal bison gawk
$ sudo apt -y install pigz
$ sudo ln -vsf /usr/lib/go-1.15/bin/go /usr/bin/go
$ curl -fsSL https://get.docker.com -o get-docker.sh
$ sudo sh get-docker.sh
$ sudo usermod -aG docker $USER
Log out and Login after this to save the permission changes.
$ sudo apt install git
After installation of all the required packages. Let’s see how to build CBL-Mariner ISO Image.
$ git clone https://github.com/microsoft/CBL-Mariner.git
$ git checkout 1.0-stable
$ cd CBL-Mariner/toolkit/
$ sudo make iso REBUILD_TOOLS=y REBUILD_PACKAGES=n CONFIG_FILE=./imageconfigs/full.json
Note: This process may take 1 to 2 Hrs. Wait to complete the process.
You will see bootable CBL-Mariner ISO Image inside /CBL-Mariner/out/images/full:
We are going to share the CBL-Mariner ISO file which we have created. You can download the bootable CBL-Mariner ISO file from here.
As promised, we have shown a step-by-step procedure to build a CBL-Mariner ISO image along with a prebuilt ISO file which would save you time to build a CBL-Mariner ISO from scratch.
Thanks for reading this tutorial post. Please visit our site to read more such interesting tutorials.
You may also like these articles:
Step By Step Procedure To Install CBL-Mariner On VMWare – Microsoft's Linux Distribution!
Step-By-Step Procedure To Install Ubuntu Linux On VMWare Workstation
Step-By-Step Procedure To Install CentOS Linux On VMWare Workstation
Step-By-Step Procedure To Install Linux Mint Linux On VMWare Workstation
Step-By-Step Procedure To Install MX Linux On VMWare Workstation
Arun KL is a cybersecurity professional with 15+ years of experience in IT infrastructure, cloud security, vulnerability management, Penetration Testing, security operations, and incident response. He is adept at designing and implementing robust security solutions to safeguard systems and data. Arun holds multiple industry certifications including CCNA, CCNA Security, RHCE, CEH, and AWS Security.
“Knowledge Arsenal: Empowering Your Security Journey through Continuous Learning”
"Cybersecurity All-in-One For Dummies" offers a comprehensive guide to securing personal and business digital assets from cyber threats, with actionable insights from industry experts.
BurpGPT is a cutting-edge Burp Suite extension that harnesses the power of OpenAI's language models to revolutionize web application security testing. With customizable prompts and advanced AI capabilities, BurpGPT enables security professionals to uncover bespoke vulnerabilities, streamline assessments, and stay ahead of evolving threats.
PentestGPT, developed by Gelei Deng and team, revolutionizes penetration testing by harnessing AI power. Leveraging OpenAI's GPT-4, it automates and streamlines the process, making it efficient and accessible. With advanced features and interactive guidance, PentestGPT empowers testers to identify vulnerabilities effectively, representing a significant leap in cybersecurity.
Tenable BurpGPT is a powerful Burp Suite extension that leverages OpenAI's advanced language models to analyze HTTP traffic and identify potential security risks. By automating vulnerability detection and providing AI-generated insights, BurpGPT dramatically reduces manual testing efforts for security researchers, developers, and pentesters.
Microsoft Security Copilot is a revolutionary AI-powered security solution that empowers cybersecurity professionals to identify and address potential breaches effectively. By harnessing advanced technologies like OpenAI's GPT-4 and Microsoft's extensive threat intelligence, Security Copilot streamlines threat detection and response, enabling defenders to operate at machine speed and scale.