Box version constraints for local installation

332 views
Skip to first unread message

Mahmood Naderan

unread,
Mar 19, 2018, 4:04:14 AM3/19/18
to vagra...@googlegroups.com
Hi,
I have defined an environment variable like this

export DCOS_BOX_URL="dcos-centos-virtualbox-0.9.2.box"

However, Vagrant complains with the following error

==> m1: Box 'mesosphere/dcos-centos-virtualbox' could not be found.
Attempting to find and install...
m1: Box Provider: virtualbox
m1: Box Version: ~> 0.9.2
==> m1: Box file was not detected as metadata. Adding it directly...
You specified a box version constraint with a direct box file
path. Box version constraints only work with boxes from Vagrant
Cloud or a custom box host. Please remove the version constraint
and try again.


Does that mean I can not use the box file offline? Is that mandatory
to use online installation?


Regards,
Mahmood

Brian Cain

unread,
Mar 20, 2018, 12:26:19 PM3/20/18
to vagra...@googlegroups.com
Hi Mahmood,

It looks like you just need to remove the "version constraint" from your Vagrantfile. Then you should be able to add a box from disk.

Thanks!
 


Regards,
Mahmood

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/CADa2P2V7G3unxxQS3S1UjidaCy5jDxZPG0jeZgLNq7tZxOZvjg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.



--
Brian Cain
Reply all
Reply to author
Forward
0 new messages