Skip to content
Pellaeon Lin edited this page Oct 10, 2013 · 5 revisions

OpenStack BSD Cloud Init Installer

A shell script that transforms a VM into OpenStack template and installs bsd-cloudinit

OpenStack BSD Cloud Init

Framework based on cloudbase-init, specialized for BSD (currently only FreeBSD). Executes the first time when VM is brought up.

Functions

bsd-cloudinit

  1. Inject user SSH key into authorized_keys
  2. Network configuration: IP, gateway, DNS (make according changes to rc.conf)
  3. Set hostname (and modify rc.conf)
  4. Detect all network interfaces, add them into rc.conf, set to DHCP

bsd-cloudinit-installer

  1. Remove SSH host keys to trigger automatic key generation on next boot
  2. Install Python environment
  3. Make bsd-cloudinit execute after rc.subr and before rc.conf
  4. Install bsd-cloudinit

What users should do before running the installer

  1. Install & configure desired packages
  2. Install virtio-kmod for performance