Install WebVZ 2.0 On Ubuntu 8.04 Server To Administrate OpenVZ

Berkaitan dengan artikel terdahulu tentang instalasai openvz sebagai vps maka berikut adalah tutorial untuk webpanelnya. hal yang harus ada adalah openvz harus sudah jalan di mesin yang akan di beri webvz.
install webvz dahulu sebelum bisa di jalankan disini saya memakai apt-get supaya mudah.
root@vps:/# apt-get install ruby rubygems libsqlite3-ruby sqlite3 irb1.8 libopenssl-ruby1.8 libreadline-ruby1.8 rdoc1.8 nano
setelah selesai langkah selanjutnya untuk update gems
root@vps:/# nano /usr/bin/gem
require ‘rubygems’
require ‘rubygems/gem_runner’
require ‘rubygems/open-uri’
#Gem.manage_gems
required_version = Gem::Version::Requirement.new(“>= 1.8.0”)
unless  required_version.satisfied_by?(Gem::Version.new(RUBY_VERSION))
puts “Expected Ruby Version #{required_version}, was #{RUBY_VERSION}”
exit(1)
end
# We need to preserve the original ARGV to use for passing gem options
# to source gems.  If there is a — in the line, strip all options after
# it…its for the source building process.
args = !ARGV.include?(“–“) ? ARGV.clone : ARGV[0…ARGV.index(“–“)]
Gem::GemRunner.new.run(args)
===============================================
tekan ctrl +o lalu ctrl +x untuk menutup nano
kemudian kita update gem nya
root@vps:/# gem update –system
lalu install rails 2.1.0
root@vps:/# gem install -v=2.1.0 rails
langkah selanjutnya untuk webvz nya
ambil dolo webvznya
root@vps:/# wget http://ovh.dl.sourceforge.net/sourceforge/webvz/webvz.2.0.tar.gz
kemudian di extract
root@vps:/# tar -xzvf webvz.2.0.tar.gz
masuk ke dalam directorynya
root@vps:/# cd webvz.2.0
kita buat link letak openvz nya
root@vps:/#  ln -s /var/lib/vz /vz
root@vps:/# ln -s /usr/bin/irb1.8 /usr/bin/irb
root@vps:/# mkdir /etc/sysconfig
root@vps:/# ln –s /etc/vz/conf /etc/sysconfig/vz-scripts
langkah terakhir jalanin webvz nya
root@vps:/# ruby script/server
kemudian di web browser kita ketik di url addresess nya begini
http://[ipaddressserver]:3000
login dengan username admin dan password admin123
catatan membuat webcontrol panel untuk vpsku
root@vps:/# vzlist
VEID      NPROC STATUS  IP_ADDR         HOSTNAME
100         15 running 192.168.0.200   fedora12
root@vps:/#
=============contohnya=============================
root@vps:/tmp# cd webvz.2.0
root@vps:/tmp/webvz.2.0# ruby script/server
=> Booting WEBrick…
=> Rails 2.1.0 application started on http://0.0.0.0:3000
=> Ctrl-C to shutdown server; call with –help for options
[2010-03-01 03:02:00] INFO  WEBrick 1.3.1
[2010-03-01 03:02:00] INFO  ruby 1.8.6 (2007-09-24) [i486-linux]
[2010-03-01 03:02:00] INFO  WEBrick::HTTPServer#start: pid=29066 port=3000
192.168.0.101 – – [01/Mar/2010:03:02:51 WIT] “GET / HTTP/1.1” 200 3220
– -> /
192.168.0.101 – – [01/Mar/2010:03:03:17 WIT] “GET /menu/about HTTP/1.1” 304 0
http://192.168.0.150:3000/ -> /menu/about
192.168.0.101 – – [01/Mar/2010:03:03:17 WIT] “GET /login/logout HTTP/1.1” 302 105
http://192.168.0.150:3000/ -> /login/logout
192.168.0.101 – – [01/Mar/2010:03:03:18 WIT] “GET /login/sign_in HTTP/1.1” 304 0
http://192.168.0.150:3000/ -> /login/sign_in
===============================================
capturenya gan: