Rashad Mirza logo
Laravel/Homestead error fix after Mac Ventura upgrade

Laravel/Homestead error fix after Mac Ventura upgrade

Rashad Mirza Feb 8, 2023
I had a bad experience with the Mac Ventura upgrade,
After the upgrade was completed, I ran the "vagrant up" command and got the error below:

"There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: ["hostonlyif", "create"]

Stderr: 0%...
Progress state: NS_ERROR_FAILURE
VBoxManage: error: Failed to create the host-only adapter
VBoxManage: error: VBoxNetAdpCtl: Error while adding new interface: failed to open /dev/vboxnetctl: No such file or directory
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component HostNetworkInterfaceWrap, interface IHostNetworkInterface
VBoxManage: error: Context: "RTEXITCODE handleCreate(HandlerArg *)" at line 95 of file VBoxManageHostonly.cpp
"

I googled for a while and actually, the solution was pretty straightforward:
1. Upgrade VirtualBox
2. Upgrade Vagrant using: brew install hashicorp/tap/hashicorp-vagrant

Hope, it will help you too!