[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 please read how to get help
Post Reply
User avatar
windyweather
Level 3
Level 3
Posts: 141
Joined: Wed Nov 09, 2011 8:34 pm
Location: Coos Bay, OR

[SOLVED] LM 19 long shutdown times in VM

Post by windyweather » Fri Sep 07, 2018 2:10 pm

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 windyweather on Sat Sep 08, 2018 9:13 pm, edited 3 times in total.
[LM 18, LM 19 in VirtualBox / Windows 10 Host on AMD Ryzen 1800x, 32GB, 1TB of SSDs]


User avatar
windyweather
Level 3
Level 3
Posts: 141
Joined: Wed Nov 09, 2011 8:34 pm
Location: Coos Bay, OR

Thanks

Post by windyweather » Sat Sep 08, 2018 8:48 pm

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
[LM 18, LM 19 in VirtualBox / Windows 10 Host on AMD Ryzen 1800x, 32GB, 1TB of SSDs]

Post Reply

Return to “Other topics”