VCA, a free web panel for OpenVZ

Virtual Control Admin is a free web panel for OpenVZ servers. It in two parts, the web panel and the daemon. The daemon is used directly on the OpenVZ server. The panel can be installed on any server connected to Internet and having access to the server to control.

With VCA you can create, edit or remove virtual machines on OpenVZ servers. For each virtual machine you can define its characteristics, like memory, processors and disk space. With VCA you can also manage users and backups.

VCA license

VCA is Free Software released under the MIT license. I can help you to install it on your Linux infrastructure.

Required configuration to install VCA

Daemon

  • Linux kernel with OpenVZ patches
  • SELinux disabled
  • Python >= 3.0
  • Python librairies : crypto and configparser
  • Fuse

Web panel

  • Web server : Apache or Nginx
  • Database : MariaDB, MySQL or PostgreSQL
  • PHP >= 5.3
  • PHP library : mcrypt
  • Gettext

PostgreSQL support is experimental Oracle and SQL Server support is still in development. Support for IIS is also envisaged.

Daemon installation

Installing VCA daemon on Centos 6

You should install OpenVZ before this daemon. This script is able to install OpenVZ but after you have to configure it. Before you start, copy VCA in /usr/share/vca. Run the installation script and answer to the questions :

cd /usr/share/vca/scripts
bash vca-linux.bash

Define your secret key in /usr/share/vca/daemon/vca.cfg Now you can launch the daemon. If daemon and panel are installed on different servers, don’t forget to open the used port.

service vcadaemon start

Installing VCA daemon on Debian

You should install OpenVZ before this daemon. This script is able to install OpenVZ but after you have to configure it. Before you start, copy VCA in /usr/share/vca. Run the installation script and answer to the questions :

cd /usr/share/vca/scripts
bash vca-linux.bash

Define your secret key in /usr/share/vca/daemon/vca.cfg Now you can launch the daemon. If daemon and panel are installed on different servers, don’t forget to open the used port.

service vcadaemon start

Web panel installation on GNU/Linux

VCA can be installed on any recent Linux distribution. So you can manage your OpenVZ server from an other server, like a Raspberry pi.

You can use installation scripts from /usr/share/vca/scripts. To install automatically VCA, launch installation script and answer yo the questions :

cd /usr/share/vca/scripts
bash vca-linux.bash

It’s also possible to install it by hands.

Requirements :

  • VCA in /usr/share/vca
  • Apache or Nginx
  • a domain (real or not)
  • PHP with curl and mcrypt support
  • OpenSSL
  • MySQL
  • gettext
  • For apache : mod_rewrite

Installation :

  • Configure the domain to /usr/share/vca/www
  • Create the database “vca”
  • Importer the base from /usr/share/vca/db
  • Configure the database in /usr/share/vca/www/config.php
  • Copy /usr/share/vca/conf/vca.cron in /etc/cron.d/

Now we will create the translation files.
cd /usr/share/vca/www/lang/ msgfmt fr_FR/LC_MESSAGES/messages.po -o fr_FR/LC_MESSAGES/messages.mo msgfmt es_ES/LC_MESSAGES/messages.po -o es_ES/LC_MESSAGES/messages.mo

Connect from https://mydomain.com.