From 54e7857eaf82bf824ad8d21eadef470c897a642f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Czapli=C5=84ski?= Date: Fri, 24 Mar 2017 18:05:08 +0100 Subject: microsoft/hyper-v: add forgotten overcommit_memory --- microsoft/hyper-v-guest.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'microsoft') diff --git a/microsoft/hyper-v-guest.md b/microsoft/hyper-v-guest.md index 3faa258..f396214 100644 --- a/microsoft/hyper-v-guest.md +++ b/microsoft/hyper-v-guest.md @@ -15,8 +15,11 @@ with cloning the nixos-hardware repo at this stage): # REQUIRED - see: https://github.com/nixos/nixpkgs/issues/9899 boot.initrd.kernelModules = ["hv_vmbus" "hv_storvsc"]; - # OPTIONAL - use 800x600 resolution for text console, to make it easy to fit on screen + # RECOMMENDED + # - use 800x600 resolution for text console, to make it easy to fit on screen boot.kernelParams = ["video=hyperv_fb:800x600"]; # https://askubuntu.com/a/399960 + # - avoid a problem with `nix-env -i` running out of memory + boot.kernel.sysctl."vm.overcommit_memory" = "1"; # https://github.com/NixOS/nix/issues/421 # UNKNOWN - not sure if below are needed; were suggested for VirtualBox and I used them boot.loader.grub.device = "/dev/sda"; -- cgit v1.2.3