Skip to content

Latest commit

 

History

History
 
 

README.md

Packer build templates

The templates and related scripts are used for packer to build images. The installation of packer is available on downloadlink.

Currently the templates for virtualbox and vmware are available, both are based on Ubuntu16.04 LTS.

To build virtualbox image

git clone https://github.com/InfraSIM/tools.git
cd tools/packer
packer build infrasim-box.json

The output file is named infrasim-compute.box.

To build vmware image

git clone https://github.com/InfraSIM/tools.git
cd tools/packer
packer build infrasim-vmware.json
ovftool vmware-infrasim/packer-vmware-iso.vmx infrasim-compute.ova

The output file is named infrasim-compute.ova.

To build QEMU ubuntu image

git clone https://github.com/InfraSIM/tools.git
cd tools/packer
packer build infrasim-qemu.json

The output file is named qemu-ubuntu16.04-image in folder packer/qemu-image.

How to Deploy

For vmware:

The OVA file can be deployed in ESXi host.

For virtualbox:

  1. Vagrantfile_infrasim is the configuration to setup an infraSIM virtual machine. Vagrantfile_rackhd_infrasim is used to configure a RackHD and an InfraSIM in virtualbox. Remember to rename the configuration file to "Vagrantfile" before using it.
  2. make sure the Vagrantfile and box file are in the same folder.
  3. vagrant box add --name infrasim-compute infrasim-compute.box (use --force option if you already added a previous version before).
  4. vagrant up
  5. vagrant ssh