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 <pixelfa...@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+unsubscr...@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
> <https://groups.google.com/d/msgid/vagrant-up/362004cd-98c2-4f86-9454-b60b08defcc8%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vagrant-up/CACN%2Ba_YkxUhh%3D6wdUXMiXjk2cVSLJ43uE1ngsOoD78o18oZKPw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to