adamant-kite-43734
10/16/2024, 10:44 AMfast-bear-60513
10/17/2024, 6:01 AMquaint-airline-20784
10/17/2024, 8:12 AMSeedImage too to create a fresh installation media."
Our flow for a new cluster is like this:
• ask network dep. for 6 static IPs
• create terraform code for vmware using the static IPs
• deploy
• done
This works perfectly with vanilla rancher as the vms are all started with the "same" vm template and vmware just changes the IPs for new created VMs. In elemental you can not use vm templates because vm templates are kind of cloned VMs which means the registration process (uuid, TPM, etc.) is done and elemental will not accept another vm created by this template.
Elemental make some stuff more complex. I found a workaround to use the same image for workers and controllers = good. But I also want to use the same image to set a static IP and we want to set the IP when we create the VM via terraform. So the idea is to use a field of "advanced configuration parameters" which is available on first boot time make elemental read it and use it to configure network interfaces.fast-bear-60513
10/17/2024, 3:41 PMquaint-airline-20784
10/17/2024, 4:20 PMquaint-airline-20784
10/17/2024, 4:21 PMfast-bear-60513
10/18/2024, 8:16 AM/etc/NetworkManager/system-connections/*.nmconnections files) always happens on machine reset. I'm grateful you pointed this out because now I think it would be best to happen during reset, only if a network config template has been defined on the MachineRegistration. Otherwise as you hinted, this will break any other custom setup.fast-bear-60513
10/18/2024, 8:20 AM/etc/NetworkManager/system-connections/ at initramfs stage.
you can include the yip config in your custom image, this is how the sample in the static configuration achieves it, so the connections are re-created at every bootquaint-airline-20784
10/30/2024, 12:57 PMfast-bear-60513
10/30/2024, 1:06 PMfast-bear-60513
10/30/2024, 1:07 PMfast-bear-60513
10/30/2024, 1:08 PMquaint-airline-20784
10/30/2024, 1:08 PMfast-bear-60513
10/30/2024, 1:08 PM/oem directory after installationfast-bear-60513
10/30/2024, 1:11 PMfast-bear-60513
10/30/2024, 1:12 PMelemental --debug run-stage boot on the machine to re-execute the config arbitrarilyquaint-airline-20784
10/30/2024, 1:18 PMquaint-airline-20784
10/30/2024, 4:05 PMquaint-airline-20784
10/30/2024, 4:06 PMquaint-airline-20784
10/30/2024, 4:13 PMquaint-airline-20784
10/30/2024, 4:14 PMquaint-airline-20784
10/30/2024, 4:14 PMquaint-airline-20784
10/30/2024, 4:17 PMfast-bear-60513
10/30/2024, 4:19 PMfast-bear-60513
10/30/2024, 4:20 PMquaint-airline-20784
10/30/2024, 4:21 PMfast-bear-60513
10/30/2024, 4:21 PMquaint-airline-20784
10/30/2024, 4:24 PMquaint-airline-20784
10/30/2024, 4:25 PMfast-bear-60513
10/30/2024, 4:26 PMfast-bear-60513
10/30/2024, 4:33 PM/etc/NetworkManager/system-connections/*.nmconnection files will not be deleted. This is the none network configurator. Any custom config will be respected. Still beware that if you make /etc/NetworkManager/system-connections/ persistent, it will still be deleted during machine reset (can be toggled)quaint-airline-20784
11/04/2024, 9:32 AMapiVersion: <http://elemental.cattle.io/v1beta1|elemental.cattle.io/v1beta1>
kind: MachineRegistration
metadata:
name: elemental1
namespace: fleet-default
spec:
machineName: "${System Data/Runtime/Hostname}"
config:
cloud-config:
name: "A registration driven config"
stages:
initramfs:
- name: "Setup users"
ensure_entities:
- path: /etc/shadow
entity: |
kind: "shadow"
username: "root"
password: "root"
elemental:
install:
reboot: true
device: /dev/sda
debug: true
registration:
emulate-tpm: true
emulated-tpm-seed: -1
machineInventoryLabels:
nodeType: "${Chassis Information/Asset Tag}"
hostname: "${System Data/Runtime/Hostname}"
which is taken from https://elemental.docs.rancher.com/cloud-config-reference#configuration-syntax gives me "unable to parse config file..../etc/rancher/elemental/agent/config.yaml stat no such file or directory during the registration processquaint-airline-20784
11/06/2024, 4:02 PM