Pack it up, pack it in, let me begin, err, umm… build
In this recipe, we’re going to use Packer to start from source media (such as an ISO) to create our very own Vagrant box from scratch.
Getting started
You will need the following for this recipe:
- Oracle Linux
- Oracle VM VirtualBox
- Packer
Refer to the Technical requirements section at the beginning of this chapter if you need help installing Oracle VM VirtualBox and Packer.
How to do it…
More often than not, you can search the Vagrant catalog and find pre-made Vagrantfiles containing the operating system you’re looking for. But what happens if what you need is not there? Or maybe you don’t trust the author of the Vagrantfile and/or you simply prefer to create your own. You can do this manually, or you can do this entirely with code, by leveraging Packer. In this recipe, we’ll use Packer to bake up a fresh Vagrant box from the Oracle Linux 8.8 source ISO....