Coder Social home page Coder Social logo

atsikham / vagrant-multi-vm-env Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hitachienergy/vagrant-multi-vm-env

0.0 0.0 0.0 35 KB

Config file driven multi-machine environment with NAT network and static IP addresses. Uses Hyper-V on Windows and Libvirt on Ubuntu.

License: Creative Commons Zero v1.0 Universal

Ruby 54.98% PowerShell 45.02%

vagrant-multi-vm-env's Introduction

Vagrant multi-machine environment

Config file driven multi-machine environment with NAT network and static IP addresses. Uses Hyper-V on Windows, Libvirt on Ubuntu and VirtualBox on MacOS.

Based on the original work found here and here.

Requirements

Windows

MacOS

  • Virtualbox: brew install virtualbox
  • Vagrant: brew install vagrant
  • Vagrant Manager: brew install vagrant-manager

Ubuntu

Other Linux distros should work but are untested.

Installation

git clone --depth=1 https://github.com/epiphany-platform/vagrant-multi-vm-env.git

Usage

  1. Open command prompt as administrator

  2. Go to project's directory

    Windows (Hyper-V):

    cd vagrant-multi-vm-env/hyperv

    Ubuntu (Libvirt):

    cd vagrant-multi-vm-env/libvirt

    MacOS (VirtualBox):

    cd vagrant-multi-vm-env/virtualbox
  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:

  • almalinux/8
  • centos/7
  • generic/rhel7
  • generic/rhel8
  • generic/rocky8
  • generic/ubuntu1804
  • generic/ubuntu2004

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.