Q. I see few kernels while booting my Linux system. My question is on Linux how many kernel you can compile at the same time and how many Kernel you can load in Linux?

A. You can compile as many as kernel (or different version of same kernel with different features such as router or particular device driver) you want. You are limited by disk space only. However you can load only one kernel at a time on a physical system.

There exists a combination of hardware and software that allows you to load multiple Linux kernel using special technique called Virtualization. It is the technique of managing and presenting storage devices and resources functionally, regardless of their physical layout or location. For example XEN or Vmware software provides Virtualization facility to load multiple kernel and application on a single physical system.

🐧 Get the latest tutorials on Linux, Open Source & DevOps via RSS feed or Weekly email newsletter.

🐧 5 comments so far... add one

CategoryList of Unix and Linux commands
Disk space analyzersncdu pydf
File Managementcat
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network UtilitiesNetHogs dig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04
5 comments… add one
  • Andy May 29, 2007 @ 9:40

    The answer is not entirely correct.

    You can run the Linux kernel as a program inside your currently running kernel. It requires some tweaking and compiling, but it is very much possible and it is not virtualisation

  • 🐧 nixCraft May 29, 2007 @ 11:04


    Can you provide link to it.. so that I can update answer.


  • Andy May 29, 2007 @ 12:29

    Seems my answer wasn’t entirely right either, turns out it *is* a form of virtualisation. Anyway the thing is called usermode linux and here’s more info about it http://user-mode-linux.sourceforge.net/

  • 🐧 nixCraft May 29, 2007 @ 12:36

    Yup, UML is virtualization only. Basically with server virtualization, one can create multiple virtual servers on a single physical server. Each virtual server has its own set of virtual hardware on which an operating system and application are loaded. Generally XEN and Vmware used but as you pointed out UML one of such solution. In short you cannot boot same version of kernel.

  • paul Mar 24, 2008 @ 7:50

    while making my LFS and moving from LFS to BLFS? i figured that? i can compile N-number of kernels and also load them. and andy _is_ right user-mode-linux can also be used to load a specific kernel, especially when you are playing with gcc optimisation and also when cross compiling kernel. the userspace and userland is chrooted and schrooted for smooth execution.

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre> for code samples. Still have questions? Post it on our forum