Subscribed unsubscribe Subscribe Subscribe

oinume journal

Scratchpad of what I learned

Building Vagrant box from VirtualBox OVF

Packer in English

I realized that Packer can build Vagrant box from VirtualBox OVF file not only from ISO image. Building Vagrant box takes much time to run an installer so I'm very happy to skip the step.

I created Ansible installed Vagrant box from another box to try.

  1. Run 'vagrant box add oinume/ubuntu-14.04-jp'
  2. Downloaded box is stored in ~/.vagrant.d/boxes/oinume-VAGRANTSLASH-ubuntu-14.04-jp/1.0.1/virtualbox and box.ovf is in the directory.
  3. Specify the path of .ovf like below in template.json and run 'packer build template.json'
  4. '' created.

Ansible: Up and Running

Ansible: Up and Running