← Back to team overview

vmbuilder team mailing list archive

Re: Building Images with Specific Kernel

 

On Fri, 31 Dec 2010, Amol Jadhav wrote:

> I want to build image for EC2 and I want a specific kernel to be used
> within my image. For example, i want to use kernel xx.yy which has
> particular modules available for my software to work. This kernel is
> also available through apt-get so I can install it in my
> post-installation script. This however doesn't work me. The
> post-installation script also install the my software which when gets
> install checks for the modules it needs and it fails since it doesn't
> find it because incompatible kernel.

Helpful information would be what vm-builder version are you using.

I *think* from reading above that either
a.) either your kernel or your software is looking for modules (possibly
in /proc/modules or otherwise looking for kernel features) of the
*running* kernel.  Thats not going to work as the running kernel is not
the chroot'd kernel.
b.) your software is installing before the kernel that has the modules it
needs.  If thats the case, either make 2 apt-get install invocations, or
fix your software to depend on the kernel you need so it gets installed
afterward by apt.

>
> My Question is how can I create VM which is build for using a
> *specified* kernel and not any random one?
>
> Thanks,
> Amol
>
> _______________________________________________
> Mailing list: https://launchpad.net/~vmbuilder
> Post to     : vmbuilder@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~vmbuilder
> More help   : https://help.launchpad.net/ListHelp
>
>



Follow ups

References