From owner-freebsd-virtualization@freebsd.org Thu Apr 25 04:10:30 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 7F296158B449 for ; Thu, 25 Apr 2019 04:10:30 +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 754248EEFC for ; Thu, 25 Apr 2019 04:10:29 +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=In-Reply-To:Message-ID:Subject:To:From:Date; bh=/8+JoaqvVArWILrXtMsw/yJLn5q+YjtGhxfp2J2290E=; b=FhvpHUQboC0uRYTtgU2c1Gsm6r 5UpdQUsYARC7umsrY0UhpvBcyCHAXHWMIQMs3BkvBQAIb4w3z98JSH+W4xWUMJ6gYP/BXgbKiunL0 jnfdex3+7eQEdofkTL6DqzI8lghN+kPn8j6v/CAsQQntfb8veaQYf1fOJzYtJ3W2cocg=; Received: from vas by admin.sibptus.ru with local (Exim 4.92 (FreeBSD)) (envelope-from ) id 1hJViO-000DA5-8G for freebsd-virtualization@freebsd.org; Thu, 25 Apr 2019 11:10:28 +0700 Date: Thu, 25 Apr 2019 11:10:28 +0700 From: Victor Sudakov To: freebsd-virtualization@freebsd.org Subject: Re: [vm-bhyve] Windows 2012 and 2016 servers guests would not stop Message-ID: <20190425041028.GA50526@admin.sibptus.ru> References: <20190421045143.GA49101@admin.sibptus.ru> <20190424043656.GA25754@admin.sibptus.ru> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="qDbXVdCdHGoSgWSk" Content-Disposition: inline In-Reply-To: <20190424043656.GA25754@admin.sibptus.ru> 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: Thu, 25 Apr 2019 04:10:30 -0000 --qDbXVdCdHGoSgWSk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Victor Sudakov wrote: >=20 > For the present I think I've found a workaround not directly related to > vm-bhyve. I'm going to insert "service vm stop" into the doshutdown() > procedure in /usr/local/etc/apcupsd/apccontrol before the actual > ${SHUTDOWN}. It should give the VMs sufficient time to shutdown before > the actual /sbin/shutdown is executed. The workaround turned out useless: apcupsd sends the "kill power" command to the UPS before calling the doshutdown() procedure. F*ck, is there no correct, generally accepted way of powering off a busy FreeBSD server? Why am I inventing the wheel? > > If you know of a better way to configure apcupsd so that it powers down > > the UPS only after all the guest OSes and other daemons are safely down, > > I'd appreciate that too. --=20 Victor Sudakov, VAS4-RIPE, VAS47-RIPN 2:5005/49@fidonet http://vas.tomsk.ru/ --qDbXVdCdHGoSgWSk Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJcwTM0AAoJEA2k8lmbXsY0meYIALT5+1AeLBak/KOGr52fqMfA vNRy3S8zJj73MQwhDE5T6f6mz+ABrRbbQipXQWw590Pdd3n3dlM5Psj4UCuNddBN bD+PQixgStK+ZLHRJMD+Gh4OAR2Y8EzIp/N+LaJrHdg8s4MppWpcBGmcBuVUsaxQ U+9IwC1JQNPR8O67s0Zda3K/Nbf+9gO6tmUsIF44BfU6Snh6wLwB8Ya8lcS9dMkV cPIDY78FfCx8ZokreWbiHmkfxAv+awJZMHnwIzYQ+uQS2n8VRUuZtHmBuNpvssSK nWu5SaYXB6LF5dBreXjHHuhfoTxs7y3qLjxsxMMtenYPLxojP0x7vXeJJCOonPI= =adyu -----END PGP SIGNATURE----- --qDbXVdCdHGoSgWSk--