1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Installing Kernel Source

Discussion in 'Proxmox VE 1.x: Installation and configuration' started by kiddbios, May 18, 2010.

  1. kiddbios

    kiddbios New Member

    Joined:
    May 18, 2010
    Messages:
    2
    Likes Received:
    0
    Hello,

    I have a newbie question I was hoping the community could help me with.

    I just performed a clean install of Proxmox VE 1.5 from CD. Everything appears to be working properly. I need to install an application (DAHDI, which is a timing source for VOIP) and when I try to install it informs me: "You do not appear to have the sources for the 2.6.18-2-pve kernel installed".

    I downloaded the source files and extracted them to /usr/src , but I am unsure of how to install them. There is no configure script and the packages appear to be .rpm instead of .deb If somebody could provide me with a little guidance on where to start on installing this source, I would be very appreciative.
     
  2. tom

    tom Proxmox Staff Member
    Staff Member

    Joined:
    Aug 29, 2006
    Messages:
    11,003
    Likes Received:
    48
    just use the search function of this forum (dahdi)

    you need to install the kernel header packages, e.g.:

    Code:
    aptitude install  pve-headers-`uname -r`
     
    #2 tom, May 18, 2010
    Last edited: May 18, 2010
  3. kiddbios

    kiddbios New Member

    Joined:
    May 18, 2010
    Messages:
    2
    Likes Received:
    0
    Thank you very much, Tom! That fixed the issue :)
     
  4. jpalexis

    jpalexis New Member

    Joined:
    May 31, 2010
    Messages:
    7
    Likes Received:
    0
    I have the same problem as above where I am trying to install dahdi. I get the same error: "You do not appear to have the sources for the 2.6.18-2-pve kernel installed". The user stated above he downloaded the source files and extracted them to /usr/src. I am not able to find the source files.

    Here is what I got after running the command suggested:

    Code:
    # aptitude install  pve-headers-`uname -r`
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Reading extended state information
    Initializing package states... Done
    Writing extended state information... Done
    Reading task descriptions... Done
    No packages will be installed, upgraded, or removed.
    0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    Need to get 0B of archives. After unpacking 0B will be used.
    Writing extended state information... Done
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Reading extended state information
    Initializing package states... Done
    Reading task descriptions... Done
    
    Also:

    Code:
    # pveversion -v
    pve-manager: 1.5-9 (pve-manager/1.5/4728)
    running kernel: 2.6.18-2-pve
    proxmox-ve-2.6.24: 1.5-23
    pve-kernel-2.6.24-11-pve: 2.6.24-23
    pve-kernel-2.6.24-7-pve: 2.6.24-11
    pve-kernel-2.6.18-2-pve: 2.6.18-5
    qemu-server: 1.1-14
    pve-firmware: 1.0-5
    libpve-storage-perl: 1.0-13
    vncterm: 0.9-2
    vzctl: 3.0.23-1pve11
    vzdump: 1.2-5
    vzprocps: 2.0.11-1dso2
    vzquota: 3.0.11-1
    pve-qemu-kvm: 0.12.4-1
    Any help is appreciated.

    Thanks.
     
  5. MrJacK

    MrJacK Member

    Joined:
    May 27, 2010
    Messages:
    59
    Likes Received:
    0
    Hi,

    Before running aptitude, try "apt-get update"

    Best regards,
     
  6. jpalexis

    jpalexis New Member

    Joined:
    May 31, 2010
    Messages:
    7
    Likes Received:
    0
    Thanks for the reply. I did do that prior to posting. I did it again and here is the output;

    Code:
    proxmox:~# apt-get update
    Hit http://security.debian.org lenny/updates Release.gpg
    Hit http://ftp.us.debian.org lenny Release.gpg
    Hit http://security.debian.org lenny/updates Release
    Hit http://ftp.us.debian.org lenny Release
    Ign http://security.debian.org lenny/updates/main Packages/DiffIndex
    Ign http://ftp.us.debian.org lenny/main Packages/DiffIndex
    Hit http://download.proxmox.com lenny Release.gpg
    Ign http://ftp.us.debian.org lenny/contrib Packages/DiffIndex
    Ign http://security.debian.org lenny/updates/contrib Packages/DiffIndex
    Hit http://ftp.us.debian.org lenny/main Packages
    Hit http://security.debian.org lenny/updates/main Packages
    Hit http://ftp.us.debian.org lenny/contrib Packages
    Hit http://download.proxmox.com lenny Release
    Hit http://security.debian.org lenny/updates/contrib Packages
    Ign http://download.proxmox.com lenny/pve Packages/DiffIndex
    Ign http://download.proxmox.com lenny/pve Packages
    Hit http://download.proxmox.com lenny/pve Packages
    Reading package lists... Done
    proxmox:~#
    And:

    Code:
    proxmox:~# aptitude install  pve-headers-`uname -r`
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Reading extended state information
    Initializing package states... Done
    Reading task descriptions... Done
    No packages will be installed, upgraded, or removed.
    0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    Need to get 0B of archives. After unpacking 0B will be used.
    Writing extended state information... Done
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Reading extended state information
    Initializing package states... Done
    Reading task descriptions... Done
    
    proxmox:~#
    Also, on booting up I get the following errors. I am not sure if it's all related:

    Code:
    dahdi: version magic '2.6.18-2-pve SMP mod_unload gcc-4.3' should be '2.6.18-2-pve SMP mod_unload gcc-4.1'
    dahdi: version magic '2.6.18-2-pve SMP mod_unload gcc-4.3' should be '2.6.18-2-pve SMP mod_unload gcc-4.1'
    wct4xxp: version magic '2.6.18-2-pve SMP mod_unload gcc-4.3' should be '2.6.18-2-pve SMP mod_unload gcc-4.1'
    dahdi: version magic '2.6.18-2-pve SMP mod_unload gcc-4.3' should be '2.6.18-2-pve SMP mod_unload gcc-4.1'
    dahdi_voicebus: version magic '2.6.18-2-pve SMP mod_unload gcc-4.3' should be '2.6.18-2-pve SMP mod_unload gcc-4.1'
    wcte12xp: version magic '2.6.18-2-pve SMP mod_unload gcc-4.3' should be '2.6.18-2-pve SMP mod_unload gcc-4.1'
    dahdi: version magic '2.6.18-2-pve SMP mod_unload gcc-4.3' should be '2.6.18-2-pve SMP mod_unload gcc-4.1'
    wct1xxp: version magic '2.6.18-2-pve SMP mod_unload gcc-4.3' should be '2.6.18-2-pve SMP mod_unload gcc-4.1'
    dahdi: version magic '2.6.18-2-pve SMP mod_unload gcc-4.3' should be '2.6.18-2-pve SMP mod_unload gcc-4.1'
    wcte11xp: version magic '2.6.18-2-pve SMP mod_unload gcc-4.3' should be '2.6.18-2-pve SMP mod_unload gcc-4.1'
    dahdi: version magic '2.6.18-2-pve SMP mod_unload gcc-4.3' should be '2.6.18-2-pve SMP mod_unload gcc-4.1'
    dahdi_voicebus: version magic '2.6.18-2-pve SMP mod_unload gcc-4.3' should be '2.6.18-2-pve SMP mod_unload gcc-4.1'
    wctdm24xxp: version magic '2.6.18-2-pve SMP mod_unload gcc-4.3' should be '2.6.18-2-pve SMP mod_unload gcc-4.1'
    dahdi: version magic '2.6.18-2-pve SMP mod_unload gcc-4.3' should be '2.6.18-2-pve SMP mod_unload gcc-4.1'
    wcfxo: version magic '2.6.18-2-pve SMP mod_unload gcc-4.3' should be '2.6.18-2-pve SMP mod_unload gcc-4.1'
    dahdi: version magic '2.6.18-2-pve SMP mod_unload gcc-4.3' should be '2.6.18-2-pve SMP mod_unload gcc-4.1'
    wctdm: version magic '2.6.18-2-pve SMP mod_unload gcc-4.3' should be '2.6.18-2-pve SMP mod_unload gcc-4.1'
    dahdi: version magic '2.6.18-2-pve SMP mod_unload gcc-4.3' should be '2.6.18-2-pve SMP mod_unload gcc-4.1'
    wcb4xxp: version magic '2.6.18-2-pve SMP mod_unload gcc-4.3' should be '2.6.18-2-pve SMP mod_unload gcc-4.1'
    dahdi: version magic '2.6.18-2-pve SMP mod_unload gcc-4.3' should be '2.6.18-2-pve SMP mod_unload gcc-4.1'
    dahdi_transcode: version magic '2.6.18-2-pve SMP mod_unload gcc-4.3' should be '2.6.18-2-pve SMP mod_unload gcc-4.1'
    wctc4xxp: version magic '2.6.18-2-pve SMP mod_unload gcc-4.3' should be '2.6.18-2-pve SMP mod_unload gcc-4.1'
    dahdi: version magic '2.6.18-2-pve SMP mod_unload gcc-4.3' should be '2.6.18-2-pve SMP mod_unload gcc-4.1'
    xpp: version magic '2.6.18-2-pve SMP mod_unload gcc-4.3' should be '2.6.18-2-pve SMP mod_unload gcc-4.1'
    xpp_usb: version magic '2.6.18-2-pve SMP mod_unload gcc-4.3' should be '2.6.18-2-pve SMP mod_unload gcc-4.1'
    dahdi: version magic '2.6.18-2-pve SMP mod_unload gcc-4.3' should be '2.6.18-2-pve SMP mod_unload gcc-4.1'
    tor2: version magic '2.6.18-2-pve SMP mod_unload gcc-4.3' should be '2.6.18-2-pve SMP mod_unload gcc-4.1'
    dahdi: version magic '2.6.18-2-pve SMP mod_unload gcc-4.3' should be '2.6.18-2-pve SMP mod_unload gcc-4.1'
    wct4xxp: version magic '2.6.18-2-pve SMP mod_unload gcc-4.3' should be '2.6.18-2-pve SMP mod_unload gcc-4.1'
    dahdi: version magic '2.6.18-2-pve SMP mod_unload gcc-4.3' should be '2.6.18-2-pve SMP mod_unload gcc-4.1'
    dahdi_voicebus: version magic '2.6.18-2-pve SMP mod_unload gcc-4.3' should be '2.6.18-2-pve SMP mod_unload gcc-4.1'
    wcte12xp: version magic '2.6.18-2-pve SMP mod_unload gcc-4.3' should be '2.6.18-2-pve SMP mod_unload gcc-4.1'
    dahdi: version magic '2.6.18-2-pve SMP mod_unload gcc-4.3' should be '2.6.18-2-pve SMP mod_unload gcc-4.1'
    wct1xxp: version magic '2.6.18-2-pve SMP mod_unload gcc-4.3' should be '2.6.18-2-pve SMP mod_unload gcc-4.1'
    dahdi: version magic '2.6.18-2-pve SMP mod_unload gcc-4.3' should be '2.6.18-2-pve SMP mod_unload gcc-4.1'
    wcte11xp: version magic '2.6.18-2-pve SMP mod_unload gcc-4.3' should be '2.6.18-2-pve SMP mod_unload gcc-4.1'
    dahdi: version magic '2.6.18-2-pve SMP mod_unload gcc-4.3' should be '2.6.18-2-pve SMP mod_unload gcc-4.1'
    dahdi_voicebus: version magic '2.6.18-2-pve SMP mod_unload gcc-4.3' should be '2.6.18-2-pve SMP mod_unload gcc-4.1'
    wctdm24xxp: version magic '2.6.18-2-pve SMP mod_unload gcc-4.3' should be '2.6.18-2-pve SMP mod_unload gcc-4.1'
    dahdi: version magic '2.6.18-2-pve SMP mod_unload gcc-4.3' should be '2.6.18-2-pve SMP mod_unload gcc-4.1'
    wcfxo: version magic '2.6.18-2-pve SMP mod_unload gcc-4.3' should be '2.6.18-2-pve SMP mod_unload gcc-4.1'
    dahdi: version magic '2.6.18-2-pve SMP mod_unload gcc-4.3' should be '2.6.18-2-pve SMP mod_unload gcc-4.1'
    wctdm: version magic '2.6.18-2-pve SMP mod_unload gcc-4.3' should be '2.6.18-2-pve SMP mod_unload gcc-4.1'
    dahdi: version magic '2.6.18-2-pve SMP mod_unload gcc-4.3' should be '2.6.18-2-pve SMP mod_unload gcc-4.1'
    xpp: version magic '2.6.18-2-pve SMP mod_unload gcc-4.3' should be '2.6.18-2-pve SMP mod_unload gcc-4.1'
    xpp_usb: version magic '2.6.18-2-pve SMP mod_unload gcc-4.3' should be '2.6.18-2-pve SMP mod_unload gcc-4.1'
    
    Regards.
     
  7. MrJacK

    MrJacK Member

    Joined:
    May 27, 2010
    Messages:
    59
    Likes Received:
    0
    Have you try before this to install a kernel from pvetest ?

    Maybe a dependencies problem, try this with CAUTION if you're on production :

    apt-get -f install
    apt-get dist-upgrade

    Try "apt-cache search pve-headers-2.6.18" to see if the package is available
     
  8. MrJacK

    MrJacK Member

    Joined:
    May 27, 2010
    Messages:
    59
    Likes Received:
    0
    I forgot to ask, please post your /etc/apt/sources.list
     
  9. jpalexis

    jpalexis New Member

    Joined:
    May 31, 2010
    Messages:
    7
    Likes Received:
    0
    Content of /etc/apt/sources.list

    Code:
    deb http://ftp.us.debian.org/debian lenny main contrib
    
    # PVE packages provided by proxmox.com
    deb http://download.proxmox.com/debian lenny pve
    
    # security updates
    deb http://security.debian.org/ lenny/updates main contrib
    
    I haven't run the commands of the previous post yet. Should I run them or wait for your reply?

    Thanks
     
  10. MrJacK

    MrJacK Member

    Joined:
    May 27, 2010
    Messages:
    59
    Likes Received:
    0
    Your sources.list is OK so you can run the commands, anyway you will be prompted to confirm changes.
    Look at what packages will be removed and/or updated.
     
  11. jpalexis

    jpalexis New Member

    Joined:
    May 31, 2010
    Messages:
    7
    Likes Received:
    0
    I ran the commands:

    Code:
    proxmox:~# apt-get -f install
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    proxmox:~# apt-get dist-upgrade
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Calculating upgrade... Done
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    proxmox:~# apt-cache search pve-headers-2.6.1
    pve-headers-2.6.18-2-pve - The Proxmox PVE Kernel Headers
    proxmox:~#
    
    It seems like nothing really happened.

    Thanks
     
  12. MrJacK

    MrJacK Member

    Joined:
    May 27, 2010
    Messages:
    59
    Likes Received:
    0
    Are you sure that pve-headers are not already installed ?
    Check with : dpkg -l | grep pve-headers

    If not, try again with apt-get install pve-headers-2.6.18-2-pve
     
  13. jpalexis

    jpalexis New Member

    Joined:
    May 31, 2010
    Messages:
    7
    Likes Received:
    0
    It's already installed. I am posting to find out why it's not working for me. Here is the result of the command:

    Code:
    proxmox:~# apt-get install pve-headers-2.6.18-2-pve
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    pve-headers-2.6.18-2-pve is already the newest version.
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    proxmox:~#
    
     
  14. dietmar

    dietmar Proxmox Staff Member
    Staff Member

    Joined:
    Apr 28, 2005
    Messages:
    14,159
    Likes Received:
    69
     
  15. dietmar

    dietmar Proxmox Staff Member
    Staff Member

    Joined:
    Apr 28, 2005
    Messages:
    14,159
    Likes Received:
    69
    And what is the output of

    # uname -a
     
  16. dietmar

    dietmar Proxmox Staff Member
    Staff Member

    Joined:
    Apr 28, 2005
    Messages:
    14,159
    Likes Received:
    69
    Sorry, ignore my post - i just re-read the thread and found that you already tried the correct commands - sorry for the confusion.
     
  17. dietmar

    dietmar Proxmox Staff Member
    Staff Member

    Joined:
    Apr 28, 2005
    Messages:
    14,159
    Likes Received:
    69
    Seem to be a problem with the gcc versions you use:

    gcc-4.3 vs gcc-4.1
    Please try to use gcc-4.1 to compile the modules.
     
  18. jpalexis

    jpalexis New Member

    Joined:
    May 31, 2010
    Messages:
    7
    Likes Received:
    0
    I was executing the command as I was asked to do by the gentleman who was helping me out. My problem is when I tried to install dahdi, I get this error: "You do not appear to have the sources for the 2.6.18-2-pve kernel installed". I followed what was suggested in the top post and it did not work for me.

    Thanks
     
  19. jpalexis

    jpalexis New Member

    Joined:
    May 31, 2010
    Messages:
    7
    Likes Received:
    0

Share This Page