creamy-room-58344
11/24/2022, 9:04 PMnetwork:
version: 2
ethernets:
nics:
match:
name: ens*
dhcp4: yes
critical: true
dhcp-identifier: mac
agreeable-oil-87482
01/10/2023, 9:45 PMbland-painting-61617
01/10/2023, 10:17 PMcritical: true
dhcp-identifier: mac
This is to use old fashioned mac addresses as dhcp identifiers and the critical field prevents the lease from being released upon reboot.
I know this can be fed to the image using metadata or vendordata. I haven't been able to use guestinfo (I tried setting the appropriate vm configuration options) because cloud-id detects the source as nocloud instead of vmware. I'm currently thinking of baking the file into the ova.
What is the cloudinit
field for?
The options passed to cloudConfig
apply fine, but unfortunately network options get ignored by design.agreeable-oil-87482
01/11/2023, 12:52 PM/etc/cloud/cloud.cfg.d/99-disable-network-config.cfg
add the line network: {config: disabled}
so it won't alter or create a new netplan file
2. Use the user-data part of cloud-init to run a script which amends the netplan config file (or create a new one) and restart netplan.bland-painting-61617
01/11/2023, 12:59 PM/etc/cloud/cloud.cfg.d/99-disable-network-config.cfg
file and then remove the cloudinit generated netplan file, apply my own one and reboot? it would have to be early in the process to run before rke components are installed, in case the ip changes againagreeable-oil-87482
01/11/2023, 1:35 PMbland-painting-61617
01/11/2023, 9:13 PMagreeable-oil-87482
01/12/2023, 7:59 AMbland-painting-61617
01/12/2023, 10:20 AM