18
Table 9 Command output
Id VM ID in the list.
Name VM name.
Status
VM operating state:
• running—The VM is operating.
• paused—The VM is suspended.
• shutoff—The VM is stopped.
display vmmem-usage vm
Use display vmmem-usage vm to display the memory usage of a VM.
Syntax
display vmmem-usage vm vm-name
Views
Any 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.
Usage guidelines
This command is supported only on systems that support the virtio driver.
Release versions of the Linux operating system support the memballon virtio driver of the guest OS.
On the Windows operating system, you need to install a separate virtio driver. The vFW does not
support the virtio driver.
Examples
# Display the memory usage of VM centos7.
<Sysname> display vmmem-usage vm centos7
Total Used Mem-usage
----------------------------------------------------------
2973036 82988 3%
Table 10 Command output
Total Total amount of memory on the VM.
Used Amount of memory in use.
Mem-usage Memory usage in percentage.