5
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

CoreOSをISOからインストール

Last updated at Posted at 2014-05-29

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

スクリーンショット 2014-05-29 15.53.20.png

しばらく待つとダウンロードが完了しインストールが開始される。

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...

何度もインストールする場合はミラーしておいたほうがいい。

ミラーしとく
$ 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
5
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?