This repository holds tools necesearry to build OpenIndiana Vagrant boxes.
To build OpenIndiana Vagrant boxes, we need the following tools:
- packer
- VirtualBox
- Vagrant (for testing built boxes)
Please note, that box building works only on platforms where packer runs.
- Download Packer from the official download site. Select a version for your platform. We recommend to use the latest version.
- Download Vagrant from the official download site. Select a version for your platform. We recommend to use the latest version.
- Download VirtualBox from the official download site. We recommend to always use the latest VirtualBox.
- Run the following commands:
git clone https://github.com/OpenIndiana/oi-packer.git && \
cd oi-packer && \
packer build -parallel-builds=1 hipster.pkr.hcl
After packer has finished building the box, there will be a Vagrant box file created, e.g. OI-hipster-20200504-virtualbox.box. To test it, run following commands:
vagrant box add --name hipster-test-virtualbox OI-hipster-20200504-virtualbox.box
vagrant init hipster-test-virtualbox
vagrant up
vagrant box add --name hipster-test-libvirt OI-hipster-20200504-libvirt.box
vagrant init hipster-test-libvirt
vagrant up --provider=libvirt
If you are logged in to vagrant cloud use this commands to upload the built boxes.
REPO="openindiana/hipster"
VERSION="2020.05.04"
vagrant cloud publish -r $REPO $VERSION libvirt OI-hipster-20200504-libvirt.box
vagrant cloud publish -r $REPO $VERSION virtualbox OI-hipster-20200504-virtualbox.box
- Provide packer manifest and infrastructure for building VMWare images.
- Provide packer manifest and infrastructure for building Amazon images.