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).
How Do I Make an Image File for the Agile Controller-Branch?

How Do I Make an Image File for the Agile Controller-Branch?

You can use either of the following methods to make an image file for the Agile Controller-Branch based on requirements:
  • Making an image file offline: You need to prepare a Linux environment.
  • Making an image file online: You can directly perform operations on the corresponding device, but cannot make a Windows image file. The device must have the VM installed and the corresponding operating system (OS) must be installed on the VM.
Method 1: Make an image file offline for the Agile Controller-Branch.
  1. Run the qemu-img create –f format image_name image_size command to make a blank disk file.
  2. Run the qemu-system-x86_64 -M pc --enable-kvm -m memory_size -hda image_name -cdrom iso_name -boot c -k en-us -smp cpu_number -usbdevice tablet command to install the OS image in the blank disk.

  3. Install the OS in the same way you install an OS on a PC.
    NOTE:
    If the installed OS is SUSE11SP1, choose Virtual Machine (For Paravirtualized Environments Like Xen) when the Server Base Scenario page is displayed during the installation.
  4. (Optional) Install the virtio driver. (The Windows Server 2008 OS is taken as an example.)
    NOTE:
    Perform this step if the Windows OS is installed on the VM and a disk of the virtio type is used. First, download the latest Windows virtio driver (for example, virtio-win-0.1-74.iso) on the official website (https://fedoraproject.org/wiki/Windows_Virtio_Drivers), and save the virtio driver in the same folder where the OS image is saved. Pay attention to the following points:
    • image_name in step 4.a and image_name in step 1 specify different files.

    • In step 4.b, image_name of file=image_name,if=ide,media=disk,cache=none specifies the image file that has the OS installed in step 1. The image file name is the same as the name specified by image_name in step 1.

    • In step 4.b, image_name of -drive file=image_name,if=virtio,media=disk,cache=none and image_name in step 4.a specify the same file.

    1. Run the qemu-img create –f format image_name image_size command to make a blank disk file.
    2. Run the qemu-system-x86_64 -M pc -m memory_size -usbdevice tablet -drive file=image_name,if=ide,media=disk,cache=none -drive file=image_name,if=virtio,media=disk,cache=none -cdrom virtio_name -k en-us --enable-kvm -boot c command to start the VM that has the Windows OS installed.
    3. Choose StartControl Panel > Device Manager > HardWare.

      The Device Manager page is displayed.

    4. Choose Other devices > SCSI Controller, right-click SCSI Controller, and choose Update Driver Software from the shortcut menu.

      The Update Driver Software page is displayed.

    5. Click Browse my computer for driver software.
    6. Click Browse, select the drive program to be installed, and click OK.

      The Update Driver Software page is displayed.

    7. Click Next and OK to install the drive program.
    8. Click Close.

      image_name (same as image_name in step 1) specifies the image file used by the Agile Controller-Branch.

  5. Table 5-4  Description of parameters involved in method 1

    Parameter

    Description

    Value

    –f format

    Specifies the format of a VM image file.

    The qcow2 and raw formats are supported. The qcow2 format is recommended.

    image_name

    Specifies the name of a VM image file.

    The value is a string of 1 to 32 case-sensitive characters and consists of letters and digits.

    image_size

    Specifies the size of the disk space that can be used by a VM image file.

    The value is an integer, in GB.

    –m memory_size

    Specifies the number of memories used by a VM.

    The value is an integer that ranges from 256 to 8192.

    -hda image_name

    Specifies the name of a disk image file.

    The value is a string of 1 to 28 case-sensitive characters and consists of letters and digits.

    -cdrom iso_name

    Specifies the name of an image file that is loaded in the simulated CD-ROM of a VM. The image file is an .iso file.

    The value is a string of 1 to 32 case-sensitive characters and consists of letters and digits.

    -smp cpu_number

    Specifies the number of simulated CPUs.

    The value is an integer that ranges from 1 to 8.

    file=image_name,if=ide,media=disk,cache=none

    Specifies the name of the disk image file that has the Windows OS installed.

    The value is a string of 1 to 28 case-sensitive characters and consists of letters and digits.

    file=image_name,if=virtio,media=disk,cache=none

    Specifies the name of the disk image file that needs to have the virtio driver installed.

    The value is a string of 1 to 32 case-sensitive characters and consists of letters and digits.

    -cdrom virtio_name

    Specifies the name of the downloaded virtio driver file that is an .iso file.

    The value is a string of 1 to 32 case-sensitive characters and consists of letters and digits.

Method 2: Make an image file online for the Agile Controller-Branch.

  1. Run the system-view command to enter the system view.
  2. Run the set output-mode osp command to enable redirection from the serial port to the OSP daughter card.
    ******************************************************                                                                              
    *              OSP card output to mainboard           *                                                                             
    ******************************************************                                                                              
    Press Ctrl+D to quit                                                                                                                
                                                                                                                                        
    [Huawei]                                                                                                                            
    localhost:/mnt/hdd0# cd /mnt/hdd0/virtual-environment/virtual-machines
    

    After entering the preceding directory, enter the folder named using the VM name, and find the image file. The name of the image file is the same as the name of the blank disk created when the VM installation package is made online. Use an FTP tool to download the image file from the device to the FTP server so that the file can be used by the Agile Controller-Branch.

Translation
Download
Updated: 2019-05-06

Document ID: EDOC1000177806

Views: 9844

Downloads: 38

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Share
Previous Next