Vagrant up --provision error out

Hello Everyone,

I facing this issue while issuing below command.

vagrant up --provision

Virtual Box Version :- 6.0
Ubuntu Version :- 18.04

/usr/share/rubygems-integration/all/gems/vagrant-2.0.2/lib/vagrant/action/builtin/box_add.rb:221:in `add_from_metadata’: The box you’re attempting to add doesn’t support the provider (Vagrant::Errors::BoxAddNoMatchingProvider)
you requested. Please find an alternate box or use an alternate
provider. Double-check your requested provider to verify you didn’t
simply misspell it.

If you’re adding a box from HashiCorp’s Vagrant Cloud, make sure the box is
released.

Name: ubuntu/trusty64
Address: https://vagrantcloud.com/ubuntu/trusty64
Requested provider: [:libvirt]
The box you’re attempting to add doesn’t support the provider
you requested. Please find an alternate box or use an alternate
provider. Double-check your requested provider to verify you didn’t
simply misspell it.

If you’re adding a box from HashiCorp’s Vagrant Cloud, make sure the box is
released.

Name: ubuntu/trusty64
Address: https://vagrantcloud.com/ubuntu/trusty64
Requested provider: [:libvirt]

Hi @bhavikmunjani,

Please run the command mentioned below as well and see if it helps.

vagrant up --provider virtualbox

If it does not work then please try uninstalling both VirtualBox and Vagrant and then re-install it.

You may refer to the steps mentioned in the following post - Vagrant & VirtualBox installation docs for respective platforms

Kindly get back if the issue persists.

Thanks,
Muskan
Curriculum Support Engineer

Hello @Muskan_Sharma

Thanks for looking into my query and reply.

Firstly, I tried to install Vagrant (Latest) and Virtual box (Latest) on Win7 but it doesn’t worked.

Hence, I tried below work around.

Windows 7 --> Virtual Box --> Installed UBuntu in the Virtual Box --> Installed Virtualbox in Ubuntu.

I faced this error in “Installed Virtualbox in Ubuntu” step means when try to setup Vagrant environment on this UBuntu’s virtual box.

After posting this query, again I made another effort to install Vagrant and Virtualbox (V 5.2) on Win7 and luckily, this time it worked.

Regards,
Bhavik

1 Like