{page-title}
{kb-symptom}
{code}
Could not open '/lib/modules/2.6.9-023stab046.2-enterprise/modules.dep': No such file or directory
Checking '/lib/modules/2.6.9-023stab046.2-enterprise/source/' for kernel headers
Checking '/lib/modules/2.6.9-023stab046.2-enterprise/build/' for kernel headers
Could not find path /lib/modules/2.6.9-023stab046.2-enterprise/build/
Unable to find a valid source directory.
Please install the kernel headers for your operating system.
{code}
{kb-cause}
You have just installed the CDP agent and now you need the kernel headers to build a kernel module for your Linux Agent.
{kb-resolution}
{code}
[root@shell ~]# PVC=$(awk '{gsub(/-.*$/,"",$NF);print $NF}' /etc/virtuozzo-release)
[root@shell ~]# KERNEL=$(uname -r)
[root@shell ~]# ARCH=$(uname -m)
[root@shell ~]# rpm -ivh http://vzup2date.parallels.com/virtuozzo/linux/${ARCH}/${PVC}/CU-${KERNEL}/vzkernel-devel-${KERNEL}.${ARCH}.rpm
{code}
{kb-related-articles}
{kb-symptom}
{code}
Could not open '/lib/modules/2.6.9-023stab046.2-enterprise/modules.dep': No such file or directory
Checking '/lib/modules/2.6.9-023stab046.2-enterprise/source/' for kernel headers
Checking '/lib/modules/2.6.9-023stab046.2-enterprise/build/' for kernel headers
Could not find path /lib/modules/2.6.9-023stab046.2-enterprise/build/
Unable to find a valid source directory.
Please install the kernel headers for your operating system.
{code}
{kb-cause}
You have just installed the CDP agent and now you need the kernel headers to build a kernel module for your Linux Agent.
{kb-resolution}
{code}
[root@shell ~]# PVC=$(awk '{gsub(/-.*$/,"",$NF);print $NF}' /etc/virtuozzo-release)
[root@shell ~]# KERNEL=$(uname -r)
[root@shell ~]# ARCH=$(uname -m)
[root@shell ~]# rpm -ivh http://vzup2date.parallels.com/virtuozzo/linux/${ARCH}/${PVC}/CU-${KERNEL}/vzkernel-devel-${KERNEL}.${ARCH}.rpm
{code}
{kb-related-articles}