Installing and using Openvz & Webvz on Ubuntu 9.04

That worked for me:

sudo apt-get install vzctl vzquota
 
wget http://ftp.fr.debian.org/debian/pool/main/l/linux-2.6/linux-image-2.6.26-2-openvz-686_2.6.26-25_i386.deb
 
dpkg -i linux-image-2.6.26-2-openvz-686_2.6.26-25_i386.deb

Then you need to load into that kernel using grub and you are basically done:

alex@ubuntu:~$ uname -r
2.6.26-2-openvz-686

To install webvz then do:

wget http://download.github.com/shuaibzahda-webvz-c6586ca.tar.gz
 
apt-get install ruby rubygems libsqlite3-ruby sqlite3 irb libopenssl-ruby libreadline-ruby rdoc
 
gem install -v=2.3.2 rails

And after that, if you just run it:

ruby start/server
=> Booting WEBrick
=> Rails 2.3.2 application starting on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2010-11-07 16:39:32] INFO  WEBrick 1.3.1
[2010-11-07 16:39:32] INFO  ruby 1.8.7 (2008-08-11) [i486-linux]
[2010-11-07 16:39:33] INFO  WEBrick::HTTPServer#start: pid=5129 port=3000

Download a template from http://wiki.openvz.org/Download/template/precreated and put it into /vz/template/cache directory, do not unpack though.

Now you can just go into webvz’s interface by using, e.g. http://192.168.40.130:3000/ and admin/admin123, you can create a new VE from there.

You’re done!

This post has beed used: installing openvz

This entry was posted in Uncategorized and tagged , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

CAPTCHA image
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">