diff options
author | Mateusz Czapliński <czapkofan@gmail.com> | 2017-03-24 18:05:08 +0100 |
---|---|---|
committer | Mateusz Czapliński <czapkofan@gmail.com> | 2017-03-24 18:05:08 +0100 |
commit | 54e7857eaf82bf824ad8d21eadef470c897a642f (patch) | |
tree | 769a838bf79376ff703fcff4b21769498deddad8 /microsoft | |
parent | 6874b73d558267db0056d7f406a411b0f2954913 (diff) |
microsoft/hyper-v: add forgotten overcommit_memory
Diffstat (limited to 'microsoft')
-rw-r--r-- | microsoft/hyper-v-guest.md | 5 |
1 files changed, 4 insertions, 1 deletions
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"; |