Unable To Start Up Ubuntu Focal64

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.

Name: ubuntu/focal64
Address: https://vagrantcloud.com/ubuntu/focal64
Requested provider: [:hyperv]

Hey there. This line

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:

  1. Install virtualbox and use the virtualbox Vagrant provider VirtualBox Provider | Vagrant by HashiCorp
  2. Use a hyperv box Discover Vagrant Boxes - Vagrant Cloud

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 --version
Vagrant 2.3.1

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.

Name: ubuntu/focal64
Provider: virtualbox
Version: 20220927.0.1

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.

Name: ubuntu/focal64
Address: https://vagrantcloud.com/ubuntu/focal64
Requested provider: [:hyperv]

C:\WINDOWS\system32>

I already had virtualbox from Vagrant installed

Vagrant doesn’t ship virtualbox. To use virtualbox with Vagrant you must follow the download instructions from the virtualbox website: Downloads – Oracle VM VirtualBox.

C:\WINDOWS\system32>vagrant box add ubuntu/focal64

==> box: Adding box ‘ubuntu/focal64’ (v20220927.0.1) for provider: virtualbox

This bit is adding the ubuntu/focal64 box. There is only a virtualbox box published so that is what is downloaded by Vagrant.

C:\WINDOWS\system32>vagrant plugin install vagrant-vbguest

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 Learn. It’ll have more information about how Vagrant works and outlines all the steps you need to follow to get going with Vagrant.

Thanks a lot. Installing virtualbox solved the issue. I truly appreciate your kind support. Cheers and take care.