OpenVZ Forum


Home » General » Support » centos-5 x86_64 installation failes
centos-5 x86_64 installation failes [message #21825] Tue, 16 October 2007 15:45 Go to next message
happy_hippo is currently offline  happy_hippo
Messages: 2
Registered: October 2007
Junior Member
I have installed this:
# rpm -qa | grep vz
vzctl-3.0.18-1
vzrpm44-python-4.4.1-22.5
kernel-smp-2.6.18-ovz028stab045.1
vzquota-3.0.11-1
vzyum-2.4.0-11
vzctl-lib-3.0.18-1
vzpkg-2.7.0-18
vztmpl-fedora-7-1.1-1
vzrpm44-4.4.1-22.5

and failed to run vzpkgcache. It was ELF32 _rpmmodule.so installed in /usr/share/vzpkgtools/vzrpm44/lib/python2.4/site-packages/rp m which I replaced with ELF 64-bit from system.

but still no luck.
# vzpkgcache
Debug: Started /usr/share/vzpkg/cache-os fedora-7-i386-default
Debug: Using temporary VPS 100001
Debug: Mounting VPS private area
Creating cache for fedora-7-i386-default OS template
Debug: Calling script /vz/template/fedora/7/i386/config/install-pre
Debug: Starting VPS
Debug: Importing RPM GPG keys: /vz/template/fedora/7/i386/config/gpgkeys/RPM-GPG-KEY /vz/template/fedora/7/i386/config/gpgkeys/RPM-GPG-KEY-fedora
Debug: Running /usr/share/vzyum/bin/yum --installroot=/vz/root/100001 --vps=100001 -c /vz/template/fedora/7/i386/config/yum.conf -y install ed basesystem coreutils openssh-clients openssh-server bind libstdc++ perl gdbm libgcc readline httpd less lynx wget quota traceroute stunnel slocate rsync unzip vim-minimal man man-pages vixie-cron portmap iptables rpm python crontabs authconfig bzip2 caching-nameserver cpio cups-libs curl cyrus-sasl-plain cyrus-sasl-gssapi diffutils elfutils fetchmail finger finger-server freetype ftp gd gnupg gzip hesiod httpd-manual jwhois libdbi libjpeg libpng libtiff libtool-libs libuser libxslt lsof m4 mailx ncompress netpbm newt ntsysv openldap passwd rootfiles samba-swat samba-client screen setuptool sgml-common sharutils sudo talk talk-server tar tcl tcpdump tcsh telnet time tmpwatch unixODBC utempter xml-common sendmail sendmail-cf sendmail-doc dummy-fedora-core-4 vzdev MAKEDEV
rpmdb: Program version 4.3 doesn't match environment version
error: db4 error(-30974) from dbenv->open: DB_VERSION_MISMATCH: Database environment version mismatch
error: cannot open Packages index using db3 - (-30974)
error: cannot open Packages database in /vz/root/100001/var/lib/rpm
Traceback (most recent call last):
File "/usr/share/vzyum/bin/yum", line 28, in ?
yummain.main(sys.argv[1:])
File "/usr/share/vzyum/yum-cli/yummain.py", line 75, in main
base.getOptionsConfig(args)
File "/usr/share/vzyum/yum-cli/cli.py", line 172, in getOptionsConfig
self.doConfigSetup(fn=opts.conffile, root=root, vps=opts.vps)
File "/usr/share/vzyum/lib/yum/__init__.py", line 82, in doConfigSetup
self.conf = config.yumconf(configfile=fn, root=root, vps=vps)
File "/usr/share/vzyum/lib/yum/config.py", line 271, in __init__
self.yumvar['releasever'] = self._getsysver()
File "/usr/share/vzyum/lib/yum/config.py", line 384, in _getsysver
idx = ts.dbMatch('provides', self.getConfigOption('distroverpkg'))
TypeError: rpmdb open failed
ERROR: yum failed with 1 exit code

is there any successfull installation with centos5 x86_64 as a host os?
Re: centos-5 x86_64 installation failes [message #21861 is a reply to message #21825] Wed, 17 October 2007 07:23 Go to previous messageGo to next message
khorenko is currently offline  khorenko
Messages: 533
Registered: January 2006
Location: Moscow, Russia
Senior Member
Hello,

i'm sorry for the question but did you try to remove that file as described on wiki?:

http://wiki.openvz.org/Install_openvz_on_a_x86_64_system_cen tos

For CentOS-5, you will need to do something a bit different. "rpmmodule.so" is provided in your sitewide python distribution, so instead of copying it across, you need to:

rm /usr/share/vzpkgtools/vzrpm43/lib/python2.4/site-packages/rpmmodule.so


If your problem is solved - please, report it!
It's even more important than reporting the problem itself...
Re: centos-5 x86_64 installation failes [message #21916 is a reply to message #21861] Wed, 17 October 2007 21:43 Go to previous messageGo to next message
dowdle is currently offline  dowdle
Messages: 261
Registered: December 2005
Location: Bozeman, Montana
Senior Member
I followed the recipe for CentOS 5 and it didn't work for me. There was some file (that I don't recall) that was missing so it wouldn't work.

I ended up just putting yum in my VPSes and building my OS templates on i386 machines.


--
TYL, Scott Dowdle
Belgrade, Montana, USA
Re: centos-5 x86_64 installation failes [message #21960 is a reply to message #21916] Thu, 18 October 2007 08:48 Go to previous messageGo to next message
khorenko is currently offline  khorenko
Messages: 533
Registered: January 2006
Location: Moscow, Russia
Senior Member
Hmm... intersting.

i'll give it a try. In worst case just will update the wiki, not to raise senseless hopes.
Scott, thank you!


If your problem is solved - please, report it!
It's even more important than reporting the problem itself...
Re: centos-5 x86_64 installation failes [message #22035 is a reply to message #21960] Fri, 19 October 2007 06:09 Go to previous messageGo to next message
happy_hippo is currently offline  happy_hippo
Messages: 2
Registered: October 2007
Junior Member
finaly I have removed everything and reinstall it as WiKi for centos said. removed .so module for python and get it working.

The only thing I'm missing now is template for centos-5-x86-64.
template for centos-4-x64 and set-x86-64.sh works fine.
Re: centos-5 x86_64 installation failes [message #22356 is a reply to message #22035] Fri, 26 October 2007 09:21 Go to previous message
Bodysplit is currently offline  Bodysplit
Messages: 20
Registered: July 2007
Junior Member
You can build templates from this nice metadata package: http://forum.openvz.org/index.php?t=rview&th=2512&ri d=1623.

To get a x64 VPS you simply replace every occourance of i386 with x86_64. I copied over /vz/template/centos/5/i386 to x86_64 and changed all files with the new links. Works like a charm!

bodysplit


--
This doesn't look comfortable...
Previous Topic: How to create a SUSE Enterprise Server 10 SP1 ostemplate?
Next Topic: OpenVZ on x86_64: vzyum, vzpkgcache and vzrpm still broken?
Goto Forum:
  


Current Time: Sun Nov 10 21:38:12 GMT 2024

Total time taken to generate the page: 0.03591 seconds