“Maas and Juju on LXD and ZFS – part 1/4”

ubuntu-16-04-lts

UBUNTU MAAS (METAL-AS-A-SERVICE)

In this moment we’ll have on our physical host both LXD and ZFS environment installed, and we are ready for proceed with the creation of our vm to dedicate to Maas and Juju services.

01 STEP – CREATE A LXC PROFILE FOR MAAS

Lets create a container profile by copying the default:

$: lxc profile copy default maas

02 STEP – LAUNCH LXD CONTAINER

Once the profile has been created, you can now launch the LXC container:

$: lxc launch -p maas ubuntu:16.04 xenial-maas
Creating xenial-maas
Retrieving image: 100%
Starting xenial-maas

wait few second and then check list with that command

$: lxc list
+-------------+---------+----------------------+------+------------+-----------+
| NAME        |  STATE  |        IPV4          | IPV6 |    TYPE    | SNAPSHOTS |
+-------------+---------+----------------------+------+------------+-----------+
| xenial-maas | RUNNING | 10.20.40.40 (eth0)   |      | PERSISTENT | 0         |
+-------------+---------+----------------------+------+------------+-----------+

then to run the vm and entry in its own bash use this command

$: lxc exec xenial-maas bash

03 STEP – ADD A SECOND VNET ON LXC CONTAINER

After we’ve created our first container we need to add a second virtual interface

04 STEP – INSTALL MAAS ON LXC CONTAINER

At this point we’ll have a container with ubuntu 16.04 LTS created on LXD and ZFS environment and dedicated to Maas.  Let’s see how our physical host network adapter is configured

screen-shot-2016-11-08-at-12-42-28

at this point we can launch the following commands to install the stable MAAS:

$: sudo apt-add-repository -y ppa:maas/stable
$: sudo apt update 
$: sudo apt-get dist-upgrade 

then

$: sudo apt-get install maas

This one will install both the Maas Region Controller and the Maas Rack Controller on an only one node. At the end we can proceed with the base configuration of Maas.

Screen Shot 2016-08-12 at 15.13.00

For a more distributed environment (one Region Controller and two Rack Controller) like that

maas-io-how-it-works

the region controller can be placed on one machine:

$: sudo apt install maas-region-controller

and the rack controller on another two nodes, for both ones use this command:

$: sudo apt install maas-rack-controller
$: sudo maas-rack register

then run the following command on the region controller server, in both our examples

$: sudo maas createadmin
sudo: unable to resolve host xenial-maas: Connection timed out
Username: richardsith
Password: 
Again: 
Email: ricky.mag@email.com

now run Maas dashboard using its own IP address and use the credentials for the login. Then continue with this link to complete the configuration of Maas:

“Ubuntu 16.04 LTS Maas Server – part 1/4”

at moment this how-to is completed..

part 2/3 ->


“cya to the next 1…. Njoy !”
bye dakj

Disclaimer: All the tutorials included on this site are performed in a lab environment to simulate a real world production scenario. As everything is done to provide the most accurate steps to date, we take no responsibility if you implement any of these steps in a production environment.

“We learn from our mistakes”

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s