Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions lib/system/versions.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,31 @@ const (
// Kernel_202601152 is the previous kernel version with vGPU support
Kernel_202601152 KernelVersion = "ch-6.12.8-kernel-1.3-202601152"

// Kernel_202602101 is the current kernel version with overlayfs redirect_dir and index support
// Kernel_202602101 is the previous kernel version with overlayfs redirect_dir and index support
Kernel_202602101 KernelVersion = "ch-6.12.8-kernel-1.4-202602101"

// Kernel_202603091 is the current kernel version with iptables filter/xt match support for nested Hypeman networking
Kernel_202603091 KernelVersion = "ch-6.12.8-kernel-1.5-202603091"
)

var (
// DefaultKernelVersion is the kernel version used for new instances
DefaultKernelVersion = Kernel_202602101
DefaultKernelVersion = Kernel_202603091

// SupportedKernelVersions lists all supported kernel versions
SupportedKernelVersions = []KernelVersion{
Kernel_202603091,
Kernel_202602101,
Kernel_202601152,
}
)

// KernelDownloadURLs maps kernel versions and architectures to download URLs
var KernelDownloadURLs = map[KernelVersion]map[string]string{
Kernel_202603091: {
"x86_64": "https://github.com/kernel/linux/releases/download/ch-6.12.8-kernel-1.5-202603091/vmlinux-x86_64",
"aarch64": "https://github.com/kernel/linux/releases/download/ch-6.12.8-kernel-1.5-202603091/Image-arm64",
},
Kernel_202602101: {
"x86_64": "https://github.com/kernel/linux/releases/download/ch-6.12.8-kernel-1.4-202602101/vmlinux-x86_64",
"aarch64": "https://github.com/kernel/linux/releases/download/ch-6.12.8-kernel-1.4-202602101/Image-arm64",
Expand All @@ -39,6 +47,10 @@ var KernelDownloadURLs = map[KernelVersion]map[string]string{
// KernelHeaderURLs maps kernel versions and architectures to kernel header tarball URLs
// These tarballs contain kernel headers needed for DKMS to build out-of-tree modules (e.g., NVIDIA vGPU drivers)
var KernelHeaderURLs = map[KernelVersion]map[string]string{
Kernel_202603091: {
"x86_64": "https://github.com/kernel/linux/releases/download/ch-6.12.8-kernel-1.5-202603091/kernel-headers-x86_64.tar.gz",
"aarch64": "https://github.com/kernel/linux/releases/download/ch-6.12.8-kernel-1.5-202603091/kernel-headers-aarch64.tar.gz",
},
Kernel_202602101: {
"x86_64": "https://github.com/kernel/linux/releases/download/ch-6.12.8-kernel-1.4-202602101/kernel-headers-x86_64.tar.gz",
"aarch64": "https://github.com/kernel/linux/releases/download/ch-6.12.8-kernel-1.4-202602101/kernel-headers-aarch64.tar.gz",
Expand Down