[SOLVED] LM 19 long shutdown times in VM

Questions about other topics - please check if your question fits better in another category before posting here
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
User avatar
windyweather
Level 3
Level 3
Posts: 174
Joined: Wed Nov 09, 2011 8:34 pm
Location: Coos Bay, OR

[SOLVED] LM 19 long shutdown times in VM

Post by windyweather »

LM 19 in VirtualBox VM is taking a very long time to shut down. LM 18.x shuts down instantly.

Host: Win 10, Ryzen 7 1800x, 32GB, SSD - Virtual Disk on SSD too.

[SOLVED] sort of. All this is new behavior in LM 19. Read on for the solution.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 4 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
[Systems include LM 20 in VirtualBox / Win 10 Host on AMD Ryzen 3800x / AsRock A300 Ryzen 3200G]
kukamuumuka

Re: LM 19 long shutdown times in VM

Post by kukamuumuka »

Slow shutdown fix in Mint 19 -> viewtopic.php?f=42&p=1522133#p1522131
User avatar
windyweather
Level 3
Level 3
Posts: 174
Joined: Wed Nov 09, 2011 8:34 pm
Location: Coos Bay, OR

Thanks

Post by windyweather »

Who knew.. Intentionally added? :roll:

Editing system.conf does eventually fix it. Uncomment the the line and change the time to 5 sec which ought to be plenty since this system lives on an ssd virtual disk on a very fast machine.

Code: Select all

$sudo xed /etc/systemd/system.conf
xxx

find the line below and remove # and edit time from 90s to 5s

DefaultTimeoutStopSec=5s
And the system still waits a long long time before shutting down the first time you shut down.

Oh. Wait. It does work. Just not the first time after you edit the file. So you edit the system.conf file and make the stop time 5sec. Then you shut down and it still takes 90 sec. But the next time you use the VM, the shut down is 5 sec. So apparently the conf file was read at start up and not read again just before shutdown. Lived inside the systemd process all that time I assume. :roll:

So all of this is new behavior in LM 19. Never used to do this in previous versions.
Thanks. ww
[Systems include LM 20 in VirtualBox / Win 10 Host on AMD Ryzen 3800x / AsRock A300 Ryzen 3200G]
Locked

Return to “Other topics”