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).
Example for Configuring a VM for a Small Enterprise

Example for Configuring a VM for a Small Enterprise

Networking Requirements

A small enterprise needs to deploy many office applications. In traditional deployment mode, the enterprise needs to deploy many CT devices and multiple servers for the office applications. As a result, the deployment and maintenance costs are high, and services are inflexible.

Therefore, the enterprise wants to deploy common office applications on a VM of the router to reduce cost on application servers and simplify device management. The VM provides the same application services as traditional application servers. Figure 5-2 shows the networking.

Figure 5-2  Networking for VM deployment

Configuration Roadmap

To meet the enterprise's requirements, configure virtualization. The configuration roadmap is as follows:
  1. Make a VM installation package online and create the VM vm1.
  2. Configure communication among the routing system, HostOS, and VM.
  3. Configure VNC and log in to the VM. Then install the operating system (OS) and applications.

Procedure

  1. Make a VM installation package online.

    # Configure IP addresses for the routing system virtual interface GE0/0/6 and the HostOS virtual interface veth1.

    <Huawei> system-view
    [Huawei] sysname Router
    [Router] dhcp enable
    [Router] interface gigabitethernet 0/0/6
    [Router-Gigabitethernet0/0/6] ip address 1.1.1.1 24
    [Router-Gigabitethernet0/0/6] dhcp select interface

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

    [Router-Gigabitethernet0/0/6] quit
    [Router] dhcp server ping packet 10
    [Router] interface gigabitethernet 0/0/5
    [Router-Gigabitethernet0/0/5] ip address 10.10.10.1 24
    [Router-Gigabitethernet0/0/5] dhcp select interface

    # Check the IP address assigned to the VM.

    [Router-Gigabitethernet0/0/5] return
    <Router> display ip pool interface gigabitethernet0/0/5 used 
      Pool-name        : GigabitEthernet0/0/5
      Pool-No          : 0
      Lease            : 1 Days 0 Hours 0 Minutes
      Domain-name      : -
      DNS-server0      : -               
      NBNS-server0     : -               
      Netbios-type     : -               
      Position         : Interface       
      Status           : Unlocked
      Gateway-0        : -               
      Network          : 10.10.10.0
      Mask             : 255.255.255.0
      VPN instance     : --
      Logging          : Disable
      Conflicted address recycle interval: -
      Address Statistic: Total       :254       Used        :1          
                         Idle        :253       Expired     :0          
                         Conflict    :0         Disabled    :0      
    
     -------------------------------------------------------------------------------
      Network section 
             Start           End       Total    Used Idle(Expired) Conflict Disabled
     -------------------------------------------------------------------------------
          10.10.10.1    10.10.10.254     254      1       253(0)       0       0
     -------------------------------------------------------------------------------
     Client-ID format as follows:             
       DHCP  : mac-address                 PPPoE   : mac-address             
       IPSec : user-id/portnumber/vrf      PPP     : interface index             
       L2TP  : cpu-slot/session-id         SSL-VPN : user-id/session-id
     -------------------------------------------------------------------------------
      Index              IP             Client-ID      Type       Left   Status     
     -------------------------------------------------------------------------------
        143        10.10.10.254     88cf-9854-183f     DHCP      78567   Used       
     -------------------------------------------------------------------------------
    

    # Download the OS image tinycore.iso.

    <Router> system-view
    [Router] virtual-environment 10.10.10.254
    [Router-virtual-environment-10.10.10.254] download package tinycore.iso ftp ftp://192.168.1.220/tinycore.iso user user1 password cipher
    Enter Password(<1-16>):

    # Create the blank disk disk1.

    [Router-virtual-environment-10.10.10.254] blank-disk name disk1 size 8

    # Make the VM installation package tinycore.ova.

    [Router-virtual-environment-10.10.10.254] ova file tinycore iso tinycore.iso disk disk1 cpu 2 memory 1024 network-card 2 network-card-type e1000

  2. Create a VM.

    [Router-virtual-environment-10.10.10.254] install vm vm1 package tinycore.ova

  3. Configure VNC for VM login.

    # Configure the VNC service port number.

    [Router-virtual-environment-10.10.10.254] vm vm1
    [Router-virtual-environment-vm-vm1] vnc-server port 6 password cipher
    Enter Password(<6-8>):
    [Router-virtual-environment-vm-vm1] vm activate
    [Router-virtual-environment-vm-vm1] vm start
    [Router-virtual-environment-vm-vm1] quit
    

  4. Configure the routing system, HostOS, and VM to communicate through a vSwitch.

    # Create the HostOS virtual interface veth3 and create a virtual link between the HostOS and VM.

    [Router-virtual-environment-10.10.10.254] veth veth3
    [Router-virtual-environment-10.10.10.254] link veth veth3 to veth vm1_eth1

    # Add the HostOS virtual interface to a vSwitch.

    [Router-virtual-environment-10.10.10.254] ovs bridge br0
    [Router-virtual-environment-ovs-br0] port veth3 link-type access
    [Router-virtual-environment-ovs-br0] quit
    

  5. Log in to the VM.

    # Open the VNC viewer, enter 10.10.10.254:6, as shown in Figure 5-3.

    Figure 5-3  VM login page on the VNC viewer
    NOTE:
    Before logging in to the VM, ensure that your PC can communicate with the VM.

    # Click the Options button. On the displayed VNC Viewer-Options page, click the Expert tab page.

    # Set FullColor to True, and click OK. The system returns to Figure 5-3.

    # Click Connect and enter the authentication password in the dialog box that is displayed.

    # Click OK to log in to the VM.

    # Install the OS on the VM in the same way you install an OS on a PC.

    # After installing the OS, install applications in the OS.

Translation
Download
Updated: 2019-05-06

Document ID: EDOC1000177806

Views: 9007

Downloads: 38

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Share
Previous Next