Weitere ähnliche Inhalte Ähnlich wie Metal as a Server (20) Mehr von Fadwa Gmiden (9) Kürzlich hochgeladen (20) Metal as a Server2. Powered by Canonical Ltd.
Fadwa Gmiden
Summary
Introducing MaaS
Installing MaaS
Deploying nodes
Beyond Metal
5. Powered by Canonical Ltd.
Fadwa Gmiden
What is MaaS
5
Server 1
MaaS is provisioning tool for Metal…
6. Powered by Canonical Ltd.
Fadwa Gmiden
What is MaaS
6
Server 1 Server 2
MaaS is provisioning tool for Metal…
7. Powered by Canonical Ltd.
Fadwa Gmiden
What is MaaS
7
Server 1 Server 2 Server 3
MaaS is provisioning tool for Metal…
8. Powered by Canonical Ltd.
Fadwa Gmiden
When to use MaaS
➔ Have some servers to manage
➔ Deploying services without fuss
➔ Need to get most of resources (scale up and down)
➔ ...
8
9. Powered by Canonical Ltd.
Fadwa Gmiden
MaaS Releases
9
Release 1.5 1.7 1.8 1.9 2.0
Status deprecated Old stable
release
deprecated Stable
release
Development
release
Support
LTS
11. Powered by Canonical Ltd.
Fadwa Gmiden
11
Region Controller
Cluster Controller
dhcp tftp
How MaaS Works
12. Powered by Canonical Ltd.
Fadwa Gmiden
12
Region Controller
Cluster Controller
dhcp tftp
Node
Node
Node
How MaaS Works
13. Powered by Canonical Ltd.
Fadwa Gmiden
13
Region Controller
Cluster Controller
dhcp tftp
Cluster Controller
dhcp tftp
Node
Node
Node
Node
Node
Node
How MaaS Works
14. Powered by Canonical Ltd.
Fadwa Gmiden
14
Region Controller
...
Cluster Controller
dhcp tftp
Cluster Controller
dhcp tftp
Node
Node
Node
Node
Node
Node
How MaaS Works
17. Powered by Canonical Ltd.
Fadwa Gmiden
Used Software
Oracle VirtualBox (it was painful)
Ubuntu Server Trusty 14.04
Ubuntu Server Xenial 16.04
17
20. Powered by Canonical Ltd.
Fadwa Gmiden
Installing Ubuntu Server Virtual Machine
20
Then the usual stuff:
$ sudo apt-get update
$ sudo apt-get upgrade
21. Powered by Canonical Ltd.
Fadwa Gmiden
Configuration of DNS and DHCP
$ sudo nano /etc/network/interfaces
Add new interface
21
auto eth1
iface eth1 inet static
address 192.168.56.1
netmask 255.255.255.0
network 192.168.56.0
broadcast 192.168.56.255
dns-nameservers 10.0.?.? 192.168.56.1
dns-search 10.0.?.? 192.168.56.1
22. Powered by Canonical Ltd.
Fadwa Gmiden
Configuration of Region and Cluster
$ sudo dpkg-reconfigure maas-region-controller $ sudo dpkg-reconfigure maas-cluster-controller
22
23. Powered by Canonical Ltd.
Fadwa Gmiden
Create Admin User
$ sudo maas-region-admin createadmin
23
26. Powered by Canonical Ltd.
Fadwa Gmiden
Configure the cluster
26
The cluster is configured, but not
synchronized...
27. Powered by Canonical Ltd.
Fadwa Gmiden
Sync the cluster
27
After import, the cluster is synchronized….
28. Powered by Canonical Ltd.
Fadwa Gmiden
Add SSH key for remote control of nodes for maas user
28
$ sudo mkdir /home/maas
$ sudo chown maas:maas /home/maas
$ sudo chsh -s /bin/bash maas
$ sudo su - maas
$ ssh-keygen -f ~/.ssh/id_rsa -N ''
$ ssh-copy-id -i ~/.ssh/id_rsa kaneki@192.168.56.1
$ virsh -c qemu+ssh://kaneki@192.168.56.1/system list --all
30. Powered by Canonical Ltd.
Fadwa Gmiden
Nodes config
Add some VMs and configure their
network...
30
31. Powered by Canonical Ltd.
Fadwa Gmiden
Node installation
Press F12 for boot and choose l for
Lan network...
31