VirtualBoxをアップデートしたらvagrant upエラーが出たときの解決法

VirtualBoxをアップデートしたらvagrant upエラーが出たときの解決法

VirtualBoxをアップデートしたらvagrant upエラーが出たときの解決法

VirtualBoxをアップデートしたらvagrant upエラーが出たときの解決法
最終更新日:2021.01.20

VirtualBoxを起動したら催促されるアップデートの誘い…しかしvagrantのバージョンと相性があるようです。

わたしは最新の 6.1.10へアップデートし、vagrant upしようとすると以下のエラーが…。

No usable default provider could be found for your system.

Vagrant relies on interactions with 3rd party systems, known as
“providers”, to provide Vagrant with resources to run development
environments. Examples are VirtualBox, VMware, Hyper-V.

The easiest solution to this message is to install VirtualBox, which
is available for free on all major platforms.

If you believe you already have a provider available, make sure it
is properly installed and configured. You can see more details about
why a particular provider isn’t working by forcing usage with
`vagrant up –provider=PROVIDER`, which should give you a more specific
error message for that particular provider.

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

Command: [“import”, “/.vagrant.d/boxes/0/virtualbox/box.ovf”, “–vsys”, “0”, “–vmname”, “1592304692283_84922”, “–vsys”, “0”, “–unit”, “13”, “–disk”, “/Users/VirtualBox VMs/1592304692283_84922/box-disk001.vmdk”]

Stderr: 0%…10%…20%…30%…40%…50%…60%…70%…80%…90%…100%
Interpreting /.vagrant.d/boxes/0/virtualbox/box.ovf…
OK.
0%…10%…20%…30%…40%…50%…60%…70%…80%…
Progress state: NS_ERROR_INVALID_ARG
VBoxManage: error: Appliance import failed
VBoxManage: error: Code NS_ERROR_INVALID_ARG (0x80070057) – Invalid argument value (extended info not available)
VBoxManage: error: Context: “RTEXITCODE handleImportAppliance(HandlerArg *)” at line 957 of file VBoxManageAppliance.cpp

そんなときはバーチャルボックスをダウングレードすれば解決します!

https://www.virtualbox.org/wiki/Download_Old_Builds_6_0

ターミナル

コピー

vagrant plugin install vagrant-vbguest


$ vagrant vbguest