So by default when we think about Vagrant, we think virtual-box as default backend.
But if you are on windows 10 and using Hyper-V for some reason e.g. docker, it dosent really make any sense to disable Hyper-V and install Virtual box.
Rather you should just use Vagrant with Hyper-V.
Its really straight and simple, your vagrant up command will directly identify if you have Virtual box or Hyper-V as a provider and automatically spin up your box using that provider.
But there is a catch, which ever box image you are using should support provider Hyper-V.
Otherwise you will see error like below.
This is it for this post.
But if you are on windows 10 and using Hyper-V for some reason e.g. docker, it dosent really make any sense to disable Hyper-V and install Virtual box.
Rather you should just use Vagrant with Hyper-V.
Its really straight and simple, your vagrant up command will directly identify if you have Virtual box or Hyper-V as a provider and automatically spin up your box using that provider.
But there is a catch, which ever box image you are using should support provider Hyper-V.
Otherwise you will see error like below.
This is it for this post.
No comments:
Post a Comment