https://rancher.com/ logo
#vsphere
Title
# vsphere
c

clean-ability-26001

10/29/2022, 8:59 PM
I’m trying to create RKE cluster with the help of vSphere provider using a preconfigured node template in Rancher. When Rancher creates the VM nodes on VMware environment, I need them to have unique hostnames and IP’s. The problem is that the nodes are provisioned simultaneously from the template in vSphere and at first power-on, but they strangely get the same IP address! after investigating on VMs that is delpoyed from node template, they have different MAC but their IP addresses are the same. I need the nodes to be configured with unique IP’s. How do I fix this issue?
a

adventurous-battery-36116

10/30/2022, 8:34 PM
This could be an OS thing - if you're using Ubuntu, for instance, netplan may need to be configured to use system UUID instead of MAC address to aquire DHCP
a

agreeable-oil-87482

10/31/2022, 12:10 PM
I've seen this with duplicate machine ID's - make sure it's reset in your template. Ie https://github.com/David-VTUK/Rancher-Packer/blob/3ea8537510fc71a49ca96f1de7385e173268eaf4/vSphere/ubuntu_2204/script.sh#L13-L18
🙌 1
1
c

clean-ability-26001

11/02/2022, 11:55 AM
Thanks David for your help and I used the script in Ubuntu and then reconverted VM to Template. It works fine.
🎉 1
8 Views