From 00e198e1640d5feb0d75a79e9a238b939adb7f21 Mon Sep 17 00:00:00 2001 From: "c.duchenoy" Date: Fri, 27 Nov 2020 01:11:45 +0100 Subject: [PATCH] Update 'README.md' --- README.md | 51 +++++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 43 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 266ee36..c864635 100644 --- a/README.md +++ b/README.md @@ -2,17 +2,31 @@ Fedora CoreOS template for proxmox +## Create FCOS VM Template -### CloudInit +### Configuration -Only these parameters are supported by our cloudinit wrapper : +* **vmsetup.sh** -- User (only one default = admin) -- Passwd -- DNS domain -- DNS Servers -- SSH public key -- IP Config (ipv4 only) +``` +TEMPLATE_VMID="1000" # Template Proxmox VMID +TEMPLATE_VMSTORAGE="thin-ssd" # Proxmox storage +SNIPPET_STORAGE="local" # Snippets storage for hook and ignition file +VMDISK_OPTIONS=",discard=on" # Add options to vmdisk +``` + +* **fcos-base-tmplt.yaml** + +The ignition file provided is only a working basis. +For a more advanced configuration go to https://docs.fedoraproject.org/en-US/fedora-coreos/ + +it contains : + +* Correct fstrim service with no fstab file +* Install qemu-guest-agent on first boot +* Install Geco-iT CloudInit wrapper +* Raise console message logging level from DEBUG (7) to WARNING (4) +* Add Geco-iT motd/issue ### Script output ``` @@ -52,3 +66,24 @@ update VM 900: -hookscript local:snippets/hook-fcos.sh Convert VM 900 in proxmox vm template... [done] ``` +## Operation + +Before starting an FCOS VM, we create an ignition file by merging the data from the cloudinit and the fcos-base-tmplt.yaml file. +Then we modify the configuration of the vm to add the loading of the ignition file and we reset the start of the vm. + +

+ +

+ +## CloudInit + +Only these parameters are supported by our cloudinit wrapper: + +* User (only one) default = admin +* Passwd +* DNS domain +* DNS Servers +* SSH public key +* IP Configuration (ipv4 only) + +The settings are applied at boot