README.md 1.4 KB

packer-templates-linode

The packer templates included here aim to build Linode images that are compatible with Linode services where possible.

Notice

These are not official Linode images.

Usage

The following images are available:

Void Linux

NixOS

Deploy

Starting with a fresh Linode:

  1. Create an ext4 boot disk
  2. Create a swap disk
  3. Create a configuration profile
    • /dev/sda - ext4 boot disk
    • /dev/sdb - swap disk
    • set kernel to "GRUB 2"
    • disable all helpers
  4. Boot into Rescue Mode
    • /dev/sda - ext4 boot disk
  5. From the Lish console in Rescue mode, run the following commands:
    • curl http://static.stj.io/qemu/images/linode/<image>.gz | gunzip | dd of=/dev/sda
  6. Shut down
  7. Set root password from Rescue tab
  8. Boot
  9. Enjoy!

Saving

To avoid going through the deployment steps for future images, you can take an image of the disk. This should be done after step 6, when the Linode is shut down, but before setting the root password.

Linode docs for creating an image

Development

Documentation on image creation can be found in CONTRIBUTING.md