I am trying to launch two VMs using docker machine:
docker-machine create --driver virtualbox myvm1
docker-machine create --driver virtualbox myvm2
I see the following error in the output:
(myvm2) Progress state: NS_ERROR_FAILURE
(myvm2) VBoxManage: error: Failed to create the host-only adapter
(myvm2) VBoxManage: error: VBoxNetAdpCtl: Error while adding new interface: failed to open /dev/vboxnetctl: No such file or directory
(myvm2) VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component HostNetworkInterfaceWrap, interface IHostNetworkInterface
(myvm2) VBoxManage: error: Context: "RTEXITCODE handleCreate(HandlerArg *)" at line 94 of file VBoxManageHostonly.cpp
(myvm2)
(myvm2) This is a known VirtualBox bug. Let's try to recover anyway...
Error creating machine: Error in driver during machine creation: Error setting up host only network on machine start: The host-only adapter we just created is not visible. This is a well known VirtualBox bug. You might want to uninstall it and reinstall at least version 5.0.12 that is is supposed to fix this issue
I installed the latest version of VirtualBox (6.0.0) from there. When I open VirtualBox window and click on the VMs in the left panel I get the following error popup:
UPDATE
I tried to re-install VirtualBox 6.0.0 and in the end of the VirtualBox installation process I saw the following screen:
Maybe it is a reason of the failures described above? My mac is running on 10.14.1 macOS Mojave
How can I fix these errors?
You probably need to approve the VirtualBox kernel extension in System Preferences under Security & Privacy:
After you allow the kernel extension, the installer should be able to run successfully.
The (rc=-1908) usually happens when the secure boot is enable, try to disable and run your vm again
Secure Boot settings are available in Startup Security Utility:
Select "No security" option
I got this exact error after upgrading my Mac to Monterey. Remove Virtualbox and reinstall solves the problem.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With