做无用之事读无用之书_修复“无用的”错误

做无用之事读无用之书

When I'm working on MDN's source, kuma, I use a technology called Vagrant to do so. Vagrant helps to create an manage a virtual machine that hosts MDN locally. Occasionally, however, I get errors which prevent me from starting the machine, which halts work all together. Here is one such example:

当我在MDN的源kuma上工作时 ,我使用了一种称为Vagrant的技术。 Vagrant帮助创建一个管理本地托管MDN的虚拟机。 但是,有时会出现错误,导致我无法启动机器,从而无法一起工作。 这是一个这样的例子:


There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: ["hostonlyif", "create"]

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 HostNetworkInterface, interface IHostNetworkInterface
VBoxManage: error: Context: "int handleCreate(HandlerArg*, int, int*)" at line 68 of file VBoxManageHostonly.cpp


Of course that error doesn't mean much to me -- I simply want my machine to work. After searching high and low, I found that the following command remedies the issue:

当然,该错误对我来说意义不大-我只是希望我的机器能够工作。 在上下搜索之后,我发现以下命令可以解决此问题:


sudo /Library/StartupItems/VirtualBox/VirtualBox restart


That command restarts VirtualBox, the app which runs the Vagrant box. The next `vagrant up` try works and I'm up and working again!

该命令将重新启动VirtualBox,即运行Vagrant框的应用程序。 下一次“无用的尝试”尝试成功了,我又重新尝试了!

翻译自: https://davidwalsh.name/fixing-vagrant-errors

做无用之事读无用之书

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值