Fix kernel panic on ec2 kvm instances caused by io timeout on nvme root volume

This commit is contained in:
Ihor Antonov 2018-05-02 11:13:13 -04:00 committed by Tuomas Tynkkynen
parent 3fb09ac1de
commit e4777ae2d8

View file

@ -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;