From owner-freebsd-virtualization@FreeBSD.ORG Wed May 27 01:14:07 2015 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D204348B for ; Wed, 27 May 2015 01:14:07 +0000 (UTC) (envelope-from crodr001@gmail.com) Received: from mail-la0-x229.google.com (mail-la0-x229.google.com [IPv6:2a00:1450:4010:c03::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 568D3C05 for ; Wed, 27 May 2015 01:14:07 +0000 (UTC) (envelope-from crodr001@gmail.com) Received: by lalw1 with SMTP id w1so11699068lal.0 for ; Tue, 26 May 2015 18:14:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:content-type; bh=JtKME1Y8Vs2Bnk6TyWbnxqOzRN8HhBeTa1HZJ3rkeBo=; b=ETJ9XZnKnkU+dHpN1nsdeb1axQ14fH2ac6Po7rWWAEDkEzATqB7dAFEkIUMT+p0scF WEABSz1nVPHKXCPXQZlZloLMKbTbAkqQdc1RrgdfcLL4M6C6G9r7/RpIi5lOEbFuCoCj D6aCeMt8HDptfKLUd5oqmB+tdLGoGAiclYAUFll4lPLsvquj+RYvIKugSXAkjQ1ngzRx NhFEMgMIleQA3HqLIs6Ai3EkSV4vDqLwvqnOQ/gAM33L3cLiBLEzhzUWxk8IDSp6p+9l ykm59UXO/EfWQIauGmQkjfs0vhFdwzWgI1qacxlNryKoLq8KysKOFXTuBoyfc0M21Otv 0veQ== MIME-Version: 1.0 X-Received: by 10.152.3.130 with SMTP id c2mr25856295lac.81.1432689245564; Tue, 26 May 2015 18:14:05 -0700 (PDT) Sender: crodr001@gmail.com Received: by 10.112.164.38 with HTTP; Tue, 26 May 2015 18:14:05 -0700 (PDT) In-Reply-To: <20150525030835.GB37063@funkthat.com> References: <5562755C.8090407@redbarn.org> <20150525030835.GB37063@funkthat.com> Date: Tue, 26 May 2015 18:14:05 -0700 X-Google-Sender-Auth: O43buIBIbwF6W09EM32vQwYx07o Message-ID: Subject: Re: can we get some interaction between halt/reboot and bhyve? From: Craig Rodrigues To: "freebsd-virtualization@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.20 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: Wed, 27 May 2015 01:14:08 -0000 On Sun, May 24, 2015 at 8:08 PM, John-Mark Gurney wrote: > > Shouldn't shutdown be used instead of reboot/halt? This allows > various rc.d scripts to run, and you can use that to make sure all > your bhyve instances are shutdown... > I wrote these rc.d scripts to start and stop bhyve VM's, so that on system shutdown, all bhyve instances started with these scripts are shutdown: https://github.com/freebsd/freebsd-ci/tree/master/vm/scripts/ I haven't tried them, but Michael Dexter has written more comprehensive rc.d scripts from bhyve: http://vmrc.bsd.lv/ rc.d scripts work well if you can live with the normal shutdown process invoking rc.d scripts. For my uses, I can live with shutdown and rc.d. If you want to halt/reboot/poweroff, then you still have the original problem that Paul pointed out. -- Craig