OpenVZ Forum


Home » General » Support » Install problems on dual opteron (64 bits), CentOS 4.4
Install problems on dual opteron (64 bits), CentOS 4.4 [message #7172] Thu, 05 October 2006 20:31 Go to next message
fgomes is currently offline  fgomes
Messages: 29
Registered: August 2006
Junior Member
This is my first message, I'm reading this forum for some months, and I find it very usefull, it solved all problems I had with 32 bit installations I made, but now I have a new 64 bit server, with dual opteron processor where I want to install openvz. I have installed 64 bit CentOS 4.4 without problems, and then install openvz kernel patch:

rpm -ivh ovzkernel-smp-2.6.8-022stab078.21.x86_64.rpm

I got two warning messages (I suppose related to the RAID contoller I am using, 3ware 9550SX, now supported on the CentOS 4.4 kernel, but it seems not supported on openvz kernel patch):
WARNING: No module 3w-9xxx found for kernel 2.6.8-022stab078.21-smp, continuing anyway
WARNING: No module sata_svw found for kernel 2.6.8-022stab078.21-smp, continuing anyway

Then I make the necessary configuration changes on sysctl and rebooted and all worked as expected (I don't know how is it working without the modules for the RAID controler thow).

Then I started installing OpenVZ packages, following OpenVZ user's guide (vzctl, vzquota and vzpkg) and I run into problems... vzpkg depends on vzctl and vzyum, but vzctl is already installed and vzyum installation fails because it depends on cElementTree.so - I saw in other topic that there is a problem with 64 bit dependencies for vzyum. Then I tried to start openvz using /etc/init.d/vz and found that there is no vz script on init.d.
When is the vz script installed in init.d? Is it with the openvz kernel patch? How can it be missing?

Is there any known way of installing full 64 bit openvz kernel patch and tools? I want to have full 64 bit OS on hardware node and on virtual machines.

Can you give me some advice about it?

Thanks!

Fernando

[Updated on: Fri, 06 October 2006 10:19] by Moderator

Report message to a moderator

Re: Install problems on dual opteron (64 bits), CentOS 4.4 [message #7173 is a reply to message #7172] Fri, 06 October 2006 04:21 Go to previous messageGo to next message
HaroldB is currently offline  HaroldB
Messages: 61
Registered: June 2006
Member
Quote:

I don't know how is it working without the modules for the RAID controler thow.


The drivers are compiled into the kernel, they are not modules. Due to this, your hardware will be detected by the kernel during boot just the same. This is not a problem.

Quote:

vzpkg depends on vzctl and vzyum, but vzctl is already installed and vzyum installation fails because it depends on cElementTree.so


use this to install vzyum on 64bit centos:

rpm -ivh vzyum*.rpm --nodeps

Then, edit file /usr/share/vzpkg/cache-os and comment out the line starting with PYTHONPATH.

reference: http://forum.openvz.org/index.php?t=msg&goto=889&

[Updated on: Fri, 06 October 2006 04:21]

Report message to a moderator

Re: Install problems on dual opteron (64 bits), CentOS 4.4 [message #7185 is a reply to message #7173] Fri, 06 October 2006 09:44 Go to previous messageGo to next message
fgomes is currently offline  fgomes
Messages: 29
Registered: August 2006
Junior Member
Thanks for your fast reply!

Before I read your message, I tried the quick installation guide methode, using yum, so I configured openvz repository and installed all the tools without any error... but it seems to me that the tools installed are the 32 versions, not the 64 bit version...
After that, I downloaded a precreated cache for the centos 64 bit minimal, created a VE and it worked well. Then I found that vzyum doesn't work - probably because of not having metadata. The CentOS minimal hasn't yum installed, so I suppose the only way to install things in this VE is to use RPM directly on the VE. Where can I get metadata for a 64 bit OS template?

# vzyum 101 install xpto
ERROR: No such OS template: install

Then, I installed metadata for centos i386, but vzpkgcache fails:

Creating cache for centos-4-i386-default OS template
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

/usr/share/vzpkgtools/vzrpm43/lib/python2.3/site-packages/rp mmodule.so: cannot open shared object file: No such file or directory

Please install a package which provides this module, or
verify that the module is installed correctly.

It's possible that the above module doesn't match the
current version of Python, which is:
2.3.4 (#1, Mar 13 2006, 07:49:07)
[GCC 3.4.4 20050721 (Red Hat 3.4.4-2)]

If you cannot solve this problem yourself, please send this
message to <yum@lists.linux.duke.edu>.

ERROR: yum failed with 1 exit code
Creating cache for centos-4-i386-minimal OS template
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

/usr/share/vzpkgtools/vzrpm43/lib/python2.3/site-packages/rp mmodule.so: cannot open shared object file: No such file or directory

Please install a package which provides this module, or
verify that the module is installed correctly.

It's possible that the above module doesn't match the
current version of Python, which is:
2.3.4 (#1, Mar 13 2006, 07:49:07)
[GCC 3.4.4 20050721 (Red Hat 3.4.4-2)]

If you cannot solve this problem yourself, please send this
message to <yum@lists.linux.duke.edu>.

ERROR: yum failed with 1 exit code

Then, it was to late and went to bed Razz
This morning I read your message, and tried to comment the PYTHONPATH line (yesterday I have already installed vzpkg with --nodeps), but the cache generaion also fails (I don't know if it is because now I have 32 and 64 bit tools thow). I had to comment the three lines:

# PYTHONPATH=`get_rpm_pythonhome $TDIR`
# export PYTHONPATH
# log4 PYTHONPATH=$PYTHONPATH

and this was the result:

# vzpkgcache
Creating cache for centos-4-i386-default OS template
rpmdb: Program version 4.2 doesn't match environment version
error: db4 error(22) from dbenv->open: Invalid argument
error: cannot open Packages index using db3 - Invalid argument (22)
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
Creating cache for centos-4-i386-minimal OS template
rpmdb: Program version 4.2 doesn't match environment version
error: db4 error(22) from dbenv->open: Invalid argument
error: cannot open Packages index using db3 - Invalid argument (22)
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

Any idea of what can I do about this?

Thanks!

Fernando
Re: Install problems on dual opteron (64 bits), CentOS 4.4 [message #7375 is a reply to message #7185] Thu, 12 October 2006 09:47 Go to previous messageGo to next message
olivier is currently offline  olivier
Messages: 2
Registered: October 2006
Junior Member
Hello,

I have exactly the same problem. Somebody could help us to find a solution.

Thank you in advance for your answer.

oli
Re: Install problems on dual opteron (64 bits), CentOS 4.4 [message #7410 is a reply to message #7185] Fri, 13 October 2006 07:14 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

Can you try to apply this patch and see if it helps?
http://git.openvz.org/?p=vzpkg;a=commitdiff;h=d88c506cc0196146fb994ee56978e31137a7110e


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: Install problems on dual opteron (64 bits), CentOS 4.4 [message #7423 is a reply to message #7410] Fri, 13 October 2006 09:05 Go to previous messageGo to next message
rudal is currently offline  rudal
Messages: 20
Registered: July 2006
Junior Member
Hmm I tried patching the file one by one.

./vzyum 101 update
exec /usr/share/vzyum/bin/yum -c /vz/template/fedora-core/5/i386/config/yum.conf --installroot /home/vz/root/101 --vps=101 update
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

/usr/share/vzpkgtools/vzrpm44/lib/python2.4/site-packages/rp m/_rpmmodule.so: wrong ELF class: ELFCLASS32

then tried using vzpkgcache to build centosos-4-i386:

[root@sparksvz vzpkg-2.7.0-18]# vzpkgcache centos-4-i386
/usr/bin/vzpkgcache: line 79: /usr/share/vzpkg/cache-os: Permission denied
[root@sparksvz vzpkg-2.7.0-18]#

Then tried +x on the cache-os:
[root@sparksvz ~]# vzpkgcache centos-4-i386
/usr/share/vzpkg/cache-os: line 124: LD_LIBRARY_PATH: unbound variable
[root@sparksvz ~]#


it seems that it tries to find $TDIR which may not be exist?
TDIR is looking for x86_64?

[root@sparksvz 4]# pwd
/vz/template/centos/4
[root@sparksvz 4]# ls
i386
[root@sparksvz 4]#


So i dont know what else I can do...2AM pretty tired now haha Razz will try again tomorrow if no updates.

THank you. Good night!
Re: Install problems on dual opteron (64 bits), CentOS 4.4 [message #7435 is a reply to message #7423] Fri, 13 October 2006 11:19 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

Looks like this won't work on x86_64. You have to stick to precreated templates, and use rpm/yum inside a VE to apply updates. Sorry.

We will eventually fix this, but don't hold your breath.


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: Install problems on dual opteron (64 bits), CentOS 4.4 [message #7437 is a reply to message #7435] Fri, 13 October 2006 11:30 Go to previous messageGo to next message
olivier is currently offline  olivier
Messages: 2
Registered: October 2006
Junior Member
Thank you for everything
We are going to study a means to by-pass the problem.

Olivier
Re: Install problems on dual opteron (64 bits), CentOS 4.4 [message #7446 is a reply to message #7172] Fri, 13 October 2006 13:15 Go to previous message
fgomes is currently offline  fgomes
Messages: 29
Registered: August 2006
Junior Member
I've somehow turned arround this problem changing to the install methode described in the Quick install guide in the wiki, using yum, and then installed all the .rpm necessary to have yum in each VE (I built a new cache for CentOS minimal including yum, and then I'm using this cache to built every VE). It is working, but it is not a clean solution.
If you need any details about it, please ask me, I'll post here all that I can retreive from my notes.

Fernando
Previous Topic: *SOLVED* Strange memory failcnt problem
Next Topic: *SOLVED* openVZ service not starting
Goto Forum:
  


Current Time: Sat Nov 02 11:59:08 GMT 2024

Total time taken to generate the page: 0.03142 seconds