Code Monkey home page Code Monkey logo

running_on_vmm's Introduction

Running VM on VMM

release 0.1

Overview

This script is used to create configuration files, which will be used to run VM (Virtual Machines) on Juniper's VMM infastructure.

The supported VMs are :

  • VMX
  • VQFX
  • PC with ubuntu OS (16.04)
  • PC with centos OS (7.X)

Requirement

This script requires the following :

  • Python3 (this script requires Python3)
  • passlib library (to install use pip3 install passlib)
  • paramiko library (to install use pip3 install paramiko)
  • yaml library

VM images

Before the script is used, the VM images must be available on the VMM.

Please upload the VM images into directory /vmm/data/user_disks/<your_user_name>

You can copy my images from /vmm/data/user_disks/irzan

How to create Centos/Ubuntu image.

Please refer to the following URL on how to create centos

Please refer to the following URL on how to create ubuntu

Script Files

This tool consist of the following script

lib1.py

This script is the library with functions declaration used by the other scripts (vmm.py)

param1.py

This script provide the parameters required by the library

lab.yaml

This is sample configuration.

please edit this file for the following :

  • the VMM pod which will be used
  • the username/password to access the VMM pod
  • the VM, its type, its OS, management IP address and network interfaces for connection to other devices.

Please refer to the sample configuration

vmm.py

This script is the user interface, which will read the configuration lab.yaml and call the library from `lib1.py1

There are different arguments required by this script

  • argument upload : to create VMM configuration files and upload them into VMM pod
  • argument start : to start the topology inside the VMM
  • argument stop : to stop the topology inside the VMM
  • argument get_serial : to get serial console information of the active VMs in the VMM

Caution

  • when the script is used to start the topology, any existing running topology will be stopped and unbound. Please backup the existing topology if needed.
  • this script will need a GW which will be assigned with IP address from juniper's VMM lab. The rest of the VMs (devices), their management will be connected to virtual network behind the GW.
  • to access the other devices (other than GW), VM GW can be used as jump host, or VM GW can be configured as VPN server using wireguard or openvpn

How to run the script (Step by step)

running_on_vmm's People

Contributors

m1r24n avatar

Watchers

James Cloos avatar

Forkers

kitabashi

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.