Monthly Archives: November 2010

Find and replace contents of files recursively

find ./ -name ‘*.pm’ -exec sed -i -e ‘s/oldtext/newxtext/’ "{}" \;

Posted in Uncategorized | Tagged | Leave a comment

Configuring your OpenVZ containers and backing up using vzdump

The main parameter I’ve toched so far is: privvmpages (Private VM Pages in webvz)- RAM size in memory pages. Usually memory page is 4Kb, so to give your container 256Mb, set it to 65536 (Guaranteed Minimum CPU in webvz) installing … Continue reading

Posted in Uncategorized | Tagged | Leave a comment

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: … Continue reading

Posted in Uncategorized | Tagged , | Leave a comment