Deploying CoreOS OVA on VMware

Deploy the vmware ova

Download the OVA image from Core OS website, and deploy it to VMware using vsphere client, etc.

When you boot the VM, you won’t be able to login, unless you provide coreos.autologin=tty1 as a kernel parameter to grub. If you do so, then you’ll be auto logged in as user core. Type sudo bash to get the root prompt necessary for the initial setup.

Read more at http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2109161

Configure networking

Create /etc/systemd/network/static.network, add the following, and finally reboot:


Read more at https://www.brianchristner.io/how-to-install-and-configure-coreos-inside-vmware/

Setup ssh acccess

Edit /usr/share/oem/cloud-config.yml, and add your ssh public key, eg.

- ssh-dss AAAAB3NzaC1kc3MAAAEBAOm5s8yJIl1ZnaqQU93f.....

Then validate the settings:

coreos-cloudinit --validate --from-file /usr/share/oem/cloud-config.yml

If everything goes right, then apply settings:

coreos-cloudinit --from-file /usr/share/oem/cloud-config.yml

Now you may ssh to the host using your private ssh key as user core, eg.

ssh -i /path/to/ssh.key -l core

You may want to setup etcd (version 2)

# generate a new token for each unique cluster from https://discovery.etcd.io/new?size=3
# specify the initial size of your cluster with ?size=X
discovery: https://discovery.etcd.io/THE_VALUE_OF_THE_GENERATED_TOKEN

# multi-region and multi-cloud deployments need to use $public_ipv4
# listen on both the official ports and the legacy ports
# legacy ports can be omitted if your application doesn't depend on them

Recommended reading:

Cloud config docs
Using CoreOS