fix: disable kexec on GCP/Azure

It looks like VMs might be stuck on kexec, while there's little value in
kexec with VMs.

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
This commit is contained in:
Andrey Smirnov 2024-05-31 18:55:54 +04:00
parent 911c255742
commit b0466e0abf
No known key found for this signature in database
GPG Key ID: FE042E3D4085A811
2 changed files with 6 additions and 0 deletions

View File

@ -223,6 +223,9 @@ func (a *Azure) KernelArgs(string) procfs.Parameters {
procfs.NewParameter("rootdelay").Append("300"),
procfs.NewParameter(constants.KernelParamNetIfnames).Append("0"),
procfs.NewParameter(constants.KernelParamDashboardDisabled).Append("1"),
// disable 'kexec' as Azure VMs sometimes are stuck on kexec, and normal soft reboot
// doesn't take much longer on VMs
procfs.NewParameter("sysctl.kernel.kexec_load_disabled").Append("1"),
}
}

View File

@ -204,6 +204,9 @@ func (g *GCP) KernelArgs(string) procfs.Parameters {
procfs.NewParameter("console").Append("ttyS0"),
procfs.NewParameter(constants.KernelParamNetIfnames).Append("0"),
procfs.NewParameter(constants.KernelParamDashboardDisabled).Append("1"),
// disable 'kexec' as GCP VMs sometimes are stuck on kexec, and normal soft reboot
// doesn't take much longer on VMs
procfs.NewParameter("sysctl.kernel.kexec_load_disabled").Append("1"),
}
}