In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail the installation process and related configuration of CoreOS bare metal iso. The content of the article is of high quality, so the editor will share it with you for reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.
The bare metal installs CoreOS through iso, and the individual has traveled a lot. Here is the complete process of deployment and configuration from scratch.
First, install CoreOS to hard disk 1. Prepare Live iso image and make usb boot disk
Live iso download address
two。 Set up Apache Server service
Configure Apache to access static files
Create a directory named 1745.7.0 under the accessed root path (htdocs/ under win)
3. Download the installation image and sig signature file
Download address
Coreos_production_image.bin.bz2
Coreos_production_image.bin.bz2.sig
Put these two files in the 1745.7.0 directory
4. Write a good cloud-config.yaml
Let's simplify that we don't have to configure the etcd cluster.
# cloud-config hostname: coreosusers:-name: core ssh-authorized-keys:-ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCwKMzeSX8iavwLGuok. -groups:-sudo-docker
Ssh-authorized-keys is a key pair that must be configured for password-less login. We can generate (export Public Key) through the Client Key Manager feature in the Bitvise SSH Client client, and then copy the public key string value to the back of the ssh-rsa. Notice that there is a space in the middle.
We can configure the network after installation, or we can configure it in cloud-config.yaml.
# cloud-config hostname: coreosusers:-name: core ssh-authorized-keys:-ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCwKMzeSX8iavwLGuok. -groups:-sudo-docker networkd: units:-name: 10-static.network contents: | [Match] Name=enp0s3 [Network] Address=192.168.57.102/24-name: 20-dhcp.network contents: | [Match] Name=enp0s8 [Network] DHCP=yes
Put this file in the htdocs directory
5. Bare metal startup and installation of CoreOS Live
Download the cloud-config.yaml file on the self-built Apache server (ip:192.168.1.100)
Wget http://192.168.1.100/cloud-config.yaml
Perform installation
Sudo coreos-install-d / dev/sda-b http://192.168.1.100-c. / cloud-config.yaml
After the installation is complete, restart the machine and boot from the hard drive.
Second, configure CoreOS1. SSH key login
Check IP and log in via user name (core) + private key (previously generated)
two。 Set root password
After logging in, execute the command to change the root password
Sudo passwd root3. Configure the network
Configuration file path: / etc/systemd/network/
Static IP configuration file (if not, create your own): 10-static.network
[Match] Name=en* [Network] DNS=192.168.3.1Address=192.168.3.200/24Gateway=192.168.3.1
Dynamic IP configuration file (if not, create your own): 20-dhcp.network
[Match] Name=en* [Network] DHCP=yes
You need to restart the network service after the update
Sudo systemctl restart systemd-networkd4. Other commonly used commands sudo hostnamectl set-hostname coreos1 # modify hostname setenforce 1Accord 0 # turn on and off SELinuxgetenforce # View SELinux status timedatectl # View system time timedatectl list-timezones # View list of supported time zones timedatectl set-timezone Asia/Shanghai # set time zone to Shanghai about CoreOS bare metal iso installation process and related configuration here, I hope the above can be helpful to you, you can learn more knowledge. If you think the article is good, you can share it for more people to see.
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.