From owner-freebsd-virtualization@FreeBSD.ORG Tue Aug 19 19:44:44 2014 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DA0241C9; Tue, 19 Aug 2014 19:44:44 +0000 (UTC) Received: from mail-lb0-x22b.google.com (mail-lb0-x22b.google.com [IPv6:2a00:1450:4010:c04::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 36BFB3848; Tue, 19 Aug 2014 19:44:44 +0000 (UTC) Received: by mail-lb0-f171.google.com with SMTP id l4so5973590lbv.16 for ; Tue, 19 Aug 2014 12:44:42 -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:cc:content-type; bh=8a9bQp3vzd4glrMccUe8R3J6wqcDHS5Y8KKQMPbemLc=; b=QXlmTpLH6a7SxOVx7EBV1jr46typlsW7hToXItsLHajh+k10FwAEcOjSifkDwQI+ae s8+AQwyuDAvmRBPO+C3vOY8huwELhgyaHQ6GTjl3Ua+Sbca01qqyzbgqLx5wHBRImhJ7 IGwE2A9mcjS29vkJFrXBTfbkTs9nK8S+ISshoTE5W5hKUS7t2Ihos5hVhRY0Dl7Ws6pg KoJMa2CxqgawFXXhhnij6ZjiRbCc8CCwhHC+OkSh4BL2wXawMcORVG3woTQ0B00MKD7Z IyjyEYueJ6fOrETvzwrX2fISWEAJ8o8Mx6rLtYp/Wa8ws390oLcvxlp/B7tfGERogtkI UTmA== MIME-Version: 1.0 X-Received: by 10.152.229.133 with SMTP id sq5mr37758055lac.67.1408477482139; Tue, 19 Aug 2014 12:44:42 -0700 (PDT) Sender: crodr001@gmail.com Received: by 10.112.197.107 with HTTP; Tue, 19 Aug 2014 12:44:42 -0700 (PDT) In-Reply-To: <53F3A2FF.3070600@freebsd.org> References: <20140819154035.GA62903@kloomba> <53F37A6F.90405@freebsd.org> <53F3A2FF.3070600@freebsd.org> Date: Tue, 19 Aug 2014 12:44:42 -0700 X-Google-Sender-Auth: l8TNNlr-PSAlBhgezTo1dZZdqpU Message-ID: Subject: Re: libvirt and rebooting of a bhyve VM From: Craig Rodrigues To: Allan Jude Content-Type: text/plain; charset=ISO-8859-1 Cc: "freebsd-virtualization@freebsd.org" X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.18-1 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: Tue, 19 Aug 2014 19:44:44 -0000 On Tue, Aug 19, 2014 at 12:18 PM, Allan Jude wrote: > > The name of the vm is in the title of the bhyve process, but yes, it Hmm, OK, that would require me to grep the processes and send SIGTERM to the right pid. That's not ideal, especially if I start lots of VM's, but it is workable. > would be nice to expose the ACPI style shutdown via bhyvectl > --graceful-shutdown or something Yes, it would. > > The question is, inside the while loop, after bhyve exits, does > /dev/vmm/ still exist? Yes, /dev/vmm/ still exists when bhyve exists, no matter if it is a "shutdown -r" , or "shutdown -p". -- Craig