[plug] Systemd in VMs
Brad Campbell
brad at fnarfbargle.com
Tue Nov 19 16:10:31 AWST 2024
Just another "I got bitten".
I have a small stack of VMs that run on our main VHost here. Most of them are Devuan, a couple are various versions of Windows and there's 2 Ubuntu machines.
The Ubuntu machines are untouched and therefore based on systemd.
Due to "legacy" on shutdown the host iteratively sshs into each VM and performs an '/sbin/poweroff' to cleanly stop the VMs before putting a virtual axe through them. This has been the way it's worked for >10 or so years. The Ubuntu VMs are "relatively" new. With those, '/sbin/poweroff' shuts the VM down, but does it by forcibly and unceremoniously terminating all running processes. This makes for a nice quick shutdown, but leaves databases in various states of "broken" because nothing has a chance to shut down "cleanly".
These needed their shutdown command changed from '/sbin/poweroff' to 'systemctl poweroff' to prevent them corrupting stuff on shutdown.
I suppose like all systemd breakages I must have missed the memo and therefore it's my fault things no longer work the way they have since forever.
Grumble...
Brad
--
An expert is a person who has found out by his own painful
experience all the mistakes that one can make in a very
narrow field. - Niels Bohr
More information about the plug
mailing list