Handy little trick: https://www.petri.co.il/add-take-ownership-context-menu-vista.htm
This was much more difficult, annoying really, than it should have been. While the OpenVZ wiki is generally excellent, with clear, easy-to-follow instructions describing how to install VPSes based on a variety of operating systems, there are none specifically for CentOS 5.
I have a CentOS 5 host (HN) and need to install several CentOS 5 containers (VPS). First problem: there is no official prebuilt CentOS 5 template cache or metadata. While the community contributed CentOS 5 template cache is okay, it’s missing the metadata necessary to use vzyum.
rpm -ivh vztmpl-centos-5-2.0-3.i386.rpm
Build the template cache:
vzpkgcache -f centos-5-minimal
Template building is much faster with a local yum repository, enabled in /etc/yum.repos.d/CentOS-Media.repo. To loop mount the CentOS 5 installation DVD iso:
mount -o loop /downloads/CentOS-5.1-i386-bin-DVD.iso /media/CentOS
Create the VPS:
vzctl create 101 --ostemplate centos-5-i386-minimal vzctl set 101 --ipadd 220.127.116.11 --save vzctl set 101 --nameserver 18.104.22.168 --save vzctl start 101
To enter, stop or destroy the container:
vzctl enter 101 vzctl stop 101 vzctl destroy 101
To add packages to the container using vzyum:
vzyum 101 install package-name
**NB** The above still didn’t work until I initialized the container’s rpm database:
vzctl exec 101 rpm -vv --initdb
Hope this helps – enjoy.
After installing OpenVZ on CentOS 5.0, I created a couple of CentOS 5.0 VEs using the minimal template available on the OpenVZ wiki but when I “entered” the VE I noticed a “cp” operation consuming 100% of the CPU. Checking back on the host system, I saw the same “cp” consuming 100% CPU there too.
According to OpenVZ, the problem is due to FC5 bug #190601 (ovz bug #297) which remains unfixed in CentOS 5.0. The /etc/vz/dists/scripts/functions file contains a workaround for Fedora but not CentOS or Redhat. To fix, duplicate line 24, and replace “fedora” with “redhat”. When done, it should look like this:
CP='/bin/cp -fp' # overwrite copy arguments as a workaround for FC5 bug #190601 (ovz bug #297) [ -f /etc/fedora-release ] && CP='/bin/cp -f --preserve=mode,ownership' [ -f /etc/redhat-release ] && CP='/bin/cp -f --preserve=mode,ownership'