-
Notifications
You must be signed in to change notification settings - Fork 848
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Hyper-V as a supported provider #742
Conversation
Dig it! Thanks for all of that. Is the NPM change necessary for Hyper-V support and is there any chance of it breaking other NPM uses anywhere? I haven't done any research on |
It's necessary for the SMB shares. NPM install fails in /srv/www/ without I've played with the --no-bin-links option quite a bit locally and it On Wednesday, September 9, 2015, Jeremy Felt notifications@github.com
Luke Woodward – Engineering Manager |
I may have just found a way around the no-bin-links issue, will do some more testing and report back. |
OK, so I found a set of additional options for the So basically here are the options for the www folder and why I've chosen them to make things work:
Other than these www overrides, the rest of the PR basically switches the box to a Hyper-V compatible one, sets the memory and cpus to be in-line with the other vvv providers, and switches all shared folders to use SMB when using the Hyper-V provider. It would be great to have others test this, but I've now been able to clone a fresh copy of VVV onto my Surface and run |
Sounds good to me. Thanks for doing the extra research! |
Add Hyper-V as a supported provider
As I understand it, VVV works pretty well with VirtualBox, however, it would be very nice to have support for Hyper-V as it comes as part of Windows already and can simply be turned on in most cases. I'm all for using built-in software when possible.
Right now to get VVV working with Hyper-V, you have to make a Customfile to override options and do a bit of hacking around NPM. After deciding to become a dual platform developer and firing up a Windows box, I did some trial and error finding the best SMB mount options to use and got NPM working. In the grand scheme of things, it's relatively little code, so I thought it might be nice to add Hyper-V provider support to VVV itself for ease of other Window's users not wishing to install VirtualBox on their machines.
This PR does just that.
As a side note, I am running @ericmann's forked version of the hosts-updater plugin and things are humming nicely. However it would really great to get #606 in so that a a forked plugin was not necessary. Hyper-V uses a dynamically assigned IP and the standard hosts-updater doesn't support this. The vagrant-ghost plugin does this out of the box.