Following the instruction over at OpenVZ Wiki, I've had no problems with the installation and creation of templates prior to CentOS-5.2 on x86_64 systems. However, with the latest set of updates to CentOS-5.2, the vzpkgcache seems to have been broken as sysklogd is no longer being installed by default. Below is how I got it to work:
Note: edit /vz/template/centos/5/x86_64/c
# vzpkgcache -f centos-5-x86_64-minimal
which gives the below error at the end:
sed: can't read /etc/init.d/syslog: No such file or directory
ERROR: Script install-post failed
The solution was to edit "/vz/template/centos/5/x86_64/
# Disable klogd
$VZCTL exec2 $VEID \
&nbs p; "sed -i -e 's/daemon\\ klogd/passed\\ klogd\\ skipped/' \
&nbs p; &nbs p; &nbs p; -e 's/killproc\\ klogd/passed\\ klogd\\ skipped/' \
&nbs p; &nbs p; &nbs p; &nbs p; /etc/init.d/syslog; exit 0"
...
# Disable fsync() in syslog
$VZCTL exec2 $VEID \
&nbs p; "sed -i -e 's@\\\([[:space:]]\\\)\\\ (/var/log/\\\)@\\\1-\\\2@' ; \
&nbs p; &nbs p; &nbs p; /etc/syslog.conf; exit 0"
- sandip's blog
- Login or register to post comments
Comments
vzpkgcache requires the below packages, else it will complain about "_rpm" module missing:
vzrpm44-python-4.4.1-22.5 l.6
vzrpm43-4.3.3-7_nonptl.6
vzrpm44-4.4.1-22.5
vzrpm43-python-4.3.3-7_nonpt
The above are all i386 packages. So on a 64 bit OS, vzrpm python needs to be fixed by copying over the appropriate rpm module:
For python-2.4:
cp /usr/lib64/python2.4/site-pack ages/rpm/_rpmmodule.so /usr/share/vzpkgtools/vzrpm44/ lib/python2.4/site-packages/rp m/
Reference: wiki.openvz.org
Edit /etc/init.d/rsyslog and comment out start and stop of rklogd (kernel logger which is not required in VE).
&nbs
&nbs
&nbs
&nbs
&nbs
&nbs
}
stop() {
&nbs
&nbs
&nbs
&nbs