strato190 / flatcar-packer-qemu

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

flatcar-packer-qemu

A basic Packer template, Makefile and ignition config file to build QEMU images and a Vagrant box for Flatcar Linux.

Installation

Verify that you have Packer installed.

$ packer -v

Verify that you have ct installed, or use the ct target to install it to /usr/local/bin for you:

$ sudo make ct

For all options to customize the image properties, see the Makefile variables.

Basic example using defaults (alpha release)

$ make flatcar-linux

Building the stable release

$ make flatcar-linux RELEASE=stable VERSION=1632.3.0

Building in headless mode

$ make flatcar-linux HEADLESS=true

Building in headless mode with disabled hardware acceleration (for example inside vm and without kvm support in linux kernel)

$ make flatcar-linux HEADLESS=true ACCELERATION=none BOOT_WAIT=240s

Other make targets

Delete builds:

$ make clean

Delete the packer cache (making packer download the latest iso image on next build):

$ make cache-clean

Running the Vagrant box using libvirt as provider

$ vagrant up --provider=libvirt

Other works

This repository is based on other works such as https://github.com/dyson/packer-qemu-coreos-container-linux or https://github.com/bfraser/packer-coreos-qemu .

About

License:Apache License 2.0


Languages

Language:HCL 50.3%Language:Makefile 41.0%Language:Ruby 8.6%