This message was deleted.
# vsphere
a
This message was deleted.
l
If you mean build a whole new cluster with Rancher talking to vSphere API then yes, but I used the Ubuntu cloud image instead of building my own from scratch. There's a bug in the Ubuntu OVA cloud image though where it doesn't expose the network config for cloud-init. See https://bugs.launchpad.net/cloud-images/+bug/2018225
f
So I used an Ubuntu server iso, and the issue I ran into was that the /etc/hosts file was truncated and never updated. Once I updated it to what the working cloudimg I used it works fine
22.04 Ubuntu cloudimg worked fine, so I just used the same /etc/hosts file in the server one and rancher shows it green
l
was the hostname set correctly?
note that I have since then shut down my vSphere cluster and am now running Proxmox so I can't reproduce my previous work currently.
f
Wdym set correctly? How can I verify that or what should I be looking for?
I follows this guide which was correct except for thr /etc/hosts being empty
Once I set it to what Ubuntu-cloudimg had it works fine
l
So when you log in to fix the hosts file, what do you get if you type in "hostname"? Ie do you get "localhost" or do you get a node name that shows up in the rancher ui?
Because if you are getting "localhost" as the host name of the new VM then cloud-init isn't processing the network config properly coming from Rancher
f
Oh interesting
So what would be the solution if I do get localhost?
I’m not in front of my server right now
l
Well if Rancher recognizes the vm after you manually fix the hosts file then I suspect that "some" of the cloud-init data is getting processed properly so it's hopefully just a matter of adding the network-config property to the template definition. It's hard to say for certain though without seeing it all. I will say that when I was working on that it was a fairly painful process to get everything working smoothly, the documentation I tried to follow online didn't mention everything.
🙌 1
f
Yes there are holes. Glad I’m not the only one who’s run into this!
l
Good luck!
🚀 1
f
Thanks!
👍 1