Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Wed Aug 24, 2011 6:02 am 
Offline
Newbie

Joined: Wed Aug 24, 2011 5:51 am
Posts: 3
Hello,

I'm trying to install Asterisk (Libpri, DAHDI...) on my linode with CentOS 5; the problem is that one of the steps before compiling DAHDI is to install the following:

Code:
yum install kernel-devel-`uname -r`


But it gets an error that says:

Code:
]# make                                                                    
make -C linux all                                                                                   
make[1]: Entering directory `/usr/src/asterisk-complete/dahdi/2.4.0+2.4.0/linux'                   
make -C drivers/dahdi/firmware firmware-loaders                                                     
make[2]: Entering directory `/usr/src/asterisk-complete/dahdi/2.4.0+2.4.0/linux/drivers/dahdi/firmwa
re'                                                                                                 
make[2]: Leaving directory `/usr/src/asterisk-complete/dahdi/2.4.0+2.4.0/linux/drivers/dahdi/firmwar
e'                                                                                                 
[b]You do not appear to have the sources for the 3.0.0-linode35 kernel installed.        [/b]             
make[1]: *** [modules] Error 1                                                                     
make[1]: Leaving directory `/usr/src/asterisk-complete/dahdi/2.4.0+2.4.0/linux'                     
make: *** [all] Error 2         


I've already installed the kernel-devel but still not work.

Hope you can help

Best Regards


Top
   
 Post subject:
PostPosted: Wed Aug 24, 2011 8:11 am 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
If you absolutely need DAHDI for your situation, you'll need to get the kernel source from kernel.org and the config from /proc/config.gz, since it needs to compile the kernel module against it. You will need to do this any time Linode's kernel version changes. Alternatively, you can use your distribution's kernel and party like it is 2006 again.

_________________
Code:
/* TODO: need to add signature to posts */


Top
   
 Post subject:
PostPosted: Wed Aug 24, 2011 9:20 am 
Offline
Newbie

Joined: Wed Aug 24, 2011 5:51 am
Posts: 3
hoopycat wrote:
If you absolutely need DAHDI for your situation, you'll need to get the kernel source from kernel.org and the config from /proc/config.gz, since it needs to compile the kernel module against it. You will need to do this any time Linode's kernel version changes. Alternatively, you can use your distribution's kernel and party like it is 2006 again.


Hi, i followed the instructions here url=http://library.linode.com/linode-platform/custom-instances/pv-grub-howto with the following commands:


Code:
wget -O selinux.sh http://library.linode.com/assets/542-centos5-native-kernel-selinux-enforcing.sh
chmod +x selinux.sh
./selinux.sh


I made the changes on "Xenify Distro" and "Automount devtmpfs" options to "No" and also the Kernel to pv-grub-x86_32; i reboot from the Dashboard, and this is what i'm getting:




Code:
  

Booting 'CentOS (2.6.18-194.26.1.el5xen)'                                                         
                                                                                                   
root (hd0)                                                                                         
 Filesystem type is ext2fs, using whole disk                                                       
kernel /boot/vmlinuz-2.6.18-194.26.1.el5xen root=/dev/xvda                                         
                                                                                                   
Error 15: File not found                                                                           
                                                                                                   
Press any key to continue...                                                                       


Note: I need DAHDI because of dahdi_dummy to conference (meetme)

Hope you can help!


Top
   
 Post subject:
PostPosted: Wed Aug 24, 2011 10:53 am 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
Does /boot/vmlinuz-2.6.18-194.26.1.el5xen exist? Does anything /boot/vmlinuz-* exist?

_________________
Code:
/* TODO: need to add signature to posts */


Top
   
 Post subject:
PostPosted: Wed Aug 24, 2011 10:57 am 
Offline
Newbie

Joined: Wed Aug 24, 2011 5:51 am
Posts: 3
hoopycat wrote:
Does /boot/vmlinuz-2.6.18-194.26.1.el5xen exist? Does anything /boot/vmlinuz-* exist?


so...what do i have to do now? i can't boot the server :(


Top
   
 Post subject:
PostPosted: Wed Aug 24, 2011 1:52 pm 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
Change the Kernel setting in the Configuration Profile back to the way it was (usually Latest 2.6 Paravirt), and it should boot up again.

_________________
Code:
/* TODO: need to add signature to posts */


Top
   
 Post subject: pv grub or asterisk18
PostPosted: Wed Aug 24, 2011 9:03 pm 
Offline
Senior Member

Joined: Tue Jun 21, 2011 4:25 pm
Posts: 118
Website: http://www.alohatone.com
Location: Hawaii
hello,

I would suggest that the linode instructions for pv_grub for centos are not really that great. get that script and read it and then do it manually (parts of it are busted)

bottom line is make sure you have entry like this in your (properly linked) grub.conf (note make sure this matches the kernel version, i.e. look in /boot for the file)

title CentOS (2.6.18-238.19.1.el5xen)
root (hd0)
kernel /boot/vmlinuz-2.6.18-238.19.1.el5xen root=/dev/xvda
initrd /boot/initrd-2.6.18-238.19.1.el5xen.img

then make sure to select pv_grub(32)/(64) (which ever base you started from) from the kernel drop down on the linode manager. Set xenify distro to NO and set Automount devtmpfs to NO.

reboot your linode and watch LISH also make sure to add xvc0 to /etc/securetty if you want to login via LISH

If you have this done and the kernel and kernel-devel package installed you can compile dahdi.

THAT BEING SAID. I would suggest you consider installing asterisk18 as asterisk16 is quickly approaching EOL and asterisk18 is the current Long Term Release (https://wiki.asterisk.org/wiki/display/ ... k+Versions)

I assume you want dahdi for conference bridges however that is no longer needed for asterisk18. and since there is no hardware at all to install on linode you dont need to dahdi, just installed asterisk from the digium repo via yum and it will keep your life very simple.

And if you care asterisk18 fully works 100% with freepbx 2.9.


Top
   
PostPosted: Wed Aug 24, 2011 9:05 pm 
Offline
Senior Member

Joined: Tue Jun 21, 2011 4:25 pm
Posts: 118
Website: http://www.alohatone.com
Location: Hawaii
yum -y update
yum -y install kernel-xen


you need to do this FIRST


Top
   
PostPosted: Wed Aug 24, 2011 9:10 pm 
Offline
Senior Member

Joined: Tue Jun 21, 2011 4:25 pm
Posts: 118
Website: http://www.alohatone.com
Location: Hawaii
http://www.asterisk.org/downloads/yum


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group