No description, website, or topics provided.
C HTML PHP Makefile Shell CSS Other
Latest commit 1a4d11d Jul 13, 2016 mitchell Last update to readme
Permalink
Failed to load latest commit information.
bin
css
fonts Initial Commit Jul 7, 2016
js
pages some try catch for fatal errors. Jul 8, 2016
vnc Initial Commit Jul 7, 2016
README.md
config.php Made VM Settings Modal more mobile friendly Jul 7, 2016
functions.php Initial Commit Jul 7, 2016
index.php
list_of_requirements Initial Commit Jul 7, 2016
logout.php
page.php some try catch for fatal errors. Jul 8, 2016
test.php Initial Commit Jul 7, 2016
virt.php

README.md

OpenVirtServer Web Interface for Debian/Ubuntu based Xen Hypervisors

Web Interface for Xen, QEMU, KVM, etc using libvirt & libvirt-php!

This web interface has only been tested on Debian & Ubuntu.

Requirements

  • Apache / nginx
  • PHP5.4
  • 64-bit CPU
  • libvirt Version 1.2.12(Specific, downgrade if needed.)

Installation

These instructions may be incomplete as this project is NOT finished yet!

First we need to install some dependencies(Here we install libvirt-dev packages, make sure it is version 1.2.12!):

apt-get install libvirt-dev xsltproc libxml2-dev libxml2 sudo git gvncviewer expect bc virt-manager

Once that is done, we will need to compile libvirt-php Version 0.4.8 from the libvirtphp project:

wget http://libvirt.org/sources/php/libvirt-php-0.4.8.tar.gz
tar -xvf libvirt-php-0.4.8.tar.gz
cd libvirt-0.4.8
./configure
make && make install

Once that is installed, we need to edit a few files:

In /etc/php5/mods-available/libvirt.ini (Which may not exist yet, if it doesn't, just create it):

extension=libvirt-php.so

Then close that file. Now run the following command to enable libvirt-php in php5:

php5enmod libvirt

Then run the following command to give www-data sudo access:

visudo

And add the following to the bottom of the file:

www-data ALL=(ALL) NOPASSWD:

This is required for the WebUI to run sudo commands. If you are unsure if you should do this, just make sure that apache is not listening on an internet facing interface. Also run the following command to allow apache libvirt access:

adduser www-data libvirtd

Now make the following dir:

mkdir /var/iso

This is where you should be storing ISO's for install, for now, later it can be a configured folder.

If you want VNC console access via the web interface, you must install the bin/socketpolicy.pl file as a service. you may use the following link to help you do that (I know it is for running asp.net on ubuntu, but how they run a script as a service will fit your needs)

Edit /etc/libvirt/qemu.conf and change the following line:

vnc_listen='0.0.0.0'

This will allow VM's to listen on any interface for VNC access, but be careful, do not allow your hypervisor to be internet facing!