I updated my mac to Monterey. Then I tried to vagrant up in a project after I updated the virtual box and allowed permission in my System Preferences > Security & Privacy.
I get this error:
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.
Command: ["startvm", "2f108a05-a574-4e42-b03d-36b2abfa8d26", "--type", "headless"]
Stderr: VBoxManage: error: The virtual machine 'projectwebsite.test' has terminated unexpectedly during startup because of signal 10
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component MachineWrap, interface IMachine
What should I do to fix it? I looked at solutions and it said something about GUI and Headless. I came across this article saying that VBoxHeadline doesn't run in macOS Monterey. (https://www.virtualbox.org/ticket/20636). So I have to configure vagrant to run in gui
So the options I have:
- roll back to previous MacOS version
- Configure vagrant
- What else?
Question: How do I configure vagrant? This article is confusing: https://www.vagrantup.com/docs/providers/virtualbox/configuration#gui-vs-headless. Where do I go to add this code?
config.vm.provider "virtualbox" do |v|
v.gui = true
end
So confused about all those things.