From owner-freebsd-virtualization@freebsd.org Sun Apr 28 04:41:20 2019 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 47FB81571D44 for ; Sun, 28 Apr 2019 04:41:20 +0000 (UTC) (envelope-from vas@mpeks.tomsk.su) Received: from admin.sibptus.ru (admin.sibptus.ru [IPv6:2001:19f0:5001:21dc::10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B0D1583B09 for ; Sun, 28 Apr 2019 04:41:19 +0000 (UTC) (envelope-from vas@mpeks.tomsk.su) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sibptus.ru; s=20181118; h=Message-ID:Subject:To:From:Date:In-Reply-To; bh=W/lfflfF1874GaVYTQ4wz1pvNnjmE4ebzGOFV9EHnLE=; b=hzapJ7TYH5Hs6r2jfr5VA7u/4K PmifB3JWQqt671qpg6pDTHj0XM4pp87GVKm9AuhWeajSOIeYn35x5YaIoWYPwEySS9fTY9wjSQWWg 6ukWZ/4QeofoZS0UTgJ7XR1nICqm8Nn7IQtUlbtGNYGNo+63m1s8fbgT115sXCiOiQ3E=; Received: from vas by admin.sibptus.ru with local (Exim 4.92 (FreeBSD)) (envelope-from ) id 1hKbcs-000C6i-2D for freebsd-virtualization@freebsd.org; Sun, 28 Apr 2019 11:41:18 +0700 Date: Sun, 28 Apr 2019 11:41:18 +0700 From: Victor Sudakov To: freebsd-virtualization@freebsd.org Subject: [vm-bhyve] shutting down VMs and kern.init_shutdown_timeout Message-ID: <20190428044118.GA46284@admin.sibptus.ru> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="RnlQjJ0d97Da+TV1" Content-Disposition: inline X-PGP-Key: http://www.dreamwidth.org/pubkey?user=victor_sudakov X-PGP-Fingerprint: 10E3 1171 1273 E007 C2E9 3532 0DA4 F259 9B5E C634 User-Agent: Mutt/1.11.4 (2019-03-13) Sender: Victor Sudakov X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Apr 2019 04:41:20 -0000 --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--