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

CLI-based Configuration Guide - Virtualization

AR500, AR510, AR531, AR550, AR1500, and AR2500 V200R009

This document provides the basic concepts, configuration procedures, and configuration examples in different application scenarios of the virtualization feature supported by the device.

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).
Creating a VM and Allocating Resources

Creating a VM and Allocating Resources

Context

VM resources include CPU cores, disk space, memory, and network adapters. The VM installation package made online or offline contains the VM resource configuration. After creating a VM, you can modify the VM resource configuration based on actual networking requirements.
NOTE:

When running commands in the virtual-environment view, do not power on or off the OSP daughter card or restart the device.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run virtual-environment ip-address

    Enter the virtual-environment view.

    The parameter ip-address indicates the IP address of the virtual interface br0.

  3. Run install vm vm-name package package-name

    A VM is created.

    NOTE:
    The device support USB-based VM creation. For details, see USB-based Deployment Configuration in the Huawei AR500&AR510&AR530&AR550 Series Routers Configuration Guide - Basic Configuration. Pay attention to the following requirements:
    • If the device does not contain a configuration file, the parameters in the index file USB_AR.ini for USB-based deployment are set as follows: TYPEn1 is set to SYSTEM-OSP, FILENAMEn1 to VM installation package.ova, TYPEn2 to SYSTEM-CONFIG, and FILENAMEn2 to osp_cfg.cfg. The content format of the osp_cfg.cfg file is "vm-name;port-num;password;", for example, vm2;3;Admin123;.
      • vm-name: specifies the VM name. The value is a string of 1 to 32 case-sensitive characters and consists of letters and digits.
      • port-num: specifies the VNC service port number. The value is an integer that ranges from 1 to 8.
      • password: specifies the password for VNC authentication. The value is a string of 6 to 8 case-sensitive characters without spaces.
    • If the device contains a configuration file, the parameters in the index file USB_AR.ini for USB-based deployment are set as follows: TYPEn1 is set to SYSTEM-OSP, FILENAMEn1 to VM installation package.ova, TYPEn2 to SYSTEM-CONFIG, and FILENAMEn2 to osp_cfg.zip. The osp_cfg.zip file is encrypted and compressed from the osp_cfg.cfg file.

  4. Run vm vm-name

    The VM view is displayed.

  5. (Optional) Run exception-action { reboot | alarm }

    The default processing mode upon a VM exception is configured.

    By default, the system generates an alarm upon a VM exception.

  6. (Optional) Run cpu { cpu-id mono | cpu-id share }*

    CPU cores and mode of using CPU cores are configured for the VM.

    By default, all VMs share all CPU cores in the virtual environment.

  7. (Optional) Replace the image file in a VM's CD-ROM.
    1. Run quit

      Return to the virtual-environment view.

    2. Run download package filename ftp ftp-file user user-name password cipher

      A new image file is downloaded.

    3. Run vm vm-name

      The VM view is displayed.

    4. Run set cdrom file filename

      The image file in a VM's CD-ROM is replaced.

      NOTE:

      To restore the image file used during VM installation, run the reset cdrom file command.

  8. (Optional) Increase the disk space for the VM.
    1. Run quit

      Return to the virtual-environment view.

    2. Run blank-disk name name size size

      A blank disk is created.

    3. Run vm vm-name

      The VM view is displayed.

    4. Run attach disk disk-name

      A disk is added to the VM.

  9. (Optional) Run memory size size

    The memory size is configured for the VM.

  10. (Optional) Run virtual-network-card number number

    The number of network adapters is configured for the VM.

Translation
Download
Updated: 2019-05-06

Document ID: EDOC1000177806

Views: 8960

Downloads: 38

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Share
Previous Next