nosh-in-a-box icon indicating copy to clipboard operation
nosh-in-a-box copied to clipboard

Running in Hyper-V?

Open JXPrime opened this issue 7 years ago • 10 comments

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.

JXPrime avatar May 24 '18 18:05 JXPrime

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.

shihjay2 avatar May 24 '18 19:05 shihjay2

I tried with bento/ubuntu-16.04, and got to this after it asked for SMB share information: image

JXPrime avatar May 24 '18 20:05 JXPrime

I'm wondering if I screwed up putting my credentials in, trying again.

JXPrime avatar May 24 '18 20:05 JXPrime

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

shihjay2 avatar May 24 '18 20:05 shihjay2

I did not, let me give that a shot. Thanks for the response!

JXPrime avatar May 24 '18 20:05 JXPrime

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:

image

JXPrime avatar May 24 '18 20:05 JXPrime

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.

shihjay2 avatar May 24 '18 20:05 shihjay2

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" #, :mount_options => ["dmode=777","fmode=666"]

JXPrime avatar May 24 '18 20:05 JXPrime

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!

shihjay2 avatar May 24 '18 20:05 shihjay2

I appear to have success!

image

I'll let you know if I run into any other problems. Thanks!

JXPrime avatar May 24 '18 20:05 JXPrime