diff options
author | kn <kn@cvs.openbsd.org> | 2019-03-18 20:27:13 +0000 |
---|---|---|
committer | kn <kn@cvs.openbsd.org> | 2019-03-18 20:27:13 +0000 |
commit | 895342f95f7da02f950bdba0f9a4f44e504e00ad (patch) | |
tree | 6bae27cfda96ee90497413e158073129489dabcf /usr.sbin/vmctl | |
parent | 37c80c14c48ea9d0d0970ba563754a1f48d8bd33 (diff) |
An existing VM may be started by referencing its ID
Document `vmctl start id ...' again but be clear about the difference
between starting new and existing VMs by name and ID respectively. This
completes what I started with vmctl.8 revision 1.61.
Feedback and OK jmc
Diffstat (limited to 'usr.sbin/vmctl')
-rw-r--r-- | usr.sbin/vmctl/main.c | 4 | ||||
-rw-r--r-- | usr.sbin/vmctl/vmctl.8 | 12 |
2 files changed, 10 insertions, 6 deletions
diff --git a/usr.sbin/vmctl/main.c b/usr.sbin/vmctl/main.c index 600e2efe4bd..7065e690889 100644 --- a/usr.sbin/vmctl/main.c +++ b/usr.sbin/vmctl/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.54 2019/03/01 12:47:36 kn Exp $ */ +/* $OpenBSD: main.c,v 1.55 2019/03/18 20:27:12 kn Exp $ */ /* * Copyright (c) 2015 Reyk Floeter <reyk@openbsd.org> @@ -81,7 +81,7 @@ struct ctl_command ctl_commands[] = { { "reset", CMD_RESET, ctl_reset, "[all | switches | vms]" }, { "send", CMD_SEND, ctl_send, "id", 1}, { "show", CMD_STATUS, ctl_status, "[id]" }, - { "start", CMD_START, ctl_start, "name" + { "start", CMD_START, ctl_start, "id | name" " [-cL] [-B device] [-b path] [-d disk] [-i count]\n" "\t\t[-m size] [-n switch] [-r path] [-t name]" }, { "status", CMD_STATUS, ctl_status, "[id]" }, diff --git a/usr.sbin/vmctl/vmctl.8 b/usr.sbin/vmctl/vmctl.8 index 5ae3c7fa311..2be9af7123c 100644 --- a/usr.sbin/vmctl/vmctl.8 +++ b/usr.sbin/vmctl/vmctl.8 @@ -1,4 +1,4 @@ -.\" $OpenBSD: vmctl.8,v 1.61 2019/03/07 18:54:05 kn Exp $ +.\" $OpenBSD: vmctl.8,v 1.62 2019/03/18 20:27:12 kn 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: March 7 2019 $ +.Dd $Mdocdate: March 18 2019 $ .Dt VMCTL 8 .Os .Sh NAME @@ -144,7 +144,7 @@ under the same path. An alias for the .Cm status command. -.It Xo Cm start Ar name +.It Xo Cm start Ar id | name .Op Fl cL .Bk -words .Op Fl B Ar device @@ -157,7 +157,11 @@ command. .Op Fl t Ar name .Ek .Xc -Starts a VM defined by the specified name and parameters: +Start a new VM +.Ar name +with the specified parameters. +An existing VM may be started by referencing its +.Ar id . .Bl -tag -width "-I parent" .It Fl B Ar device Force system to boot from the specified device for this boot. |