Axel's root Blog

for nerds only - little stories from the everyday sysadmin life with problems and their hard-to-find solutions

Oracle EE refused to install into OpenVZ

2010-02-07 by Axel Reinhold, tagged as openvz, oracle
Oracle Express Edition 10g refused to install into an OpenVZ container with the following message: This system does not meet the minimum requirements for swap space.

I analysed the install script in the rpm-file and found the script using the free-command to get information for the swap space.

So i installed my own free-command which simply lies about swap with this script:

mv /usr/bin/free /usr/bin/free.orig
cat >/usr/bin/free <<'EOF'
cat <<'__eof'
             total       used       free     shared    buffers     cached
Mem:       1048576     327264     721312          0          0          0
-/+ buffers/cache:     327264     721312
Swap:      2000000          0    2000000
chmod 755 /usr/bin/free
After that the rpm-install works without a problem:
rpm -Uvh oracle-xe-

Do not forget to reinstall the original free-command with:
mv /usr/bin/free.orig /usr/bin/free