Git Product home page Git Product logo

rsvirt's Introduction

rsvirt

Rsvirt is a tool focused in providing a set of shortcuts for libvirt. These shortcuts are aimed to improve our productivity and avoid dealing with tasks like:

  • Create VMs based in Copy-On-Write disks
  • Attach disks to guests
  • Guest's power management
  • SSH guests
$ ./bin/rsvirt -h
This CLI tool acts as a wrapper over libvirt.

Similar to other tools like virsh but providing some shortcuts to the
most common tasks, like creating VMs from base images or attaching
several nics to a VM at creation time

Usage:
  rsvirt [command]

Available Commands:
  add-disk    Adds a disk to a Virtual Machine
  completion  Generates bash completion scripts
  create      Create a new Virtual Machine
  delete      Delete Virtual Machines
  help        Help about any command
  list        List Virtual Machines
  show        Show Virtual Machine information
  ssh         SSH to Virtual Machine
  start       Start Virtual Machines
  stop        Stop Virtual Machines
  version     Print the version number of rsvirt

Flags:
  -c, --connect string   Hypervisor connection URI (default "qemu:///system")
  -h, --help   help for rsvirt

Use "rsvirt [command] --help" for more information about a command.

Requirements

  • libvirt
  • qemu-img
  • libguestfs-tools

Getting started

This project requires Go to be installed. On OS X with Homebrew you can just run brew install go.

Running it then should be as simple as:

$ make
$ make install
$ rsvirt -h

Building on Linux

Make sure you have installed the dependencies:

  • golang 1.9 or later
  • GNU make 3.81 or later
  • libvirt headers files and libraries
  • git
  • dep

Testing

make test

Completion

Bash completion:

. <(rsvirt completion bash)

ZSH completion:

. <(rsvirt completion zsh)

rsvirt's People

Contributors

rsevilla87 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.