Skip to content

panks21/running_on_vmm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published