This tool suite is used to create and manage VMs on our Buildkite CI Mac hosts:
hostmgr
is a command-line tool to:
hostmgr-helper
is a helper tool used to display the VM's GUI in a window on the host machine.
Those tools are installed in our macOS CI hosts when those are deployed, using the Ansible playbook
When you need to install those tools on your local machine—typically to create new OS templates or Xcode VMs—follow the below instructions:
(We can potentially automate this step, but for now this is still manual)
sudo mkdir -p /opt/ci/ && sudo chown <your-mac-user-name> /opt/ci
.mkdir -p /opt/ci/bin /opt/ci/vm-images /opt/ci/working-vm-images
.hostmgr
and hostmgr-helper
from the latest release and move them to /opt/ci/bin
.chmod u+x /opt/ci/bin/hostmgr /opt/ci/bin/hostmgr-helper
.xattr -d com.apple.quarantine /opt/ci/bin/hostmgr /opt/ci/bin/hostmgr-helper
./opt/ci/bin
to your PATH so that the VM tools will be able to use hostmgr
and hostmgr-helper
/opt/ci/hostmgr.json
. You can copy the file we use to provision our macOS CI hosts directly there.hostmgr-helper
to launch the "hostmgr-helper" macOS app, which needs to be running during building VM images.