VirtualBox无法在“docker-machine create”中启动虚拟机

时间:2018-02-25 22:20:48

标签: docker virtualbox docker-machine macos-high-sierra

我正在关注docker tutorial和第4部分:群体。输入db.collection.aggregate([ { "$project": { "hashmaps": { "$objectToArray": "$$ROOT" } } }, { "$project": { "keys": "$hashmaps.k" } }, { "$group": { "_id": null, "count": { "$sum": { "$cond": [ { "$eq":[ { "$ifNull": [ { "$arrayElemAt": ["$keys", 1] }, 0 ] }, 0 ] }, 1, 0 ] } } } } ]); 后,我可以看到新创建的docker-machine处于'Stopped'STATE状态。如果我执行docker-machine create --driver virtualbox myvm1,则会收到以下错误,包括docker-machine restart myvm1

VBoxManage: error: Failed to create the host-only adapter

VirtualBox版本[(tfvm1) Progress state: NS_ERROR_FAILURE (tfvm1) VBoxManage: error: Failed to create the host-only adapter (tfvm1) VBoxManage: error: VBoxNetAdpCtl: Error while adding new interface: failed to open /dev/vboxnetctl: No such file or directory (tfvm1) VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component HostNetworkInterfaceWrap, interface IHostNetworkInterface (tfvm1) VBoxManage: error: Context: "RTEXITCODE handleCreate(HandlerArg *)" at line 94 of file VBoxManageHostonly.cpp (tfvm1) (tfvm1) This is a known VirtualBox bug. Let's try to recover anyway... 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 ]为vboxmanage --version;我试过卸载并重新安装VirtualBox。还尝试重新启动我的macOS High Sierra,并根据this link的建议安装Java v8,没有任何区别。

如果我尝试在VirtualBox GUI中启动VM,我会收到有关'VERR_VM_DRIVER_NOT_INSTALLED(-1908)'的错误,类似于this link中的问题。

我是Mac上的几个用户之一。我也试过以root用户身份运行'docker-machine create --driver virtualbox myvm1',结果是一样的。

1 个答案:

答案 0 :(得分:0)

我恢复了Virtualbox 5.1.28,让docker-machine再次运行