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)
Comments
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%20HardyOr, 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...
[...] |
... which means the OpenVZ kernel is the third kernel. Because counting starts with 0, I change the value of default to 2:
[...]
default 2
[...]
I preferaptitude 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!
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.