Blacklist the nouveau driver on EC2
commit4ac280ec49c33abccebeeeb625a941172c08679b
authorEelco Dolstra <eelco.dolstra@logicblox.com>
dateTue 17 Feb 2015, 23:18 (12 years ago)
parent4c125ce
nixos/modules/virtualisation/amazon-image.nix+4
@@ -91,6 +91,10 @@ in
9191 boot.initrd.kernelModules = [ "xen-blkfront" ];
9292 boot.kernelModules = [ "xen-netfront" ];
9393
94+ # Prevent the nouveau kernel module from being loaded, as it
95+ # interferes with the nvidia/nvidia-uvm modules needed for CUDA.
96+ boot.blacklistedKernelModules = [ "nouveau" ];
97+
9498 # Generate a GRUB menu. Amazon's pv-grub uses this to boot our kernel/initrd.
9599 boot.loader.grub.version = if cfg.hvm then 2 else 1;
96100 boot.loader.grub.device = if cfg.hvm then "/dev/xvda" else "nodev";