Deploy Ubuntu using Packer on VMWare ESXi

Requirements

Builder - vsphere-iso or vmware-iso?

Packer supports 2 builders to create VM from an ISO image on VMWare.

This example uses vsphere-iso.
Note: The latest packer versions support vsphere-iso natively. So the jetbrains plugin is no longer required.

Usage

  1. Setup Packer
      cd /tmp
      wget https://releases.hashicorp.com/packer/1.5.5/packer_1.5.5_linux_amd64.zip
      unzip packer_1.5.5_linux_amd64.zip
      cp packer /usr/local/bin/
      chmod u+x /usr/local/bin/packer
    
  2. Edit ubuntu-18/variables.json
  3. Run packer build -var-file variables.json ubuntu-18.json
  4. In case Ubuntu decides to drop floppy driver support, we can use packer’s inbuilt http-server feature to expose the preseed file.

References:

Comments