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).
Making a VM Installation Package

Making a VM Installation Package

Context

You can make a VM installation package online or offline.
  • Online: You can directly run commands on an AR router to make a VM installation package. This method is recommended because the operation is easy.

    The device provides a built-in QEMU parameter configuration command ova file. You can specify the external-unit { usb | media | disk | serial } parameter to configure an external device supported by the AR router and save the configuration to the VM installation package.

  • Offline: The Linux environment, QEMU tool, and createova tool have been prepared. For details about how to obtain and install the QEMU tool and createova tool, see How Do I Obtain and Install the QEMU Tool? and How Do I Obtain and Install the Createova Tool? respectively.

Pre-configuration Tasks

  • Before making a VM installation package online, complete the following tasks:

    Powering on and logging in to the device

    Preparing an OS image with the file name extension .iso, saving the OS image on the FTP server, and completing routing configuration to ensure that there are reachable routes between the FTP server and device

  • Before making a VM installation package offline, complete the following task:

    Preparing the Linux environment, QEMU tool, and createova tool (For details about how to obtain and install the QEMU tool and createova tool, see How Do I Obtain and Install the QEMU Tool? and How Do I Obtain and Install the Createova Tool? respectively.)

Procedure

  • Making a VM installation package online
    1. Run system-view

      The system view is displayed.

    2. Configure IP addresses for a routing system virtual interface and the HostOS virtual interface veth1.

      NOTE:

      The routing system virtual interface is as follows: GE0/0/6.

      1. Run dhcp enable

        DHCP is enabled.

        By default, DHCP is disabled.

      2. Run interface interface-type interface-number

        The view of the routing system virtual interface is displayed.

      3. Run ip address ip-address { mask | mask-length }

        An IP address is configured for the routing system virtual interface.

      4. Run dhcp select interface

        The DHCP server function is configured to assign IP addresses to clients from the interface address pool.

        By default, the DHCP server function for assigning IP addresses from the interface address pool is disabled.

        After this function is enabled, the system assigns an IP address to the HostOS virtual interface veth1 from the interface address pool on the routing system virtual interface. You can run the display ip pool interface interface-pool-name command to view the IP address.

      5. Run quit

        Return to the system view.

    3. Configure IP addresses for the physical interface GE0/0/5 and virtual interface br0.

      1. Run dhcp server ping packet number

        The number of times the device detects IP address conflicts before allocating IP addresses is set.

        By default, the device does not detect IP address conflicts before allocating IP addresses.

      2. Run interface gigabitethernet 0/0/5

        The interface view is displayed.

      3. Run ip address ip-address { mask | mask-length }

        An IP address is configured for GE0/0/5.

      4. Run dhcp select interface

        The DHCP server function is configured to assign IP addresses to clients from the interface address pool.

        By default, the DHCP server function for assigning IP addresses from the interface address pool is disabled.

        After this function is enabled, the system assigns an IP address to the virtual interface br0 from the interface address pool on GE0/0/5. You can run the display ip pool interface gigabitethernet0/0/5 used command to view the IP address.

      5. Run quit

        Return to the system view.

    4. Run virtual-environment ip-address

      Enter the virtual-environment view.

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

    5. Run download package package-name ftp ftp-file user user-name password cipher

      The OS image is downloaded.

    6. Run blank-disk name name size size

      A blank disk is created.

    7. Run ova file ova-name iso [ package ] iso-file disk disk-name [ cpu cpu-num ] memory size network-card network-card-num network-card-type network-card-type

      A VM installation package is made.

      NOTE:

      If the extend-description extend-description parameter is specified, the value of memory size cannot be greater than 2848 MB.

      If the extend-description extend-description parameter is specified, the configured VM installation package cannot be used by two VMs at the same time.

      After the extend-description extend-description parameter is specified, ensure that the Windows OS does not enter hibernate mode when installing the Windows OS on a VM.

  • Making a VM installation package offline

    For details, see How Do I Make a VM Installation Package Offline?.

Translation
Download
Updated: 2019-05-06

Document ID: EDOC1000177806

Views: 9843

Downloads: 38

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Share
Previous Next