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.
[SOLVED] LM 19 long shutdown times in VM
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
- windyweather
- Level 3
- Posts: 174
- Joined: Wed Nov 09, 2011 8:34 pm
- Location: Coos Bay, OR
[SOLVED] LM 19 long shutdown times in VM
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.
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]
Re: LM 19 long shutdown times in VM
Slow shutdown fix in Mint 19 -> viewtopic.php?f=42&p=1522133#p1522131
- windyweather
- Level 3
- Posts: 174
- Joined: Wed Nov 09, 2011 8:34 pm
- Location: Coos Bay, OR
Thanks
Who knew.. Intentionally added?
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.
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.
So all of this is new behavior in LM 19. Never used to do this in previous versions.
Thanks. ww
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
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.
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]