From bd3cb03c6f7993050fe21b787e6f6a8595204be2 Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Wed, 15 Sep 2021 02:21:53 +0200 Subject: [PATCH] nixos/docs: document new qemu-vm features --- .../from_md/release-notes/rl-2111.section.xml | 34 +++++++++++++++++++ .../manual/release-notes/rl-2111.section.md | 8 +++++ 2 files changed, 42 insertions(+) diff --git a/nixos/doc/manual/from_md/release-notes/rl-2111.section.xml b/nixos/doc/manual/from_md/release-notes/rl-2111.section.xml index 165c83148e6a..19f852a6e374 100644 --- a/nixos/doc/manual/from_md/release-notes/rl-2111.section.xml +++ b/nixos/doc/manual/from_md/release-notes/rl-2111.section.xml @@ -1020,6 +1020,40 @@ Superuser created successfully. linuxPackages_latest) remain untouched. + + + In NixOS virtual machines (QEMU), the + virtualisation module has been updated with + new options to configure: + + + + + IPv4 port forwarding + (virtualisation.forwardPorts), + + + + + shared host directories + (virtualisation.sharedDirectories), + + + + + screen resolution + (virtualisation.resolution). + + + + + In addition, the default + msize + parameter in 9P filesystems (including /nix/store and all + shared directories) has been increased to 16K for improved + performance. + + The setting diff --git a/nixos/doc/manual/release-notes/rl-2111.section.md b/nixos/doc/manual/release-notes/rl-2111.section.md index 8e7bdbb87440..5661d8cab31e 100644 --- a/nixos/doc/manual/release-notes/rl-2111.section.md +++ b/nixos/doc/manual/release-notes/rl-2111.section.md @@ -310,9 +310,17 @@ To be able to access the web UI this port needs to be opened in the firewall. ## Other Notable Changes {#sec-release-21.11-notable-changes} + - The linux kernel package infrastructure was moved out of `all-packages.nix`, and restructured. Linux related functions and attributes now live under the `pkgs.linuxKernel` attribute set. In particular the versioned `linuxPackages_*` package sets (such as `linuxPackages_5_4`) and kernels from `pkgs` were moved there and now live under `pkgs.linuxKernel.packages.*`. The unversioned ones (such as `linuxPackages_latest`) remain untouched. +- In NixOS virtual machines (QEMU), the `virtualisation` module has been updated with new options to configure: + - IPv4 port forwarding ([`virtualisation.forwardPorts`](options.html#opt-virtualisation.forwardPorts)), + - shared host directories ([`virtualisation.sharedDirectories`](options.html#opt-virtualisation.sharedDirectories)), + - screen resolution ([`virtualisation.resolution`](options.html#opt-virtualisation.resolution)). + + In addition, the default [`msize`](options.html#opt-virtualisation.msize) parameter in 9P filesystems (including /nix/store and all shared directories) has been increased to 16K for improved performance. + - The setting [`services.openssh.logLevel`](options.html#opt-services.openssh.logLevel) `"VERBOSE"` `"INFO"`. This brings NixOS in line with upstream and other Linux distributions, and reduces log spam on servers due to bruteforcing botnets. However, if [`services.fail2ban.enable`](options.html#opt-services.fail2ban.enable) is `true`, the `fail2ban` will override the verbosity to `"VERBOSE"`, so that `fail2ban` can observe the failed login attempts from the SSH logs.