-
Notifications
You must be signed in to change notification settings - Fork 27
Structure
Pellaeon Lin edited this page Oct 10, 2013
·
5 revisions
A shell script that transforms a VM into OpenStack template and installs bsd-cloudinit
Framework based on cloudbase-init, specialized for BSD (currently only FreeBSD). Executes the first time when VM is brought up.
- Inject user SSH key into
authorized_keys
- Network configuration: IP, gateway, DNS (make according changes to rc.conf)
- Set hostname (and modify rc.conf)
- Detect all network interfaces, add them into rc.conf, set to DHCP
- Remove SSH host keys to trigger automatic key generation on next boot
- Install Python environment
- Make bsd-cloudinit execute after
rc.subr
and beforerc.conf
- Install bsd-cloudinit
- Install & configure desired packages
- Install virtio-kmod for performance