Skip to content
This repository has been archived by the owner on Sep 26, 2021. It is now read-only.

Cannot create docker machine (VirtualBox) on Big Sur #4848

Closed
kotapeter opened this issue Nov 13, 2020 · 5 comments
Closed

Cannot create docker machine (VirtualBox) on Big Sur #4848

kotapeter opened this issue Nov 13, 2020 · 5 comments

Comments

@kotapeter
Copy link

kotapeter commented Nov 13, 2020

On Big Sur I get an error message when I try to create a new docker machine (driver: VirtualBox).

  1. I ran this command:
docker-machine create test
  1. I got this error:
Running pre-create checks...
Creating machine...
(test) Copying /Users/test/.docker/machine/cache/boot2docker.iso to /Users/test/.docker/machine/machines/test/boot2docker.iso...
(test) Creating VirtualBox VM...
(test) Creating SSH key...
(test) Starting the VM...
(test) Check network to re-create if needed...
(test) Creating a new host-only adapter produced an error: /usr/local/bin/VBoxManage hostonlyif create failed:
(test) 0%...
(test) Progress state: NS_ERROR_FAILURE
(test) VBoxManage: error: Failed to create the host-only adapter
(test) VBoxManage: error: VBoxNetAdpCtl: Error while adding new interface: failed to open /dev/vboxnetctl: No such file or directory
(test) VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component HostNetworkInterfaceWrap, interface IHostNetworkInterface
(test) VBoxManage: error: Context: "RTEXITCODE handleCreate(HandlerArg *)" at line 95 of file VBoxManageHostonly.cpp
(test) 
(test) 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

VirtualBox version: 6.1.12
docker-machine version: 0.16.0

@kotapeter
Copy link
Author

I could resolve this issue:

  • install VirtualBox 6.1.16
  • allow Oracle permission in security settings
  • restart computer

@sgaynetdinov
Copy link

@kotapeter Hi, where can i add permission for VirtualBox?

@kotapeter
Copy link
Author

kotapeter commented Nov 16, 2020

@sgaynetdinov 👋 run VirtualBox installer and go through the steps. after that open System Preferences > Security & Privacy. Go to "General" tab and you should see an "Allow" button. Click on the lock icon, enter your password and after click on the allow button.
And finally restart computer.
osx-install-oracle2 (1)

@sgaynetdinov
Copy link

@kotapeter Thanks, working! 💪

@yaitskov
Copy link

How could I do the step above on MacOS VM with ssh access only?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants