webdevops / vagrant-docker-vm

:computer: Development Vagrant VM with Docker, Samba and Mail sandbox (customizable)
https://webdevops.io/projects/vagrant-docker-vm/
MIT License
87 stars 28 forks source link

Is there a better solution to determine the VM Provider? #40

Closed PanadeEdu closed 9 years ago

PanadeEdu commented 9 years ago

When using VMWare, Vagrant sometimes trys to use VirtualBox as Provider even though there is not VirtualBox installed. This even happens if the VM Software is Installed first and Vagrant after.

I observed this on Windows and as well on Mac OSX. Removing the VirtualBox Provider Settings will fix this.

Maybe a solution could be an Optional vm.yml setting or an Vagrantfile Constant.

mblaschke commented 9 years ago

you have to startup vagrant via:

Windows: vagrant up --provider=vmware_workstation or as env: VAGRANT_DEFAULT_PROVIDER=vmware_workstation

MacOS: vagrant up --provider=vmware_fusion or as env: VAGRANT_DEFAULT_PROVIDER=vmware_fusion

josefglatz commented 9 years ago

The env variable can be placed in your user config (e.g. ~/.bashrc)