OpenVZ Forum


Home » General » HowTo » vzrpm43 and x86_64
vzrpm43 and x86_64 [message #2652] Thu, 13 April 2006 20:06 Go to previous 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
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: all vs. default in /proc/sys/net/ipv4/conf
Next Topic: Giving a VPS a MAC address
Goto Forum:
  


Current Time: Tue Jul 30 02:20:53 GMT 2024

Total time taken to generate the page: 0.02813 seconds