Skip to content

Packer example for Ubuntu 22.04 Jammy using the Virtualbox OVF builder

Notifications You must be signed in to change notification settings

Jamie-/packer-ubuntu-22.04-virtualbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ubuntu 22.04 Jammy Packer Example

This example uses the Jammy cloud OVA image and the Virtualbox OVF builder to build a custom image.

This method is particularly neat as it does not require any automation of the installer due to making use of the Ubuntu cloud image and cloud-init for the initial setup.

Building

Typically the following would suffice for a simple build with defaults

packer build ubuntu.pkr.hcl

However due to a bug (not sure whether to class it as an Ubuntu or a Packer bug) it's not possible to use the 22.04 cloud OVA directly with packer. A pre-packer step is required to rename the IDE controller in the source OVA so that it's compatible with the Packer virtualbox-ovf builder. For more info see this issue: hashicorp/packer-plugin-virtualbox#108

The included build script works around all this for you.

./build.sh

About

Packer example for Ubuntu 22.04 Jammy using the Virtualbox OVF builder

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published