nixpkgs/nixos/modules/virtualisation/amazon-options.nix
Eelco Dolstra fbe6d23624
EC2: Disable PV support
Unfortunately, somewhere between 16.09 and 17.03, paravirtualized
instances stopped working. They hang at the pv-grub prompt
("grubdom>"). I tried reverting to a 4.4 kernel, reverting kernel
compression from xz to bzip2 (even though pv-grub is supposed to
support xz), and reverting the only change to initrd generation
(5a8147479e). Nothing worked so I'm
giving up.
2017-04-03 17:46:34 +02:00

23 lines
412 B
Nix

{ config, lib, pkgs, ... }:
{
options = {
ec2 = {
hvm = lib.mkOption {
default = false;
internal = true;
description = ''
Whether the EC2 instance is a HVM instance.
'';
};
};
};
config = {
assertions = [
{ assertion = config.ec2.hvm;
message = "Paravirtualized EC2 instances are no longer supported.";
}
];
};
}