ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Debian VM/cloud optimized kernel

    IT Discussion
    debian kvm xen proxmox
    1
    2
    930
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • 1
      1337
      last edited by 1337

      When running debian (as a guest) in a virtual environment, it's a good idea to install the debian cloud kernel.

      It's an official kernel flavor optimized for a virtual environment and compiled without features you can't use in a VM.

      That makes it:

      • use less memory
      • run faster (as it can skip certain code)
      • boot faster

      Debian is pretty lean as-is but with the cloud kernel, memory usage is getting into realm of the ridiculous.

      Debian 11 minimal installation running under KVM with the standard kernel. Uses 70MB RAM which is great.
      screenshot_20221029_040407.png

      After upgrading to the cloud kernel.
      Uses only 54MB RAM.
      screenshot_20221029_040458.png

      How to install

      Run as root:

      apt install linux-image-cloud-amd64
      reboot
      

      After reboot verify with:

      uname -r
      

      On debian 11 (bullseye) it should now say:
      5.10.0-19-cloud-amd64

      This is the official cloud kernel so updates and everything will work as you'd expect.

      If you are running debian on a public cloud, you are almost certainly using a cloud kernel already.

      1 Reply Last reply Reply Quote 0
      • 1
        1337
        last edited by 1337

        I don't know if ubuntu has a similar cloud kernel.

        Update: It looks like there is a linux-kvm kernel amongst others. Haven't tried it though.

        BTW, in Debian/Ubuntu and other distros the different kernels are often referred to as kernel flavors. Good to know if you want to search for them.

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post