An installation of nixos with a desktop manager on virtualbox has an unexpected delay when shutting down/rebooting.
Steps To Reproduce
Create a virtualbox machine and follow installation instruction manual normally.
When the time comes to edit the configuration.nix file, uncomment the line boot.loader.grub.device = "/dev/sda"; and the line services.xserver.enable = true;.
Add the line services.xserver.desktopManager.xfce.enable = true;
Continue the installation process.
When it is finished, remove the nixos iso from the machine and reboot.
When lightdm pops up, login as root.
Reboot.
Notice the message A stop job is running for Session 2 of User root (10s / 1min 29s), and how the system will only continue to showdown after the timer has finished.
Expected behavior
Expected for the system to shutdown immediately, without waiting 1min and 30s.
Inspecting the log with journalctl -p5 I was able to find that the stop job was related to the VBoxClient process.
This problem is not present using pkill -9 VBoxClient before rebooting.
This problem is not present when rebooting from lightdm without loging in into xfce.
The problem is still present when using gdm with plasma5.
I experienced this with just a fresh install of nixos 23.11 on vritualbox with kde plasta and systemd+efi options selected - with and without the virtualisation.virtualbox.guest.enable=true; line present.
Describe the bug
An installation of nixos with a desktop manager on virtualbox has an unexpected delay when shutting down/rebooting.
Steps To Reproduce
boot.loader.grub.device = "/dev/sda";
and the lineservices.xserver.enable = true;
.services.xserver.desktopManager.xfce.enable = true;
A stop job is running for Session 2 of User root (10s / 1min 29s)
, and how the system will only continue to showdown after the timer has finished.Expected behavior
Expected for the system to shutdown immediately, without waiting 1min and 30s.
nix-env --version
outputnix-env (Nix) 2.13.5
Metadata
Notify maintainers
@kamadorueda
Additional context
Inspecting the log with
journalctl -p5
I was able to find that the stop job was related to the VBoxClient process. This problem is not present usingpkill -9 VBoxClient
before rebooting.This problem is not present when rebooting from lightdm without loging in into xfce. The problem is still present when using gdm with plasma5.