Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Linux Virtual Server: Users

[lvs-users] Configuring keepalived on Centos 5.1

 

 

Linux Virtual Server users RSS feed   Index | Next | Previous | View Threaded


sid at kongregate

Apr 7, 2008, 6:06 PM

Post #1 of 2 (932 views)
Permalink
[lvs-users] Configuring keepalived on Centos 5.1

The configure script for keepalived requires that the kernel sources be
installed. If they are not, it generates the following error messages,

configure: WARNING: Cannot determine Linux Kernel version.

configure: WARNING: keepalived will be built without LVS support.

To install the kernel source on Centos, use "yum install kernel-devel"

Once the source is installed, go /usr/src and make a symbolic link from the
current kernel source directory to /usr/src/linux. On my machine the command
is,

ln -s kernels/2.6.18-53.1.14.el5-x86_64 linux

Sid
_______________________________________________
LinuxVirtualServer.org mailing list - lvs-users[at]LinuxVirtualServer.org
Send requests to lvs-users-request[at]LinuxVirtualServer.org
or go to http://lists.graemef.net/mailman/listinfo/lvs-users


graeme at graemef

Apr 7, 2008, 11:07 PM

Post #2 of 2 (877 views)
Permalink
Re: [lvs-users] Configuring keepalived on Centos 5.1 [In reply to]

Hi Sid

On Mon, 2008-04-07 at 18:06 -0700, Sid Stuart wrote:
> The configure script for keepalived requires that the kernel sources be
> installed. If they are not, it generates the following error messages,
>
> configure: WARNING: Cannot determine Linux Kernel version.
>
> configure: WARNING: keepalived will be built without LVS support.

I'm not sure if you're just reporting this, asking for it to be fixed,
or telling us that you did. I'll assume the latter.

> To install the kernel source on Centos, use "yum install kernel-devel"
>
> Once the source is installed, go /usr/src and make a symbolic link from the
> current kernel source directory to /usr/src/linux. On my machine the command
> is,
>
> ln -s kernels/2.6.18-53.1.14.el5-x86_64 linux

Better to use the switch to keepalived's configure script:

--with-kernel-dir=DIR path to linux kernel source directory

in your case,
--with-kernel-dir=/usr/src/kernels/2.6.18-53.1.14.el5-x86_64

Then run ./configure.

If you start linking things, you could run into problems with other apps
since they may not expect to find /usr/src/linux.

Graeme


_______________________________________________
LinuxVirtualServer.org mailing list - lvs-users[at]LinuxVirtualServer.org
Send requests to lvs-users-request[at]LinuxVirtualServer.org
or go to http://lists.graemef.net/mailman/listinfo/lvs-users

Linux Virtual Server users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.