3. Initialize VMs with startup scripts

Initialize and configure virtual machines using tools like cloud-init, Ignition or Sysprep

In this section we will learn how we can initialize and configure VMs at startup. They often start with a generic disk like an ephemeral container disk. How do we customize such VMs, e.g., with adding custom login information?

Goals

  • Know the benefit of startup scripts
  • Know how to use cloud-init
  • Customize your own VM

3.1. Introduction

Introduction to VM provisioning with startup scripts

3.2. Cloud-init

Use cloud-init to initialize your VM