项目作者: pyajs

项目描述 :
A simple libvirt http wrapper
高级语言: Python
项目地址: git://github.com/pyajs/closestack.git
创建时间: 2018-05-09T13:48:23Z
项目社区:https://github.com/pyajs/closestack

开源协议:MIT License

下载


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:

  1. 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):

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

Install uwsgi:

  1. pip install uwsgi

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

Start the server with command:

  1. uwsgi uwsgi.ini

For the nodes

Configuration