1 打开翻&&墙软件
2 打开迅雷,启用“使用IE代理”,下载以下两个文件:(翻&&墙后用IE下会中断)
http://stable.release.core-os.net/amd64-usr/494.4.0/coreos_production_image.bin.bz2.sig
http://stable.release.core-os.net/amd64-usr/494.4.0/coreos_production_image.bin.bz2
3 在局域网中一台机器10.61.0.210上安装APACHE服务器:yum install httpd;service httpd start
4 把在2中下载的两个文件放在10.61.0.210:/var/www/html下
5 在安装机上运行修改过的coreos-install及cloud-config.yaml(安装机上运行的系统不能是coreos要安装的磁盘上启动的)
coreos-install修改:BASE_URL="10.61.0.210";IMAGE_URL="${BASE_URL}/${IMAGE_NAME}";SIG_URL="${BASE_URL}/${SIG_NAME}";
cloud-config.yaml:
#cloud-confighostname: coreos0
coreos:etcd:addr: $private_ipv4:4001peer-addr: $private_ipv4:7001units:- name: etcd.servicecommand: start- name: fleet.servicecommand: start- name: static.networkcontent: |[Match]Name=enp7s0[Network]Address=10.255.229.210/24Gateway=10.255.229.254DNS=8.8.8.8DNS=8.8.4.4
users:- name: coressh-authorized-keys:#公钥- ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA0Llcvph5nuh3FAtjRrUrS72X3ed0HGBH42/72vVi3KgZUnNUnDNCHYF9kUKByqPfpQqsYQmZPnrbiUeclbmv2+BMKI5KoFNHtkWZikdSPeNlh8OuWSeSawZmQNrc6MbMlrCgZQtR0cBPBQ2ruhh8I/Bgy+lMpznINY6lCKbVbxDJQzcHHrUAnzixrTVFTgyerRbS/jiiNiclFXBpSu9bKNnZaIy44A8l2nOcNhOPmfgaUysC8SAg2MzzJglAkHUFkcIzaxtcoRsUQC2oIgvPnn2nh6AL0DiloG+u2nJNLM48OTFmXW8WY4UR7v+3bdW0iRbHkhPsz6ZiM99cDVmsFQ== root@kedacom- groups:- sudo- docker
./coreos-install -d /dev/sdb -C stable -c ./cloud-config.yaml (sdb空间必须大于4.5G,因为2下载的镜像解压后为4.5G的磁盘扇区镜像)
安装结束后会在sdb上分7个区,一个EFI,一个GRUB,两个USR,两个OEM,一个BOOT。
6 在公钥对应的机器上运行:ssh core@10.255.229.210
注:10.61.0.210和10.255.229.210是可以互相访问的
转载于:https://www.cnblogs.com/baiyw/p/4157880.html