Skip to content

Commit

Permalink
fix: disable kexec on GCP/Azure
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
smira committed May 31, 2024
1 parent 911c255 commit b0466e0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
}
}

Expand Down

0 comments on commit b0466e0

Please sign in to comment.