tell vagrant to NOT install virtualbox?

10 views
Skip to first unread message

Brian Gonzalez

unread,
Sep 19, 2016, 3:43:06 PM9/19/16
to Vagrant
How do i tell vagrant to NOT install virtualbox?  If I run vagrantup on a machine with vmware workstation, it goes out and grabs virtualbox..


-BG

Alvaro Miranda Aguilera

unread,
Sep 19, 2016, 4:11:30 PM9/19/16
to vagra...@googlegroups.com
line 85 is virtualbox, and its before vmware.. thats the reason

comment that out or use

vagrant up --provider=vmware_desktop

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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/2b8c90e5-6c59-4667-bc56-ef45fc38f467%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Brian Gonzalez

unread,
Sep 19, 2016, 4:23:41 PM9/19/16
to Vagrant
Al, Thanks, I was hoping to avoid having to pass additional args, because i'm going to be sharing this with lots of people on my team.  I'm testing a workaround now, which is changing my vagrantfile to set the provider using a File.exist? ruby block, seems to be a decent workaround?  any thoughts?



On Monday, September 19, 2016 at 4:11:30 PM UTC-4, Alvaro Miranda Aguilera wrote:
line 85 is virtualbox, and its before vmware.. thats the reason

comment that out or use

vagrant up --provider=vmware_desktop

Alvaro
On Mon, Sep 19, 2016 at 9:43 PM, Brian Gonzalez <brianfg...@gmail.com> wrote:
How do i tell vagrant to NOT install virtualbox?  If I run vagrantup on a machine with vmware workstation, it goes out and grabs virtualbox..


-BG

--
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+...@googlegroups.com.



--

Alvaro Miranda Aguilera

unread,
Sep 19, 2016, 5:00:22 PM9/19/16
to vagra...@googlegroups.com
when you customize the vagrantfile for providers, that will take precedence.

if you have a normal vagrantfile without any customization for provider, it will automatically use virtualbox by default and vmware for those machines with vagrant-vmware plugin

you can try this

put the vmware code before virtualbox,

and wrap the code around this:

if Vagrant.has_plugin?("vagrant-vmware-workstation")
..
end


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/e16bb196-d8ea-4af9-9939-8141e116d06c%40googlegroups.com.

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



--
Reply all
Reply to author
Forward
0 new messages