-
Update GEM source
Install gem package within China is extremely slow, has to use mirror inside China, https://ruby.taobao.org.
-
Version 1.8.0 older
Run
which vagrant
within Cygwin shell to get vagrant installation location. Locateembedded/gems/gems/vagrant-*/lib/vagrant/bundler.rb
in the vagrant installation location, replace allhttps://rubygems.org
withhttps://ruby.taobao.org
, delete linegemfile.puts(%Q[source "http://gems.hashicorp.com"])
.It has be done this way because Vagrant before 1.8.0 does not provide any option to change its builtin gem's sources
-
Version 1.8.0 and newer
Use
vagrant plugin install --plugin-clean-sources --plugin-source https://ruby.taobao.org [PLUGIN]
to intall the plugin.
-
-
Install 'vagrant-winnfsd'
vagrant plugin install vagrant-winnfsd
-
Install 'vagrant-hostsupdater'
vagrant plugin install vagrant-hostsupdater
-
Grant write permissions to everyone of the following file
C:\windows\system32\etc\hosts
-
Boot the machine
vagrant up
-
Visit 'http://wechat-push.vagrant' or 'https://wechat-push.vagrant'
TODO