Date: Sun, 28 Apr 2019 11:41:18 +0700 From: Victor Sudakov <vas@mpeks.tomsk.su> To: freebsd-virtualization@freebsd.org Subject: [vm-bhyve] shutting down VMs and kern.init_shutdown_timeout Message-ID: <20190428044118.GA46284@admin.sibptus.ru>
next in thread | raw e-mail | index | archive | help
--RnlQjJ0d97Da+TV1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Dear Colleagues, The shutdown of vm-bhyve (and probably other bhyve-based VM managers) is commanded by "service vm shutdown." From man init(8) I've learned that "if the /etc/rc.shutdown does not terminate within 120 seconds, init will terminate it. The timeout can be configured via the sysctl variable kern.init_shutdown_timeout." Does that mean that any VM is supposed to shut down within 2 minutes in a default FreeBSD host system (in reality probably even less), or else the bhyve process will be mercilessly killed?=20 This is completely unsuitable for Windows guests who may take a considerable longer time to shutdown. Even in my FreeBSD guests I occasionally find the message that "root was not properly dismounted." Can something be done about this? What about CBSD, FreeNAS and other more specialized FreeBSD-based systems, what do they do about VM shutdown? Or I may be assuming incorrectly about the 2 minutes timeout. Please correct me then. --=20 Victor Sudakov, VAS4-RIPE, VAS47-RIPN 2:5005/49@fidonet http://vas.tomsk.ru/ --RnlQjJ0d97Da+TV1 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJcxS7uAAoJEA2k8lmbXsY0aBwIAJixTcKJlxv3AK5MvmT1h+ZR vAzA6h1MKS3+4ZO/Fs9Vil5/tA4ITF+ONpCLnHqdYUS9//HabmZEMlNclCD0crbs V3T5mGny+GsoSQGXwl95ohQH4tojXcKf9cqZhTRIKl0xS90Z1CXiSKNBQR5iYYPh 7sV/VR+ZgeAE3eNlHmBzHeUyVrndtYJavN3zbnOVtIH9Gl+y/dUXi1ci0QbZ8VDp IRm8ItFOXNMu6J4VxljHKBjzvI/N6z/WQqUzgadmcVM6OpTut2vBc3+x/YfnRwg5 2LQIMyc/TenhpjYu4lmjzXJXpl/Llp0XtjX97PPIulMXsSK5fb+AQw98V4YQaYc= =ZbKa -----END PGP SIGNATURE----- --RnlQjJ0d97Da+TV1--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20190428044118.GA46284>