- get the kernel and initrd from https://getfedora.org/en/coreos/download/ -> "bare metal" -> PXE and put them on a webserver.
- connect to the OVH/SoYouStart/Kimsufi API and create a ipxe script under https://eu.api.kimsufi.com/console/#/me/ipxeScript#POST or equivalent, see
coreos.ipxe
below - create a basic ignition yaml file, convert it to ignition using the
fcct
tool as described here: https://docs.fedoraproject.org/en-US/fedora-coreos/producing-ign/ - Put this resulting file (
config.ign
) in the same webroot as kernel & initrd - (see https://docs.fedoraproject.org/en-US/fedora-coreos/fcct-config/ for more details, and https://github.com/keithy/ign-tool/wiki/plug:goss for some more examples.
- boot your server from this netboot, and ping it to follow the process. If you can observe the webserver's logs you will se your server's IP pulling kernel and initrd with "iPXE" user agent, then it will start pinging, and retrieve the config.ign a bit later (with "curl" user agent). This is the moment when you should set your server back to "Boot from Hard Disk".
- After some time the server will stop pinging for a while (reboot), and then hopefully start pinging again within 1-3 minutes.
- You should now be able to connect with your ssh key.
Created
January 30, 2020 22:07
-
-
Save felixkrohn/b955c9e691c683b991eb31cd19d22357 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
variant: fcos | |
version: 1.0.0 | |
passwd: | |
users: | |
- name: core | |
ssh_authorized_keys: | |
- your ssh pubkey here (complete, in one line) | |
storage: | |
files: | |
- path: /etc/resolv.conf | |
contents: | |
inline: | | |
nameserver 213.186.33.99 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!ipxe | |
set base http://mydomain/coreos | |
set kernel kernel | |
set initrd initrd.img | |
kernel ${base}/${kernel} initrd=${initrd} ip=dhcp rd.neednet=1 console=tty0 console=ttyS0 coreos.inst.install_dev=/dev/sda coreos.inst.stream=stable coreos.inst.ignition_url=${base}/config.ign | |
initrd ${base}/${initrd} | |
boot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment