core@localhost ~ $ cat /etc/os-release NAME=CoreOS ID=coreos VERSION=394.0.0 VERSION_ID=394.0.0 BUILD_ID= PRETTY_NAME="CoreOS 394.0.0" ANSI_COLOR="1;32" HOME_URL="https://coreos.com/" BUG_REPORT_URL="https://github.com/coreos/bugs/issues" core@localhost ~ $ uname -a Linux localhost 3.15.7+ #2 SMP Wed Jul 30 02:06:57 UTC 2014 x86_64 Intel(R) Core(TM) i7-4850HQ CPU @ 2.30GHz GenuineIntel GNU/Linux core@localhost ~ $ docker --version Docker version 1.1.2, build d84a070
$ curl -LO http://alpha.release.core-os.net/amd64-usr/current/coreos_production_vmware_insecure.zip
$ unzip coreos_production_vmware_insecure.zip -d coreos_production_vmware_insecure
$ cd coreos_production_vmware_insecure $ open coreos_production_vmware_insecure.vmx
$ ssh -i insecure_ssh_key core@192.168.10.12
$ ssh-keygen -t rsa -C "coreos" Generating public/private rsa key pair. Enter file in which to save the key (/Users/atsushi/.ssh/id_rsa): /Users/atsushi/.ssh/id_rsa.coreos Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /Users/atsushi/.ssh/id_rsa.coreos. Your public key has been saved in /Users/atsushi/.ssh/id_rsa.coreos.pub. The key fingerprint is: 8f:a0:6a:32:9a:3d:8f:55:83:55:a3:9a:14:32:c1:3c coreos The key's randomart image is: +--[ RSA 2048]----+ | o+.. o | | Eo . o . | | .. o | | . = | | + + S | | o o o | | o . . | |ooo+ | |+++o. | +-----------------+
$ cat ~/.ssh/id_rsa.coreos.pub | ssh core@192.168.10.12 -i insecure_ssh_key update-ssh-keys -a user Adding/updating user: 2048 8f:a0:6a:32:9a:3d:8f:55:83:55:a3:9a:14:32:c1:3c coreos (RSA)
$ ssh core@192.168.10.12 -i ~/.ssh/id_rsa.coreos update-ssh-keys -D oem Disabling oem: /home/core/.ssh/authorized_keys.d/oem: No such file or directory Updated /home/core/.ssh/authorized_keys
[~/Documents/Virtual Machines.localized/coreos_production_vmware_insecure]$ ssh -i insecure_ssh_key core@192.168.10.12 core@192.168.10.12's password:
$ ssh core@192.168.10.12 -i ~/.ssh/id_rsa.coreos Last login: Sat Aug 9 12:50:26 2014 from 192.168.10.10 CoreOS (alpha) core@localhost ~ $
[~/Documents/Virtual Machines.localized/coreos_production_vmware_insecure]$ cat coreos_production_vmware_insecure.vmx | grep ethernet
ethernet0.addressType = "generated"
ethernet0.present = "TRUE"
ethernet0.generatedAddress = "00:0C:29:74:6B:E9"
ethernet0.generatedAddressOffset = "0"
ethernet0.connectionType = "nat"
[/Library/Preferences/VMware Fusion/vmnet8]$ tail -30 dhcpd.conf
max-lease-time 7200; # default is 2 hours
subnet 192.168.38.0 netmask 255.255.255.0 {
range 192.168.38.128 192.168.38.254;
option broadcast-address 192.168.38.255;
option domain-name-servers 192.168.38.2;
option domain-name localdomain;
default-lease-time 1800; # default is 30 minutes
max-lease-time 7200; # default is 2 hours
option netbios-name-servers 192.168.38.2;
option routers 192.168.38.2;
}
host vmnet8 {
hardware ethernet 00:50:56:C0:00:08;
fixed-address 192.168.38.1;
option domain-name-servers 0.0.0.0;
option domain-name "";
option routers 0.0.0.0;
}
####### VMNET DHCP Configuration. End of "DO NOT MODIFY SECTION" #######
host melody {
hardware ethernet F0:FA:25:00:00:00;
fixed-address 192.168.38.100;
}
host coreos {
hardware ethernet 00:0C:29:74:6B:E9;
fixed-address 192.168.38.101;
}
#cloud-config
stname: coreos1
coreos:
update:
group: alpha
reboot-strategy: best-effort
etcd:
name: node01
discovery: http://192.168.38.100:4001/v2/keys/discovery/012345
addr: 192.168.38.101:4001
peer-addr: 192.168.38.101:7001
units:
- name: etcd.service
command: start
- name: fleet.service
command: start
- name: flanneld.service
command: start
ssh_authorized_keys:
- ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6NF8iallvQVp22WDkTkyrtvp9eWW6A8YVr+kz4TjGYe7gHzIw+niNltGEFHzD8+v1I2YJ6oXevct1YeS0o9HZyN1Q9qgCgzUFtdOKLv6IedplqoPkcmF0aYet2PkEDo3MlTBckFXPITAMzF8dJSIFo9D8HfdOV0IAdx4O7PtixWKn5y2hMNG0zQPyUecp4pzC6kivAIhyfHilFR61RGL+GPXQ2MWZWFYbAGjyiYJnAmCP3NOTd0jMZEnDkbUvxhMmBYSdETk1rRgm+R4LOzFUGaHqHDLKLX+FIPKcF96hrucXzcWyLbIbEgE98OHlnVYCzRdK8jlqm8tehUc9c9WhQ== vagrant insecure public key
core@localhost ~ $ sudo coreos-cloudinit -from-file=/usr/share/oem/cloud-config.yml
core@localhost ~ $ cat /etc/coreos/update.conf GROUP=alpha
REBOOT_STRATEGY=best-effort
core@localhost ~ $ sudo update_engine_client -update