30
stop vm
stop vm
Use stop vm to stop a VM.
Syntax
stop vm vm-name [ force ]
Views
VMM view
Predefined user roles
network-admin
Parameters
vm-name: Specifies a VM by its name. The vm-name argument is a case-sensitive string of 1 to 30
characters.
force: Forcibly stops the VM.
Usage guidelines
A force stop might cause data loss. Do not force a VM down unless necessary.
If a VM fails to stop because of an abnormal process, access the VM, manually close the process,
and retry the stop operation. If the stop operation still fails, force the VM down.
If the VM does not have an operating system, you must specify the
force keyword to force it down.
Use this command to stop a VM only when the VM is in running state. To view VM status, use the
display vmlist command.
Examples
# Stop VM centos7.
<Sysname> system-view
[Sysname] vmm
[Sysname-vmm] stop vm centos7
Related commands
display vmlist
start vm
suspend vm
Use suspend vm to suspend a VM.
Syntax
suspend vm vm-name
Views
VMM view
Predefined user roles
network-admin