Packer
環境 [#m6b06aa8]
-MacOS X 10.11.1 -packer 0.8.6
Packerのインストール [#e500acbe]
$ brew install packer
boxの作成 [#v16deecf]
$ mkdir -p packer
$ git clone https://github.com/boxcutter/centos
$ vim centos67.json
+ "iso_checksum": ここに参照先のファイルのチェックサムを記載する。sha1sum.txtに記載。
+ "iso_url": "http://ftp.riken.jp/Linux/centos/6.7/isos/x86_64/CentOS-6.7-x86_64-minimal.iso",
+ "memory": "1024"
$ vim ks6.cfg
- lang en_US.UTF-8
- keyboard us
+ lang ja_JP.UTF-8
+ keyboard jp106
-timezone UTC
timezone Asia/Tokyo
$ packer build --only=virtualbox-iso centos67.json centos.json
Vagrantの追加 [#t870ea35]
$ mkdir
/vagrant/centos6-1
$ cd
/vagrant/centos6-1
$ vagrant init
$ vim Vagrantfile
+ config.vm.box = "centos6-1"
+ config.vm.box_url = "
/PATH/box/virtualbox/centos67-nocm-0.1.0.box"
$ vagrant up
$ vagrant ssh
参考URL [#gced44a9]
http://qiita.com/ryurock/items/e3635221e4717f2addfe
Packer0.9.0 [#cfdeb3d6]
build [#k098d9c8]
$ packer build -var-file=centos67.json -only=virtualbox-iso centos.json