If you are using the latest version of Vagrant the Hyper-V provider is built in. As mentioned if the box you have supports your provider it should start without prompting, but if you have a box that supports multiple providers the default is Virtualbox, another possibility is the box that you tried to grab does NOT support HyperV a a provider, in which case the odds are good that it does support the default Virtualbox provider.
Depending on how you install Vagrant though, some package providers _helpfully_ install Virtualbox automatically even though it should be an optional dependency. Vagrant comes with Virtualbox, HyperV and Docker support out of the box because these "plugins" are maintained by Hashicorp so they make sense to be bundled, but there are many other provider plugins available for libvirt and AWS and parallels and may others, and these are distributed separately so that they can be updated independently of Vagrant itself. The "easy" way to avoid getting Virtualbox boxes when trying to `vagrant init somebox` is to set the VAGRANT_DEFAULT_PROVIDER environment variable to your preferred provider at a user or system level so that it always uses the one you have available. https://www.vagrantup.com/docs/providers/default.html On Tuesday, March 17, 2020 at 4:27:42 AM UTC-5, zveratko wrote: > > Does vagrant need VirtualBox to run? > I have switched to WIN10 and I am forced to run hyperV. I found out that > VBox will not work with hyperV enabled so I decided to remove it. But now > I'm getting > > Vagrant could not detect VirtualBox! Make sure VirtualBox is properly > installed. > Vagrant uses the `VBoxManage` binary that ships with VirtualBox, and > requires > this to be available on the PATH. If VirtualBox is installed, please find > the > `VBoxManage` binary and add it to the PATH environmental variable. > > Why is that? Does vagrant have dependency on VBox even when I am using > 'hyperv' provider? > > -- 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/d8b357c3-a2e4-469c-a602-dcaaa6c66508%40googlegroups.com.