Installing Kernel Source

kiddbios

New Member
May 18, 2010
2
0
1
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.
 

tom

Proxmox Staff Member
Staff member
Aug 29, 2006
13,678
434
83
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:

jpalexis

New Member
May 31, 2010
7
0
1
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.
 

MrJacK

Member
May 27, 2010
59
0
6
France
Hi,

Before running aptitude, try "apt-get update"

Best regards,
 

jpalexis

New Member
May 31, 2010
7
0
1
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.
 

MrJacK

Member
May 27, 2010
59
0
6
France
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
 

MrJacK

Member
May 27, 2010
59
0
6
France
I forgot to ask, please post your /etc/apt/sources.list
 

jpalexis

New Member
May 31, 2010
7
0
1
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
 

MrJacK

Member
May 27, 2010
59
0
6
France
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.
 

jpalexis

New Member
May 31, 2010
7
0
1
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
 

MrJacK

Member
May 27, 2010
59
0
6
France
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
 

jpalexis

New Member
May 31, 2010
7
0
1
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:~#
 

dietmar

Proxmox Staff Member
Staff member
Apr 28, 2005
16,501
320
83
Austria
www.proxmox.com
Sorry, ignore my post - i just re-read the thread and found that you already tried the correct commands - sorry for the confusion.
 

dietmar

Proxmox Staff Member
Staff member
Apr 28, 2005
16,501
320
83
Austria
www.proxmox.com
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.
 

jpalexis

New Member
May 31, 2010
7
0
1
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
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE and Proxmox Mail Gateway. We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get your own in 60 seconds.

Buy now!