mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 13:40:28 +03:00
Fix kernel panic on ec2 kvm instances caused by io timeout on nvme root volume
This commit is contained in:
parent
3fb09ac1de
commit
e4777ae2d8
1 changed files with 5 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue