Xen instalation issue

Discussion in 'General Server' started by klaus_1974, Jan 27, 2012.

  1. klaus_1974

    klaus_1974 New Member

    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    Hello,

    I just installed Xen in a 64bits RHEL 5.4, however every time I'm getting this error every time:

    Traceback (most recent call last):
    File "/usr/sbin/xm", line 8, in ?
    from xen.xm import main
    File "/usr/lib/python2.4/site-packages/xen/xm/main.py", line 54, in ?
    from xen.util.acmpolicy import ACM_LABEL_UNLABELED_DISPLAY
    File "/usr/lib/python2.4/site-packages/xen/util/acmpolicy.py", line 30, in ?
    import xen.util.xsm.acm.acm as security
    File "/usr/lib/python2.4/site-packages/xen/util/xsm/acm/acm.py", line 28, in ?
    from xen.lowlevel import acm
    ImportError: /usr/lib/python2.4/site-packages/xen/lowlevel/acm.so: wrong ELF class: ELFCLASS32



    # uname -r
    2.6.18-274.el5xen

    I've instaled:

    python-virtinst-0.400.3-12.el5.noarch.rpm
    libvirt-python-0.9.0-1.el5.art.x86_64.rpm
    libvirt-0.9.0-1.el5.art.x86_64.rpm
    kernel-xen-2.6.18-274.el5.x86_64.rpm


    Have I done anything wrong?

    Thanks,

    Klaudio
  2. Rob

    Rob Administrator Staff Member

    Messages:
    573
    Likes Received:
    183
    Trophy Points:
    43
    Hi Klaudio,

    I think the clue comes in w/ the last line:
    ImportError: /usr/lib/python2.4/site-packages/xen/lowlevel/acm.so: wrong ELF class: ELFCLASS32

    This suggests that you're using a 32bit version of python 2.4

    What's the output of:
    # rpm -q python
  3. Rob

    Rob Administrator Staff Member

    Messages:
    573
    Likes Received:
    183
    Trophy Points:
    43
    I'm not a big python user.. but try exporting the pythonpath to tthe 64bit python perhaps?
    [xcode=bash]
    export PYTHONPATH=/usr/lib64/python2.4/site-packages
    [/xcode]
  4. klaus_1974

    klaus_1974 New Member

    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    I guess the problem is related with xen packages wich are not x86_64 rpms. I installed :

    xen-3.2.0-0xs.centos5.i386.rpm
    xen-3.2.0-0xs.centos5.src.rpm
    xen-debuginfo-3.2.0-0xs.centos5.i386.rpm
    xen-devel-3.2.0-0xs.centos5.i386.rpm
    xen-libs-3.2.0-0xs.centos5.i386.rpm

    Couldn't find any x86_64 rpms.
    Still searching.

    Thanks anyway.

Share This Page