Hi all! One question regarding creating machines i...
# harvester
m
Hi all! One question regarding creating machines in a pool using rancher -> harvester. What is the ssh user field used for? It is required, but on the nodes that are created, I cannot find that user. Is it overwritten by a cloud-init default user maybe?
b
I'm pretty sure you're suppose to put in the cloud image user.
For example: Opensuse Leap is
opensuse
and Alma 9 images it's
almalinux
ubuntu
and
fedora
are others
When you put in a key, it loads it under that user so you can log in.
m
hmm I see. opensuse user is the default user in the cloud image cloud-init config. I guess then I may have overwritten it with a custom default user in the user-data. It's not causing an issue, I was just confused why the user is required if I can't find it afterwards 😄
b
You'd have to look in the cloudinit logs. ¯\_(ツ)_/¯
m
Network stack on my single node is a bit unstable, I have a hard time looking at anything/logs 😕 but it's ok, I'll figure it out
b
It might just be easier to use the standard user for now and create another user via ansible or something if you need to.
ymmv
t
that is typically the default username for THAT image.
m
hmm to be precise, which one is it? 🤔 1. I should put the default user name of the image as it is set in the image (e.g. opensuse, etc) because that is needed somehow 2. Whatever username I put in there will be the default user when the machine comes up
b
1
m
😮 interesting. Is there some docs I can read up to understand this better? The harvester install docs don't really give indepth info 😕
t
1, that is the user Rancher will use to setup rke2,
m
oh man, that most likely explains A LOT 😄
I have not been able to get a cluster to actually work
t
use ubuntu? the default is
ubuntu
or rocky with
rocky
?
opensuse is a pain. lol.
🤭 1
m
yea, I tried to use a leap qcow2 image and used my robot username in the SSH User field, but the cluster always stopped at "Waiting for the agent" or something similar.
t
try the mainstream first..
aka rocky, or ubuntu
✅ 1