Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have set up a VM on Windows Azure (Openlogic CentOS 6.3 - of one predefined images).

The problem is I see no kernel-headers package and it can't be installed (yum doesn't fine it). Thus, anything relying upon it can't be installed as well.

Is is a known issue for the above type of Azure VM?

Thanks.

share|improve this question

migrated from stackoverflow.com Jan 3 '13 at 4:34

This question came from our site for professional and enthusiast programmers.

add comment

4 Answers

The OpenLogic representative confirmed that in such cases something like this should be run, to force installing certain packages:

sudo yum --disableexcludes=main install kernel-headers-2.6.32-279.14.1.el6.openlogic.x86_64

I hope that could help other people that will find standard packages 'missing' (actually, prevented from being installed by specific repo/yum settings).

share|improve this answer
add comment

The kernel-header packages, along with all the SRPMS are provided in an OpenLogic repository, named ‘openlogic’ which is provided with the CentOS 6.3 gallery image.

They can be installed via this command:

$ sudo yum --disableexcludes=main install kernel-headers-2.6.32-279.14.1.el6.openlogic.x86_64

From a release standpoint, CentOS 6.3 lives downstream from RHEL 6.3, so updates follow that general path. In kernel 2.6.32-279, an ata_piix driver bug was discovered that prevented some functionality with Hyper-V and Windows Azure. This bug was patched upstream and released in later kernel streams. However, these newer kernels were only available in the RHEL 6.4 to CentOS 6.4 kernel stream. OpenLogic took the patches that had been ported to work with kernel 2.6.32-279 and manually applied them to the kernel.

OpenLogic has no intentions in excluding, or preventing any package from being used or installed. The ‘exclude=kernel-*’ parameter that is set in the yum configuration is only meant as a temporary fix to reduce the risk of an end user unknowingly updating past the provided patched kernel and thus reintroducing the known ata_piix driver issue. Doing so can result in a non-functional Windows Azure instance.

As soon as the fixed drivers finally filter down to the main repositories, OpenLogic will remove the kernel exclusions.

share|improve this answer
add comment

In Windows Azure OS Image Gallery, the CentOS image does not include kernel header package. If you must need kernel header package, your best bet is to create your own CentOS image VHD locally, install everything you needed and then deploy to Azure. Once VHD is deployed create a Azure VM from the VHD which will fulfill your need.

share|improve this answer
1  
It grieves me to say that without kernel headers, no actual development tool set can be installed under such an image, which makes it pretty useless. I expected an answer different from 'install your own image' - the last thing I expect from a default gallery image is it's being unable to be used for compiling whatever I need. –  Konstantin Boyandin Jan 3 '13 at 1:27
add comment

What you can try to do is install the relevant kernel-headers-VERSION.el6.x86_64.rpm package from another trusted CentOS repository source.

For example by looking up the needed RPM package up in http://rpm.pbone.net/ , and downloading and installing it from there using rpm -ivh http://path.to.repo/kernel-headers-VERSION.el6.x86_64.rpm

share|improve this answer
    
I don't think that mixing repositories is a good idea, since they do not always get updated in sync. But yes, that's a workaround as well. –  Konstantin Boyandin Mar 13 '13 at 15:52
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.