Closed will-gant closed 1 year ago
Seems to be related to: https://github.com/cloudfoundry/bosh-deployment/issues/444
@chromium (Linux stack) and I (Mac OS X stack) currently working on that topic and we're documenting our efforts that inside this draft PR.
This is duplicate of #30. @rkoster Can we close this?
As mentioned this is duplicate of #30 which has more context & discussions. That is why I'm closing this in favour of #30. Thanks @chombium for bringing this up!
@beyhan thanks for the help
It seems that it's not currently possible to deploy bosh-lite on the recently-released macOS Ventura with either v6 or v7 of VirtualBox. Through some experiments, myself and a colleague had the following outcomes running the
bosh create-env
command in step 4 of the bosh-lite deployment instructions:All of the failure cases produced an error like this:
CPI 'create_vm' method responded with error: CmdError{"type":"Bosh::Clouds::CloudError","message":"Creating VM with agent ID '{{62648f58-e9a3-4d9d-49a1-e4b42bc402bb}}': Enabling networks: Retried '30' times: Running command: 'VBoxManage hostonlyif create', stdout: '', stderr: '0%!.(MISSING).NS_ERROR_FAILURE\nVBoxManage: error: Failed to create the host-only adapter\nVBoxManage: error: VBoxNetAdpCtl: Error while adding new interface: failed to open /dev/vboxnetctl: No such file or directory\nVBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component HostNetworkInterfaceWrap, interface IHostNetworkInterface\nVBoxManage: error: Context: \"RTEXITCODE handleCreate(HandlerArg *)\" at line 105 of file VBoxManageHostonly.cpp\n': exit status 1","ok_to_retry":false}
Interestingly, the security prompt only pops up with VirtualBox 6.1.40 and macOS 12.6. And even if you click through that prompt and successfully deploy with that combination, after you upgrade to macOS 13.0.1 you're back to getting errors like the above.
This VirtualBox error seems pretty common on various versions of macOS (not just Ventura), and I've tried a few suggested solutions in places like Stack Overflow, etc, but no joy.
Here's everything relevant I could find in the debug logs: