How to build VyOS ISO with a specific custom kernel?

Hi,

I want to compile a VyOS 1.5 ISO using a specific custom kernel instead of the default Debian kernel.

My questions:

  1. How can I tell the VyOS build system to use this specific kernel, what files need?

  2. Are there any known issues when using a non-Debian kernel for builds?

  3. Which files or configuration should I modify to point the build system to my kernel source?

Any guidance or examples would be greatly appreciated.

thanks

It doesnt use the default Debian kernel.

It already use a custom kernel based on Debian (well technically one can say its a vanilla kernel with custom settings and then uses Debian as base along with some other custom stuff for FRR etc) but since then modified to fit the needs of VyOS.

Here is the current kernel config and in directory above you have everything else you need to compile your own custom kernel based on the VyOS settings (as in modify whatever you need in that directory and then build it to your taste):

Thanks for quick reply, I’m customizing a VyOS 1.5 ISO and I already have a precompiled custom kernel (including headers, modules, and hooks).

I’ve read that VyOS uses its own kernel configuration under scripts/package-build/linux-kernel/, but in my case, I don’t want to rebuild the kernel — I just want to include my own kernel files in the build process.

So my questions are:

  • Where should I place my custom kernel files (vmlinuz, modules/, headers/, and hooks) inside the VyOS build structure?

  • Should they go under packages/, scripts/package-build/linux-kernel/, or another directory?

  • Is there a recommended way to make the build system detect and use my kernel instead of compiling its own?

Any example or reference would be really helpful.

Thanks in advance!

Personally I would use the kernel package provided by VyOS and change that to your taste.

This way it will get automagically included when you build your custom ISO without issues.

This should answer most of your question in case you didnt see this page before?