Fix kernel panic on ec2 kvm instances caused by io timeout on nvme root volume
This commit is contained in:
parent
3fb09ac1de
commit
e4777ae2d8
@ -8,6 +8,11 @@ in {
|
||||
|
||||
imports = [ ../../../modules/virtualisation/amazon-image.nix ];
|
||||
|
||||
# Required to avoid kernel panics on KVM instances where nvme volume availability can get delayed
|
||||
# https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/nvme-ebs-volumes.html#timeout-nvme-ebs-volumes
|
||||
# TODO change value to 4294967295 when kernel is updated to 4.15 or later
|
||||
config.boot.kernelParams = [ "nvme_core.io_timeout=255" ];
|
||||
|
||||
options.amazonImage = {
|
||||
name = mkOption {
|
||||
type = types.str;
|
||||
|
Loading…
Reference in New Issue
Block a user