30 lines
1.6 KiB
Markdown
30 lines
1.6 KiB
Markdown
1. Download CoreOS "Live DVD" iso from https://fedoraproject.org/coreos/download?stream=stable#baremetal
|
|
For archival and for use in unraid these are stored at smb://betelgeuse-seven-unraid.local/isos
|
|
2. Boot ISO
|
|
On unraid
|
|
1. **VMS > ADD VM > Linux/CoreOS**
|
|
2. Set **OS Install ISO** to downloaded iso
|
|
3. Choose **Primary vDisk Size**, say 10GB (they recommend 8GiB min but 8GB is less than that)
|
|
3. Connect
|
|
On unraid: **VMS > (VM Icon, left click) > VM Console(VNC)**
|
|
4. Identify disk to install to
|
|
`sudo vdisk -l`, on unraid this was /dev/vda
|
|
5. Host the ignition file for the installer to see
|
|
Run `python3 -m http.server 8080` (from the folder with the ignition files)
|
|
6. Install CoreOS
|
|
1. Get the OS on disk for tshe first time
|
|
`sudo coreos-installer install /dev/vda --insecure-ignition --ignition-url http://192.168.1.115:8080/jaglan-beta-m42.ign`
|
|
2. Reboot to injest ignition file and provision
|
|
`sudo reboot`
|
|
ssh should now work with the user's ssh keys from ignition file
|
|
3. Wait, the initial service will install the hashistack and reboot again
|
|
|
|
7. Boostrapping the consul cluster
|
|
1. Run `consul agent -boostrap-expect 1 -bind 192.168.1.115 -ui -config-file ./etc/consul.d/consul.hcl` locally
|
|
2. Check the ui at http://localhost:8500/ui to ensure that the expected nodes are shown
|
|
|
|
# Useful Debugging Commands
|
|
`sudo systemctl start consul`
|
|
Read consul startup logs: `sudo journalctl -xeu consul.service`
|
|
Start the consul UI locally: `consul agent -bind 192.168.1.115 -ui -config-file ./etc/consul.d/consul.hcl`
|