Kernel Update problem

Discussion in 'Site & Server Administration' started by black.hat, Nov 1, 2009.

  1. #1
    I am trying to install VMware on my linux centOS server,
    but in final step i been asked to install headers of the kernel

    I have installed it using this command:

    # yum install kernel-devel

    but then i got this error from VMware installation:

    The directory of kernel headers (version 2.6.18-164.2.1.e15) does not match with running kernel (version 2.6.18-128.1.10.e15).

    ---

    Do i need to install the headers of my current kernel version? if yes how?

    Or i need to update my kernel itself? to match the kernel headers that i already installed? i tried to update it but i got this message:

    No Package marked for update

    Thanks!
     
    black.hat, Nov 1, 2009 IP
  2. tolra

    tolra Active Member

    Messages:
    515
    Likes Received:
    36
    Best Answers:
    1
    Trophy Points:
    80
    #2
    Update the kernel, it may be blocked from updating in /etc/yum.conf
     
    tolra, Nov 2, 2009 IP
  3. jcy1978

    jcy1978 Greenhorn

    Messages:
    43
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    18
    #3
    Is this running under Xen or another Hypervisor?

    If you would, please post the results of a "uname -a", which will show if you're using a custom-compiled kernel.
     
    jcy1978, Nov 2, 2009 IP
  4. rootbinbash

    rootbinbash Peon

    Messages:
    2,198
    Likes Received:
    88
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Install headers. It has to match with current one.
     
    rootbinbash, Nov 9, 2009 IP
  5. anuradham

    anuradham Peon

    Messages:
    11
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    First check whether the kernel headers are matching with your current kernel.

    # uname -r (this will give you the running kernel)
    # rpm -q kernel-devel (this will query the kernel headers availbale)

    if these thing does not match,

    # yum -y upgrade kernel kernel-devel

    Reboot and you should be okay. :)

    Cheers!
     
    anuradham, Nov 10, 2009 IP
  6. black.hat

    black.hat Active Member

    Messages:
    157
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    53
    #6
    Yeah, looks like the kernel was already updated, but i forget to reboot the server in order to see the change

    So anuradham was the right person...........horayyyyyyyyyyy
     
    black.hat, Nov 10, 2009 IP