https://rancher.com/ logo
Title
f

few-spoon-45426

12/15/2022, 10:33 PM
do I need to do anything on Ubuntu's cloud-images to use them as templates for worker clusters on vSphere?
I did try to use #cloud-config on the cluster creation screen
but the settings are not passed onto the VMs
example: #cloud-config users: - default - name: ncadmin ssh-authorized-keys: - ssh-rsa <KEY> sudo: ['ALL=(ALL) NOPASSWD:ALL'] groups: sudo shell: /bin/bash lock_passwd: false plain_text_passwd: <password>
but the ncadmin user is not created and the SSH key is not loaded 😭
m

microscopic-diamond-94749

12/16/2022, 7:05 AM
look at the logs, usually it's an error in the formatting of the
user-data.yml
. In my files I have the
groups
key as a list, but the sudo entry is just a yaml string. maybe try that?
f

few-spoon-45426

12/16/2022, 2:19 PM
thank you
found the problem: my image was prepped for terraform which uses the "vmware" cloud-init provider; the "nocloud" provider, needed by Rancher, was not enabled. I thought that since Rancher says it's using clusterAPI, at least on nodes creation it would behave like it.