Date: Mon, 29 Apr 2019 15:24:08 +0700 From: Victor Sudakov <vas@mpeks.tomsk.su> To: freebsd-virtualization@freebsd.org Subject: Re: [vm-bhyve] shutting down VMs and kern.init_shutdown_timeout Message-ID: <20190429082408.GA84142@admin.sibptus.ru> In-Reply-To: <1DE7A90B-E3AB-4F1E-9A3A-981B18751F8E@punkt.de> References: <20190428044118.GA46284@admin.sibptus.ru> <1DE7A90B-E3AB-4F1E-9A3A-981B18751F8E@punkt.de>
next in thread | previous in thread | raw e-mail | index | archive | help
--SUOF0GtieIMvvwua Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Patrick M. Hausen wrote: >=20 > > Am 28.04.2019 um 06:41 schrieb Victor Sudakov <vas@mpeks.tomsk.su>: > > "if the /etc/rc.shutdown does not terminate within 120 seconds, init wi= ll > > terminate it. The timeout can be configured via the sysctl variable > > kern.init_shutdown_timeout.=E2=80=9C > What=E2=80=99s keeping you from increasing that timeout for your > particular requirements?=20 Is that really necessary? Am I correct assuming that any VM is supposed to shut down within 2 minutes or else the bhyve processes will be killed? Or is this kern.init_shutdown_timeout only about the rc.shutdown script itself and not its children? > IMHO 2 minutes are a reasonable > default for a system that does not run hypervisor VMs - > which is probably the vast majority. >=20 > Anyone with the knowledge to implement a virtualized > environment=20 The lack of information about this caveat in https://wiki.freebsd.org/bhyve, man vm-bhyve, https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/virtualization-h= ost-bhyve.html and other sources suggests that this particular knowledge may be limited. Other hypervisors (non-bhyve) probably wait for all VMs to stop. > can simply set that to a more suitable value, > can=E2=80=99t he/she? Yes if they know about it. There should be a warning somewhere in the documentation if we want to be serious about FreeBSD as a hypervisor. Or better still, a warning that rcshutdown_timeout (if set) and kern.init_shutdown_timeout can be too low when running vm-bhyve and such is desirable. --=20 Victor Sudakov, VAS4-RIPE, VAS47-RIPN 2:5005/49@fidonet http://vas.tomsk.ru/ --SUOF0GtieIMvvwua Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJcxrSoAAoJEA2k8lmbXsY0sKYH/AzVoUXQjHtobAe+SNn68pNT Fe0TdV6b4kr0kIVaGs8b5rT3EijiPx6HCsN/j9WWDGgpcgWSMcyZBSePKtHqtrpV ZZ5mrt8vnvfARJhvbENwU+0TMnCfIW4EJmSDx6j+G5MIBOhS8VMPIl2KZo1AxDWV CX4fLkgL1mVNoOk/UcFqDBMRUWpfafeFB9WWRyTNR9BSdZdi6jM4NQLUApCH42ia pjf98KNhWt+4DEI60QbvMn6mRqXkSHatEnH5QN0arMSSeXMTzbgz2c/kESXzkxKf ykTkcF4BHFbILeAhkbuYtfV8BLIGeX4spokh88jMXKQxGnZjRwTCHGboYzbKKw8= =nxTs -----END PGP SIGNATURE----- --SUOF0GtieIMvvwua--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20190429082408.GA84142>