rancher/os

Packer VMware template for vSphere driver template

bennysp opened this issue · 1 comments

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?

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