Comments on Installing And Using OpenVZ On Ubuntu 8.04 LTS Server

Installing And Using OpenVZ On Ubuntu 8.04 LTS Server In this HowTo I will describe how to prepare an Ubuntu 8.04 LTS server for OpenVZ. With OpenVZ you can create multiple Virtual Private Servers (VPS) on the same hardware, similar to Xen and the Linux Vserver project. OpenVZ is the open-source branch of Virtuozzo, a commercial virtualization solution used by many providers that offer virtual servers. The OpenVZ kernel patch is licensed under the GPL license, and the user-level tools are under the QPL license.

4 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: stanman

Great howto. Maybe a little thing i ran into when doing this. I couldn't boot into the openvz kernel (using ssh). So after some searching i found out that:

 sudo apt-get remove --purge --auto-remove linux-image-.*server

Would let me boot into the openvz kernel. I found this at:

https://help.ubuntu.com/community/OpenVZ#8.04%20Hardy

By: Johan Svensson

Or, as said in the similar article but for Ubuntu 8.10, you can change the default kernel in grub:

[...]

Now open /boot/grub/menu.lst...

vi /boot/grub/menu.lst

... and make the OpenVZ kernel the default kernel. In my /boot/grub/menu.lst I have the following kernels...

[...]
## ## End Default Options ##

title Ubuntu 8.10, kernel 2.6.27-7-server
uuid a384f789-7b8b-4464-8340-f5fcc73ecc5b
kernel /boot/vmlinuz-2.6.27-7-server root=UUID=a384f789-7b8b-4464-8340-f5fcc73ecc5b ro quiet splash
initrd /boot/initrd.img-2.6.27-7-server
quiet

title Ubuntu 8.10, kernel 2.6.27-7-server (recovery mode)
uuid a384f789-7b8b-4464-8340-f5fcc73ecc5b
kernel /boot/vmlinuz-2.6.27-7-server root=UUID=a384f789-7b8b-4464-8340-f5fcc73ecc5b ro single
initrd /boot/initrd.img-2.6.27-7-server

title Ubuntu 8.10, kernel 2.6.24-6-fza-amd64
uuid a384f789-7b8b-4464-8340-f5fcc73ecc5b
kernel /boot/vmlinuz-2.6.24-6-fza-amd64 root=UUID=a384f789-7b8b-4464-8340-f5fcc73ecc5b ro quiet splash
initrd /boot/initrd.img-2.6.24-6-fza-amd64
quiet

title Ubuntu 8.10, kernel 2.6.24-6-fza-amd64 (recovery mode)
uuid a384f789-7b8b-4464-8340-f5fcc73ecc5b
kernel /boot/vmlinuz-2.6.24-6-fza-amd64 root=UUID=a384f789-7b8b-4464-8340-f5fcc73ecc5b ro single
initrd /boot/initrd.img-2.6.24-6-fza-amd64

title Ubuntu 8.10, memtest86+
uuid a384f789-7b8b-4464-8340-f5fcc73ecc5b
kernel /boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST

... which means the OpenVZ kernel is the third kernel. Because counting starts with 0, I change the value of default to 2:

[...]
default 2
[...]

By: Benjamin

I prefer
aptitude purge apparmor
for removing apparmor or any unwanted application.

The advantage of this is that the service is automatically stopped and removed from the runlevels. And as a bonus aptitude logs its actions under /var/log/aptitude — I like this very much! Why not avoid fine grained administration steps? Let's delegate it to the package management!

Anyhow, keep up your good work. Much appreciated!

By: Jamie Strandboge

I noticed that this tutorial recommends to disable all of AppArmor. Unless you have a very specific need to do so, this is not recommended. The apparmor profiles shipped in Ubuntu are designed to work with the default installation. If a particular profile is causing you trouble, please disable the profile or put it in complain mode, and leave the other profiles that are not causing problems to do their jobs. Better yet, file a bug. :) See my blog entry athttp://penguindroppings.wordpress.com/2009/07/07/should-i-disable-apparmor/ for details.