Install CoreOS VM on VMware ESXi using cloud-config
July 8 2017107 words, ~1 min. read
esxi, coreos, docker, openstack, cloud-config
CoreOS could be easily installed using Openstack's config-drive.
- Create
config-drive/openstack/latest/user_datafile
#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
- Create
config-drive.iso
mkisofs -R -V config-2 -o config-drive.iso config-drive
- Get the latest OVA from http://stable.release.core-os.net/amd64-usr/current/ and deploy in ESXi; however, do not power on
- Edit the
VM settingsand connect theconfig-drive.isoas CD; ensure to check the checkbox titledConnect at power on. - Power ON the VM (to automatically apply configuration, created using
config-drive)
References
- https://coreos.com/os/docs/latest/config-drive.html
- https://coreos.com/os/docs/latest/cloud-config.html