summaryrefslogtreecommitdiffstats
path: root/share/examples
diff options
context:
space:
mode:
authorrodrigc <rodrigc@FreeBSD.org>2014-08-25 01:04:07 +0000
committerrodrigc <rodrigc@FreeBSD.org>2014-08-25 01:04:07 +0000
commit41670b8e382c4161b594d684b7e4f899708e41f1 (patch)
tree6c775e7c94b92035c43620fd0e3f576add91c1ee /share/examples
parentfc64f53e41d2abe1deec93eaf6bdc59ede68e28b (diff)
downloadFreeBSD-src-41670b8e382c4161b594d684b7e4f899708e41f1.zip
FreeBSD-src-41670b8e382c4161b594d684b7e4f899708e41f1.tar.gz
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
Diffstat (limited to 'share/examples')
-rwxr-xr-xshare/examples/bhyve/vmrun.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/share/examples/bhyve/vmrun.sh b/share/examples/bhyve/vmrun.sh
index 33d0db9..3fd3300 100755
--- a/share/examples/bhyve/vmrun.sh
+++ b/share/examples/bhyve/vmrun.sh
@@ -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
OpenPOWER on IntegriCloud