Results 1 to 19 of 19

Thread: Installing Kernel Source

  1. #1
    Join Date
    May 2010
    Posts
    2

    Default Installing Kernel Source

    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. #2
    Join Date
    Aug 2006
    Posts
    9,875

    Default Re: Installing Kernel Source

    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`
    Last edited by tom; 05-18-2010 at 09:42 PM.
    Best regards,
    Tom

    Do you have already a Commercial Support Subscription? - If not, Buy now

  3. #3
    Join Date
    May 2010
    Posts
    2

    Default Re: Installing Kernel Source

    Thank you very much, Tom! That fixed the issue

  4. #4
    Join Date
    May 2010
    Posts
    7

    Default Re: Installing Kernel Source

    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. #5
    Join Date
    May 2010
    Location
    France
    Posts
    59

    Default Re: Installing Kernel Source

    Hi,

    Before running aptitude, try "apt-get update"

    Best regards,

  6. #6
    Join Date
    May 2010
    Posts
    7

    Default Re: Installing Kernel Source

    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. #7
    Join Date
    May 2010
    Location
    France
    Posts
    59

    Default Re: Installing Kernel Source

    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. #8
    Join Date
    May 2010
    Location
    France
    Posts
    59

    Default Re: Installing Kernel Source

    I forgot to ask, please post your /etc/apt/sources.list

  9. #9
    Join Date
    May 2010
    Posts
    7

    Default Re: Installing Kernel Source

    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. #10
    Join Date
    May 2010
    Location
    France
    Posts
    59

    Default Re: Installing Kernel Source

    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. #11
    Join Date
    May 2010
    Posts
    7

    Default Re: Installing Kernel Source

    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. #12
    Join Date
    May 2010
    Location
    France
    Posts
    59

    Default Re: Installing Kernel Source

    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. #13
    Join Date
    May 2010
    Posts
    7

    Default Re: Installing Kernel Source

    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. #14
    Join Date
    Apr 2005
    Location
    Austria
    Posts
    12,094

    Default Re: Installing Kernel Source

    Quote Originally Posted by jpalexis View Post
    I ran the commands:

    [CODE]proxmox:~# apt-get -f install
    What do you expect from that command? It helps when you specify the package you want to install.

  15. #15
    Join Date
    Apr 2005
    Location
    Austria
    Posts
    12,094

    Default Re: Installing Kernel Source

    And what is the output of

    # uname -a

  16. #16
    Join Date
    Apr 2005
    Location
    Austria
    Posts
    12,094

    Default Re: Installing Kernel Source

    Sorry, ignore my post - i just re-read the thread and found that you already tried the correct commands - sorry for the confusion.

  17. #17
    Join Date
    Apr 2005
    Location
    Austria
    Posts
    12,094

    Default Re: Installing Kernel Source

    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. #18
    Join Date
    May 2010
    Posts
    7

    Default Re: Installing Kernel Source

    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. #19
    Join Date
    May 2010
    Posts
    7

    Default Re: Installing Kernel Source

    I was able to get it working. I dowloaded the headers from http://download.proxmox.com/debian/d.../binary-amd64/ and installed them with dpkg instead.

    Dahdi is up and running.

    Thanks to all who helped.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •