commit 42e9090c381fb57377e366ebf061d262b4da5b77 Author: Adrian Cowan Date: Sat Dec 2 16:56:23 2023 +1100 Document an example setup of CoreOS diff --git a/1-coreos/1-prepare-ignition-files/example.bu b/1-coreos/1-prepare-ignition-files/example.bu new file mode 100644 index 0000000..6326db5 --- /dev/null +++ b/1-coreos/1-prepare-ignition-files/example.bu @@ -0,0 +1,7 @@ +variant: fcos +version: 1.4.0 +passwd: + users: + - name: core + ssh_authorized_keys: + - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJwojmm5GUDQTt/ic1w3yf5c0fyiPqhy8D9Y4qMVljEA othrayte@gmail.com \ No newline at end of file diff --git a/1-coreos/1-prepare-ignition-files/example.ign b/1-coreos/1-prepare-ignition-files/example.ign new file mode 100644 index 0000000..c0d8c38 --- /dev/null +++ b/1-coreos/1-prepare-ignition-files/example.ign @@ -0,0 +1,15 @@ +{ + "ignition": { + "version": "3.3.0" + }, + "passwd": { + "users": [ + { + "name": "core", + "sshAuthorizedKeys": [ + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJwojmm5GUDQTt/ic1w3yf5c0fyiPqhy8D9Y4qMVljEA othrayte@gmail.com" + ] + } + ] + } +} diff --git a/1-coreos/1-prepare-ignition-files/readme.md b/1-coreos/1-prepare-ignition-files/readme.md new file mode 100644 index 0000000..1cfd621 --- /dev/null +++ b/1-coreos/1-prepare-ignition-files/readme.md @@ -0,0 +1,3 @@ +1. Ensure butane is installed `dnf install butane` +2. Compile butane files into ignition files + `butane --pretty --strict example.bu --output example.ign` diff --git a/1-coreos/2-install-coreos/readme.md b/1-coreos/2-install-coreos/readme.md new file mode 100644 index 0000000..a494b2c --- /dev/null +++ b/1-coreos/2-install-coreos/readme.md @@ -0,0 +1,19 @@ +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 the first time + `sudo coreos-installer install /dev/vda --insecure-ignition --ignition-url http://192.168.1.115:8080/example.ign` + 2. Reboot to injest ignition file and provision + `sudo reboot` + ssh should now work with the user's ssh keys from ignition file \ No newline at end of file