CoreOS裸机安装步骤(亲测)

版权声明:桂安俊博客---如有转载,请注明出处: https://blog.csdn.net/qq_28903377/article/details/84934771

CoreOS裸机安装步骤

1.1、CoreOS安装

      1、https://stable.release.core-os.net/amd64-usr/current/coreos_production_iso_image.iso

下载iso并用软碟通制作u盘

      2、https://stable.release.core-os.net/amd64-usr/current/coreos_production_image.bin.bz2

这个是到时候通过u盘临时进入coreos后,需要安装的coreos文件

      3、https://stable.release.core-os.net/amd64-usr/current/coreos_production_image.bin.bz2.sig

安装时需要用到的签名文件

 

      4、用u盘进入,然后配置公钥,从另一个机器A远程进入此临时coreos系统B(需配静态ip,或插上网线,自动分配同一网段ip),将coreos_production_image.bin.bz2和coreos_production_image.bin.bz2.sig先放在A机子上,再在B机子上用scp命令下载A机子上的两个文件。

 

       5、用B机子自带的coreos-install 命令安装两个文件,可以在此时加入公钥文件,安装好开机后就可以无密码进入,也可不加,在安装好后无密码进入系统,再用sudo passwd root更改root密码:

 

       6、设置静态ip,实现远程连接(coreos系统没有rpm yum apt-get等包管理工具),而且coreos很多分区是只读权限,比如无法更改/root/ssh/sshd_config,可以用下面方法:

       7、配置静态IP

 

2、CoreOS相关命令

重启ssh服务:   systemctl restart sshd

静态ip目录 :  /etc/systemd/network/static.network

DNS目录    :   /etc/resolv.conf

修改DNS    :vim /etc/resolv.conf

                    vim /etc/systemd/resolved.conf

                    systemctl restart systemd-resolved              

                    systemctl restart systemd-networkd

            

 

coreOS下载地址:  https://coreos.com/releases/

 

模板仓库地址:https://github.com/coreos/coreos-vagrant.git

猜你喜欢

转载自blog.csdn.net/qq_28903377/article/details/84934771