Installing and using Openvz & Webvz on Ubuntu 9.04

That worked for me:

sudo apt-get install vzctl vzquota
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

To install webvz then do:

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
=> 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 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. and admin/admin123, you can create a new VE from there.

You’re done!

This post has beed used: installing openvz

Posted in Uncategorized | Tagged , | Leave a comment

Some Debian/Ubuntu tricks

Some tricks in Linux I find useful

One thing I’ve faced recently was getting the list of packages installed in Ubuntu.

So to get a list of installed Debian/Ubuntu packages do

zalex:~# dpkg --get-selections
adduser                                         install
apache                                          deinstall
apache-common                                   install
apache2-mpm-prefork                             install
...long list here...

To find out which package a file belongs to, do

zalex:~# dpkg -S /etc/php5/conf.d/pdo.ini
php5-common: /etc/php5/conf.d/pdo.ini

that works even for directories:

zalex:~# dpkg -S /etc/php5/conf.d
php5-gd, php5-sqlite, php5-common, php5-mysql: /etc/php5/conf.d

The same actually works for Debian, for example I still have a Debian VM.

Posted in Uncategorized | Tagged , | Leave a comment