LoginSignup
8
8

More than 5 years have passed since last update.

CoreOSインストール

Last updated at Posted at 2014-08-03

ISOからインストールする手順

ISOを設定するマシン → マシンA
マシンAにSSHでログインするマシン → マシンB

(マシンA)ISOを設定してインストールするマシンを起動する

(マシンA)coreユーザーのパスワード設定

sudo passwd core

(マシンB)先ほど設定したcoreユーザーでログイン

(マシンB)インストール設定ファイルを作成

sudo vi cloud-config.yml
cloud-config.yml
#cloud-config
ssh_authorized_keys:
    - ssh-rsa AAAA
coreos:
  units:
    - name: 10-static.network
      command: start
      content: |
        [Match]
        Name=enp0s3

        [Network]
        DHCP=false
        Address=192.168.0.XXX/24
        Gateway=192.168.0.YYY
        DNS=8.8.8.8

(マシンB)CoreOSのインストール

sudo coreos-install -d /dev/sda -C stable -c cloud-config.yml

(マシンB)シャットダウン

sudo shutdown -h now

マシンAからディスク(ISO)を取り出す

マシンAを起動する

以上でcoreosのインストールは終了です。

8
8
2

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