ISOからダウンロード。
Beta Channel、Alpha Channelとあるが、Alpha Channelのほうが新しい。
IP固定
ip addr add 10.0.2.15/24 dev eth0
ip route add default via 10.0.2.2
echo "nameserver 8.8.8.8" > /etc/resolv.conf
cloud-config.yml
wget -O cloud-config.yml http://myserver/cloud-config-core01.yml
- 他のCoreOSサーバのcloud-config.ymlを参考にするには
/var/lib/coreos-install/user_data
install
sudo coreos-install \
-V current \
-d /dev/vda \
-C alpha \
-c cloud-config.yml -v
しばらく待つとダウンロードが完了しインストールが開始される。
cloud-config.yml
write_files:
- path: /etc/systemd/network/10-static.network
permissions: 0644
content: |
[Match]
Name=ens18
[Network]
Address=192.168.3.3/24
Gateway=192.168.3.1
DNS=8.8.8.8
DNS=8.8.4.4
ssh_authorized_keys:
- ssh-rsa ssh-rsa AAAA...
- Customize with Cloud-Config
-
Network Configuration
- インストールして初回起動時にIPが付与されていない場合、OS再起動
- もしくは
systemctl daemon-reload
何度もインストールする場合はミラーしておいたほうがいい。
ミラーしとく
$ wget http://alpha.release.core-os.net/amd64-usr/324.2.0/coreos_production_image.bin.bz2
$ wget http://alpha.release.core-os.net/amd64-usr/324.2.0/coreos_production_image.bin.bz2.sig