This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

virtdc : virtual machine management CLI

virtdc A high-level Python CLI for virtual machine placement and scaling which provides a way to create, manage and monitor virtual machines effectively.

Pre-requisite

libvirt api is a required pre requisite for this package Use yum or apt-get:

$ sudo yum install libvirt

Setup

Use easy_install or pip:

$ sudo mkdir /var/lib/virtdc
$ sudo pip install -t /var/lib/virtdc virtdc
$ sudo cp /var/lib/virtdc/usr_bin/virtdc.py /usr/bin/virtdc

Commands

The following are the core functionalities of the virtdc api

create - creates new domain from the base image:

$virtdc create -h
usage: virtdc create [-h] vmid cpu memory maxmemory io

positional arguments:
  vmid        get the vmid
  cpu         get the cpu
  memory      get memory in KiB
  maxmemory   get maximum memory in KiB
  io          get the io in KiB

terminate-terminates the running domain:

$virtdc terminate -h
usage: virtdc terminate [-h] vmid

positional arguments:
  vmid        get the vmid

list-lists running domain in all hosts:

$virtdc list -h
usage: virtdc list [-h]

dominfo gives the domain information:

$virtdc dominfo -h
usage: virtdc dominfo [-h] vmid

positional arguments:
  vmid        get the domain id

hostinfo gives the host information:

$virtdc hostinfo -h
usage: virtdc hostinfo [-h] hostname

positional arguments:
  hostname    get the host

force-migrate migrates domain from source host to dest host:

$virtdc force-migrate -h
usage: virtdc force-migrate [-h] vmid sourcehost desthost

positional arguments:
  vmid        get the domain
  sourcehost  get the source host
  desthost    get the dest host

removehost-removes the host from the cluster:

$virtdc removehost -h
usage: virtdc removehost [-h] hostname

positional arguments:
  hostname    get the host

addhost-adds new host to the cluster:

$virtdc addhost  -h
usage: virtdc addhost [-h] hostname cpu memory io

positional arguments:
  hostname    get the host
  cpu         get the cpu
  memory      get memory in KiB
  io          get the io in KiB

getip-gets domain ip:

$virtdc getip  -h
usage: virtdc getip [-h] vmid

positional arguments:
  vmid        get the domain id

monitorgraph-monitors cpu, memory, io usage:

$virtdc monitorgraph  -h
usage: virtdc monitorgraph [-h]

Features

  • CLI for virtual machine placement and resource scaling based on usage comparison effectively.

Requirements

  • Python 2.6, 2.7, 3.2, 3.3, 3.4
  • setuptools

License

MIT

Release History

Release History

0.1.2

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1.1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1.0

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting