rancher / os

Tiny Linux distro that runs the entire OS as Docker containers
https://rancher.com/docs/os/v1.x/en/
Apache License 2.0
6.44k stars 660 forks source link

Packer VMware template for vSphere driver template #3057

Closed bennysp closed 3 years ago

bennysp commented 3 years ago

RancherOS Version: (ros os version) rancher/os:v1.5.8

Where are you running RancherOS? (docker-machine, AWS, GCE, baremetal, etc.) VMware

I am trying to build a VMware template for RancherOS so that it can be used to call from the vSphere Node Driver template. I am using packer (with cloud config) to create the template and do the install to disk. The problem is that when Rancher calls the node and provisions with vSphere driver, it is technically the "second boot".

What do I see? I get the typical "Waiting for SSH to be available" when provisioning a cluster, because it seems to ignore Rancher's cloud-config operations, as it is the "second boot".

How have I resolved in other OS? For ubuntu, I do something like this in my initial cloud script (first boot cloud-init):

echo "Reset Cloud-Init"
rm /etc/cloud/cloud.cfg.d/*.cfg
cloud-init clean -s -l

This forces the next boot (second boot from Rancher), to be considered as another cloud-init (first boot). Make sense?

So, how does one accomplish the same in RancherOS?

bennysp commented 3 years ago

Closing. Disregard. I have later learned that RancherOS is only maintenance mode, so I am not going to pursue this any further.