In this tutorial we’ll install vagrant-libvirt on a Mac running macOS (tested on High Sierra and Mojave). vagrant-libvirt is a plugin for Vagrant that allows you to interact with libvirt virtualization hosts, local or remote. Vagrant can be used to build and manage virtual machines and is useful for development. Vagrant runs most platforms, including MacBook Pros and the Raspberry Pi. Libvirt is a “toolkit to manage virtualization platforms”, and supports a variety of virtualization backends, including, but not limited to, KVM, QEMU, Xen, VMWare and LXC.
This tutorial will guide you through the process of running macOS Mojave in a VM using Vagrant. I’ve mainly used this for development and testing of Ansible playbooks targeted at configuring headless app builders for iOS devices and Macs. This tutorial assumes you have a working installation of macOS Mojave or later running on a Mac, and that you have VirtualBox and the VirtualBox Extension Pack installed. This tutorial will make use of macinbox by bacongravy.