Skip to content

CovertLamp/virtkick-backend

 
 

Repository files navigation

VirtKick Backend

Dependencies status Gratipay

This is a temporary, MVP backend for VirtKick. VirtKick webapp is using it as a JSON API to libvirt.

The backend has been built on top of WebVirtMgr, a simple backend for KVM through libvirt. It will soon be replaced with our own backend based on Fog.io.

Requirements

  • Python 2.7
  • Linux
  • Packages:
    • libvirt 1.2.x with Python bindings
    • QEMU 2.x

One time setup

sudo pip install -r requirements.txt
./manage.py syncdb
./manage.py collectstatic

Development

./manage.py runserver
./console/webvirtmgr-novnc
xdg-open http://0.0.0.0:8000/ # open a browser

Hypervisor setup

These steps will be automatically performed by virtkick-webapp. You have to do it yourself if you intend to play with virtkick-backend without virtkick-webapp.

  1. Add a new connection.
  2. Create a storage pool named virtkick-iso where ISOs will be located.
  3. Create a storage pool named virtkick-hdd where all disks will be located.
  4. Create a NAT network 192.168.123.0/24 named virtkick-nat with IP pool for DHCP: 192.168.123.2-254.

Deployment

./manage.py run_gunicorn -c conf/gunicorn.conf.py

Since the authentication module is disabled, make sure the server listens on 127.0.0.1.

License

WebVirtMgr Copyright (C) 2012-2014 Anatoliy Guskov and other contributors

VirtKick WebVirtMgr Backend Copyright (C) 2014 StratusHost Damian Nowak

The code is licensed under the Apache Licence, Version 2.0.

About

This is a temporary, MVP backend for VirtKick. Will be replaced at later point.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 36.0%
  • Python 31.7%
  • HTML 26.1%
  • Shell 3.9%
  • CSS 2.2%
  • SaltStack 0.1%