No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search


To have a better experience, please upgrade your IE browser.


OceanStor 9000 V5 7.0 Command Reference 03

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
create virtual_machine general

create virtual_machine general


The create virtual_machine general command is used to create a VM.


create virtual_machine general <node_id_list> <name> <vm_memory> <vm_cpu_count> <template_name>

create virtual_machine general <node_id_list> <name> <vm_memory> <vm_cpu_count> <vm_disk_size>





node_id_list Node ID list.

The value can be a node ID, list of multiple node IDs separated by semicolons (;), and "all". When the value is a node ID, perform operations on the corresponding node; when the value is list of multiple nodes, perform operations on multiple corresponding nodes; when the value is "all", perform operations on all nodes. Query node information by pressing "Ctrl+A".

name VM name.

The value can contain 1 to 63 characters, including letters, digits, hyphens (-), underscores (_), and periods (.).

vm_cpu_count Number of CPU cores allocated to a VM.

The value ranges from 1 to 32.

vm_memory Memory allocated to a VM.

The value ranges from 1 GB to 160 GB.

template_name Name of the VM template based on which a VM is created.

The value contains 5 to 63 characters, including letters, digits, hyphens (-), underscores (_), periods (.), midline(-) and dots(.) can not be used as the first character, and two dots(.) can not be together, and ends up with .img.

vm_disk_size System disk size allocated to a VM.

The value ranges from 1GB to 300 GB.


Super administrator

Usage Guidelines

1.Batch command operations are mutually exclusive. When you create VMs in a batch, another batch operation is not allowed.

2.Mutual exclusion between the batch command operations has a timeout duration. Node exceptions make the batch operation remaining in the running status. When the wait period exceeds the timeout duration, the mutual exclusion is unlocked. The timeout duration is 20 minutes.

3.Batch operations and non-batch operations are mutually independent. Therefore, when batch operation commands are performed, the non-batch operation commands can run normally.


Creates the VM.

admin:/>create virtual_machine general 10095 vmtest 1GB 2 vm_disk_size=30GB
Command executed successfully.

System Response


Updated: 2019-05-07

Document ID: EDOC1100067955

Views: 24868

Downloads: 7

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Previous Next