Skip to content

Instantly share code, notes, and snippets.

@53ningen
Created February 24, 2015 14:32
Show Gist options
  • Save 53ningen/cffe33335166d839374d to your computer and use it in GitHub Desktop.
Save 53ningen/cffe33335166d839374d to your computer and use it in GitHub Desktop.
installation CoreOS into VPS

remoteで

$ ifconfig | more
$ /etc/systemd/network/static.network

[Match]
Name=<ens3 or eth0>

[Network]
Address=<IPAddress>/<net mask>
Gateway=<default gateway>
DNS=<DNS1>
DNS=<DNS2>

$ sudo systemctl restart systemd-networkd
$ ping 53ningen.com

localで

$ touch cloud-config
$ vim cloud-config
#cloud-config

write_files:
  - path: /etc/systemd/network/static.network
    permissions: 0644
    content: |
      [Match]
      Name=ens3

      [Network]
      Address=<IPアドレス>/<サブネットマスク>
      Gateway=<ゲートウェイ>
      DNS=<DNS1>
      DNS=<DNS2>

ssh_authorized_keys:
  - ssh-rsa AAAA....
  
$ scp ./cloud-config core@[host]:~/

remoteで

sudo coreos-install -d /dev/vda -c cloud-config -C stable

リブート

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment