github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

stephank / libvirtweb

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 3
    • 2
  • Source
  • Commits
  • Network (2)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

A simple web interface to libvirt — Read more

  cancel

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Count domains in state Blocked to the memory total. (Stephen Childs) 
Stéphan Kochen (author)
Tue Aug 18 02:59:43 -0700 2009
commit  7ea3fc2efabed84ad02fb17fabc7665ee077214f
tree    9df1265a66187851588f063e8880552a05271dd5
parent  134b99bccb695902185824ca72e111d07e6cb39e
libvirtweb /
name age
history
message
file .gitignore Tue Aug 18 02:41:27 -0700 2009 Add gedit backup files to gitignore. [Stéphan Kochen]
file LICENSE Sat Jun 06 13:05:22 -0700 2009 Initial import. [stephank]
file README Tue Aug 18 02:58:34 -0700 2009 Connect to multiple nodes (by Stephen Childs) [Stéphan Kochen]
file common.py Sun Jun 07 09:21:08 -0700 2009 Implement AES stream encryption for the VNC con... [stephank]
file config.py.sample Tue Aug 18 02:58:34 -0700 2009 Connect to multiple nodes (by Stephen Childs) [Stéphan Kochen]
file gencert.sh Sat Jun 06 13:05:22 -0700 2009 Initial import. [stephank]
file rfbproxy.py Sun Jun 07 09:21:08 -0700 2009 Implement AES stream encryption for the VNC con... [stephank]
file server.py Sat Jun 06 13:05:22 -0700 2009 Initial import. [stephank]
file sshtunnel.py Sat Jun 06 13:05:22 -0700 2009 Initial import. [stephank]
directory static/ Sat Jun 06 13:05:22 -0700 2009 Initial import. [stephank]
directory templates/ Tue Aug 18 02:58:34 -0700 2009 Connect to multiple nodes (by Stephen Childs) [Stéphan Kochen]
file virtweb.py Tue Aug 18 02:59:43 -0700 2009 Count domains in state Blocked to the memory to... [Stéphan Kochen]
directory vncviewer/ Sun Jun 07 09:21:08 -0700 2009 Implement AES stream encryption for the VNC con... [stephank]
README
## Intro

This is a web interface to libvirt. It is currently in the alpha stage of
development, and thus far from feature complete or stable.

Currently, it is capable of:
 * Viewing basic info about a node, it's networks and storage pools.
 * Viewing a bit more info about domains and their state.
 * Connecting a Java-based VNC viewer to a console.

The goal is to provide a simple web interface to libvirt. Quite like
virt-manager now provides, but for the web. Not like oVirt, which is something
you can't simply drop on top of your existing libvirt installation.

The project is distributed with the GNU GPL version 2 license. A copy is
included as the LICENSE file.


## Dependencies

There's a bunch of dependencies. Most of these will be installable by your
distribution's package manager. If problems occur, check the versions of
the packages you are running.

Here's a brief list of dependencies, and their version numbers, that were used
during development. Sometimes, a slightly older version may work.
 * Python 2.6.2      ( http://python.org/ )
 * lxml 2.2.1        ( http://codespeak.net/lxml/ )
 * Twisted 8.2.0     ( http://twistedmatrix.com/ )
 * Cheetah 2.2.1     ( http://cheetahtemplate.org/ )
 * CherryPy 3.1.2    ( http://cherrypy.org/ )
 * libvirt 0.6.1     ( http://libvirt.org/ )
 * pyOpenSSL 0.7.2   ( http://pyopenssl.sourceforge.net/ )
 * PyCrypto 2.0.1    ( http://www.amk.ca/python/code/crypto.html )
 * pyasn1 0.0.8a     ( http://pyasn1.sourceforge.net/ )

And for building the Java VNC viewer applet:
 * Sun JDK 6         ( http://java.sun.com/javase/ )


## Quick start

Build the Java VNC viewer applet.
$ cd vncviewer
$ make all
$ cd ..
$ cp vncviewer/VncViewer.jar static/

Generate an RSA keypair and certificate for the website:
$ ./gencert.sh

Take the sample config file and customize it:
$ cp config.py.sample config.py
$ nano config.py

Start the server:
$ ./server.py

Navigate to: https://localhost:8443/


### Additional notes

When using an SSH connection, the recommended way is to set up a
password-less keypair for the website. ~/.ssh/config is read to find
out where the private key is stored, so even if you have a working keypair,
make sure you explicitely specify where it's located in there.

For example, set up your ~/.ssh/config as:
 Host virthost
    Hostname virthost.myorg.org
    Username virtuser
    IdentityFile ~/.ssh/id_rsa.virt
    PreferredAuthentications publickey

in ./config.py
set LIBVIRT_URIS to: ['qemu+ssh://virthost/system']
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server