Unofficial packer templates for creating Linode images

Steven Jacobs 07a002e3ec test tcg acceleration 1 year ago
_common 76e6dbf3be initial commit 2 years ago
bin 383b11ee2e move build step to script and add nix 1 year ago
nixos 07a002e3ec test tcg acceleration 1 year ago
void 07a002e3ec test tcg acceleration 1 year ago
.gitignore 76e6dbf3be initial commit 2 years ago
CONTRIBUTING.md 22d32dbd68 update readme with image locations 1 year ago
Jenkinsfile d3ae0470fb only deploy from master branch 1 year ago
LICENSE 76e6dbf3be initial commit 2 years ago
README.md 22d32dbd68 update readme with image locations 1 year ago

README.md

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