From owner-freebsd-virtualization@FreeBSD.ORG Wed Apr 4 06:33:20 2012 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9543B1065672 for ; Wed, 4 Apr 2012 06:33:20 +0000 (UTC) (envelope-from neelnatu@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id 4FD018FC0C for ; Wed, 4 Apr 2012 06:33:20 +0000 (UTC) Received: by yhgm50 with SMTP id m50so249711yhg.13 for ; Tue, 03 Apr 2012 23:33:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=qnGWwI18emIplv3r4IvZ5ItlhQmxyfdSRtLBuehKJp8=; b=kEYfIdAohzraQC5IaSyVXhgC6zbMaiN8DnAd4sKT9U9oX1/6Z8p6oG1FBP3H/qWN0+ F7o4XRMr3Ea+4eTIzTP2ZrYsF+MjpUopO2sV3IRrWVFy2ljh4X1STx+ixYYw8gEpQ/9a 7RpYpp/mXDL7tLATZ7tpnimS9K5PQLzIRAmxNvZUqABwQ8pCAt0G0WlMrikHRuZKmwpB U+lCuMpWPGJ4iUqAei/n+lqR0w/gewgvUf0SyQx1xjS7rOyjtRM+aW3OSln59uKcBi3O s2UMYu0qQFdTDj3RDrO9Q2Gf5byAEcXvwsZAAFMDjH9FBIxTkuRirhcfFL/JpDO789yn ckYA== MIME-Version: 1.0 Received: by 10.100.246.16 with SMTP id t16mr4505593anh.3.1333521194693; Tue, 03 Apr 2012 23:33:14 -0700 (PDT) Received: by 10.236.136.234 with HTTP; Tue, 3 Apr 2012 23:33:14 -0700 (PDT) In-Reply-To: References: Date: Tue, 3 Apr 2012 23:33:14 -0700 Message-ID: From: Neel Natu To: Takuya ASADA Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-virtualization@freebsd.org Subject: Re: Howto close BHyVe console X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.5 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, 04 Apr 2012 06:33:20 -0000 Hi Takuya, On Tue, Apr 3, 2012 at 3:39 AM, Takuya ASADA wrote: > Hi, > > Just for a little question, > I could run BHyVe on my PC with neel's guest image by following CFT > page(http://callfortesting.org/bhyve/), it just worked without > problem, but I couldn't shutdown guest OS safely. > shutdown command in guest OS doesn't poweroff the VM, and I have no > idea to close bhyve console. > Is there any shortcut-key or commands to shutdown it? > If you type "quit" or "reboot" at the loader prompt in the guest it will exit with a non-zero exit code. You could modify the script that launches the 'bhyveload' and 'bhyve' programs to quit if the exit code is non-zero. Something like this, perhaps: while [ 1 ]; do # Launch the userboot loader bhyveload ... if [ $? -ne 0 ]; then exit 1 fi # Launch bhyve bhyve ... if [ $? -ne 0 ]; then exit 1 fi done > I also tried vmmctl --vm=3D --destroy, but it suddenly causes pa= nic. > kill && vmmctl --vm=3D --destroy had worked, so I > guess =A0the panic reason is because /usr/sbin/bhyve still holding > /dev/vmm/. > Yup, you got that right. best Neel > Takuya ASADA > _______________________________________________ > freebsd-virtualization@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization > To unsubscribe, send any mail to "freebsd-virtualization-unsubscribe@free= bsd.org"