NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.71k stars 13.85k forks source link

Unable to configure SHUTDOWN_TIMEOUT for libvirt-guests service #171618

Open PAI5REECHO opened 2 years ago

PAI5REECHO commented 2 years ago

Describe the bug

5 minutes is a rather long time to wait for guest VMs to shutdown. I'd like to configure my libvirt to reduce the graceful shutdown wait time but it currently isn't possible. https://github.com/NixOS/nixpkgs/blob/602292f93d610fd52e7fa61e30e283123cf38a72/pkgs/development/libraries/libvirt/default.nix#L320-L325 https://github.com/NixOS/nixpkgs/blob/602292f93d610fd52e7fa61e30e283123cf38a72/nixos/modules/virtualisation/libvirtd.nix#L356-L357

Steps To Reproduce

Steps to reproduce the behavior:

  1. Wait for libvirt guest to shutdown
  2. Takes 5 minutes

Expected behavior

Ability to shorten the SHUTDOWN_TIMEOUT time

Notify maintainers

@fpletz @globin @lovesegfault

Metadata

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 5.17.1, NixOS, 22.05 (Quokka), 22.05.20220426.e10da1c`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.9.0pre20220428_4bb111c`
PAI5REECHO commented 2 years ago

Also PARALLEL_SHUTDOWN isn't configurable either

PAI5REECHO commented 1 year ago

Not stale