different box by provider?

8 views
Skip to first unread message

pixel fairy

unread,
Aug 7, 2017, 7:29:39 AM8/7/17
to Vagrant
how does one specify a different box for different providers? for example hashicorp/xenial64 for virtualbox, something else for libvirt.

Torben Knerr

unread,
Aug 7, 2017, 7:40:43 AM8/7/17
to vagra...@googlegroups.com
Hi,

you can override it in a provider specific block using the 2nd block argument, e.g.:


  config.vm.provider :virtualbox do |vbox, override|
    override.vm.box = "some/box"
  end

  config.vm.provider :libvirt do |libv, override|
    override.vm.box = "other/box"
  end


Cheers,
Torben


On Mon, Aug 7, 2017 at 1:29 PM, pixel fairy <pixel...@gmail.com> wrote:
how does one specify a different box for different providers? for example hashicorp/xenial64 for virtualbox, something else for libvirt.

--
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/362004cd-98c2-4f86-9454-b60b08defcc8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

pixel fairy

unread,
Aug 7, 2017, 7:51:02 AM8/7/17
to Vagrant


On Monday, August 7, 2017 at 4:40:43 AM UTC-7, Torben Knerr wrote:
Hi,

you can override it in a provider specific block using the 2nd block argument, e.g.:

 
Thanks! where is this documented? vagrant needs a wiki for all the stuff not covered in the docs.

Alvaro Miranda Aguilera

unread,
Aug 7, 2017, 8:06:15 AM8/7/17
to vagra...@googlegroups.com
Hello


If you think is not easy to reach, OR, something is missed, please feel free to say so, so we can update the documentation.

Where do you think is more natural to have this if the current place is hard to reach ?

Alvaro

--
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.

For more options, visit https://groups.google.com/d/optout.



--
Alvaro

pixel fairy

unread,
Aug 7, 2017, 11:27:43 PM8/7/17
to Vagrant
On Monday, August 7, 2017 at 5:06:15 AM UTC-7, Alvaro Miranda Aguilera wrote:
Hello


If you think is not easy to reach, OR, something is missed, please feel free to say so, so we can update the documentation.

lol, sometimes im just an idiot. but, im glad to know you take feedback on this.
Reply all
Reply to author
Forward
0 new messages