This repository contains a Packer template for building ESXi 5.5 machine images and a Vagrant box example.
-
MacOSX with VMware Fusion or Linux with VMware Workstation
-
Vagrant plugin for Fusion or Workstation
-
VMware-VMvisor-Installer-5.5.0-1331820.x86_64.iso
You'll need a copy of VMware-VMvisor-Installer-5.5.0-1331820.x86_64.iso in this
directory, or add a valid url to iso_urls in template.json.
To build the image, run the following:
$ packer build template.json
While ESXi is installing, the console can be accessed using
noVNC. The port can also be
changed with the RemoteDisplay.vnc.webSocket.port property in template.json.
Install the vagrant plugin for VMware ESXi guest support:
$ vagrant plugin install vagrant-esxi
The packer build created a Vagrant box named vmware_esxi55.box in this
directory. To bring up an instance of this box, run the following:
$ vagrant up --provider=vmware_fusion
The provision.sh script is run within the ESXi VM and changes /etc/motd with
the vagrant version sourced from this directory over NFS:
$ vagrant ssh
Welcome to VMware ESXi 5.5.0, up'd by Vagrant 1.3.4
The same noVNC url above can used to view the console:
