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

Reminder

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

upgrade

Command Reference

OceanStor 2800 V3 V300R006

This document is applicable to OceanStor 2800 V3. Based on the CLI provided by the DeviceManager, this document describes how to use variouscommands classified by functions and how to set the CLI and manage the storage system throughthese commands. The document that you browse online matches the latest C version of the product. Click Download to download documents of other C versions.
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

Function

The create virtual_machine general command is used to create a virtual machine (VM).

Format

create virtual_machine general name=? owner_container_id=? memory=? vcpu_count=? { sys_disk_size=? | template_name=? }

Parameters

Parameter

Description

Value

name=?

Name of the VM.

The value contains 1 to 63 characters, including letters, digits and underscores (_).

owner_container_id=?

ID of the VM owner container.

To obtain the value, run the "show vm_container general" command without parameters.

memory=?

Memory allocated to the VM.

The value ranges from 128 MB to 1 TB.

vcpu_count=?

Number of CPUs in the VM.

The value is an integer between 1 and 32.

sys_disk_size=?

System disk size of the VM.

The value ranges from 1 GB to 1TB.

template_name=?

Name of the template.

  • The value contains 5 to 63 characters, including letters, digits, underscores (_), hyphens (-), and periods (.), cannot start with a period (.), and must end with file name extension .img.
  • To obtain the value, run the "show vm_template general" command.

Level

Administrator

Usage Guidelines

None.

Example

  • Create a VM by specifying the system disk size.
    admin:/>create virtual_machine general name=xlj owner_container_id=0 memory=4GB vcpu_count=1 sys_disk_size=100GB  
    Command executed successfully.
  • Create a VM by specifying the template.
    admin:/>create virtual_machine general name=xlj owner_container_id=0 memory=4GB vcpu_count=1 template_name=xlj.img 
    Command send successfully.

System Response

None

Translation
Download
Updated: 2019-07-12

Document ID: EDOC1000138382

Views: 318364

Downloads: 38

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