This repository contains automated build scripts for creating Oracle Linux 9 and 10 Vagrant boxes using Packer, along with ready-to-use Vagrant configurations for provisioning local environments.
It is intended to create consistent and reproducible Oracle Linux environments and others.
├── packer
│ ├── build
│ └── templates
│ ├── http
│ └── scripts
└── vagrant
├── oracle-database
│ └── 19c
│ ├── ora-response
│ ├── scripts
│ ├── software
│ └── userscripts
├── oracle-linux
│ ├── ol10
│ └── ol9
└── postgres
├── current
│ └── almalinux
│ └── scripts
└── latest
└── almalinux
├── scripts
└── software- packer/ — Packer templates and provisioning scripts for building the base Vagrant boxes
- vagrant/ — Vagrantfiles referencing the locally-built boxes
- Packer
- Vagrant
- VirtualBox or another supported provider
To build a box:
cd packer
./build_ol9_box.shThe resulting .box file will be created in the build/ directory and will be add as a vagrant box
Navigate to the Vagrant environment:
cd vagrant/ol9
# Start the VM
vagrant up
# SSH into the VM
vagrant ssh
# To stop or destroy
vagrant halt
vagrant destroy -fThe following can be customized by modifying the files under packer/templates or the respective Vagrantfile:
- VM resources (CPU, RAM)
- Networking
- Provisioning scripts (shell, Ansible, etc.)
- Packer kickstart and build options