Vagrant OEL 8 DevOps · VirtualBox · Parallels · Beginner

VagrantIntroduction & Architecture

Learn what Vagrant is, how it works, key concepts like boxes, Vagrantfiles and providers, and why it is essential for database lab environments on OEL 8.

Vagrant is an open-source tool by HashiCorp for building and managing portable virtual machine environments. It provides a simple, consistent workflow to create, configure, and destroy VMs using a single configuration file called a Vagrantfile. For database engineers, Vagrant is invaluable for spinning up isolated OEL 8 environments to test MySQL, Oracle, ProxySQL, and other database stacks without touching production systems.

Your Machine Vagrantfile Vagrant CLI VirtualBox Provider Parallels Desktop Provider OEL 8 VM x86_64 OEL 8 VM ARM64 / x86_64 Cross-platform virtualisation engines
  • Box: A packaged VM image — the base operating system. Think of it like a Docker image but for full VMs.
  • Vagrantfile: Ruby-based config file that defines your VM — box, CPU, RAM, network, provisioning.
  • Provider: The virtualisation engine — VirtualBox or Parallels Desktop in our case.
  • Provisioner: Scripts or tools that run inside the VM after it boots — Shell, Ansible, Chef etc.
  • Synced Folder: A folder shared between your host machine and the VM.
  • Snapshot: A saved state of your VM — restore to it any time.
  • Multi-Machine: Define multiple VMs in one Vagrantfile — perfect for database replication labs.
FeatureVirtualBoxParallels Desktop
CostFreePaid (licence required)
PlatformMac, Windows, LinuxMac only
Apple Silicon (M1/M2/M3)Limited (v7+)Excellent native support
Performance on MacGoodExcellent
Vagrant ProviderBuilt-in (default)Plugin required
OEL 8 SupportFullFull (ARM + x86)
Snapshots via VagrantYesYes
Nested VirtualisationLimitedYes
  • Reproducible environments: Share a Vagrantfile and everyone gets the identical setup.
  • Safe testing: Test upgrades, config changes, and migrations without risk.
  • Multi-node labs: Spin up Master + Replica + ProxySQL in one command.
  • Snapshot and rollback: Break things, restore in seconds.
  • Offline work: Full VM runs without internet after initial setup.
  • OEL 8 specific: Test exactly what runs in your production Oracle Linux environment.
SectionPagesTopics
Basics1–6Introduction, Installation, CLI, Vagrantfile, OEL 8 Box
VirtualBox7–14First VM, Networking, Folders, Multi-Machine, Provisioning, Snapshots
Parallels15–20First VM, Provider Config, Networking, Multi-Machine, Box Packaging
Database Labs21–30MySQL, Oracle, ProxySQL, Galera, InnoDB Cluster, PostgreSQL
Advanced31–38Plugins, Custom Boxes, Secrets, Troubleshooting, Cheat Sheet
💡 Note: All examples in this series target Oracle Enterprise Linux 8 (OEL 8) — matching real production Oracle Linux environments.