Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Aug 2014 01:04:07 +0000 (UTC)
From:      Craig Rodrigues <rodrigc@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r270512 - head/share/examples/bhyve
Message-ID:  <201408250104.s7P147Si040287@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rodrigc
Date: Mon Aug 25 01:04:07 2014
New Revision: 270512
URL: http://svnweb.freebsd.org/changeset/base/270512

Log:
  Add comment which describes the exit status codes returned from
  /usr/sbin/bhyve.  These are in src/usr.sbin/bhyve/bhyverun.c.
  
  Reviewed by: neel

Modified:
  head/share/examples/bhyve/vmrun.sh

Modified: head/share/examples/bhyve/vmrun.sh
==============================================================================
--- head/share/examples/bhyve/vmrun.sh	Mon Aug 25 00:58:20 2014	(r270511)
+++ head/share/examples/bhyve/vmrun.sh	Mon Aug 25 01:04:07 2014	(r270512)
@@ -237,6 +237,14 @@ while [ 1 ]; do
 		-l com1,${console}					\
 		${installer_opt}					\
 		${vmname}
+
+	# bhyve returns the following status codes:
+	#  0 - VM has been reset
+	#  1 - VM has been powered off
+	#  2 - VM has been halted
+	#  3 - VM generated a triple fault
+	#  all other non-zero status codes are errors
+	#
 	if [ $? -ne 0 ]; then
 		break
 	fi



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201408250104.s7P147Si040287>