Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vagrant up report no available version that matches the constraint I requested, but the version can be seen is in the list. #13552

Open
DrLemonn opened this issue Dec 8, 2024 · 2 comments

Comments

@DrLemonn
Copy link

DrLemonn commented Dec 8, 2024

Debug output

The box you're attempting to add has no available version that
matches the constraints you requested. Please double-check your
settings. Also verify that if you specified version constraints,
that the provider you wish to use is available for these constraints.

Box: bento/ubuntu-22.04
Address: https://vagrantcloud.com/api/v2/vagrant/bento/ubuntu-22.04
Constraints: 202407.23.0
Available versions: 202206.03.0, 202206.13.0, 202212.11.0, 202212.13.0, 202303.13.0, 202304.25.0, 202309.08.0, 202401.31.0, 202404.23.0, 202407.22.0, 202407.23.0

Expected behavior

I followed exactly to the steps in the box page.
Run vagrant init bento/ubuntu-22.04 --box-version 202407.23.0
Modify the vagrantfile to
Vagrant.configure("2") do |config|
config.vm.box = "bento/ubuntu-22.04"
config.vm.box_version = "202407.23.0"
end
then run vagrant up

The constraints is clearly in the available versions but it report can't find a match

Actual behavior

Reproduction information

Vagrant version

vagrant 2.4.3 and vagrant 2.4.2
I've tried both.

Host operating system

mac with Apple M2

Guest operating system

bento/ubuntu-22.04

Steps to reproduce

Vagrantfile

Vagrant.configure("2") do |config|
  config.vm.box = "bento/ubuntu-22.04"
  config.vm.box_version = "202407.23.0"
end
@Ifex370
Copy link

Ifex370 commented Dec 9, 2024

Waiting on a response for this.

@mghnm
Copy link

mghnm commented Dec 13, 2024

This could be based on your provider. Unless you are running parallels or vmware_desktop the only available version is 202404.26.0. The error message from vagrant is a bit missleading...

[202407.23.0] parallels | vmware_desktop
[202407.22.0] parallels | vmware_desktop
[202404.26.0] libvirt | parallels | qemu | virtualbox | vmware_desktop

Reference: https://portal.cloud.hashicorp.com/vagrant/discover/bento/ubuntu-24.04/versions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants