Skip to content

Commit 04103f0

Browse files
authored
Merge pull request #47455 from apinnick/BZ2053705-force-vm-shutdown
BZ2053705: Force stop VM
2 parents 58863ac + 773e17e commit 04103f0

File tree

3 files changed

+16
-10
lines changed

3 files changed

+16
-10
lines changed

modules/virt-virtctl-commands.adoc

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,17 @@ The following table contains the `virtctl` commands used throughout the {VirtPro
3838
|Command |Description
3939

4040
|`virtctl start <vm_name>`
41-
|Start a virtual machine. Optionally, start the virtual machine in a paused state by running `virtctl start --paused <vm_name>`. This enables you to interrupt the boot process from the VNC console.
41+
|Start a virtual machine.
42+
43+
|`virtctl start --paused <vm_name>`
44+
|Start a virtual machine in a paused state. This option enables you to interrupt the boot process from the VNC console.
4245

4346
|`virtctl stop <vm_name>`
4447
|Stop a virtual machine.
4548

49+
|`virtctl stop <vm_name> --grace-period 0 --force`
50+
|Force stop a virtual machine. This option might cause data inconsistency or data loss.
51+
4652
|`virtctl pause vm\|vmi <object_name>`
4753
|Pause a virtual machine or virtual machine instance. The machine state is kept
4854
in memory.
@@ -82,9 +88,6 @@ the specified port of the node.
8288
|`virtctl version`
8389
|Display the client and server version information.
8490

85-
|`virtctl help`
86-
|Display a descriptive list of `virtctl` commands.
87-
8891
|`virtctl fslist <vmi_name>`
8992
|Return a full list of file systems available on the guest machine.
9093

virt/virtual_machines/virt-controlling-vm-states.adoc

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,7 @@ toc::[]
88

99
You can stop, start, restart, and unpause virtual machines from the web console.
1010

11-
[NOTE]
12-
====
13-
To control virtual machines from the command-line interface (CLI), use the
14-
xref:../../virt/virt-using-the-cli-tools.html#virt-using-the-cli-tools[`virtctl` client].
15-
====
11+
You can use xref:../../virt/virt-using-the-cli-tools.html#virt-using-the-cli-tools[`virtctl`] to manage virtual machine states and perform other actions from the CLI. For example, you can use `virtctl` to force stop a VM or expose a port.
1612

1713
include::modules/virt-starting-vm-web.adoc[leveloffset=+1]
1814

virt/virtual_machines/virt-manage-vmis.adoc

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,18 @@ include::_attributes/common-attributes.adoc[]
66

77
toc::[]
88

9-
If you have standalone virtual machine instances (VMIs) that were created independently outside of the {VirtProductName} environment, you can manage them by using the web console or the command-line interface (CLI).
9+
If you have standalone virtual machine instances (VMIs) that were created independently outside of the {VirtProductName} environment, you can manage them by using the web console or by using `oc` or xref:../../virt/virt-using-the-cli-tools.html#virt-using-the-cli-tools[`virtctl`] commands from the command-line interface (CLI).
10+
11+
The `virtctl` command provides more virtualization options than the `oc` command. For example, you can use `virtctl` to pause a VM or expose a port.
1012

1113
include::modules/virt-about-vmis.adoc[leveloffset=+1]
14+
1215
include::modules/virt-listing-vmis-cli.adoc[leveloffset=+1]
16+
1317
include::modules/virt-listing-vmis-web.adoc[leveloffset=+1]
18+
1419
include::modules/virt-editing-vmis-web.adoc[leveloffset=+1]
20+
1521
include::modules/virt-deleting-vmis-cli.adoc[leveloffset=+1]
22+
1623
include::modules/virt-deleting-vmis-web.adoc[leveloffset=+1]

0 commit comments

Comments
 (0)