cloudfoundry / bosh-virtualbox-cpi-release

BOSH VirtualBox CPI
Apache License 2.0
6 stars 22 forks source link

Can't deploy on macOS Ventura 13.0.1 #26

Closed will-gant closed 1 year ago

will-gant commented 1 year ago

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:

VirtualBox 6.1.40 VirtualBox 7.04
macOS 12.6 Succeeds (prompted to 'allow' something in Security & Privacy, and then reboot) Fails
macOS 13.0.1 Fails Fails

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:

********************
[driver.LocalRunner] 2022/11/25 13:01:38 DEBUG - Execute 'VBoxManage list' 'hostonlyifs'
[Cmd Runner] 2022/11/25 13:01:38 DEBUG - Running command 'VBoxManage list hostonlyifs'
[Cmd Runner] 2022/11/25 13:01:38 DEBUG - Stdout:
[Cmd Runner] 2022/11/25 13:01:38 DEBUG - Stderr:
[Cmd Runner] 2022/11/25 13:01:38 DEBUG - Successful: true (0)
[driver.LocalRunner] 2022/11/25 13:01:38 DEBUG - Execute 'VBoxManage hostonlyif' 'create'
[Cmd Runner] 2022/11/25 13:01:38 DEBUG - Running command 'VBoxManage hostonlyif create'
[Cmd Runner] 2022/11/25 13:01:38 DEBUG - Stdout:
[Cmd Runner] 2022/11/25 13:01:38 DEBUG - 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
[Cmd Runner] 2022/11/25 13:01:38 DEBUG - Successful: false (1)
[driver.LocalRunner] 2022/11/25 13:01:40 DEBUG - Execute 'VBoxManage hostonlyif' 'create'
[Cmd Runner] 2022/11/25 13:01:40 DEBUG - Running command 'VBoxManage hostonlyif create'
[Cmd Runner] 2022/11/25 13:01:40 DEBUG - Stdout:
[Cmd Runner] 2022/11/25 13:01:40 DEBUG - 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
[Cmd Runner] 2022/11/25 13:01:40 DEBUG - Successful: false (1)
[driver.LocalRunner] 2022/11/25 13:01:42 DEBUG - Execute 'VBoxManage hostonlyif' 'create'
[Cmd Runner] 2022/11/25 13:01:42 DEBUG - Running command 'VBoxManage hostonlyif create'
[Cmd Runner] 2022/11/25 13:01:42 DEBUG - Stdout:
[Cmd Runner] 2022/11/25 13:01:42 DEBUG - 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
[Cmd Runner] 2022/11/25 13:01:42 DEBUG - Successful: false (1)
[driver.LocalRunner] 2022/11/25 13:01:44 DEBUG - Execute 'VBoxManage hostonlyif' 'create'
[Cmd Runner] 2022/11/25 13:01:44 DEBUG - Running command 'VBoxManage hostonlyif create'
[Cmd Runner] 2022/11/25 13:01:44 DEBUG - Stdout:
[Cmd Runner] 2022/11/25 13:01:44 DEBUG - 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
[Cmd Runner] 2022/11/25 13:01:44 DEBUG - Successful: false (1)
[driver.LocalRunner] 2022/11/25 13:01:46 DEBUG - Execute 'VBoxManage hostonlyif' 'create'
[Cmd Runner] 2022/11/25 13:01:46 DEBUG - Running command 'VBoxManage hostonlyif create'
[Cmd Runner] 2022/11/25 13:01:47 DEBUG - Stdout:
[Cmd Runner] 2022/11/25 13:01:47 DEBUG - 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
[Cmd Runner] 2022/11/25 13:01:47 DEBUG - Successful: false (1)
[driver.LocalRunner] 2022/11/25 13:01:49 DEBUG - Execute 'VBoxManage hostonlyif' 'create'
[Cmd Runner] 2022/11/25 13:01:49 DEBUG - Running command 'VBoxManage hostonlyif create'
[Cmd Runner] 2022/11/25 13:01:49 DEBUG - Stdout:
[Cmd Runner] 2022/11/25 13:01:49 DEBUG - 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
[Cmd Runner] 2022/11/25 13:01:49 DEBUG - Successful: false (1)
[driver.LocalRunner] 2022/11/25 13:01:51 DEBUG - Execute 'VBoxManage hostonlyif' 'create'
[Cmd Runner] 2022/11/25 13:01:51 DEBUG - Running command 'VBoxManage hostonlyif create'
[Cmd Runner] 2022/11/25 13:01:51 DEBUG - Stdout:
[Cmd Runner] 2022/11/25 13:01:51 DEBUG - 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
[Cmd Runner] 2022/11/25 13:01:51 DEBUG - Successful: false (1)
[driver.LocalRunner] 2022/11/25 13:01:53 DEBUG - Execute 'VBoxManage hostonlyif' 'create'
[Cmd Runner] 2022/11/25 13:01:53 DEBUG - Running command 'VBoxManage hostonlyif create'
[Cmd Runner] 2022/11/25 13:01:53 DEBUG - Stdout:
[Cmd Runner] 2022/11/25 13:01:53 DEBUG - 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
[Cmd Runner] 2022/11/25 13:01:53 DEBUG - Successful: false (1)
[driver.LocalRunner] 2022/11/25 13:01:55 DEBUG - Execute 'VBoxManage hostonlyif' 'create'
[Cmd Runner] 2022/11/25 13:01:55 DEBUG - Running command 'VBoxManage hostonlyif create'
[Cmd Runner] 2022/11/25 13:01:55 DEBUG - Stdout:
[Cmd Runner] 2022/11/25 13:01:55 DEBUG - 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
[Cmd Runner] 2022/11/25 13:01:55 DEBUG - Successful: false (1)
[driver.LocalRunner] 2022/11/25 13:01:57 DEBUG - Execute 'VBoxManage hostonlyif' 'create'
[Cmd Runner] 2022/11/25 13:01:57 DEBUG - Running command 'VBoxManage hostonlyif create'
[Cmd Runner] 2022/11/25 13:01:57 DEBUG - Stdout:
[Cmd Runner] 2022/11/25 13:01:57 DEBUG - 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
[Cmd Runner] 2022/11/25 13:01:57 DEBUG - Successful: false (1)
[driver.LocalRunner] 2022/11/25 13:01:59 DEBUG - Execute 'VBoxManage hostonlyif' 'create'
[Cmd Runner] 2022/11/25 13:01:59 DEBUG - Running command 'VBoxManage hostonlyif create'
[Cmd Runner] 2022/11/25 13:01:59 DEBUG - Stdout:
[Cmd Runner] 2022/11/25 13:01:59 DEBUG - 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
[Cmd Runner] 2022/11/25 13:01:59 DEBUG - Successful: false (1)
[driver.LocalRunner] 2022/11/25 13:02:01 DEBUG - Execute 'VBoxManage hostonlyif' 'create'
[Cmd Runner] 2022/11/25 13:02:01 DEBUG - Running command 'VBoxManage hostonlyif create'
[Cmd Runner] 2022/11/25 13:02:01 DEBUG - Stdout:
[Cmd Runner] 2022/11/25 13:02:01 DEBUG - 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
[Cmd Runner] 2022/11/25 13:02:01 DEBUG - Successful: false (1)
[driver.LocalRunner] 2022/11/25 13:02:03 DEBUG - Execute 'VBoxManage hostonlyif' 'create'
[Cmd Runner] 2022/11/25 13:02:03 DEBUG - Running command 'VBoxManage hostonlyif create'
[Cmd Runner] 2022/11/25 13:02:03 DEBUG - Stdout:
[Cmd Runner] 2022/11/25 13:02:03 DEBUG - 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
[Cmd Runner] 2022/11/25 13:02:03 DEBUG - Successful: false (1)
[driver.LocalRunner] 2022/11/25 13:02:05 DEBUG - Execute 'VBoxManage hostonlyif' 'create'
[Cmd Runner] 2022/11/25 13:02:05 DEBUG - Running command 'VBoxManage hostonlyif create'
[Cmd Runner] 2022/11/25 13:02:06 DEBUG - Stdout:
[Cmd Runner] 2022/11/25 13:02:06 DEBUG - 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
[Cmd Runner] 2022/11/25 13:02:06 DEBUG - Successful: false (1)
[driver.LocalRunner] 2022/11/25 13:02:08 DEBUG - Execute 'VBoxManage hostonlyif' 'create'
[Cmd Runner] 2022/11/25 13:02:08 DEBUG - Running command 'VBoxManage hostonlyif create'
[Cmd Runner] 2022/11/25 13:02:08 DEBUG - Stdout:
[Cmd Runner] 2022/11/25 13:02:08 DEBUG - 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
[Cmd Runner] 2022/11/25 13:02:08 DEBUG - Successful: false (1)
[driver.LocalRunner] 2022/11/25 13:02:10 DEBUG - Execute 'VBoxManage hostonlyif' 'create'
[Cmd Runner] 2022/11/25 13:02:10 DEBUG - Running command 'VBoxManage hostonlyif create'
[Cmd Runner] 2022/11/25 13:02:10 DEBUG - Stdout:
[Cmd Runner] 2022/11/25 13:02:10 DEBUG - 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
[Cmd Runner] 2022/11/25 13:02:10 DEBUG - Successful: false (1)
[driver.LocalRunner] 2022/11/25 13:02:12 DEBUG - Execute 'VBoxManage hostonlyif' 'create'
[Cmd Runner] 2022/11/25 13:02:12 DEBUG - Running command 'VBoxManage hostonlyif create'
[Cmd Runner] 2022/11/25 13:02:12 DEBUG - Stdout:
[Cmd Runner] 2022/11/25 13:02:12 DEBUG - 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
[Cmd Runner] 2022/11/25 13:02:12 DEBUG - Successful: false (1)
[driver.LocalRunner] 2022/11/25 13:02:14 DEBUG - Execute 'VBoxManage hostonlyif' 'create'
[Cmd Runner] 2022/11/25 13:02:14 DEBUG - Running command 'VBoxManage hostonlyif create'
[Cmd Runner] 2022/11/25 13:02:14 DEBUG - Stdout:
[Cmd Runner] 2022/11/25 13:02:14 DEBUG - 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
[Cmd Runner] 2022/11/25 13:02:14 DEBUG - Successful: false (1)
[driver.LocalRunner] 2022/11/25 13:02:16 DEBUG - Execute 'VBoxManage hostonlyif' 'create'
[Cmd Runner] 2022/11/25 13:02:16 DEBUG - Running command 'VBoxManage hostonlyif create'
[Cmd Runner] 2022/11/25 13:02:16 DEBUG - Stdout:
[Cmd Runner] 2022/11/25 13:02:16 DEBUG - 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
[Cmd Runner] 2022/11/25 13:02:16 DEBUG - Successful: false (1)
[driver.LocalRunner] 2022/11/25 13:02:18 DEBUG - Execute 'VBoxManage hostonlyif' 'create'
[Cmd Runner] 2022/11/25 13:02:18 DEBUG - Running command 'VBoxManage hostonlyif create'
[Cmd Runner] 2022/11/25 13:02:18 DEBUG - Stdout:
[Cmd Runner] 2022/11/25 13:02:18 DEBUG - 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
[Cmd Runner] 2022/11/25 13:02:18 DEBUG - Successful: false (1)
[driver.LocalRunner] 2022/11/25 13:02:20 DEBUG - Execute 'VBoxManage hostonlyif' 'create'
[Cmd Runner] 2022/11/25 13:02:20 DEBUG - Running command 'VBoxManage hostonlyif create'
[Cmd Runner] 2022/11/25 13:02:20 DEBUG - Stdout:
[Cmd Runner] 2022/11/25 13:02:20 DEBUG - 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
[Cmd Runner] 2022/11/25 13:02:20 DEBUG - Successful: false (1)
[driver.LocalRunner] 2022/11/25 13:02:22 DEBUG - Execute 'VBoxManage hostonlyif' 'create'
[Cmd Runner] 2022/11/25 13:02:22 DEBUG - Running command 'VBoxManage hostonlyif create'
[Cmd Runner] 2022/11/25 13:02:23 DEBUG - Stdout:
[Cmd Runner] 2022/11/25 13:02:23 DEBUG - 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
[Cmd Runner] 2022/11/25 13:02:23 DEBUG - Successful: false (1)
[driver.LocalRunner] 2022/11/25 13:02:25 DEBUG - Execute 'VBoxManage hostonlyif' 'create'
[Cmd Runner] 2022/11/25 13:02:25 DEBUG - Running command 'VBoxManage hostonlyif create'
[Cmd Runner] 2022/11/25 13:02:25 DEBUG - Stdout:
[Cmd Runner] 2022/11/25 13:02:25 DEBUG - 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
[Cmd Runner] 2022/11/25 13:02:25 DEBUG - Successful: false (1)
[driver.LocalRunner] 2022/11/25 13:02:27 DEBUG - Execute 'VBoxManage hostonlyif' 'create'
[Cmd Runner] 2022/11/25 13:02:27 DEBUG - Running command 'VBoxManage hostonlyif create'
[Cmd Runner] 2022/11/25 13:02:27 DEBUG - Stdout:
[Cmd Runner] 2022/11/25 13:02:27 DEBUG - 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
[Cmd Runner] 2022/11/25 13:02:27 DEBUG - Successful: false (1)
[driver.LocalRunner] 2022/11/25 13:02:29 DEBUG - Execute 'VBoxManage hostonlyif' 'create'
[Cmd Runner] 2022/11/25 13:02:29 DEBUG - Running command 'VBoxManage hostonlyif create'
[Cmd Runner] 2022/11/25 13:02:29 DEBUG - Stdout:
[Cmd Runner] 2022/11/25 13:02:29 DEBUG - 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
[Cmd Runner] 2022/11/25 13:02:29 DEBUG - Successful: false (1)
[driver.LocalRunner] 2022/11/25 13:02:31 DEBUG - Execute 'VBoxManage hostonlyif' 'create'
[Cmd Runner] 2022/11/25 13:02:31 DEBUG - Running command 'VBoxManage hostonlyif create'
[Cmd Runner] 2022/11/25 13:02:31 DEBUG - Stdout:
[Cmd Runner] 2022/11/25 13:02:31 DEBUG - 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
[Cmd Runner] 2022/11/25 13:02:31 DEBUG - Successful: false (1)
[driver.LocalRunner] 2022/11/25 13:02:33 DEBUG - Execute 'VBoxManage hostonlyif' 'create'
[Cmd Runner] 2022/11/25 13:02:33 DEBUG - Running command 'VBoxManage hostonlyif create'
[Cmd Runner] 2022/11/25 13:02:33 DEBUG - Stdout:
[Cmd Runner] 2022/11/25 13:02:33 DEBUG - 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
[Cmd Runner] 2022/11/25 13:02:33 DEBUG - Successful: false (1)
[driver.LocalRunner] 2022/11/25 13:02:35 DEBUG - Execute 'VBoxManage hostonlyif' 'create'
[Cmd Runner] 2022/11/25 13:02:35 DEBUG - Running command 'VBoxManage hostonlyif create'
[Cmd Runner] 2022/11/25 13:02:35 DEBUG - Stdout:
[Cmd Runner] 2022/11/25 13:02:35 DEBUG - 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
[Cmd Runner] 2022/11/25 13:02:35 DEBUG - Successful: false (1)
[driver.LocalRunner] 2022/11/25 13:02:37 DEBUG - Execute 'VBoxManage hostonlyif' 'create'
[Cmd Runner] 2022/11/25 13:02:37 DEBUG - Running command 'VBoxManage hostonlyif create'
[Cmd Runner] 2022/11/25 13:02:37 DEBUG - Stdout:
[Cmd Runner] 2022/11/25 13:02:37 DEBUG - 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
[Cmd Runner] 2022/11/25 13:02:37 DEBUG - Successful: false (1)
[driver.LocalRunner] 2022/11/25 13:02:39 DEBUG - Execute 'VBoxManage hostonlyif' 'create'
[Cmd Runner] 2022/11/25 13:02:39 DEBUG - Running command 'VBoxManage hostonlyif create'
[Cmd Runner] 2022/11/25 13:02:39 DEBUG - Stdout:
[Cmd Runner] 2022/11/25 13:02:39 DEBUG - 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
[Cmd Runner] 2022/11/25 13:02:39 DEBUG - Successful: false (1)
[rpc.JSONDispatcher] 2022/11/25 13:02:41 DEBUG - CloudError response bytes
********************
{"result":null,"error":{"type":"Bosh::Clouds::CloudError","message":"Creating VM with agent ID '{{86584215-3f97-4f21-5bed-724e9c0d02e1}}': Enabling networks: Retried '30' times: Running command: 'VBoxManage hostonlyif create', stdout: '', stderr: '0%...\nProgress state: 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 95 of file VBoxManageHostonly.cpp\n': exit status 1","ok_to_retry":false},"log":""}
********************
rkoster commented 1 year ago

Seems to be related to: https://github.com/cloudfoundry/bosh-deployment/issues/444

ZPascal commented 1 year ago

@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.

chombium commented 1 year ago

This is duplicate of #30. @rkoster Can we close this?

beyhan commented 1 year ago

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!

chombium commented 1 year ago

@beyhan thanks for the help