Bala's Blog

Install CoreOS VM on VMware ESXi using cloud-config

July 8 2017
107 words, ~1 min. read
esxi,  coreos,  docker,  openstack,  cloud-config 

CoreOS could be easily installed using Openstack's config-drive.

  1. Create config-drive/openstack/latest/user_data file
  #cloud-config

  hostname: coreos
  users:
	- name: bala
	- passwd: $1$sQ.3GyWo$ScrLBRMpgnQhiU15efkWR/
	  groups:
		- sudo
		- docker
  write_files:
	- path: "/etc/systemd/system/docker.service.d/http-proxy.conf"
	  permissions: "0644"
	  owner: "root"
	  content: |
		[Service]
		Environment="HTTP_PROXY=http://proxy.sbchand.net:8080/" "NO_PROXY=localhost,127.0.0.1"

Note : To create hashed password, use openssl passwd -1

  1. Create config-drive.iso
  mkisofs -R -V config-2 -o config-drive.iso config-drive
  1. Get the latest OVA from http://stable.release.core-os.net/amd64-usr/current/ and deploy in ESXi; however, do not power on
  2. Edit the VM settings and connect the config-drive.iso as CD; ensure to check the checkbox titled Connect at power on.
  3. Power ON the VM (to automatically apply configuration, created using config-drive)

References