# What needs to be in a vsphere node template

**URL:** <https://forums.suse.com/t/what-needs-to-be-in-a-vsphere-node-template/17533>\
**Category:** SUSE Rancher Prime\
**Created:** [May 24, 2020, 3:59pm UTC](https://forums.suse.com/t/what-needs-to-be-in-a-vsphere-node-template/17533 "2020-05-24T15:59:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![modir](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/modir/32/6408_2.png) [@modir](https://forums.suse.com/u/modir)\
**Post date:** [May 24, 2020, 3:59pm UTC](https://forums.suse.com/t/what-needs-to-be-in-a-vsphere-node-template/17533/1 "2020-05-24T15:59:53Z")

</div>

I find nowhere a documentation about what I need to have included in the vsphere vm template. E.g are there additional repos I need to enable? Are there any user accounts I need to create which Rancher needs to set everything up?  
I would like to set up a CentOS template which has SNMP etc already enable and some other apps we have as a company standard. But if I am doing this then I am not able to use this template for provisioning a K8s cluster with Rancher. Therefore I need the information what is in the minimum needed. And are there other software packages which are not allowed to be installed. E.g. I found here in the forum a thread where someone wrote that docker should not be installed at the beginning.

---

<div class="post-metadata">

**Author:** ![LarsAC](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/larsac/32/6423_2.png) [@LarsAC](https://forums.suse.com/u/LarsAC)\
**Post date:** [May 30, 2020, 6:20am UTC](https://forums.suse.com/t/what-needs-to-be-in-a-vsphere-node-template/17533/2 "2020-05-30T06:20:41Z")

</div>

Hi,

Did you install cloud init ? It is needed, Rancher injects all other stuff through this. Also, firewall must be open I think on ports 22, 443, and 2376.

On Docker: it is installed by rancher. No need to do it upfront.

Lars

---

<div class="post-metadata">

**Author:** ![modir](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/modir/32/6408_2.png) [@modir](https://forums.suse.com/u/modir)\
**Post date:** [June 10, 2020, 8:55pm UTC](https://forums.suse.com/t/what-needs-to-be-in-a-vsphere-node-template/17533/3 "2020-06-10T20:55:20Z")

</div>

Hi Lars,

Yes, I did install cloud-init. But the problem is that you need to delete a certain directory because Rancher only incejcts the ssh keys once. So if cloud-init was already running while preparing the template then you won’t get the ssh keys a second time.

Furthermore I would like to inject my own ssh keys with cloud-init as well. And there is no documentation how this could be done.

Raffael
