From owner-freebsd-virtualization@FreeBSD.ORG Tue Aug 19 16:32:37 2014 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 80AA5D0B; Tue, 19 Aug 2014 16:32:37 +0000 (UTC) Received: from mail-lb0-x235.google.com (mail-lb0-x235.google.com [IPv6:2a00:1450:4010:c04::235]) (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 D06E23390; Tue, 19 Aug 2014 16:32:36 +0000 (UTC) Received: by mail-lb0-f181.google.com with SMTP id 10so5586407lbg.26 for ; Tue, 19 Aug 2014 09:32:34 -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=ABDiNtGTj8xUm9n2DeJHwaucojUYt6msPUjeFNfUuvk=; b=Mp/jAVS/JYdOTbEYa/E+U5cgAVwM1+OPrN78EsKfInvdZQsdXADv09rkOsd94+K2nR COkQZBDdFy/tUGOv2r7c3Qgjn+oaiJMEev6lxeSCEM5Imi4Xf88e3F3oxbNei1XdMXks frKfvNSFrIsntyT0PoXne1kWBVvYPJUtfV6Cyzcp/JyEFDRvBQoTSSsVsqLKGRH9M1Vp ObI5hvTfxl5CYa8wMwOHLhPjaHZMB2UZ6M9gigyXLYIB9eQFHnb8wiSK6ZFpYggcgpDe +jZLZccPYI5RTBT6VqyZgEB2ieIBZyr9dXnZnL3Lqx45ioHN/WJ/QHmO+d2tCOSCdbqn E4XQ== MIME-Version: 1.0 X-Received: by 10.112.114.202 with SMTP id ji10mr10308338lbb.92.1408465954739; Tue, 19 Aug 2014 09:32:34 -0700 (PDT) Sender: crodr001@gmail.com Received: by 10.112.197.107 with HTTP; Tue, 19 Aug 2014 09:32:34 -0700 (PDT) In-Reply-To: <53F37A6F.90405@freebsd.org> References: <20140819154035.GA62903@kloomba> <53F37A6F.90405@freebsd.org> Date: Tue, 19 Aug 2014 09:32:34 -0700 X-Google-Sender-Auth: eEAJ3SnLFZqz54Zj_kfgvzGPOH8 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 16:32:37 -0000 On Tue, Aug 19, 2014 at 9:25 AM, Allan Jude wrote: > > Yes, this revision adds the ability to 'reboot'. This does not exit > bhyve at all, so there is no exit level > > You can 'reboot' a bhyve externally using: > bhyvectl --force-reset --vm=xxx > > or force a poweroff with: bhyvectl --force-reset --vm=xxx > > SIGTERM simulates an ACPI shutdown > > > the bhyvectl --destroy is to clean up, the instance remains even after a > clean shutdown. In the past, it had to be destroyed and recreated to > start the VM again, although now with reboot support, that may not be > required. Can you suggest patches to vmrun.sh to make these new behaviors more obvious? People who write scripts over bhyve often look at vmrun.sh for inspiration. These new behaviors are definitely going in the right direction. -- Craig