Comments on Managing OpenVZ With The WebVZ Control Panel On Debian Lenny

Managing OpenVZ With The WebVZ Control Panel On Debian Lenny This guide explains how you can install WebVZ on a Debian Lenny OpenVZ host. WebVZ is a light web-based control panel for OpenVZ. It has its own web server (Webrick) and database engine (SQLITE 3).

1 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: Johannes Martin

You don't actually have to create symlinks to make the debian openvz installation look like a standard installation. You can patch a few webwz files instead. Here's a little script to do it (run from /usr/local/webwz):

#!/bin/sh

# replace /vz by /var/lib/vz in these files
FILES1="app/controllers/application.rb
        app/controllers/ostemplate_controller.rb
        app/controllers/inside_vps_controller.rb
        app/controllers/container_controller.rb"

# replace /etc/sysconfig/vz-scripts by /etc/vz/conf in these files
FILES2="app/controllers/configfile_controller.rb
        app/models/vps.rb"


sed -i.orig 's+\([" ]\)/vz+\1/var/lib/vz+g' $FILES1
sed -i.orig 's+/etc/sysconfig/vz-scripts+/etc/vz/conf+' $FILES2