obourdon / flatcar-packer-vbox

Packer templates for building Flatcar vagrant/qemu images

Home Page:https://github.com/kinvolk/flatcar/issues

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

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 .

See also

https://www.packer.io/docs/builders/virtualbox/iso https://www.packer.io/docs/post-processors/vagrant

About

Packer templates for building Flatcar vagrant/qemu images

https://github.com/kinvolk/flatcar/issues

License:Apache License 2.0


Languages

Language:Shell 68.1%Language:Makefile 22.9%Language:Dockerfile 4.7%Language:Ruby 4.3%