Rancher Ubuntu 18.04 node template

  1. Install a clean Ubuntu 18.04

  2. Remove

sudo rm -rf /var/lib/cloud/instances
  1. To prevent duplicate DHCP addresses, run:

truncate -s 0 /etc/machine-id
sudo rm /var/lib/dbus/machine-id
  1. Install cloud-init

sudo apt install cloud-init -y
  1. Install open-iscsi

sudo apt install open-iscsi -y
  1. Shut down the machine

  2. Clone to Template

  3. In Rancher, add new node template and select the new template

  4. Rancher cloud-init should take care of the rest.

Last updated