In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Today, I will talk to you about how Ubuntu clusters use MAAS to start bare metal installation. Many people may not know much about it. In order to make you understand better, the editor has summarized the following for you. I hope you can get something according to this article.
Here are nine steps for installing bare metal using MAAS in Ubuntu.
MAAS can actively deploy the operating system image to multiple empty physical machines by means of network boot (PXE), which is the first step of cluster installation.
Description:
MAAS is a system for the initial installation and management of physical machines and is provided by Canonical.
If you only use Ubuntu,MAAS, it is free.
If you need to support other operating systems, you need to pay for their expansion pack support services.
1. Set up the hardware
You need a server running MAAS and at least one server node that supports BMC management. It is recommended that MAAS server be located on a network that provides DHCP and DNS services.
Note:
Both the MAAS server and the node machine can be simulated through a virtual machine, and I ran successfully using Virtualbox (which requires the installation of an expansion pack).
Create a virtual machine in VirtualBox, select Linux/Ubuntu 64bit, and set the network to "network card bridging".
All nodes should be on a network segment, and DHCP for the corresponding subnet of the MAAS should be enabled.
2. Install Ubuntu Server
Download Ubuntu Server 18.04LTS, make boot disk, install the system. Then install MAAS server as in the next step.
Make a system boot disk
Use the built-in boot disk creator in Ubuntu.
Using Etcher, Foley: an open source super easy to use SD card / USB disk burning tool
3. Install MAASsudo apt updatesudo apt install maas4 and create admin account
The command is as follows:
Sudo maas init
Enter admin for the account name (it can also be something else, please remember).
Log in to MAAS UI and use http://localhost:5240/MAAS/.
5. Complete the first user configuration
Follow the on-screen instructions to complete the first configuration of MAAS. I recommend leaving the default value unchanged unless it is really necessary to modify it.
When finished, the following setting parameters will be configured:
Region name (MAAS name)
Ubuntu archive, Ubuntu extra architectures
Ubuntu images
SSH keys (for currently logged in user)
6. Enable DHCP
Go to the tab "Subnets", select what is currently used in VLAN, and DHCP will be turned on. Select the "Take action" button and select "Provide DHCP".
Set up Rack controller, which will manage DHCP.
Select subnet to create a DHCP dynamic range.
Fill in the dynamic range details.
7. Create ssh key
When MAAS installs the server node, it injects the stored key into the node, and later you can log in to machine directly from the MAAS controller (account Ubuntu, no password).
Create a key:
Ssh-keygen-t rsa-b 2048
Then vi ~ / .ssh/id_rsa.pub copies it in. If there is already content in it, you can copy it directly.
Important:
Click the account name (the method above is admin) and import the above key content into ssh key.
This needs to be done before the deploy node.
8. List and deploy servers
Go to the Images tab, select the image to be deployed, and MAAS will automatically start the download. It will take a long time.
When MAAS finishes downloading the system image, you are ready to deploy machines.
Use VirtualBox to create a virtual machine, set it to start on the network, turn off other startup modes, and set the network to "network card bridging".
Other physical machines are set to network boot (PXE boot), and other boot modes are turned off.
After startup, you can see on the machines tab in MAAS that the status is New.
If machines does not have IPMI based BMC, proceed to edit them and enter their BMC details
Select machines and select "Take action" as "Commission".
When the machines status changes to "Ready" and then executes "deploy" again, you can choose the version of the operating system to install.
9. Log in to the node server
After the above operation is finished, log in to the node using ssh node_IP_address from the maas controller machine.
The user name is ubuntu and is secret-free.
You can then use Ansible to centrally control multiple nodes and execute ssh commands in batches.
After reading the above, do you have any further understanding of how Ubuntu clusters use MAAS to start bare metal installation? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.