Reader small image

You're reading from  HashiCorp Packer in Production

Product typeBook
Published inJul 2023
PublisherPackt
ISBN-139781803246857
Edition1st Edition
Right arrow
Author (1)
John Boero
John Boero
author image
John Boero

John Boero has 20 years of experience in the tech industry covering engineering, consulting, architecture, and pre-sales. He comes from Chicago, IL in the USA but currently lives in London, UK. He has worked for Red Hat, Puppet, and HashiCorp and remains active in the open source community. All commissions for this book will be donated to the Raspberry Pi Foundation non-profit to encourage coding and computing skills for kids.
Read more about John Boero

Right arrow

Applying the VirtualBox builder

VirtualBox might not be considered a production hypervisor, but it is actually very helpful when learning Packer on your own. VirtualBox works on most common operating systems and gives you the option to connect and troubleshoot a VM during an image build. Note that the builders that support VirtualBox offer a headless option, meaning you will not launch VMs in a GUI during a build. This is handy if you are working remotely via SSH or using automation.

A caveat to the VirtualBox builder is lack of access to TTY from your Packer session. This means the machine’s text output won’t directly show up in Packer output. Provisioners executing over SSH have the handy ssh_pty option, which allows you to capture SSH output. For the rest, you should probably use headless = "false", which is the default and lets you view the VM in VirtualBox. Later, we will cover other builders such as QEMU, which can actually output all of a VM’...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
HashiCorp Packer in Production
Published in: Jul 2023Publisher: PacktISBN-13: 9781803246857

Author (1)

author image
John Boero

John Boero has 20 years of experience in the tech industry covering engineering, consulting, architecture, and pre-sales. He comes from Chicago, IL in the USA but currently lives in London, UK. He has worked for Red Hat, Puppet, and HashiCorp and remains active in the open source community. All commissions for this book will be donated to the Raspberry Pi Foundation non-profit to encourage coding and computing skills for kids.
Read more about John Boero