How To Install maas on Ubuntu 18.04

In this tutorial we learn how to install maas on Ubuntu 18.04. maas is Metal as a Service is a physical cloud and IPAM

Introduction

In this tutorial we learn how to install maas on Ubuntu 18.04.

What is maas

maas is:

MAAS runs a software-defined data centre - it turns a collection of physical servers and switches into a bare metal cloud with full open source IP address management (IPAM) and instant provisioning on demand.

MAAS controls the servers through IPMI or another BMC or converged chassis controller such as Cisco UCS. It provides a full inventory of components, and can install Ubuntu, CentOS or Windows very fast on any server under its control. It can also track and provide DHCP and DNS for other devices on the network.

MAAS handles VLANs and fabrics that span many trunked switches, as well as the routing-centric infrastructure typically used for large-scale OpenStack or other scale-out deployments. MAAS manages IP addresses and provides APIs for address assignment and release. MAAS can also allocate IP addresses for containers on machines, and release them when the machine is repurposed. MAAS provides PXE, DHCP, DNS and other low-level services to ensure the cluster works smoothly.

MAAS works with any configuration system, and is recommended by the teams behind both Chef and Juju as a physical provisioning system.

MAAS provides:

  • Hardware inventory of servers
  • Dynamic provisioning based on name or attributes such as disk, RAM, cores, nics, networking, gpu’s or architecture
  • DNS and DHCP as needed
  • PXE boot services

This package is a metapackage which installs all of the separate components of MAAS on a single machine.

There are three methods to install maas on Ubuntu 18.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install maas Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install maas using apt-get by running the following command:

sudo apt-get -y install maas

Install maas Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install maas using apt by running the following command:

sudo apt -y install maas

Install maas Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install maas using aptitude by running the following command:

sudo aptitude -y install maas

How To Uninstall maas on Ubuntu 18.04

To uninstall only the maas package we can use the following command:

sudo apt-get remove maas

Uninstall maas And Its Dependencies

To uninstall maas and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove maas

Remove maas Configurations and Data

To remove maas configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge maas

Remove maas configuration, data, and all of its dependencies

We can use the following command to remove maas configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge maas

References

Summary

In this tutorial we learn how to install maas package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.