git.iko.soy/typeable/nixpkgs
on master help sign in
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 (5a8147479e794d5932273d01790c3602b8abeedc). Nothing worked so I'm giving up.

commitfbe6d23624b0b62cb5754d37ab81007cd4c035ab authorEelco Dolstra <edolstra@gmail.com> dateMon 3 Apr 2017, 17:03 (10 years ago) parente6faf2a
2 files changed+13−8
nixos/maintainers/scripts/ec2/create-amis.sh+6−7 nixos/modules/virtualisation/amazon-options.nix+7−1
nixos/maintainers/scripts/ec2/create-amis.sh+6−7
@@ -3,21 +3,20 @@
33
44# To start with do: nix-shell -p awscli --run "aws configure"
55
6−
6+set -e
77set -o pipefail
8−#set -x
9−
10−stateDir=${TMPDIR:-/tmp}/ec2-image
11−echo "keeping state in $stateDir"
12−mkdir -p $stateDir
138
149version=$(nix-instantiate --eval --strict '<nixpkgs>' -A lib.nixpkgsVersion | sed s/'"'//g)
1510major=${version:0:5}
1611echo "NixOS version is $version ($major)"
1712
13+stateDir=/var/tmp/ec2-image-$version
14+echo "keeping state in $stateDir"
15+mkdir -p $stateDir
16+
1817rm -f ec2-amis.nix
1918
20−types="hvm pv"
19+types="hvm"
2120stores="ebs s3"
2221regions="eu-west-1 eu-west-2 eu-central-1 us-east-1 us-east-2 us-west-1 us-west-2 ca-central-1 ap-southeast-1 ap-southeast-2 ap-northeast-1 ap-northeast-2 sa-east-1 ap-south-1"
2322
nixos/modules/virtualisation/amazon-options.nix+7−1
@@ -12,5 +12,11 @@
1212 };
1313 };
1414
15− config = {};
15+ config = {
16+ assertions = [
17+ { assertion = config.ec2.hvm;
18+ message = "Paravirtualized EC2 instances are no longer supported.";
19+ }
20+ ];
21+ };
1622}