Open JXPrime opened 6 years ago
You can certainly try either generic/ubuntu1604 or bento/ubuntu-16.04 and see if either of those 2 boxes will work; unfortunately, I only use a Linux machine for development and I have no way to test and confirm if Hyper-V works but I think that it should. If so, please report back to me and I can update the config.vm.box setting to one of these 2 boxes instead.
I tried with bento/ubuntu-16.04, and got to this after it asked for SMB share information:
I'm wondering if I screwed up putting my credentials in, trying again.
Did you do this command before vagrant up
vagrant plugin install vagrant-vbguest
Based on the error message, I'm assuming you're using VirtualBox instead of Hyper-V right now. If you intend to use Hyper-V, change the vagrant up
command to vagrant up --provider=hyperv
I did not, let me give that a shot. Thanks for the response!
I think that plugin is for the Virtual Box guest stuff (vbguest). When I look at the hyper-v manager, all of the integration services are enabled:
See my previous comment above: you will need to designate the provider if both VirtualBox and Hyper-V is installed. Vagrant goes through a list of providers and it's possible that VirtualBox is higher in the list than Hyper-V. Either uninstall Virtualbox or set the provider before doing vagrant up.
Virtual box is currently uninstalled. I changed the sync folder line in the Vagrantfile to this and it seems to have worked (just commenting out the mount_options):
config.vm.synced_folder "", "/vagrant"
Thanks, I'll do some testing later to make sure commenting out the mount options does not affect VirtualBox boxes for NOSH. If your testing continues to work without problems, please let me know and I will consider updating to Vagrantfile to allow users to choose between VirtualBox and Hyper-V and potentially others. Thanks @JXPrime!
I appear to have success!
I'll let you know if I run into any other problems. Thanks!
It looks like the base box you're using only supports VirtualBox. Is it supported to change that to one that support hyper-v? "generic/ubuntu1604" as an example.