I am having an issue starting up Vagrant when I run Vagrant Up command. Please see the log below. Reached out to HashiCorp support but the feedback I got wasn’t helpful. Any help her would be most appreciated. Thanks.
C:\WINDOWS\system32>vagrant up
Bringing machine ‘default’ up with ‘hyperv’ provider…
==> default: Verifying Hyper-V is enabled…
==> default: Verifying Hyper-V is accessible…
==> default: Box ‘ubuntu/focal64’ could not be found. Attempting to find and install…
default: Box Provider: hyperv
default: Box Version: >= 0
==> default: Loading metadata for box ‘ubuntu/focal64’
default: URL: https://vagrantcloud.com/ubuntu/focal64
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.
suggests that you are trying to use the hyperv provider (this is the default on Windows). ubuntu/focal64 only has virtualbox boxes published. So, you have 2 options to resolve your issue:
Hi. Thanks a lot for replying. I already had virtualbox from Vagrant installed. Please take a look at the log below. Any further guidance from you would be most appreciated. Thank you.
Microsoft Windows [Version 10.0.22000.978]
(c) Microsoft Corporation. All rights reserved.
C:\WINDOWS\system32>vagrant box add ubuntu/focal64
==> box: Loading metadata for box ‘ubuntu/focal64’
box: URL: https://vagrantcloud.com/ubuntu/focal64
==> box: Adding box ‘ubuntu/focal64’ (v20220927.0.1) for provider: virtualbox
The box you’re attempting to add already exists. Remove it before
adding it again or add it with the --force flag.
C:\WINDOWS\system32>vagrant init ubuntu/focal64 Vagrantfile already exists in this directory. Remove it before
running vagrant init.
C:\WINDOWS\system32>vagrant plugin install vagrant-vbguest
Installing the ‘vagrant-vbguest’ plugin. This can take a few minutes…
Installed the plugin ‘vagrant-vbguest (0.30.0)’!
C:\WINDOWS\system32>vagrant up
Bringing machine ‘default’ up with ‘hyperv’ provider…
==> default: Verifying Hyper-V is enabled…
==> default: Verifying Hyper-V is accessible…
==> default: Box ‘ubuntu/focal64’ could not be found. Attempting to find and install…
default: Box Provider: hyperv
default: Box Version: >= 0
==> default: Loading metadata for box ‘ubuntu/focal64’
default: URL: https://vagrantcloud.com/ubuntu/focal64
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.
Vagrant doesn’t ship virtualbox. To use virtualbox with Vagrant you must follow the download instructions from the virtualbox website: Downloads – Oracle VM VirtualBox.
This adds a vagrant-vbguest plugin. This plugin is only responsible for managing guest additions for machines backed by Virtualbox. It has no effect when virtualbox is not installed.
You can follow the guide What is Vagrant? | Vagrant | HashiCorp Developer. It’ll have more information about how Vagrant works and outlines all the steps you need to follow to get going with Vagrant.