This is a packer template for CoreOS. The template currently supports only for Vagrant with Parallels images, but other builders will be added soon.
Install Homebrew
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Install Homebrew Cask
$ brew install caskroom/cask/brew-cask
You need an appropriate license to use Parallels Desktop & Virtualization SDK.
$ brew cask install parallels-desktop
$ brew cask install parallels-virtualization-sdk
Install Vagrant & Parallels Provider
$ brew cask install vagrant
$ vagrant plugin install vagrant-parallels
Install Packer
$ brew cask install packer
$ git clone https://github.com/jgkim/coreos-packer.git
$ cd coreos-packer
$ packer build -var 'channel=stable' -var 'version=647.2.0' -var 'checksum=adef94fabf7c3573b37b35fc7cf7ff2c' coreos.json
$ vagrant box add --force --provider=parallels -name {name}/coreos-stable builds/stable/647.2.0/coreos_production_vagrant_parallels.box
$ vagrant init {name}/coreos-stable
$ vagrant up
$ vagrant ssh
- Building images fails from time to time due to coreos/bugs#152.
- Vagrant Cloud Post-Processor has some bugs in the latest release (0.7.5), but works properly with the recent code.
- There are bugs regarding use of
only
orexcept
configurations in post-processors. The version description option in Vagrant Cloud Post-Processor is not interpolated with template variables.Atlas Post-Processor also works only with the development version of Packer, and it does not use the interpolation in metadata blocks.