vagrant-hypervnet
vagrant-hypervnet is a Vagrant plugin which extends Hyper-V provider implementing networks creation and configuration.
Features
- Create Hyper-V switches.
- Add an host IP address for each private network
- Add a and configure a guest network adapter for each configured public or private network
- Optionally install and configure SSH server in windows guests.
- Optionally install and configure rsync (MSYS2) in windows guests.
Installation
$ vagrant plugin install vagrant-hypervnet
Configuration
Vagrant.configure("2") do |config|
# install OpenSSH Server (Windows Capability) and insert vagrant ssh key on windows guests
config.hypervnet.install_ssh_server = true
# install MSYS2 and rsync on windows guests
config.hypervnet.install_rsync = true
end
Config options
install_ssh_server(Boolean, default:true): install OpenSSH Server (Windows Capability) and insert vagrant ssh key on windows guests.install_rsync(Boolean, default:true): install MSYS2 and rsync on windows guests.
Usage
$ vagrant init
$ vagrant up --provider=hyperv
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request