Git Product home page Git Product logo

vmtools's Introduction

vmtools

vmtools, or virtual machine tools, is a set of scripts for managing virtual machines and images. Its purpose is to help with testing software and features on operating systems without touching the host. Virtual machines are running in snapshot mode, which means that after halting every change is forgotten.

Requirements

  • qemu-kvm
  • mkisofs
  • netstat (from net-tools) or ss (from iproute)
  • curl
  • wget
  • ssh
  • clishe v0.02 or later

Installation

PREFIX=<prefix, default is /usr/local> make install

How to Use

First, setup vmtools at your home:

vmtools-setup

Then, you can adjust your configuration:

vmtools-config

Next, let get some images:

vmtools-getimage <URL> MyImage

Now, create your first virtual machine:

vminit myfirstvm

Configure your myfirstvm:

vmconfig myfirstvm

To ensure that myfirstvm start, you must set VMCFG_IMAGE to the image name previously pulled with vmtools-getimage:

VMCFG_IMAGE="MyImage"

Apply the changes made by vmconfig (if you just provided image name, you do not need to run vmupdate):

vmupdate myfirstvm

Finally, lets launch it!

vmstart myfirstvm

You can check the SSH connection with vmping or you can connect to myfirstvm directly:

vmping myfirstvm
vmssh myfirstvm

Or you can halt it if you are done with it:

vmstop myfirstvm

There are plenty of other useful commands:

  • vmkill to send a signal to the process running the virtual machine
  • vmstatus to check whether virtual machine is active or halted
  • vmplay to run a set of Ansible playbooks
  • vmsetup to setup the virtual machine

Have fun!

vmtools's People

Contributors

i386x avatar

Watchers

 avatar

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.