Skip to content

gpiyush-dev/photon-packer-templates

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VMware Photon Packer templates

Prerequisites

  • Packer > 0.8
  • VMware Fusion or Workstation
  • Virtualbox (optional)

Build Photon artifacts

This packer template requires to variables to be set either via command line or separate JSON file:

  1. iso_file - is the photon ISO for the build (can be local or remote).
  2. iso_sha1sum - is the SHA1 sum of the ISO you want to build.
  3. product_version - is the PhotonOS release version (will be added to the image filename)

Preset JSONs with the required parameters are provided in vars folder.

To kick off a full build using a preset:

packer build -var-file=vars/iso-2.0GA.json packer-photon.json

or manually:

packer build \
        -var 'iso_file=https://bintray.com/artifact/download/vmware/photon/iso/1.0TP2/x86_64/photon-minimal-1.0TP2.iso' \
        -var 'iso_sha1sum=a47567368458acd8c8ef5f1e3f793c5329063dac' \
        -var 'product_version=1.0TP2' \
        packer-photon.json

To build only a VMware workstation/fusion vagrant box:

packer build -only=vagrant-vmware_desktop -var-file=vars/iso-2.0GA.json packer-photon.json

or:

packer build \
       -only=vagrant-vmware_desktop \
       -var 'iso_file=https://bintray.com/artifact/download/vmware/photon/iso/1.0TP2/x86_64/photon-minimal-1.0TP2.iso' \
       -var 'iso_sha1sum=a47567368458acd8c8ef5f1e3f793c5329063dac' \
       -var 'product_version=1.0TP2' \
       packer-photon.json

There are two build targets available:

  1. vagrant-vmware_desktop - Generates the vmware_desktop compatible box found on Atlas as vmware/photon.
  2. vagrant-virtualbox - Generates the virtualbox compatible box found on Atlas as vmware/photon.

Legal

Copyright © 2015 VMware, Inc. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, without warranties or conditions of any kind, EITHER EXPRESS OR IMPLIED. See the License for the specific language governing permissions and limitations under the License.

About

VMware Photon Packer Templates

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 85.6%
  • Ruby 14.4%