Managing OpenVZ With The WebVZ Control Panel On Debian Lenny
Managing OpenVZ With The WebVZ Control Panel On Debian LennyVersion 1.0 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). I do not issue any guarantee that this will work for you!
1 Preliminary NoteI'm using a Debian Lenny server with the hostname server1.example.com and the IP address 192.168.0.100 here. I'm assuming that OpenVZ is already installed on working on the server, e.g. as shown in this tutorial: Installing And Using OpenVZ On Debian Lenny (AMD64)
2 Installing WebVZFirst we install some prerequisites: apt-get install ruby rubygems libsqlite3-ruby sqlite3 irb1.8 libopenssl-ruby1.8 libreadline-ruby1.8 rdoc1.8 WebVZ needs Rails version 2.1.0 which we install as follows: gem install -v=2.1.0 rails Next we download and install WebVZ in the directory /usr/local/webvz: cd /usr/local ln -s /var/lib/vz /vz That's it - now we can install WebVZ as follows (you must still be in the /usr/local/webvz directory): ruby script/server You should see something like this: server1:~/webvz.2.0# ruby script/server (Please note that the input prompt will not return until you press CTRL+D, but that would also terminate WebVZ. I will address this issue in a moment. For now we leave WebVZ running.)
3 Using WebVZNow open a browser and go to http://server1.example.com:3000 or http://192.168.0.100:3000 and log in with the username admin and the password admin123: After the first login, go to the Users tab and change your password: The OS-Templates tab displays a list of currently installed operating system templates for OpenVZ: To create a new container, go to Containers > New Container... ... and complete the following form: The container will then be created. Afterwards, you can manage it from WebVZ:
4 Running WebVZ As A DaemonAs I mentioned at the end of chapter 2, as soon as you press CTRL+D or close the command line window, the WebVZ process is killed. Of course, this is not what we want. We can make WebVZ run as a daemon as follows: cd /usr/local/webvz/ If you want WebVZ to be started at boot time, you can edit /etc/rc.local... vi /etc/rc.local ... and add the line cd /usr/local/webvz/ && /usr/bin/ruby script/server &>/dev/null & before the exit 0 line:
5 Links
|
www.seamlessenterprise.com
One number. One voicemail. Seize the lead. Sprint Mobile Integration.
www.seamlessenterprise.com
One Number. One Voicemail.
Make it easier for clients to reach you. Turn your desk phone and mobile phone into one with Sprint Mobile Integration.
www.seamlessenterprise.com
One number. One voicemail. Sprint Mobile Integration.
www.seamlessenterprise.com
AT&T Synaptic Compute as a Service. Boost your power on demand.
Trial: IBM Cognos Express Reporting, Analysis & Planning
Learn benefits of Simpana software.
View the Gartner Video














Recent comments
11 hours 46 min ago
1 day 3 hours ago
1 day 4 hours ago
1 day 4 hours ago
1 day 14 hours ago
1 day 18 hours ago
1 day 19 hours ago
2 days 5 hours ago
2 days 8 hours ago
2 days 13 hours ago