vagrant

Providers

Set default provider with environment variable

Introduce environment variable VAGRANT_DEFAULT_PROVIDER

export VAGRANT_DEFAULT_PROVIDER=vmware_fusion

Set default provider in Vagrantfile

Vagrant.configure("2") do |config|
  # ... other config up here

  config.vm.provider "vmware_fusion"
end

Launch box in Hyper-V

vagrant up --provider hyperv

Launch box in Docker

vagrant up --provider docker

Launch box in VMWare Fusion

vagrant up --provider vmware_fusion

Launch box in VMWare Workstation

vagrant up --provider vmware_workstation

Launch box in VirtualBox

vagrant up --provider virtualbox

VirtualBox is the default provider for a vanilla Vagrant setup.


This modified text is an extract of the original Stack Overflow Documentation created by the contributors and released under CC BY-SA 3.0 This website is not affiliated with Stack Overflow