Building XEN dom0 and domU Linux kernels

dom0 | domU

requirements

ubuntu

    apt install \
    autoconf \
    bc \
    bison \
    dkms \
    flex \
    libelf-dev \
    libiberty-dev \
    libncurses-dev \
    libpci-dev \
    libssl-dev \
    libudev-dev \
    openssl \
    screen

slackware

slackpkg install bc-1 elfutils screen

manually

    cd /usr/src/
    screen -S kernel-build

    cd linux-VERSION/
    cp -f /boot/config-5.8.0-31-generic .config
    make olddefconfig
    make xen.config
    make > ../dom0.log && echo BUILT
    make modules_install >/dev/null && echo MODULES INSTALLED

    mv -fv /vmlinuz /vmlinuz.old
    cp -fv arch/x86/boot/bzImage /vmlinuz

dom0 build script

see dom0

domU build script

see domU

resources

xen

Xen https://wiki.gentoo.org/wiki/Xen

Mainline Linux Kernel Configs https://wiki.xenproject.org/wiki/Mainline_Linux_Kernel_Configs

kernel config

Kernel/Traditional compilation https://wiki.archlinux.org/index.php/Kernels/Traditional_compilation

Complete Handbook/Building the Linux kernel https://wiki.gentoo.org/wiki/Complete_Handbook/Building_the_Linux_kernel

What exactly does Linux kernel’s make defconfig do? https://stackoverflow.com/questions/41885015/what-exactly-does-linux-kernels-make-defconfig-do

CONFIG_IKCONFIG: Kernel .config support https://cateee.net/lkddb/web-lkddb/IKCONFIG.html

Kernel/IKCONFIG Support https://wiki.gentoo.org/wiki/Kernel/IKCONFIG_Support

Chapter 8. Customizing a Kernel https://www.linuxtopia.org/online_books/linux_kernel/kernel_configuration/ch08s02.html

tools/make-kernel-config https://github.com/juergh/tools/blob/master/make-kernel-config

Kernel/Configuration https://wiki.gentoo.org/wiki/Kernel/Configuration

Universal TUN/TAP device driver. https://www.kernel.org/doc/Documentation/networking/tuntap.txt

Obtain kernel config from currently running Linux system? https://superuser.com/questions/287371/obtain-kernel-config-from-currently-running-linux-system

docker

Use the OverlayFS storage driver https://docs.docker.com/storage/storagedriver/overlayfs-driver/

Verify your Linux Kernel for Container Compatibility https://blog.hypriot.com/post/verify-kernel-container-compatibility/

build on debian/ubuntu

https://wiki.ubuntu.com/Kernel/BuildYourOwnKernel

https://help.ubuntu.com/community/Kernel/Compile

https://wiki.ubuntu.com/KernelTeam/GitKernelBuild

https://imil.net/blog/posts/2022/build-a-single-in-tree-linux-kernel-module-debian--clones/


https://github.com/torvalds/linux/blob/master/net/netfilter/Kconfig


HOME | GUIDES | LECTURES | LAB | SMTP HEALTH | HTML5 | CONTACT
Licensed under MIT