Editing Making template tools to work on x86 64
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | + | There isn't much of a reason to run a 64bit container; however, there a memory management benefits to be had from running a 64bit hardware node. The problem is that the OpenVZ tools are all compiled for 32bits and rely on the hardware node having 32 bit python. The setx86_64 breaks distributions based on rpm 4.3.x which includes CentOS4/RHEL4. The steps I took to make this work with a RHEL5.1-x86_64 hardware node and the standard 32bit templates are as follows: | |
− | |||
− | There isn't much of a reason to run a 64bit container; however, there a memory management benefits to be had from running a 64bit hardware node. The problem is that the OpenVZ | ||
* Get and build Python 2.4.5 having exported CFLAGS="-m32" and LD_FLAGS="-m32" into /usr/local/python-2.4.5-32 by using --prefix=/usr/local/python-2.4.5-32 as an argument to configure | * Get and build Python 2.4.5 having exported CFLAGS="-m32" and LD_FLAGS="-m32" into /usr/local/python-2.4.5-32 by using --prefix=/usr/local/python-2.4.5-32 as an argument to configure | ||
Line 11: | Line 9: | ||
* replace /usr/bin/python with /usr/local/python-2.4.5-32/bin/python in /usr/share/vzyum/yum-cli/yummain.py, /usr/share/vzyum/yum-cli/cli.py, /usr/share/vzyum/bin/yum | * replace /usr/bin/python with /usr/local/python-2.4.5-32/bin/python in /usr/share/vzyum/yum-cli/yummain.py, /usr/share/vzyum/yum-cli/cli.py, /usr/share/vzyum/bin/yum | ||
* modify /usr/share/vzpkg/functions change get_pythonver to run your custom version of python and not the system version | * modify /usr/share/vzpkg/functions change get_pythonver to run your custom version of python and not the system version | ||
+ | |||
+ | |||
+ | Please excuse the roughness of this document, I wanted to capture what I did while it was fresh and I will clean it up. | ||
[[Category: Templates]] | [[Category: Templates]] | ||
[[Category: HOWTO]] | [[Category: HOWTO]] | ||
[[Category: Troubleshooting]] | [[Category: Troubleshooting]] |