https://rancher.com/ logo
Title
c

creamy-room-58344

11/25/2022, 3:17 PM
Hello there! I'm trying to configure cloud-config on rancher to use with vsphere Most things work but I can't set my specific network configuration I tried pasting this into the Node Template Cloud-config box and also into an extra parameter called
guestinfo.metadata
base64 encoded with
guestinfo.metadata.encoding: base64
as well as
gzip+base64
network:
  version: 2
  ethernets:
    nics:
      match:
        name: ens*
      dhcp4: yes
      critical: true
      dhcp-identifier: mac
Testing it on vSphere directly works, but with Rancher it does not What am I missing?
s

steep-furniture-72588

11/25/2022, 5:52 PM
This looks like netplan from Ubuntu?
c

creamy-room-58344

11/25/2022, 7:55 PM
yeap
o got it now by writing the file and running netplan generate netplan apply on my cloud-config file but I'm not sure this is the best way, since it will boot once without this configs
s

steep-furniture-72588

11/25/2022, 9:57 PM
Check this blog post by @agreeable-oil-87482. He is doing exactly what you are doing with Ubuntu for vcentre https://www.virtualthoughts.co.uk/2020/03/29/rancher-vsphere-network-protocol-profiles-and-static-ip-addresses-for-k8s-nodes/