Kindly support DOTSLASHLINUX on Patreon to keep the website up and running while remaining ads free.

Part Section Link
1 Intro Click Here
2 [∗] Gentoo Linux support ---> Click Here
3 General setup ---> Click Here
4 [∗] Enable loadable module support ---> Click Here
5 [∗] Enable the block layer ---> Click Here
6 Processor type and features ---> Click Here
7 Power management and ACPI options ---> Click Here
8 Bus options (PCI etc.) ---> Click Here
9 Executable file formats / Emulations ---> Click Here
10 [∗] Networking support ---> Click Here
11 Device Drivers ---> Click Here
12 Firmware Drivers ---> Click Here
13 File systems ---> Click Here
14 Kernel hacking ---> Click Here
15 Security options ---> Click Here
16 -∗- Cryptographic API ---> Click Here
17 [∗] Virtualization ---> Click Here
18 Library routines ---> Click Here
Kernel Sources:       sys-kernel/gentoo-sources

Kernel Version:       4.14.12

Last Updated on:      06/01/2018

Update Notice:        1- Excluded 'CONFIG_PAGE_TABLE_ISOLATION' in 'Security options --->'
                      2- Included 'CONFIG_STANDALONE' in 'Device Drivers  --->'
                      3- Included 'CONFIG_PREVENT_FIRMWARE_BUILD' in 'Device Drivers  --->'
                      4- Included 'CONFIG_X86_5LEVEL' in 'Processor type and features  --->'
                      5- Included 'CONFIG_ORC_UNWINDER' in 'Kernel hacking  --->'
                      6- Excluded QEMU-virtualization-related options in favor of VirtualBox
                      7- Excluded swap-related options
                      8- Excluded 32-bit support
                      9- Switched from XFS to EXT4

Priorities:           1- high performance
                      2- minimal
                      3- low memory footprint
                      4- small size
                      5- power saving
                      6- security
                      7- low-latency

Total Options:        2469 (grep -c 'CONFIG_' DOTSLASHLINUX.config)

Included Options:     645 (grep -c '=y' DOTSLASHLINUX.config)

Excluded Options:     1761 (grep -c 'is not set' DOTSLASHLINUX.config)

Final Size (LZ4):     5,644,240 Bytes

Patches Applied:      1- UKSM-4.14 Patch (https://github.com/dolohow/uksm/blob/master/uksm-4.14.patch)

Contributors:         Firas Khalil Khana [irc: firas] [email: firasuke@gmail.com]

Side Notes:           1- Options that aren't listed here are excluded [ ].
                      2- These guides provide users with a solid starting setup to build on.
                      3- These guides are constantly being updated.
                      4- If there's something I didn't explain properly or I misexplained
                         then please do let me know either by kindly leaving a comment below
                         or by sending me an email on: firasuke@gmail.com

The Linux Kernel Configuration Guide Part 17 - [∗] Virtualization --->

kernel17
Firas Khalil Khana | 17/09/2017

As of kernel version 4.14.10-r1, all virtualization-related options listed below were excluded from the kernel configuration file as they’re mainly intended for QEMU. If you’re running VirtualBox then you can safely exclude the options below.

Include the options below only if you’re using QEMU.


[∗] Virtualization —>

Symbol:     CONFIG_VIRTUALIZATION

Help:       Say Y here to get to see options for using your Linux host to run other
            operating systems inside virtual machines (guests).
            This option alone does not add any kernel code.

            If you say N, all options in this submenu will be skipped and disabled.

Type:       boolean

Choice:     built-in [∗]

Reason:     It's highly recommended that you include this option in your kernel
            if you're planning to run guest vms on your host system.

            It's also recommended by the Gentoo wiki.

<∗> Kernel-based Virtual Machine (KVM) support

Symbol:     CONFIG_KVM

Help:       Support hosting fully virtualized guest machines using hardware
            virtualization extensions.  You will need a fairly recent
            processor equipped with virtualization extensions. You will also
            need to select one or more of the processor modules below.

            This module provides access to the hardware capabilities through
            a character device node named /dev/kvm.

            To compile this as a module, choose M here: the module
            will be called kvm.

            If unsure, say N.

Type:       tristate

Choice:     built-in <∗>

Reason:     It's highly recommended that you include this option as the KVM
            hypervisor enhances performance considerably in linux guests.
            
            It's also recommended by the Gentoo wiki.

<∗> KVM for Intel processors support

Symbol:     CONFIG_KVM_INTEL

Help:       Provides support for KVM on Intel processors equipped with the VT
            extensions.

            To compile this as a module, choose M here: the module
            will be called kvm-intel.

Type:       tristate

Choice:     built-in <∗>

Reason:     It's highly recommended that you include this option as the KVM
            hypervisor for Intel CPUs enhances performance considerably in
            linux guests.
            
            It's also recommended by the Gentoo wiki.

<∗> Host kernel accelerator for virtio net

Symbol:     CONFIG_VHOST_NET

Help:       This kernel module can be loaded in host kernel to accelerate
            guest networking with virtio_net. Not to be confused with virtio_net
            module itself which needs to be loaded in guest kernel.

            To compile this driver as a module, choose M here: the module will
            be called vhost_net.

Type:       tristate

Choice:     built-in <∗>

Reason:     It's highly recommended that you include this option as virtio
            net boosts network performance considerably in guest vms.
            
            It's also recommended by the Gentoo wiki.

Chinese Translation

One of DOTSLASHLINUX followers 杨鑫 (Yang Mame) from China, decided to follow up with the series and provide Chinese translation of the kernel configuration guides on his blog.

To read this guide in Chinese click here.

Leave A Comment