This is a fork from https://git.geco-it.net/GECO-IT-PUBLIC/fedora-coreos-proxmox.git, it has the modified as below:
- Fixed: the problem of
geco-motd
andqemu-ga
during the setup of latest FCOS, according to this post - Feature: additional custom config of Template VM base on the modifies of Doc-Tiebeau/proxmox-flatcar
- Feature: allow adding custom packages repo
-
Be sure to install
git
on your PVE server first:apt update apt install git
-
Clone this repository on your Proxmox server:
git clone https://github.com/jimlee2002/fedora-coreos-proxmox.git
-
Get into the directory
fedora-coreos-proxmox
cd fedora-coreos-proxmox
-
Modify
template_deploy.conf
to custom your VM parameter as below:# template vm vars TEMPLATE_NAME="TMPLT-fcos" # Template VM name append with <flactar_version> in Proxmox GUI TEMPLATE_RECREATE="false" # Fore recreate template ? # Note: If you want only update hook script and Template_Ignition file, you can keep it as false, these files are always overwritten TEMPLATE_VMID="900" # VMID of Template VM TEMPLATE_VMSTORAGE="local-lvm" # Target storage for template VM SNIPPET_STORAGE="local" # Target storage for snippets files VMDISK_OPTIONS=",discard=on" TEMPLATE_MEMORY="4096" # Amount of RAM for the template VM in MB TEMPLATE_CPU_TYPE="host" # Emulated CPU type TEMPLATE_CPU_CORE="4" # The number of cores for template VM # 0-False, 1-True TEMPLATE_AUTOSTART="1" # Whether the VM will be automatic restart after crash TEMPLATE_ONBOOT="0" # Whether the VM will be started during system bootup. TEMPLATE_IGNITION="fcos-base-tmplt.yaml" # fcos image version STREAMS=stable # The stream you decide to use VERSION=36.20220618.3.1 # You need to bump it to the latest version manually PLATEFORM=qemu BASEURL=https://builds.coreos.fedoraproject.org
-
Add your custom packages repo in
hook-fcos.sh
as below:(...) echo -n "Fedora CoreOS: Adding custom packages repos..." pkgs_repo=( # Put the URL of custom packages repo here "https://pkgs.tailscale.com/stable/fedora/tailscale.repo" "https://download.docker.com/linux/fedora/docker-ce.repo" ) (...)
-
Run the scripts to generate the template VM:
./vmsetup.sh
-
Check the template VM just generated in Proxmox Web GUI and clone a VM base on it.
-
BEFORE first boot: update Cloud-Init config of your new VM in Proxmox Web GUI.
Without specifying, the default username is
admin
-
Wait for multiple reboot the enjoy.
- GECO-IT-PUBLIC/fedora-coreos-proxmox
- Doc-Tiebeau/proxmox-flatcar
- Proxmox VE - Fedora CoreOS : Un mariage presque parfait / An almost perfect Union [Geco-iT Wiki]
- [TUTORIAL] - HOWTO : Wrapper Script to Use Fedora CoreOS Ignition with Proxmox cloud-init system for Docker workloads | Proxmox Support Forum