Managing OpenVZ With WebVZ Control Panel On Debian Squeeze

Valic —  April 13, 2011 — Leave a comment

Installing WebVZ

Step 1. First we need some prerequisites:

apt-get install  irb1.8 libopenssl-ruby1.8 libreadline-ruby1.8 rdoc1.8 ruby rubygems libsqlite3-ruby sqlite3

Step 2. Next we will download and install WebVZ in the directory /usr/local/webvz:

cd /usr/local
tar xvfz webvz.2.0.tar.gz
mv webvz.2.0 webvz
cd webvz

Step 3. We need to create some symlinks for webvz to work

ln -s /var/lib/vz /vz
ln -s /usr/bin/irb1.8 /usr/bin/irb
mkdir /etc/sysconfig
ln -s /etc/vz/conf /etc/sysconfig/vz-scripts

Step 4. Now we can install WebVZ as follows:

ruby script/server

You should see something like this:

root@css:/usr/local/webvz# ruby script/server
=> Booting WEBrick…
=> Rails 2.1.0 application started on
=> Ctrl-C to shutdown server; call with –help for options
[2011-04-13 21:36:43] INFO  WEBrick 1.3.1
[2011-04-13 21:36:43] INFO  ruby 1.8.7 (2010-08-16) [i486-linux]
[2011-04-13 21:36:43] INFO  WEBrick::HTTPServer#start: pid=3566 port=3000

Using WebVZ

Step 1. Open a browser and go to or http://yourip:3000 and log in with the username admin and the password admin123:


Step 2. Now go to the Users tab and change your password:



Step 3. The OS-Templates tab displays a list of currently installed operating system templates for OpenVZ:


Step 4. For  creating  a new container, go to Containers > New Container… and complete the  form:


Step 5. Container will then be created.  After that You can manage it from WebVZ:


Step 6. Running WebVZ As A Daemon

a) You can start WebVZ manualy like:

cd /usr/local/webvz/

ruby script/server &>/dev/null &

b) Start  WebVZ  at boot time, you can edit /etc/rc.local

vim /etc/rc.local

Add the following  line:

cd /usr/local/webvz/ && /usr/bin/ruby script/server &>/dev/null &

#!/bin/sh -e
# rc.local
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will “exit 0” on success or any other
# value on error.
# In order to enable or disable this script just change the execution
# bits.
# By default this script does nothing.

cd /usr/local/webvz/ && /usr/bin/ruby script/server &>/dev/null &

exit 0



Posts Twitter Facebook

Editor in Chief at Debian-Tutorials, Linux enthusiast.

No Comments

Be the first to start the conversation.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.