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.
- Run 'vagrant box add oinume/ubuntu-14.04-jp'
- 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.
- Specify the path of .ovf like below in template.json and run 'packer build template.json'
- 'ubuntu-14-04-x64-jp-ansible-virtualbox.box' created.
- 作者: Lorin Hochstein
- 出版社/メーカー: O'Reilly Media
- 発売日: 2015/04/29
- メディア: Kindle版
- この商品を含むブログを見る