Skip to content

Latest commit

 

History

History
96 lines (63 loc) · 1.76 KB

README.md

File metadata and controls

96 lines (63 loc) · 1.76 KB

Vagrant Hyper-V multi-machine environment

Config file driven Hyper-V multi-machine environment with NAT network and static IP addresses

Requirements

Install

git clone --depth=1 https://github.com/to-bar/vagrant-hyperv-multi-vm-env.git

Usage

  1. Open command prompt as administrator

  2. Go to project's directory

    cd vagrant-hyperv-multi-vm-env
  3. Edit config.yml file

  4. Run Vagrant

    • Create environment

      vagrant up
    • Stop environment

      vagrant halt
    • Destroy environment (append -f to destroy without confirmation)

      vagrant destroy
    • Create snapshot of entire environment

      vagrant snapshot save <snapshot-name>
    • Create snapshot of single machine

      vagrant snapshot save <vm-name> <snapshot-name>
    • Restore environment from snapshot

      vagrant snapshot restore <snapshot-name>
    • List snapshots

      vagrant snapshot list
    • Remove snapshot

      vagrant snapshot delete <snapshot-name>
  5. Connect to VM

    • Using SSH client

      ssh vagrant@<vm-ip>
    • Using Vagrant

      vagrant ssh [options] [name|id] [-- extra ssh args]

Supported boxes

This project was tested with the following boxes:

  • centos/7
  • generic/rhel7
  • generic/ubuntu1804