OpenVZ Forum


Home » General » HowTo » vzrpm43 and x86_64
vzrpm43 and x86_64 [message #2652] Thu, 13 April 2006 20:06 Go to next message
vz10b4 is currently offline  vz10b4
Messages: 8
Registered: April 2006
Junior Member
Hi folks,

Just want to share my work around to be able to use the openvz utilities in a x86_64 environemnt. I use RHEL4U3 installed to a server with a EM64T cpu.

First I needed to fix the vzrpm43 package and rest steps will do the trick:

1. Install the i386 version of python, in my case python-2.3.4-14.1.i386.rpm
2. Install the i386 version libxml2-python, in my case libxml2-python-2.6.16-6.i386.rpm
3. Even though I installed the i386 python the binaries in /usr/bin are still x86_64 (bug 72 in bugzilla). Extract the files in /usr/bin/ from the i386 python rpm to a temporary directory. Copy the extracted python binary from the temporary directory to /usr/bin/ with a new name, say python_32.
4. Replace the line #!/usr/bin/python with #!/usr/bin/python_32 in the file /usr/share/vzyum/bin/yum
5. Install the centos template vztmpl-centos-4-2.0-2.i386.rpm. Well I tried to rename the i386 directory to x86_64 in the path to the template but then the function ost2full() in functions could no longer find the template.
6. Edit /vz/template/centos/4/i386/config/yum.conf so that it points to the x86_64 repositoriet instead.
7. Remove the line MAKEDEV in /vz/template/centos/4/i386/config/minimal.list. vzyum went into a loop because it did not handle circular dependencies for the glibc.686 and glibc.x86_64. This is due to that MAKEDEV is a i386 package and in this case we should use the x86_64 package instead.
8. Create the cache: vzpkgcache centos-4-i386-minimal

I installed som x86_64 packages like slocate and mysql-server with vzyum and it went well. So far I have not used my own repository for my RHEL4U3 packages but I will soon. When done I can share my experience with that to.

This worked fine for me and hopefully someone else can do the same.

Kind Regards
/Fredrik
Re: vzrpm43 and x86_64 [message #3023 is a reply to message #2652] Mon, 08 May 2006 16:31 Go to previous messageGo to next message
laurent is currently offline  laurent
Messages: 18
Registered: April 2006
Junior Member
interresting, thanks for your sharing
but how did you to install python-2.3.4-14.1.i386.rpm and libxml2-python-2.6.16-6.i386.rpm on a X86_64 bit system ?

when i tried to do that , the system ask me to install a lot of dependencies Sad

rpm --test -ivh python-2.3.4-14.1.i386.rpm libxml2-python-2.6.16-6.i386.rpm
erreur: Dépendances requises:
libbz2.so.1 est nécessaire pour python-2.3.4-14.1.i386
libcrypto.so.4 est nécessaire pour python-2.3.4-14.1.i386
libdb-4.2.so est nécessaire pour python-2.3.4-14.1.i386
libgdbm.so.2 est nécessaire pour python-2.3.4-14.1.i386
libgmp.so.3 est nécessaire pour python-2.3.4-14.1.i386
libncurses.so.5 est nécessaire pour python-2.3.4-14.1.i386
libpanel.so.5 est nécessaire pour python-2.3.4-14.1.i386
libreadline.so.4 est nécessaire pour python-2.3.4-14.1.i386
libssl.so.4 est nécessaire pour python-2.3.4-14.1.i386
libtermcap.so.2 est nécessaire pour python-2.3.4-14.1.i386
libz.so.1 est nécessaire pour python-2.3.4-14.1.i386
libxml2.so.2 est nécessaire pour libxml2-python-2.6.16-6.i386
Re: vzrpm43 and x86_64 [message #3057 is a reply to message #3023] Wed, 10 May 2006 07:22 Go to previous messageGo to next message
vz10b4 is currently offline  vz10b4
Messages: 8
Registered: April 2006
Junior Member
Hi,

Actually I did not do any trick at all. Or maybe the trick is yum cause I installed python through yum. Yum takes care of the dependencies problem but I do not remember if I was forced to install some more packages.

I think you should ask this question on some python forum instead cause you will surely get better answers then mine:-)

/Fredrik

Re: vzrpm43 and x86_64 [message #3292 is a reply to message #3057] Sat, 20 May 2006 16:26 Go to previous message
gunbuster is currently offline  gunbuster
Messages: 1
Registered: May 2006
Junior Member
What did you type in on the command line to install i386 version of python?

I've tried
# yum install python.i386

But that doesn't work. I've never really used yum much before. The last server I had running was on RH9 and I tended to install from source. Any tips would be appreciated!
Previous Topic: all vs. default in /proc/sys/net/ipv4/conf
Next Topic: Giving a VPS a MAC address
Goto Forum:
  


Current Time: Sat Apr 27 18:00:34 GMT 2024

Total time taken to generate the page: 0.02474 seconds