summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/vmctl/main.c3
-rw-r--r--usr.sbin/vmctl/vmctl.88
2 files changed, 8 insertions, 3 deletions
diff --git a/usr.sbin/vmctl/main.c b/usr.sbin/vmctl/main.c
index 329504638e3..8a44bd568d4 100644
--- a/usr.sbin/vmctl/main.c
+++ b/usr.sbin/vmctl/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.34 2018/01/03 05:39:56 ccardenas Exp $ */
+/* $OpenBSD: main.c,v 1.35 2018/02/24 10:39:35 phessler Exp $ */
/*
* Copyright (c) 2015 Reyk Floeter <reyk@openbsd.org>
@@ -68,6 +68,7 @@ struct ctl_command ctl_commands[] = {
{ "log", CMD_LOG, ctl_log, "(verbose|brief)" },
{ "reload", CMD_RELOAD, ctl_reload, "" },
{ "reset", CMD_RESET, ctl_reset, "[all|vms|switches]" },
+ { "show", CMD_STATUS, ctl_status, "[id]" },
{ "start", CMD_START, ctl_start, "\"name\""
" [-Lc] [-b image] [-r image] [-m size]\n"
"\t\t[-n switch] [-i count] [-d disk]*" },
diff --git a/usr.sbin/vmctl/vmctl.8 b/usr.sbin/vmctl/vmctl.8
index 23661d47bbf..5639b97dbdb 100644
--- a/usr.sbin/vmctl/vmctl.8
+++ b/usr.sbin/vmctl/vmctl.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: vmctl.8,v 1.37 2018/01/03 08:17:18 jmc Exp $
+.\" $OpenBSD: vmctl.8,v 1.38 2018/02/24 10:39:35 phessler Exp $
.\"
.\" Copyright (c) 2015 Mike Larkin <mlarkin@openbsd.org>
.\"
@@ -14,7 +14,7 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: January 3 2018 $
+.Dd $Mdocdate: February 24 2018 $
.Dt VMCTL 8
.Os
.Sh NAME
@@ -143,6 +143,10 @@ with '.', '-' or '_'.
.It Cm status Op Ar id
Lists VMs running on the host, optionally listing just the selected VM
.Ar id .
+.It Cm show Op Ar id
+An alias for the
+.Cm status
+command.
.It Cm stop Ar id
Stops (terminates) a VM defined by the specified VM
.Ar id .