Skip to content
A simple libvirt http wrapper
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
closestack
templates
vm_templates
.travis.yml
LICENSE
README.md
config.py
manage.py
requirements.txt
uwsgi.ini

README.md

123 Build Status

CLOSESTACK

CloseStack is a simple libvirt http wrapper. Written in Django.

What it Does

CloseStack allows you to manage KVM vms by HTTP API. It is suitable for the following scenarios:

  1. Single Host Machine
  2. Multiple Host Machines, but you do not want to deploy OpenStack
  3. Simple VM Lifecycle(create, destroy, undefine only)

Requirements

  • CentOS 7(other linux distros may work too)
  • Python 3.6+
  • Django 2.0+
  • uwsgi 2.0
  • jsonschema 2.6.0+
  • libvirt-python 4.3.0+
  • uhashring 1.1+

Conception

Installation

Let's use Centos 7 as an example. (please help us to test on Ubuntu or other linux distros)

For the Controller

To install libvirt-python, we should install libvirt-devel and python-devel fisrt:

yum install -y libvirt-devel python-devel

Then download codes and install requirements(venv is recommended, and make sure all the following steps are executed in venv):

git clone https://github.com/pyajs/closestack.git
cd closestack
pip install -r requirements.txt

Install uwsgi:

pip install uwsgi

Modify configs in config.py(instruction included) and uwsgi.ini file.

Start the server with command:

uwsgi uwsgi.ini

For the nodes

Configuration

Related Posts

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.