commit | f4acb4a4d7aa1bddfac27102689e1c8602e5067d | [log] [tgz] |
---|---|---|
author | Denis Egorenko <degorenko@mirantis.com> | Sat Jan 26 13:58:58 2019 +0400 |
committer | Denis Egorenko <degorenko@mirantis.com> | Sat Jan 26 13:58:58 2019 +0400 |
tree | 068c73ac7ad38355bdec96f5fc386634a4a9a95b | |
parent | 01c171a25eadb525b34f31fd1be1841d21292bfe [diff] |
Specify container and disk format when uploading image to OS Change-Id: Ia8f86843d4a08cec7ae6bc48822f24d5e1c4bf82
Packer templates are used to:
PACKER_URL="https://dl.bintray.com/mitchellh/packer/packer_0.8.2_linux_amd64.zip" PACKER_ZIP=$(basename ${PACKER_URL}) PACKER_ZIP_MD5="bc37abe5e183a11bd8c1b2efc385059b" mkdir -p ~/bin/packer cd ~/bin/packer export PATH="${PATH}:~/bin/packer" wget -O ${PACKER_ZIP} ${PACKER_URL} echo "${PACKER_ZIP_MD5} ${PACKER_ZIP}" >> md5sum md5sum -c --status md5sum unzip ${PACKER_ZIP}
Enter build directory by selecting OS type and version. You should see file template.json.
Start building some images:
packer build -only=virtualbox-iso template.json
Directory http/ contains OS installer config files (preseed/kickstart/..)
Directory scripts/ contains set of scripts for provision after image build.