Nothing Special   »   [go: up one dir, main page]

Skip to content

Guest kernel configuration for use in KVM-based virtual machines

Notifications You must be signed in to change notification settings

dzolnierz/kvm-guest-kernel

Repository files navigation

Options enabled:

  • VirtIO drivers:

    • CONFIG_VIRTIO=y
    • CONFIG_VIRTIO_PCI=y
    • CONFIG_VIRTIO_PCI_LEGACY=y
    • CONFIG_VIRTIO_NET=m
    • CONFIG_VIRTIO_MMIO=m
    • CONFIG_VIRTIO_CONSOLE=m
    • CONFIG_VIRTIO_BLK=y
    • CONFIG_VIRTIO_BALLOON=m
    • CONFIG_SCSI_VIRTIO=m
    • CONFIG_HW_RANDOM_VIRTIO=m
  • live patching

  • network options for router and load balancer (IPVS)

Build under Debian:

KERNEL_VERSION=4.9
PKG_BUILD=1
PKG_NAME=kvm
PKG_ARCH=amd64
PKG_REVISION=1.0

test -d build || { mkdir build ; cd $_ }
curl "https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-${KERNEL_VERSION}.tar.xz" \
	-o "linux-${KERNEL_VERSION}.tar.xz"
tar -xJf "linux-${KERNEL_VERSION}.tar.xz" -C .
cd linux-${KERNEL_VERSION}
cp ../config-${KERNEL_VERSION} .
make olddefconfig
make-kpkg --append-to-version -$PKG_BUILD-$PKG_NAME-$PKG_ARCH --revision $PKG_REVISION \
	--initrd --rootcmd fakeroot --jobs $(nproc) kernel_image modules_image

About

Guest kernel configuration for use in KVM-based virtual machines

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages