hcna cloud bccp lab guide

Upload: rafael-ricardo-rubiano-pavia

Post on 07-Jul-2018

233 views

Category:

Documents


1 download

TRANSCRIPT

  • 8/19/2019 HCNA Cloud BCCP Lab Guide

    1/73

    HUAWEI TECHNOLOGIES CO., LTD. Huawei Confidential 1

    The privilege of HCNA/HCNP/HCIE:With any Huawei Career Certification, you have the privilege on http://learning.huawei.com/en to enjoy:

    1 Comprehensive E-Learning Courses 

    Content:All Huawei Career Certification E-Learning courses

    Methods to get the E-learning privil g : submit Huawei Account and email being used for Huawei Account

    registration to [email protected]  . 

    2  Training Material Download

    Content: Huawei product training material and Huawei career certification training material

    Method:Logon http://learning.huawei.com/en   and enter HuaWei Training/Classroom Training  ,then you can

    download training material in the specific training introduction page.

    3  Priority to participate in Huawei Online Open Class LVC)

    Content:The Huawei career certification training covering all ICT technical domains like R&S, UC&C, Security,

    Storage and so on, which are conducted by Huawei professional instructors

    Method:The plan and participate method please refer to LVC Open Courses Schedule

    4 Learning Tool: eNSP 

    eNSP (Enterprise Network Simulation Platform) is a graphical network simulation tool which is developed by

    Huawei and free of charge. eNSP mainly simulates enterprise routers, switches as close to the real hardware as

    it possible, which makes the lab practice available and easy without any real device.

    In addition, Huawei has built up Huawei Technical Forum which allows candidates to discuss technical issues with

    Huawei experts , share exam experiences with others or be acquainted with Huawei Products(

    http://support.huawei.com/ecommunity/) 

    http://learning.huawei.com/enmailto:[email protected]://learning.huawei.com/enhttp://support.huawei.com/ecommunity/http://support.huawei.com/ecommunity/http://learning.huawei.com/enmailto:[email protected]://learning.huawei.com/en

  • 8/19/2019 HCNA Cloud BCCP Lab Guide

    2/73

     

    HUAWEI HCNA-Cloud Experiment Manual

    ISSUE 1.00

    (For internal use only) 

  • 8/19/2019 HCNA Cloud BCCP Lab Guide

    3/73

      HUAWEI HCNA-Cloud Experiment Manual ISSUE 1.00 INTERNAL

    Contents

    1 Experiments on the FusionCompute  ......................................................................................... 3

    1.1 Objectives 

    ......................................................................................................................................................... 3

    1.2 Basic Information  ............................................................................................................................................. 3

    1.3 Operation Tasks  ................................................................................................................................................ 3

    1.3.1 Creating a Bare VM 

    ................................................................................................................................ 31.3.2 Installing a VM  ..................................................................................................................................... 11

    1.4 Operation Tasks  .............................................................................................................................................. 15

    1.4.1 Creating a VM Using a System VM Template  ...................................................................................... 15

    1.4.2 Live VM Migration ............................................................................................................................... 18

    1.4.3 Online Modification of VM Specifications (CPU Parameters) 

    ............................................................. 19

    2 Experiments on the FusionManager 

    ........................................................................................ 242.1 Objectives  ....................................................................................................................................................... 24

    2.2 Experiment Deployment  ................................................................................................................................ 24

    2.3 Basic Information  ........................................................................................................................................... 24

    2.3.1 Introduction to Creating Applications  ................................................................................................... 24

    2.4 Operation Tasks  .............................................................................................................................................. 27

    2.4.1 Adding a Software Package  .................................................................................................................. 27

    2.4.2 Creating a VM Template 

    ....................................................................................................................... 31

    2.4.3 Canceling a Published VM Template 

    .................................................................................................... 53

  • 8/19/2019 HCNA Cloud BCCP Lab Guide

    4/73

      HUAWEI HCNA-Cloud Experiment Manual ISSUE 1.00 INTERNAL

    1 Experiments on the FusionCompute

    1.1 Objectives

    Upon completion of this chapter, you will be able to:

      Use an ISO file to create virtual machines (VMs).

    1.2 Basic InformationPortal IP Address Portal Account

    System administrator 192.168.30.4 admin/Huawei@123

    1.3 Operation Tasks

    1.3.1 Creating a Bare VM

    Operation scenario: This section provides guidance for administrators to create bare VMs on theFusionCompute Portal. Administrators can install OSs and application software on bare VMs.

    Impact on the System: This operation has no adverse impact on the system.

    PreparationsPrerequisites 

  • 8/19/2019 HCNA Cloud BCCP Lab Guide

    5/73

      HUAWEI HCNA-Cloud Experiment Manual ISSUE 1.00 INTERNAL

    Category Parameter Description ExampleValue

    AdvancedSettings

    Attachgraphics card

    This parameter is optional.

    If any available graphics card is on the host, you canspecify a graphics card for the VM.

    If a graphics card is bound to a VM, the VM isautomatically bound to the host on which the VM andthe graphics card are located. The VM can be migrated

    to another host only after the graphics card is detachedfrom the VM.

    StandardVGAGraphicsAdapter

    Attach USBdevice

    This parameter is optional.

    If any available USB device is on the host, the user canspecify a USB device for the VM.

    If a USB device is bound to a VM, the VM isautomatically bound to the host on which the VM and

    the USB device are located. The VM can be migratedto another host only after the USB device is detachedfrom the VM.

    -

    Properties VM name This parameter is mandatory.

    A VM name can contain only letters, digits, and spaces.It cannot start or end with a space, nor exceed 128characters.

    VM001

    OS type This parameter is mandatory. Windows

    OS version This parameter is mandatory. Windows

  • 8/19/2019 HCNA Cloud BCCP Lab Guide

    6/73

      HUAWEI HCNA-Cloud Experiment Manual ISSUE 1.00 INTERNAL

    Category Parameter Description ExampleValue

    QoSSettings

    CPU Quota This parameter is mandatory.

    Specifies the proportion of CPU resources a VM canobtain in resource contention. The quota indicates therelative priority or importance of a VM. For example, ifthe CPU quota of a VM is twice that of another VM,this VM has the priority to use the CPU resources as

    twice as that of the other VM.CPU quotas are listed as follows:

    ●  Low: Number of CPUs x 500

    ●  Medium: Number of CPUs x 1000

    ●  High: Number of CPUs x 2000

    ●  Custom: 1–128,000

    Default value: Medium 

    Medium

    CPUReserved(MHz)

    This parameter is mandatory.

    Specifies the minimum computing capability of theVM. For example, if the VM has one CPU and this parameter is set to 2000, the minimum computingcapability of the VM is 2000 MHz.

    Minimum value: 0; maximum value: Number of CPUsx 2933

    Default value: 0

     No limit

    CPU Limit This parameter is mandatory. No limit

  • 8/19/2019 HCNA Cloud BCCP Lab Guide

    7/73

      HUAWEI HCNA-Cloud Experiment Manual ISSUE 1.00 INTERNAL

    Category Parameter Description ExampleValue

    MemoryQuota

    This parameter is mandatory.

    Specifies the proportion of memory resources a VMcan obtain in resource contention. The quota indicatesthe relative priority or importance of a VM. Forexample, if the memory quota of a VM is twice that ofanother VM, this VM has the priority to use the

    memory resources as twice as that of the other VM.Memory quotas are listed as follows:

    ●  Low: Memory size x 5

    ●  Medium: Memory size x 10

    ●  High: Memory size x 20

    ●  Custom: Value range: 1–209,715,200

    Default value: Medium 

    Medium

    MemoryReserved(MB)

    This parameter is mandatory.

    Specifies the minimum physical memory resources ofthe VM. If this parameter is set to 0, the system doesnot reserve a minimum percentage of physical memoryresources for the VM.

    Minimum value: 0; maximum value: configuredmemory size

    Default value: 0

    0

    Advanced HA This parameter is optional. -

  • 8/19/2019 HCNA Cloud BCCP Lab Guide

    8/73

      HUAWEI HCNA-Cloud Experiment Manual ISSUE 1.00 INTERNAL

    Category Parameter DescriptionExampleValue

    CPU hotswap

    This parameter is optional.

    This parameter is valid only when the VM operatingsystem (OS) supports the CPU hot swap.

    Possible values are:

    ●  Disable: All operations performed to modify CPU

     properties of a VM take effect only after the VM isrestarted.

    ●  Enable CPU hot add: The operations performed to

    add the number of CPUs and modify the CPUresource control policies take effect without VMrestart. The operations performed to reduce thenumber of CPUs take effect after the VM isrestarted.

    Disable

     NICSettings

    SelectDistributedVirtualSwitch(DVS)

    This parameter is mandatory.Set the parameters for each network interface card(NIC).

    The NIC properties are determined by the port groupon the distributed virtual switch (DVS) to which the NIC connects.

    UserDVSwitch1

    Port Group UserPortGr oup01

    DiskSettings

    Data store This parameter is mandatory.Configure the data store on each disk.

    The Thin provisioning mode can be selected onl

    UserDataStore01

  • 8/19/2019 HCNA Cloud BCCP Lab Guide

    9/73

      HUAWEI HCNA-Cloud Experiment Manual ISSUE 1.00 INTERNAL

    Category Parameter Description ExampleValue

     Not affected by snapshot

    This parameter is optional.

    Set the parameter for each disk.

    If a disk is not affected by snapshots, the disk data willnot be backed up or restored when the VM is backed upor restored using a snapshot.

    -

    Persistency This parameter is optional.This parameter is valid only when Not affected bysnapshot is selected.

    Possible values are:

    ●  Persistent: All operations on the disk will berecorded in the disk.

    ●  Nonpersistent: All operations on disks will not be

    recorded in the disk, but in a cache file stored in thedata store as the disk. All data changes will be lostafter the VM stops.

    Persistent

    Start the VMafter creation

    This parameter is optional. -

    Procedure1.  On the FusionCompute, choose VDC Management > VM and Template.

  • 8/19/2019 HCNA Cloud BCCP Lab Guide

    10/73

      HUAWEI HCNA-Cloud Experiment Manual ISSUE 1.00 INTERNAL

    3. 

    Select a location for the VM that you are creating.

    −  Cluster: The VM will be created on a random host in the cluster.

    −  Host: The VM will be created on the specified host.

    4.  If you select Host, to bind the VM to a host, select Bind to the select host.

    If a VM is bound to a host, the VM can only run on this host and cannot be migrated to anotherhost. That is, HA is unavailable.

    5. 

    If you want to bind a graphics card, select Attach graphics card under Advanced Settings andselect the graphics card.

    If a graphics card is bound to a VM, the VM is automatically bound to the host on which the VMand the graphics card are located. The VM can be migrated to another host only after the graphicscard is unbound from the VM.

    6. 

    If you want to bind a USB device, select Attach USB device under Advanced Settings and selectthe graphics card.

    If a USB device is bound to a VM, the VM is automatically bound to the host on which the VM

    and the USB device are located. The VM can be migrated to another host only after the USBdevice is unbound from the VM.

    7.  Click Next.

    The Properties page is displayed.

  • 8/19/2019 HCNA Cloud BCCP Lab Guide

    11/73

      HUAWEI HCNA-Cloud Experiment Manual ISSUE 1.00 INTERNAL

    −   Number of disks

    − 

     Number of NICs

    10.  To reset QoS, click QoS configurations and set the parameters.

    −  CPU Quota: specifies the proportion of CPU resources a VM can obtain in resource contention.The quota indicates the relative priority or importance of a VM. For example, if the CPU quotaof a VM is twice that of another VM, this VM has the priority to use the CPU resources astwice as that of the other VM.

    −  CPU Reserved (MHz): specifies the minimum computing capability of the VM. For example,

    if the VM has one CPU and this parameter is set to 2000, the minimum computing capability ofthe VM is 2000 MHz.

    −  CPU Limit (MHz): specifies the maximum computing capability of the VM. For example, ifthe VM has one CPU and this parameter is set to 2000, the maximum computing capability ofthe VM is 2000 MHz.

    −  Memory Quota: specifies the proportion of memory resources a VM can obtain in resourcecontention. The quota indicates the relative priority or importance of a VM. For example, if thememory quota of a VM is twice that of another VM, this VM has the priority to use the memory

    resources as twice as that of the other VM.−  Memory Reserved (MB): specifies the minimum physical memory resources of the VM. If this

     parameter is set to 0, the system does not reserve a minimum percentage of physical memoryresources for the VM.

    11. 

    Set the advanced properties of the VM.

    −  HA: After the HA function is enabled, VMs are automatically migrated to another host and run properly if the current host is faulty.

    −  Policy for handling blue screen of death (BSOD): specifies the policy for handling the VMBSOD.

    −  Clock policy: specifies whether the system time of the VM is synchronized with the host which

  • 8/19/2019 HCNA Cloud BCCP Lab Guide

    12/73

      HUAWEI HCNA-Cloud Experiment Manual ISSUE 1.00 INTERNAL

    the input/output (I/O) performance of the VM is lower than that of the VM in the

    Ordinary mode.−  Capacity (GB): The OS is installed on the first disk by default. Allocate a proper space for the

    first disk based on the OS size.

    −  Not affected by snapshot: If this option is selected, the disk data will not be backed up orrestored when the VM is backed up or restored using the snapshot.

    −  Persistency:

    -  Persistent: All operations on the disk will be recorded in the disk.

    - Nonpersistent: All operations on disks will not be recorded in the disk, but in a cache filestored in the data store as the disk. All data changes will be lost after the VM stops.

  • 8/19/2019 HCNA Cloud BCCP Lab Guide

    13/73

      HUAWEI HCNA-Cloud Experiment Manual ISSUE 1.00 INTERNAL

    Preparations

    Prerequisites 

    You have obtained the OS ISO file to be installed.

    You have obtained the installation files for the software to be installed.

    The firewall on the maintenance terminal is disabled.

    You have logged in to the FusionCompute Portal.

    Data 

    To install one of the following OSs, the patch KB891861 (available in the OS official website) isrequired:

    Windows 2000 Server SP4

    Windows 2000 Advanced Server SP4

    Procedure

    Mounting a CD-ROM drive

    1.  On the FusionCompute Portal, choose VDC Management > VM and Template.

    The VM and Template page is displayed.

    2.  Locate the row that contains the VM to which an ISO file is to be mounted, click Operation, andselect Log in using VNC.

    The VM desktop is displayed.

    3. 

    Click Mount Local CD/DVD-ROM Drive.

  • 8/19/2019 HCNA Cloud BCCP Lab Guide

    14/73

      HUAWEI HCNA-Cloud Experiment Manual ISSUE 1.00 INTERNAL

    5. 

    Click Connect.

    A dialog box is displayed.6.  Click OK.

    The CD ROM drive is mounted to the VM

  • 8/19/2019 HCNA Cloud BCCP Lab Guide

    15/73

      HUAWEI HCNA-Cloud Experiment Manual ISSUE 1.00 INTERNAL

    Installing an OS

  • 8/19/2019 HCNA Cloud BCCP Lab Guide

    16/73

  • 8/19/2019 HCNA Cloud BCCP Lab Guide

    17/73

      HUAWEI HCNA-Cloud Experiment Manual ISSUE 1.00 INTERNAL

    5. 

    Click OK.

    6. 

    In the navigation tree, right-click the newly converted VM and choose Power On from theshortcut menu.

    A dialog box is displayed.

    7.  Click OK.

    A dialog box is displayed.

    8. 

    Click OK.

    Start the VM.

    Then go to step 33.

    Deploying a VM using a template

    9.  On the FusionCompute Portal, choose VDC Management > VM and Template.

    The VM and Template page is displayed.

    10. 

    In the navigation tree on the left, right-click a template and choose Deploy VM Using A Template from the shortcut menu.

    The Location page is displayed.11.  Select a location for the VM that you are creating.

    Cluster: The VM will be created on a random host in the cluster.

    Host: The VM will be created on the specified host.

    12. 

    If you select Host, to bind the VM to a host, select Bind to the select host.

    If a VM is mounted to a host, the VM can only run on this host and cannot be migrated to anotherhost. That is, HA is unavailable.

    13. 

    If you want to bind a graphics card, select Attach graphics card under Advanced Settings andselect the graphics card.

    If a graphics card is bound to a VM the VM is automatically bound to the host on which the VM

  • 8/19/2019 HCNA Cloud BCCP Lab Guide

    18/73

      HUAWEI HCNA-Cloud Experiment Manual ISSUE 1.00 INTERNAL

    −  CPU Limit (MHz): specifies the maximum computing capability of the VM. For example, if

    the VM has one CPU and this parameter is set to 2000, the maximum computing capability ofthe VM is 2000 MHz.

    −  Memory Quota: specifies the proportion of memory resources a VM can obtain in resourcecontention. The quota indicates the relative priority or importance of a VM. For example, if thememory quota of a VM is twice that of another VM, this VM has the priority to use the memoryresources as twice as that of the other VM.

    −  Memory Reserved (MB): specifies the minimum physical memory resources of the VM. If this parameter is set to 0, the system does not reserve a minimum percentage of physical memory

    resources for the VM.19.  Set the advanced properties of the VM.

    −  HA: After the HA function is enabled, VMs are automatically migrated to another host and run properly if the current host is faulty.

    −  Policy for handling blue screen of death (BSOD): specifies the policy for handling a VMBSOD.

    −  Clock policy: If this parameter is selected, the VM periodically synchronizes its time with the

    host. If no, you can set the system time of the VM.−  CPU hot swap (This parameter is valid only when the VM OS supports CPU hot swap):

    -  Disable: All operations performed to modify CPU properties of a VM take effect onlyafter the VM is restarted.

    -  Enable CPU hot add: The operations performed to add the number of CPUs and modifythe CPU resource control policies take effect without VM restart. The operations performed to reduce the number of CPUs take effect after the VM is restarted.

    20. 

    Click Next.

    The Set VM page is displayed.

    21 Configure the DVS and port group for each NIC

  • 8/19/2019 HCNA Cloud BCCP Lab Guide

    19/73

      HUAWEI HCNA-Cloud Experiment Manual ISSUE 1.00 INTERNAL

    −  Customize using the Customization Wizard: creates VM properties. Go to step 24.

    − 

    Customize using existing VM attributes: uses existing VM properties. If you do not want toreset VM properties, go to step 3. If you want to, go to step 24.

    24.  Click Next.

    The Customize using the Customization Wizard page is displayed.

    25.  Enter the host name and administrator password of the VM.

    26. 

    If the VM runs the Windows OS, select a domain or a workgroup for the VM.

    −  If you select Workgroup, enter the workgroup name.

    −  If you select Windows Server Domain, enter the domain name, VM host name, and domain password.

    27.  If you select Customize using the Customization Wizard and want to save the properties, selectSave as Computer Attributes, and set VM Attributes Name and Description.

    28. 

    Click Next.

    The NIC Settings page is displayed.

    29.  Set the NIC properties:

    −  IP address

    −  Subnet mask

    −  Default gateway

    −  Active DNS server

    −  Standby DNS server

    30.  Click Next.

    The Confirm page is displayed. Verify that the information about the VM to be created.31.  Click Finish.

  • 8/19/2019 HCNA Cloud BCCP Lab Guide

    20/73

      HUAWEI HCNA-Cloud Experiment Manual ISSUE 1.00 INTERNAL

    The VM is in the Running state.

    The VM to be migrated is not bound to a host, and no graphics card or USB device are bound to theVM.

    You have obtained the name of the host to which the VM is to be migrated.

    Procedure

    Searching for a VM

    1. 

    On the FusionCompute Portal, choose VDC Management > VM and Template.

    The VM and Template page is displayed.

    2.  On the VM tab page, enter the search criteria and click Search.

    The search result is displayed.

    Migrating a VM

    3. 

    Locate the row that contains the VM to be migrated, click Operation, and select Migrate.

    The Migrate VM page is displayed.4.  Select Change host as the migration mode.

    5.  Click Next.

    6.  Select the host to which the VM is migrated.

    7.  If you want to bind the VM to the host, select Bind to the selected destination host.

    8. 

    Click Migrate.

    A dialog box is displayed.

    9. 

    Click OK.

    A dialog box is displayed.

  • 8/19/2019 HCNA Cloud BCCP Lab Guide

    21/73

      HUAWEI HCNA-Cloud Experiment Manual ISSUE 1.00 INTERNAL

    Impact on the system: Ongoing services on the VM are stopped if you restart the VM for new CPU

     properties to take effect. Therefore, you are advised to perform this operation during non-peak hours.

    Preparations

    Prerequisites 

    You have logged in to the FusionCompute Portal.

    The VM is in the Running or Stopped state.

    Data 

    Parameter Description ExampleValue

     Number of CPUs This parameter is mandatory.

    This value cannot exceed the number of the physical CPU cores on the host.

    Value range: 1–64

    2

    Quota This parameter is mandatory.

    Specifies the proportion of CPU resources a VMcan obtain in resource contention. The quotaindicates the relative priority or importance of aVM. For example, if the CPU quota of a VM istwice that of another VM, this VM has the priority

    to use the CPU resources as twice as that of theother VM.

    CPU quotas are listed as follows:

    Medium

  • 8/19/2019 HCNA Cloud BCCP Lab Guide

    22/73

      HUAWEI HCNA-Cloud Experiment Manual ISSUE 1.00 INTERNAL

    Parameter Description ExampleValue

    Limit (MHz) This parameter is mandatory.

    Specifies the maximum computing capability ofthe VM. For example, if the VM has one CPU andthis parameter is set to 2000, the maximumcomputing capability of the VM is 2000 MHz.

    ●   No limit

    ● 

    Limited. Minimum value: 1; maximum value: Number of CPUs x Host CPU frequency

    Default value: No limit 

     No limit

    Procedure

    Searching for a VM

    1.  On the FusionCompute Portal, choose VDC Management > VM and Template.

    The VM and Template page is displayed.

    2.  On the VM tab page, enter the search criteria and click Search.

    The search result is displayed.

    Modifying CPU properties

    3. 

    Click the name of the VM.

    The Summary page is displayed.

  • 8/19/2019 HCNA Cloud BCCP Lab Guide

    23/73

      HUAWEI HCNA-Cloud Experiment Manual ISSUE 1.00 INTERNAL

    8. 

    Click OK.

    On the Task Tracing tab page, you can view the task progress.

    Modifying the VM driver

    9.  Based on the VM OS type and the CPU adjustment method, determine whether to modify the VMdriver.

    When the VM is running on Windows Server 2003 or Windows XP and the number of the VM'scores is changed from one to multiple or from multiple to one, manually modify the CPU driver.

    −  If yes, go to step 10.

    − 

    If no, go to step 16.

    10.  Log in to the VM using VNC.

    The following steps are performed on Windows Server 2003.

    11. 

    On the Start menu bar of the VM, right-click My Computer and choose Properties form theshortcut menu.

    12. 

    On the Hardware tab page, click Device Manager.

    13. 

    In the navigation tree, expand the Computer node and double-click ACPI Multiprocessor PC orAdvanced Configuration and Power Interface (ACPI) PC.

    −  If you need to change single-core to multiple-core, update Advanced Configuration andPower Interface (ACPI) PC to ACPI Multiprocessor PC.

    −  If you need to change multiple-core to single-core, update ACPI Multiprocessor PC toAdvanced Configuration and Power Interface (ACPI) PC.

    14.  On the Driver tab page, click Update Driver.

    15. 

    Update the drive as instructed by the hardware update guide and according to the actualrequirement.

    Restarting a VM

  • 8/19/2019 HCNA Cloud BCCP Lab Guide

    24/73

      HUAWEI HCNA-Cloud Experiment Manual ISSUE 1.00 INTERNAL

    Result

    Check whether all steps described in the previous procedure are performed.

    Confirm: [OK?]__________________

  • 8/19/2019 HCNA Cloud BCCP Lab Guide

    25/73

      HUAWEI HCNA-Cloud Experiment Manual ISSUE 1.00 INTERNAL

    2 Experiments on the FusionManager

    2.1 Objectives

    Upon the completion of this chapter, you will be able to know how to:

      Create applications and provision applications.

      Upload software.

      Create VM templates.

      Create service catalogs and applications as well as publish applications.

    2.2 Experiment Deployment

    This section provides guidance for you to provision a forum application. There is only one VM and thecovered software resources are:

    apache —> php —> extension —> discus. For details, see the FusionManager Service Issuing

     Experiment Software Parameters Description Linux_Discuz.docx.

    For details about the required software packages, see the FusionManager Service Issuing ExperimentSoftware Package.

    2.3 Basic Information

    Portal IP Address Portal Account

    System administrator 192.168.30.6 admin/Huawei@123

  • 8/19/2019 HCNA Cloud BCCP Lab Guide

    26/73

      HUAWEI HCNA-Cloud Experiment Manual ISSUE 1.00 INTERNAL

    Figure 2-1 

    Flowchart for creating applications

    Start

    End

     Add a software package.

     Add a VM template.

    Create a catalog.

    Create a service template.

    Create an application.

     

  • 8/19/2019 HCNA Cloud BCCP Lab Guide

    27/73

      HUAWEI HCNA-Cloud Experiment Manual ISSUE 1.00 INTERNAL

    No. Step Description

    4 Creating aServiceTemplate

    Creating service templates as required using available VM templates andsoftware packages. You can add elastic groups to the created templates andconfigure policies for the elastic groups, or add networks to connect theVMs to the networks.

    5 Creating anApplication

    Select a service template to create applications for service provisioning. Forexample, you can use the service template where the MySQL software package and Linux VM template have been added to create a database

    application that can provide database services.

    Preparations

    Table 2-2 lists the software, documents, and tools required for application creation.

    Table 2-2 

    List of software, documents, and tools

    ResourceType

    ResourceName

    Description How to Obtain

    Software OS ISO file Obtain this file before creating VMtemplates.

    Prepared bycustomers.

    FusionComput

    eV100R003C00 _GuestOS.iso

    This ISO file includes the PV driver and

    the driver for intelligent network interfacecard (iNIC).

    ●  PV driver: paravirtualization driver

    http://support.huawei.

    com/enterprise >Software > IT >FusionCloud >

  • 8/19/2019 HCNA Cloud BCCP Lab Guide

    28/73

      HUAWEI HCNA-Cloud Experiment Manual ISSUE 1.00 INTERNAL

    Resource

    Type

    Resource

    NameDescription How to Obtain

    Document OS installationguide

    Used to provide guidance for users toinstall the OS on a VM template.

    Prepared bycustomers.

    Tool PC It is used for service provisioning. Therequirements for PCs are as follows:

    ●  A browser has been installed.

    The browsers that are compatible with thesystem are:

      Internet Explorer 8.0 or later

      Firefox 8.0 or later

    ●  The Java Plug-in 1.7.0_15 or later has been installed to ensure that the VMcan be logged in through the PC using

    VNC.

    Prepared bycustomers.

    2.4 Operation Tasks

    2.4.1 Adding a Software Package

    Table 2-3 lists the data that must be ready before you add a software package.

    Table 2 3 Data required for adding a software package

    NOTE

  • 8/19/2019 HCNA Cloud BCCP Lab Guide

    29/73

      HUAWEI HCNA-Cloud Experiment Manual ISSUE 1.00 INTERNAL

    Category Parameter Description Example Value

    File Format This parameter is optional.

    Specifies the type of the software inthe software package.

    ●  If the software fails to beautomatically installed anduninstalled, select unknown. Thisoption requires you to provide

    installation and uninstallationcommands.

    ●  If the software can be

    automatically installed anduninstalled, select msi or rpm.The system automatically installsthe software, that is, you do notneed to specify any command for

    this type of software. However, ifyou specify commands, thespecified commands will be usedwhen applications are created.

    unknown

    Version This parameter is mandatory.

    Specifies the version of the softwarein the software package.

    7.2

    Icon This parameter is optional.Specifies the software package icon,which can be selected from the icons

  • 8/19/2019 HCNA Cloud BCCP Lab Guide

    30/73

      HUAWEI HCNA-Cloud Experiment Manual ISSUE 1.00 INTERNAL

    Category Parameter Description Example Value

    File target path

    This parameter is mandatory.

    ●  Specifies the directory where the

    uploaded software package andattachment are saved on the targetVM. The system automaticallysearches this directory for theinstallation package and

    command scripts.●

      The directory must have beencreated on the VM.

    ●  Linux: /opt/install/a 

    ●  Windows: c:\install\a 

    Installcommand

    This parameter is mandatory.

    ●  Provide installation commands if

    the software fails to beautomatically installed.

    ● 

    If the software that the systemcannot automatically start must bestarted immediately after beinginstalled, write the start commandin Install command.

    install.sh {ip} {user} {pwd}

    The address, user name, and password must be specifiedduring the installation, and can be regarded as parameters ofthe installation command.These parameters arereferenced in service templatedesign and application creation. 

    Uninstallcommand

    This parameter is optional.

    Provide uninstallation commands ifthe software fails to be automatically

    uninstalled.

    uninstall.sh

    Start This parameter is optional. startup.sh

    NOTE

  • 8/19/2019 HCNA Cloud BCCP Lab Guide

    31/73

      HUAWEI HCNA-Cloud Experiment Manual ISSUE 1.00 INTERNAL

      Applicable OSs: All OSs applicable to the software in the software package.

     

    Software type:

    If the software fails to be automatically installed and uninstalled, select unknown. This optionrequires you to provide installation and uninstallation commands.

    If the software can be automatically installed and uninstalled, select msi or rpm. The systemautomatically installs the software and you do not need to specify any command for this type ofsoftware. However, if you specify commands, the specified commands will be used whenapplications are created.

      Icon: The software package icon displayed in the service template. It can be selected from theicons provided in the system.

    Click the image on the right of Icon and select one of icons displayed.

    Step 4  Click Next. The Add Configuration Commands page is displayed.

    Step 5  Set the parameters based on the software type:

     

    If you select unknown, go to step 6.  If you select msi or rpm, go to step 7.

    Step 6  Configure the commands for uploading and installing or uninstalling the software package based on thedata plan:

      File target path: specifies the directory where the uploaded software package and attachment aresaved on the target VM. The system automatically searches this directory for the installation package and command scripts. To prevent such operation failures as installation failure due to

    identical attachment file names, you are advised to include the software package name in theattachment file path. For example, if the software package name is a, set the attach file path to /opt/install/a on Linux and to c:\install\a on Windows.

    NOTE

  • 8/19/2019 HCNA Cloud BCCP Lab Guide

    32/73

      HUAWEI HCNA-Cloud Experiment Manual ISSUE 1.00 INTERNAL

    Result

    Check whether all steps described in the previous procedure are performed.

    Confirm: [OK?]__________________

    2.4.2 Creating a VM Template

    This section describes how to create a VM template on Linux. For operations on the Windows, see the product manual.

    Figure 2-2 shows the flowchart for creating a VM template.

    Figure 2-2 Flowchart for creating a VM template

    Start

    Configurebasicinformation.

    InstallanOS.

    DisablethefirewallontheVM.

    IstheVMwareHypervisor

    used?

    InstallVMwaretools. InstallthePVdriver.

    No

    Yes

  • 8/19/2019 HCNA Cloud BCCP Lab Guide

    33/73

      HUAWEI HCNA-Cloud Experiment Manual ISSUE 1.00 INTERNAL

    Table 2-4 lists the data that must be ready before you create a VM template.

    Table 2-4 Data required for creating a VM template

    Category Parameter Description Example Value

    BasicInformation

     Name This parameter is mandatory.

    Specifies the name of the VM templateto be created.

    The name can contain only letters,digits, hyphens (-), underscores (_), andspaces. It is a string of 1 to 64characters.

    VM_01

    Image This parameter is optional.

    Specifies the image of the VMtemplate. You can click Click tochange the image to change an image

    for the VM template.

    -

    Hypervisor This parameter is mandatory.

    Specifies the virtual environment towhich the VM template belongs.

    fusioncubehypervisor

    ResourceCluster

    This parameter is mandatory.

    Specifies the cluster to which the VMtemplate belongs.

    Cluster01

    Description This parameter is optional. VM template of User_01 

  • 8/19/2019 HCNA Cloud BCCP Lab Guide

    34/73

      HUAWEI HCNA-Cloud Experiment Manual ISSUE 1.00 INTERNAL

    Category Parameter Description Example Value

    installed.

    It is an integer ranging from 1 to 2048.

    Default value: 20

    ThinProvision

    This parameter is mandatory.

    Specifies whether to enable thin provisioning. If thin provisioning isenabled, the physical disk space isshared and storage space is dynamicallyallocated only when data is written intothe disk. Thin provisioning allows morevirtual memory space to be allocatedthan the real memory available, becausemost of users do not use all the memoryspace allocated to them.

    You are advised to disable thin

     provisioning for disks that run performance-intensive programs.

    This mode cannot be enabled for disksthat do not support thin provisioning.

    Default value: Disabled

    -

    Affected bySnapshot

    This parameter is mandatory.

    Specifies whether to take a snapshot for

    a disk when the system is taking asnapshot for a VM.

    -

  • 8/19/2019 HCNA Cloud BCCP Lab Guide

    35/73

      HUAWEI HCNA-Cloud Experiment Manual ISSUE 1.00 INTERNAL

    Category Parameter Description Example Value

    It is the product of the number ofconfigured CPUs and the dominantfrequency of the server CPU. Thedominant frequency is automaticallyobtained by the system.

    Default value: 0, which indicates nolimit.

    If the VMware Hypervisor is used, -1 indicates no limit. 

    CPU Quota This parameter is optional.

    Specify the CPU and memory quotasthat a VM can obtain in resourcecontention. The quota indicates therelative priority or importance of a VM.

    For example, if the quota of a VM istwice that of another VM, this VM hasthe priority to use the resources as twiceas that of the other VM.

    ●  High: The quota is 2000 for each

    CPU and 20 for each MB ofmemory.

    ●  Medium: The quota is 1000 for

    each CPU and 10 for each MB ofmemory.

    Medium

    MemoryQuota

    Medium

    NOTE

  • 8/19/2019 HCNA Cloud BCCP Lab Guide

    36/73

      HUAWEI HCNA-Cloud Experiment Manual ISSUE 1.00 INTERNAL

    Category Parameter Description Example Value

    memory size. For example, if theconfigured memory is 2 GB, themaximum reserved memory is40,960 GB.

    Default value:

    ●  CPU quota: medium (1000 x Number of CPUs)

    ● 

    Memory quota: medium (10 x nMB)

    Reserved(CPU,Memory)

    This parameter is optional.

    ●  Specifies the minimum CPU and

    memory resources required by theVM.

    ●  A VM can start only when the server provides the minimum CPU and

    memory resources required by theVM.

    ●  If this parameter is specified, the

    server will provide the reservedCPU and memory resources for theVM even if the server is heavilyloaded.

    For example, if a server has 2 GB

    memory available and the reservedvalue is set to 1 GB for VM 1 and VM2 running on this server, both VMs can

    50

  • 8/19/2019 HCNA Cloud BCCP Lab Guide

    37/73

      HUAWEI HCNA-Cloud Experiment Manual ISSUE 1.00 INTERNAL

    Category Parameter Description Example Value

    Parameters sharing the OS and the application.

    It is a string of 0 to 63 characters.

    Password This parameter is optional.

    Specifies the password of the PCsharing the OS and the application.

    It is a string of 0 to 63 characters.

    Admin123

    Shared file path

    This parameter is optional.

    Specifies the path of the PC sharing theOS and the application. Communication between the PC and the network must be normal.

    Folder names and file names cancontain only digits, letters, hyphens (-),underscores(_), periods (.), and spaces.

    ●  If the file is not shared on the

    network, you only need to enter thefile path, which is a string of 1 to 83characters, for example, \iso\linux.iso.

    ●  If the file is shared on the network,

    you need to enter an IP addressfollowed by the file path, which is astring of 1 to 100 characters, forexample,\\ \i \ i i

    \\182.168.24.10\iso\wind ows.iso

  • 8/19/2019 HCNA Cloud BCCP Lab Guide

    38/73

      HUAWEI HCNA-Cloud Experiment Manual ISSUE 1.00 INTERNAL

    The Basic Info page is displayed.

    Step 3 

    Set the following parameters about the VM template:

    Name, Image, Hypervisor, Resource cluster, and Description 

    Step 4  Click Next.

    The VM Template Specifications page is displayed.

    Step 5 

    Set the following parameters about the VM:

    OS type, OS version, Number of CPUs, Memory, Number of disks, Capacity, Thin provisioning,Affected by Snapshot, HA, and Clock sync

      Thin provisioning: If thin provisioning is enabled, the physical disk space is shared and storagespace is dynamically allocated only when data is written into the disk. Thin provisioning allowsmore virtual memory space to be allocated than the real memory available, because most of usersdo not use all the memory space allocated to them. You are advised to disable thin provisioning fordisks that run performance-intensive programs.

    This mode cannot be enabled for disks that do not support thin provisioning. Check the availabilityof thin provisioning in the following way:

    a.  Choose Resource > Resource Pool.

    The Resource Pool page is displayed.

     b. 

    Choose Data Center > Data Center > Zone > Computing Resource Pool > Resource cluster.

    The Summary page is displayed.

    c.  On the Storage page, check whether there are storage devices that support thin provisioning.

    - If yes, enable or disable thin provisioning.

    -  If no, do not enable thin provisioning.

  • 8/19/2019 HCNA Cloud BCCP Lab Guide

    39/73

      HUAWEI HCNA-Cloud Experiment Manual ISSUE 1.00 INTERNAL

    Table 2-5 

    Parameters description

    Parameter Description Example Value

    Limit (CPU) Specifies the maximum CPU resource that can be allocated bya server to a VM.

    It is the product of the number of configured CPUs and thedominant frequency of the server CPU. The dominantfrequency is automatically obtained by the system.

    Default value: 0, which indicates no limit.

    If the VMware Hypervisor is used, -1 indicates no limit.

    500MHz

    CPU Quota Specify the CPU and memory quotas that a VM can obtain inresource contention. The quota indicates the relative priority orimportance of a VM. For example, if the quota of a VM istwice that of another VM, this VM has the priority to use theresources as twice as that of the other VM.

    ● 

    High: The quota is 2000 for each CPU and 20 for each MBof memory.

    ●  Medium: The quota is 1000 for each CPU and 10 for eachMB of memory.

    ●  Low: The quota is 500 for each CPU and 5 for each MB of

    memory.

    For example, if the CPU and memory resource quota is set to

    Medium for a VM that has two virtual CPUs and 1 GBmemory, the VM has 2000 CPU quotas (2 x 1000) and 10,240memory quotas (10 x 1024).

    Medium

    Memory Quota Medium

    NOTE

  • 8/19/2019 HCNA Cloud BCCP Lab Guide

    40/73

      HUAWEI HCNA-Cloud Experiment Manual ISSUE 1.00 INTERNAL

    Parameter Description Example Value

    Reserved(CPU,Memory)

    Specifies the minimum CPU and memory resources required by a VM.

    ●  A VM can start only when the server provides the

    minimum CPU and memory resources required by the VM.

    ●  If this parameter is specified, the server will provide thereserved CPU and memory resources for the VM even ifthe server is heavily loaded.

    For example, if a server has 2 GB memory available and thereserved value is set to 1 GB for VM 1 and VM 2 running onthis server, both VMs can obtain 1 GB memory.

    Configuration principles:

    ●  If users have no special requirements on VM performance

    indicators, use the default settings.

    ●  If users have special requirements on VM performance

    indicators, set this parameters based on user requirements.Value range:

    ●  Reserved CPU: an integer ranging from 0 to the maximum

    CPU limit.

    ●  Reserved memory: an integer ranging from 0 to 1024 x

    nGB. where n is the configured memory size. For example,if the configured memory is 2 GB, the maximum reservedmemory is 2048 GB.

    Default value: 0, which indicates that no resource is reserved.

    50

  • 8/19/2019 HCNA Cloud BCCP Lab Guide

    41/73

      HUAWEI HCNA-Cloud Experiment Manual ISSUE 1.00 INTERNAL

    To install non-ISO application software for a VM template, you need to copy the application software package savedon the PC to the VM in shared mode, and install the package on the VM. Therefore, check that at least one NIC onthe VM belongs to the service plane. That ensures that the VM can be automatically allocated an IP address that cancommunicate with the PC. If the VMware Hypervisor is used, delete the NIC configuration after installing non-ISOapplication software and before publishing the VM template. If the VMware Hypervisor is used, click ChangeStartup Mode to change the startup mode to boot from the CD-ROM drive.

      If yes, go to step 11.

      If no, go to step 25.

    Configuring a NIC

    Step 11 

    On the Install Software page, click OK.

    The VM Template page is displayed.

    Step 12  View the name and owning cluster of the VM template. Close the VM Template page.

    Step 13  Click Resource.

    The Resource page is displayed.

    Step 14  In the navigation tree on the left, select the cluster housing the VM, and click the VM tab page in theright pane.

    Step 15  Enter the VM template information in the search field and click Search.

    You can click Advanced to search for a VM template with more criteria.

    Step 16 

    Click the VM name.

    The Summary page is displayed.

    NOTE

    NOTE

  • 8/19/2019 HCNA Cloud BCCP Lab Guide

    42/73

      HUAWEI HCNA-Cloud Experiment Manual ISSUE 1.00 INTERNAL

    You are returned to the NIC configuration page. The NIC area displayed the added NIC.

    Step 23 

    Under Operation on the Summary page, click Start/Wake up.

    Step 24  You are returned to the Install Software page of the Create VM Template dialog box.

    Installing an OS 

    Step 25  Set the OS parameters about the VM template as prompted based on the data plan.

     

    If the FusionCompute Hypervisor is used, you can mount the CD-ROM drive in shared mode. Alternatively, you

    can click VNC login, click on the VM, and then select File (*.iso) to mount the CD-ROM drive. Thisdocument uses the shared mode as an example when describing the detailed steps.

      If the VMware Hypervisor is used, CD-ROM drives cannot be mounted using a locally shared file. An NSFserver must be configured in the vCenter to communicate with the FusionManager and mount CD-ROM drives.

      If you click Close on the Software Installation page, the system asks you whether to save the VM template being created. If you save the VM template as prompted, the VM information can be searched for on the VM

    Template page. To continue the installation, click .

      When installing an OS, select Restart the VM immediately after mounting the ISO file.

    Step 26 

    Click Mount.

    The Mount dialog box is displayed.

    A host allows only one VM template to have a CD-ROM drive mounted. Therefore, if you want to exit the SoftwareInstallation page when no software is being installed for the VM template, click Detach to unmount CD-ROM

    drive from the VM first. If the VMware Hypervisor is used and the unmounting fails, click VNC login, eject theCD-ROM drive, and try again.

    NOTE

    NOTE

  • 8/19/2019 HCNA Cloud BCCP Lab Guide

    43/73

      HUAWEI HCNA-Cloud Experiment Manual ISSUE 1.00 INTERNAL

    For example, if the Java version is 1.7.0_15 and the version path in the JRE program installation

    directory is C:\Program Files\Java\jre7\bin, run javacpl.exe in this path to display Java ControlPanel.

    Step 30  Install and configure the Linux OS by following the instructions provided by the OS guide.

    About This Chapter 

    The following table lists the contents of this chapter.

    Title Description

    2.1 Objectives

    2.2 Experiment Deployment

    2.3 Basic Information

    2.4

       Note the following points during the installation:

      If you configure partitions on the Partitions page on the Summary tab page, you can create root andswap partitions only, and they must be set to primary partitions. Set the sizes of the root and swap

     partitions based on site requirements.  After the time of the Linux VM is set, restart the VM to ensure that the hardware time synchronizes

    with the system time

    CAUTION

  • 8/19/2019 HCNA Cloud BCCP Lab Guide

    44/73

      HUAWEI HCNA-Cloud Experiment Manual ISSUE 1.00 INTERNAL

    The firewall settings are saved.

    Step 36 

    Click Next.

    A dialog box is displayed indicating whether to modify the settings of the firewall.

    Step 37  Click Yes.

    A dialog box is displayed.

    Step 38 

    Click Finish.

    The YaST2 window is displayed.

    Step 39  Close the YaST2 Control Center screen.

    Step 40  Right-click the blank area of the VM desktop and choose Open in terminal from the shortcut menu.

    The system enters the command-line mode.

    Step 41  Run the following command to restart the VM:

    reboot

    Replacing kernel files 

    Step 42  Refer to the following table to determine whether to replace kernel files for the VM.

      If yes, go to step 43.

      If no, go to step 44.

    Table 2-6 

    List of the OSs whose kernel files must be replaced

    OS Package Containing the Kernel Files

  • 8/19/2019 HCNA Cloud BCCP Lab Guide

    45/73

      HUAWEI HCNA-Cloud Experiment Manual ISSUE 1.00 INTERNAL

      Before mounting the ISO file, ensure that no software is being installed on the VM.

      Restart the VM before installing the PV driver. Otherwise, the installation fails.

      Obtain the FusionCompute V100R003C00_GuestOS.iso file.

      If the VMware Hypervisor is used, the PV driver is not required but the VMware Tools must beinstalled.

    Step 44 

    On the Software Installation page, configure the PV driver as prompted based on the data plan.

    Step 45  Click Mount.

    The Mount dialog box is displayed.

    A host allows only one VM template to have a CD-ROM drive mounted. Therefore, if you want to exit the SoftwareInstallation page when no software is being installed for the VM template, click Detach to unmount the CD-ROM

    drive from the VM first. If the VMware Hypervisor is used and the unmounting fails, click VNC login, eject theCD-ROM drive, and try again.

    Step 46 

    Click OK.

    A dialog box is displayed indicating that the CD-ROM drive is mounted successfully.

    Step 47  Click VNC Login.

    The VM page is displayed.

    CAUTION

    NOTE

    NOTE

  • 8/19/2019 HCNA Cloud BCCP Lab Guide

    46/73

      HUAWEI HCNA-Cloud Experiment Manual ISSUE 1.00 INTERNAL

    Table 2-7 

    Mapping between the mounting path and the Linux edition

    Linux Edition Supported CD-ROM Drive Mounting Path

    CentOS 5.6 ISO file/CD-ROM drive /dev/hdd

    Red Hat 5.5 32-bit

    SUSE 11 SP0 SP1 ISO file/CD-ROM drive /dev/sr0

    Step 50  Run the following command to switch to the xvdd/pvDriver/linux directory:

    cd xvdd/pvDriver/linux

    Step 51 

    Run the following command to view the installation package of the PV driver:

    ls

    The command output is as follows:

    uvp- t ool s- l i nux-1. 2. 0. 9. 010. t ar . bz2

    Step 52  Run the following command to copy the PV driver installation package to the root directory:

    The directory varies according to the software version. The directory in the following command is used as anexample:

    cp uvp-tools-linux-1.2.0.9.010.tar.bz2 /root

    cd /root

    St 53 R h f ll i d d h PV d i

    NOTE

  • 8/19/2019 HCNA Cloud BCCP Lab Guide

    47/73

      HUAWEI HCNA-Cloud Experiment Manual ISSUE 1.00 INTERNAL

    reboot

    Step 58 

    Enter the user name and password.

    The login page is displayed.

    Step 59  Right-click in the blank area of the VM desktop and choose Open in terminal from the shortcut menu.

    The system enters the command-line mode.

    Step 60 

    Run the following command to check whether the PV driver is installed:

    ps -ef | grep uvp-monitor

    r oot 4561 1 0 J un29 ? 00: 00: 00 /usr/bin/uvp-monitor  

    r oot 4567 4561 0 J un29 ? 00: 00: 00 /usr/bin/uvp-monitor  

    If the information in black is displayed as shown above, the PV driver is installed successfully.

    Installing the Puppet Client 

    Obtain the puppetclient_linux.iso file.

    Step 61 

    On the Software Installation page that is displayed after the PV driver is installed, configure thePuppet Client as prompted based on the data plan.

    Step 62  Click Mount.

    The Mount dialog box is displayed.

    A host allows only one VM template to have the CD-ROM drive mounted. Therefore, if you want to exit theSoftware Installation page when no software is being installed for the VM template, click Detach to unmount the

    NOTE

    NOTE

  • 8/19/2019 HCNA Cloud BCCP Lab Guide

    48/73

      HUAWEI HCNA-Cloud Experiment Manual ISSUE 1.00 INTERNAL

    Step 67 

    Run the following command to check whether the command output contains disabled or permissive.

    sestatus -v

    The command output containing disabled is as follows:

    SELi nux st at us: di sabl ed

    The command output containing permissive is as follows:

    SELi nux st atus: enabl ed

    SELi nuxf s mount : / sel i nux

    Curr ent mode: per mi ssi ve

    Mode f r om conf i g f i l e: enf or ci ng

      If yes, go to step 69.

      If no, go to step 68.

    Step 68  Run the following command to set SELINUX in the /etc/selinux/config file to disabled, and thenrestart the OS:

    vi /etc/selinux/configSELINUX=disabled

    :wq!

    reboot

    Step 69 

    Step 69: Run the following command to switch to the directory containing the Puppet Client installation package:

    cd xvdd

    Step 70 Step 70: Run the following command to install the Puppet Client software:

  • 8/19/2019 HCNA Cloud BCCP Lab Guide

    49/73

      HUAWEI HCNA-Cloud Experiment Manual ISSUE 1.00 INTERNAL

    The Puppet Client is installed successfully if the following information is displayed:

    Gal axManager Agent has been i nst al l ed successf ul l y!

    Step 72  After the Puppet Client is installed, run the following command to unmount the CD-ROM drive:

    cd ..

    umount xvdd

    Step 73 

    Run the following command to restart the VM:

    reboot

    Step 74  On the FusionManager, choose Resource > Device and select a host.

    Step 75  On the Hardware page, click NIC.

    Check the types of the NICs.

    Determine whether the NICs are iNICs according to the NIC models.

    Step 76 

    Check whether there are iNICs used on the hosts in the system.  If yes, go to step 77.

      If no, go to step 90.

    Installing the iNIC driver 

      Before mounting the ISO file, ensure that no software is being installed on the VM.

     

    Obtain the FusionCompute V100R003C00_GuestOS.iso file.

    Step 77 

    On the Install Software page that is displayed after the Puppet Client is installed, configure the iNIC

    NOTE

  • 8/19/2019 HCNA Cloud BCCP Lab Guide

    50/73

      HUAWEI HCNA-Cloud Experiment Manual ISSUE 1.00 INTERNAL

    cd /home/linux

    Step 82 

    Run the following command to decompress the iNIC driver installation package compatible with theOS:

    tar -zxf suse11sp1_64_1.2.2.100.1.tar.gz

    The following installation steps use the SUSE 11 SP1 64-bit installation package as an example.

    Step 83  Run the following command to switch to the directory containing the iNIC driver installation package:

    cd suse11sp1_64/2.6.32.12-0.7-default/

    Step 84 

    Run the following command to install the iNIC driver:

    rpm -ivh iNIC-SLES11.1-1.2.2.100.1.x86_64.rpm

    Step 85  After the iNIC driver is installed successfully, run the following command to unmount the CD-ROMdrive:

    cd

    cd Desktop

    umount xvdd

    Step 86  Run the following command to restart the VM:

    reboot

    Step 87 

    Enter the user name and password.

    The login page is displayed.

    NOTE

  • 8/19/2019 HCNA Cloud BCCP Lab Guide

    51/73

      HUAWEI HCNA-Cloud Experiment Manual ISSUE 1.00 INTERNAL

    Step 91 

    Run the following command to view the files in the network rule directory:

    ls -l

    Step 92  Run the following command to delete the rule files whose file names contain persistent and net in thenetwork rule directory:

    rm -r /etc/udev/rules.d/ 30-net_persistent-names.rules 

    rm -r /etc/udev/rules.d/ 70-persistent-net.rules //The word in Italics are subject to the actual userenvironment.

    Step 93 

    Run the following command to switch to the directory containing the VM NIC information:

    cd /etc/sysconfig/network/

    Step 94  Run the following command to query the VM NIC information:

    ls -l

    The following command output is displayed.

    t ot al 84- r w- r - - r - - 1 root r oot 11772 May 25 20: 47 conf i g

    - r w- r - - r - - 1 r oot r oot 6678 May 25 21: 01 dhcp

    drwxr - xr - x 2 r oot r oot 4096 May 25 20: 47 i f - down. d

    drwxr - xr- x 2 r oot r oot 4096 May 25 23: 16 i f - up. d

    - r w- r - - r - - 1 r oot r oot 191 May 25 21: 16 ifcfg-eth2 

    - r w- r - - r - - 1 r oot root 174 May 5 2010 i f cf g- l o

    - r w- r - - r - - 1 r oot r oot 27165 May 5 2010 i f cf g. t empl at e

    - r w- r - - r - - 1 r oot root 239 May 5 2010 i f r out e- l o

    drwx- - - - - - 2 r oot r oot 4096 May 5 2010 provi ders

    - r w- r - - r - - 1 r oot root 26 May 25 21: 15 r out es

  • 8/19/2019 HCNA Cloud BCCP Lab Guide

    52/73

  • 8/19/2019 HCNA Cloud BCCP Lab Guide

    53/73

      HUAWEI HCNA-Cloud Experiment Manual ISSUE 1.00 INTERNAL

    brw- r w- - - - 1 r oot di sk 202, 0 08- 15 16: 13 / dev/ xvda

    brw- r w- - - - 1 r oot di sk 202, 1 08-15 16: 13 / dev/ xvda1brw- r w- - - - 1 r oot di sk 202, 2 08- 15 16: 13 / dev/ xvda2

    brw- r w- - - - 1 r oot di sk 202, 48 08- 15 16: 13 / dev/ xvdd

    brw- r w- - - - 1 r oot di sk 202, 64 08- 15 16: 13 / dev/ xvde

    brw- r w- - - - 1 r oot di sk 202, 65 08- 15 16: 13 / dev/ xvde1

    brw- r w- - - - 1 r oot di sk 202, 66 08- 15 16: 13 / dev/ xvde2

    xvda indicates the system disk, xvdd the CD-ROM drive, and xvde the user disk.

    Step 107 

    Run the following command to format the user disk:

    mkfs.ext3 -F /dev/xvde

    Step 108 

    Run the following command to mount the user disk to the VM:

    mkdir /usr/xvde

    mount /dev/xvde /usr/xvde/

    Step 109 

    Run the following command to query the information about the user disk:

    df -h

    Fi l e syst em Capaci t y Used Tot al Usage Mount i ng poi nt

    / dev/ xvda2 19G 3. 1G 15G 18% /

    devt mpf s 465M 108K 465M1% / dev

    t mpf s 465M100K 465M1% / dev/ shm

    / dev/ xvde 20G 173M19G 1% / usr / xvde

    The user disk that is mounted to the VM if the disk capacity of xvde is displayed in the command output.

    NOTE

    NOTE

  • 8/19/2019 HCNA Cloud BCCP Lab Guide

    54/73

      HUAWEI HCNA-Cloud Experiment Manual ISSUE 1.00 INTERNAL

    Publishing a VM template 

    Step 114 

    Re-log in to the FusionManager.

    Step 115  Choose Catalog > VM Template, locate the row containing the VM template to be published, and click

    in the Operation column.

    The Install Software page is displayed.

    Step 116  On the Install Software page, click Finish.

    A dialog box is displayed indicating that a VM template is created.

    If you click Finish, the CD-ROM drive mounted to the VM is automatically unmounted.

    Step 117  Click OK.

    The VM Template page is displayed.

    Step 118  Enter the VM template information in the search field and click Search.

    You can click Advanced to search for a VM template with more criteria.

    Step 119 

    Locate the row that contains the VM template to be published, and click in the Operation column.

    The Publish VM Template dialog box is displayed.

    Step 120 

    Click OK.

    The VM Template page is displayed The state of the VM changes from Creation complete to

    NOTE

    NOTE

  • 8/19/2019 HCNA Cloud BCCP Lab Guide

    55/73

      HUAWEI HCNA-Cloud Experiment Manual ISSUE 1.00 INTERNAL

    ----End

    Result

    Check whether all steps described in the previous procedure are performed.

    Confirm: [OK?]__________________

    2.4.4 Deleting a VM Template

     NOTE: A VM cannot be deleted if its state is Publication succeeded.

    Procedure

    Step 1  On the FusionManager, choose Catalog > VM Template.

    The VM Template page is displayed.

    Step 2  Locate the row that contains the VM template you want to delete, and click .

    A dialog box is displayed.

    Step 3  Click OK.

    The VM Template Management page is displayed.

    ----End

    ResultCheck whether all steps described in the previous procedure are performed.

  • 8/19/2019 HCNA Cloud BCCP Lab Guide

    56/73

      HUAWEI HCNA-Cloud Experiment Manual ISSUE 1.00 INTERNAL

    Parameter Description Example Value

    Organization This parameter is mandatory. It is available onlywhen Type is Organization.

    huawei

    Description This parameter is optional.

    It is a string of 0 to 1024 characters.

    Service template collectionof User01

    Procedure

    Step 1 

    On the FusionManager, choose Catalog > Service Template.

    The Service Template page is displayed.

    Step 2  Click Add Catalog.

    Step 3  Set a catalog name.

    Step 4 

    Select a catalog type and perform operations based on the selected type.

    If you select System, go to step 6.

    If you select Organization, go to step 5.

    Step 5  In the Organization drop-down list, select an organization as the owner of the directory.

    Step 6 

    Set a description.

    Step 7 

    Click Add.

    The Service Template page is displayed In the service template list you can see the newly added

  • 8/19/2019 HCNA Cloud BCCP Lab Guide

    57/73

      HUAWEI HCNA-Cloud Experiment Manual ISSUE 1.00 INTERNAL

    Figure 2-3 

    Flowchart for creating a service template

    Start

    End

    Doesacatalogexist?

    Createaservicetemplate.

    Publishtheservicetemplate.

     Addacatalog.

    No

    Yes

     

    The following tables list the data that must be ready before you create a service template.

    Table 2-9 lists the required service catalog data.

    Table 2-9 

    Service catalog data

    Parameter Description Example Value

  • 8/19/2019 HCNA Cloud BCCP Lab Guide

    58/73

      HUAWEI HCNA-Cloud Experiment Manual ISSUE 1.00 INTERNAL

    Table 2-10 

    Required service template adding data

    Category Parameter Description Example Value

    ServiceTemplate

     Name This parameter is mandatory.

    Specifies the name of the servicetemplate.

    A service template name can containonly letters, digits, hyphens (-),underscores (_), pound signs (#),

     parentheses, and square brackets ([]). Itis a string of 1 to 64 characters.

    Template_01

    Hypervisor This parameter is mandatory.

    A Hypervisor that has an organizationvirtual data center (VDC) isrecommended.

    fusioncubehypervisor

    Description This parameter is optional.

    It is a string of 0 to 1024 characters.

    Service template of

    User_01

    Table 2-11 lists the required service template configuration data.

    Table 2-11 Required service template configuration data

    Category Parameter Description Example ValueService Template The parameters configured when the Template_01

  • 8/19/2019 HCNA Cloud BCCP Lab Guide

    59/73

      HUAWEI HCNA-Cloud Experiment Manual ISSUE 1.00 INTERNAL

    Category Parameter Description Example Value

    OutputParameters

     Name This parameter is mandatory.

    Application information such as theapplication name is outputted to theadministrator after creating anapplication.

    The name must start with a letter orunderscore (_) and can contain only

    letters, digits, and underscores (_). It isa string of 1 to 64 characters.

    address

    Value This parameter is mandatory.

    It is a string of 0 to 1024 characters.

    http://#Linux_1.DefaultNic#/discuz

    Description This parameter is optional.

    It is a string of 0 to 1024 characters.

    Address used to accessthe service deploymentforum

    Table 2-12 lists the required VM template data.

    Table 2-12 Required VM template data

    Category Parameter Description Example Value

    VM TemplateInformation  Name Parameters that need to be configuredwhen the VM template is beingcreated You can modify the

    VM_01

    Description VM template of User_01

  • 8/19/2019 HCNA Cloud BCCP Lab Guide

    60/73

      HUAWEI HCNA-Cloud Experiment Manual ISSUE 1.00 INTERNAL

    Category Parameter Description Example Value

     NIC Name This parameter is mandatory.

    ●  The template designing tool deletes

    all the NICs configured in VMtemplate creation except the default NIC.

    ●  The default NIC cannot be modified

    or deleted.

    ● 

    User-defined NICs can be deletedand modified.

    A NIC name can contain only letters,digits, hyphens (-), underscores (_), pound signs (#), parentheses, square brackets ([]), and spaces. It is a stringof 1 to 64 characters.

    -

    Disk List This parameter is mandatory.

    ●  VM template disks can be added,

    deleted, and modified.

    ●  The default disk cannot be modified

    or deleted.

    It is a string of 1 to 64 characters.

    -

    Capacity(GB)

    This parameter is mandatory.

    It is an integer ranging from 1 to 2048.

    20GB

    Thin This parameter is optional. -

  • 8/19/2019 HCNA Cloud BCCP Lab Guide

    61/73

      HUAWEI HCNA-Cloud Experiment Manual ISSUE 1.00 INTERNAL

    Category Parameter Description Example Value

    InitializeCommand

    This parameter is optional.

    ●  This command is executed after the

    VM is created.

    ●  If you enter an incorrect command,

    the VM initialization fails.

    It is a string of 0 to 1024 characters.

    echo $(date) post on vm1 >> /tmp/jqy.log

    StartCommand This parameter is optional.The command is executed for startingthe VM.

    It is a string of 0 to 1024 characters.

    echo $(date) start on vm1 >> /tmp/jqy.log

    StopCommand

    This parameter is optional.

    The command is executed for stoppingthe VM.

    It is a string of 0 to 1024 characters.

    echo $(date) stop on vm1 >> /tmp/jqy.log

    Table 2-13 lists the required software package data.

    Table 2-13 Required software package data

    Category Parameter Description Example Value

    SoftwareP k

    Description This parameter is optional. Discuz installationk d l t

  • 8/19/2019 HCNA Cloud BCCP Lab Guide

    62/73

      HUAWEI HCNA-Cloud Experiment Manual ISSUE 1.00 INTERNAL

    Table 2-14 lists the required network data.

    Table 2-14 Required network data

    Category Parameter Description Example Value

     Networks Name This parameter is mandatory.

    Specifies the name of the catalog.

    The catalog name can contain onlyletters, digits, hyphens (-), underscores

    (_), and spaces. It is a string of 1 to 64characters.

    You can modify the default value.

    DefaultNetwork

    Description This parameter is optional.

    You can modify the default value.

    It is a string of 0 to 1024 characters.

    System default networkresource

    Table 2-15 lists the required elastic group data.

    Table 2-15 Required elastic group data

    Category Parameter Description Example Value

    Scaling

    Group

     Name This parameter is mandatory.

    Specifies the name of the elastic group.An elastic group is a collection of VMs

     policy

  • 8/19/2019 HCNA Cloud BCCP Lab Guide

    63/73

      HUAWEI HCNA-Cloud Experiment Manual ISSUE 1.00 INTERNAL

    Category Parameter Description Example Value

    Minimumnumber ofVMs

    This parameter is mandatory.

    Specifies the minimum number of VMsthat can be deleted from the elasticgroup. If the number of VMs which arecorrelated to the elastic group is lessthan the minimum value, the systemautomatically creates VMs of theMin.value number.

    It is an integer ranging from 1 toMax.value.

    1

    Maximumnumber ofVMs

    This parameter is mandatory.

    Specifies the maximum number ofVMs that can be added in the elasticgroup.

    It is an integer ranging from 1 to 200.

    2

    Minimumnumber ofrunning VMs

    This parameter is mandatory.

    Specifies the minimum number of VMsthat must be running in the elasticgroup.

    It is an integer ranging from 1 toMax.value.

    1

    CoolingPeriod (min)

    This parameter is mandatory.All triggering conditions are invalid

    20

  • 8/19/2019 HCNA Cloud BCCP Lab Guide

    64/73

      HUAWEI HCNA-Cloud Experiment Manual ISSUE 1.00 INTERNAL

    Category Parameter Description Example Value

    Description This parameter is optional.

    It is a string of 0 to 1024 characters.

    Intra-group elastic policyof VDC1

    StatisticalPeriod (min)

    This parameter is mandatory.

    Specifies the number of consecutivetimes that the resource usage meets theconditions in one statistical period. In agiven statistical period, when theconditions set in ConditionConfiguration are met for a number oftimes equal to or greater than the valuespecified in Statistical count, theoperation specified in Operation will be performed.

    Value range:

    ●  5 minutes

    ●  10 minutes

    ●  15 minutes

    ●  20 minutes

    Default value: 5

    10

    StatisticalCount

    This parameter is mandatory.

    Specifies the number of consecutive

    times that the resource usage meets theconditions in one statistical period. In a

    10

  • 8/19/2019 HCNA Cloud BCCP Lab Guide

    65/73

      HUAWEI HCNA-Cloud Experiment Manual ISSUE 1.00 INTERNAL

    Category Parameter Description Example Value

    OperationType

    This parameter is mandatory.

    Specifies the operation, such as VMcapacity expansion or shrinking to be performed when the preset conditionsare met.

    Default value: capacity expansion

    -

    Cooling period(min)

    This parameter is mandatory.

    All triggering conditions are invalidduring the cooling period. The cooling period starts from the time when thesystem was lastly expanded or shrunk.

    It is an integer ranging from 0 to 30.

    20

    Step(number)

    This parameter is mandatory.

    Specifies the number of VMs whosecapacity is expanded or shrunk. Ifcapacity expansion or shrinking is not performed on all of the VMs, thesystem randomly selects the number ofVMs to realize capacity expansion orshrinking.

    It is an integer ranging from 1 to 10.

    2

  • 8/19/2019 HCNA Cloud BCCP Lab Guide

    66/73

  • 8/19/2019 HCNA Cloud BCCP Lab Guide

    67/73

      HUAWEI HCNA-Cloud Experiment Manual ISSUE 1.00 INTERNAL

    This mode cannot be enabled for disks that do not support thin provisioning. Check the availability ofthin provisioning in the following way:

    1.  Choose Resource > Resource Pool.

    The Resource Pool page is displayed.

    2.  Choose Data Center > Data Center > Zone > Computing Resource Pool > Resource cluster.

    The Summary page is displayed.

    3. 

    On the Storage page, check whether there are storage devices that support thin provisioning.

    −  If yes, enable or disable thin provisioning.

    −  If no, do not enable thin provisioning.

    −  Affected by snapshot: If this option is selected and the system is taking a snapshot for the VM,no snapshot is taken for the disk.

    When setting the computer name, you can enter a desired one or click to reference a public parameter.

    Step 15  Expand the Software list in the area on the left, and drag the software package into the VM template.

      If there is no available software package, you can log in to the VNC and mount a CD-ROM drive to install anISO piece of software. If you want to install a non-ISO piece of software, copy the software installation file tothe VM and install it.

      The OS type suitable for the software must be in compliance with that of the VM.

      When multiple software packages need to be added to the VM template, they must be dragged to the VMtemplate in sequence from the area on the left.

      The software packages in the VM template must be installed from bottom to top.

      If the target OS is Windows XP 32-bit, install the NIC driver and SCSI controller driver for the VM. The driversare available at:

    NOTE

  • 8/19/2019 HCNA Cloud BCCP Lab Guide

    68/73

      HUAWEI HCNA-Cloud Experiment Manual ISSUE 1.00 INTERNAL

    If only the default NIC is available for configuring the VM template NIC, the Add Association dialog box is notdisplayed when adding the association between the VM template and the port group.

      If yes, go to step 21.

      If no, go to step 23.

    Step 21  From the NIC drop-down list, select a NIC.

    Step 22  Click OK.

    The association between the NIC and the network is added.

    Step 23 

    Determine whether to add the association between the other NICs and the network.

      If yes, perform step 17 to step 22.

      If no, go to step 25.

    Each VM NIC can be associated with only one network. If you need to associate multiple NICs with the network,add the same number of networks as the number of NICs, and associate each NIC to one network.

    Step 24  Determine whether to add an elastic group.

      If yes, go to step 25.

      If no, go to step 32.

    Step 25 

    Expand ScalingGroup in the area on the left, and drag the default elastic group into the operation area.

    After the elastic group is created, you can set the inter-group policy of elastic groups in the VDC toimplement resources scheduling in the VDC.

    Step 26  Step 26: Set the elastic group parameters in the area on the right.

    NOTE

    NOTE

  • 8/19/2019 HCNA Cloud BCCP Lab Guide

    69/73

  • 8/19/2019 HCNA Cloud BCCP Lab Guide

    70/73

      HUAWEI HCNA-Cloud Experiment Manual ISSUE 1.00 INTERNAL

    Parameter Description Example Value

    Description This parameter is optional.

    It is a string of 0 to 1024 characters.

    Email service

    Administrators This parameter is mandatory.

    Specifies the administrator who has the permission to manage the application.

     

    When a system administrator creates an application,the management permission of this application can be granted to other users.

      By default, the current user is added to Selectedusers.

    User001

    Organization This parameter is mandatory.

    Specifies the organization to which the user belongs.

    huawei

    OrganizationVDC

    This parameter is mandatory.

    Specifies the resource used by the application.

    VDC01

    Organization Network

    This parameter is mandatory.

    Specifies the organization network to which the NIC belongs.

    If you select multiple organization networks,

    only one can assign a virtual gateway to the VM.

    huawei

    NOTE

  • 8/19/2019 HCNA Cloud BCCP Lab Guide

    71/73

  • 8/19/2019 HCNA Cloud BCCP Lab Guide

    72/73

      HUAWEI HCNA-Cloud Experiment Manual ISSUE 1.00 INTERNAL

    The application creation starts, and you can view the creation progress in App.

    After an application is created, the intra-group policy does not automatically start. You need to manually start it.

    ----End

    Result

    Check whether all steps described in the previous procedure are performed.

    Confirm: [OK?]__________________

    NOTE

    The privilege of HCNA/HCNP/HCIE:With any Huawei Career Certification you have the privilege on http://learning huawei com/en to enjoy:

    http://learning.huawei.com/enhttp://learning.huawei.com/en

  • 8/19/2019 HCNA Cloud BCCP Lab Guide

    73/73

    With any Huawei Career Certification, you have the privilege on http://learning.huawei.com/en to enjoy:

    1 Comprehensive E-Learning Courses 

    Content:All Huawei Career Certification E-Learning courses

    Methods to get the E-learning privil g : submit Huawei Account and email being used for Huawei Account

    registration to [email protected]  .  2  Training Material Download

    Content: Huawei product training material and Huawei career certification training material

    Method:Logon http://learning.huawei.com/en   and enter HuaWei Training/Classroom Training  ,then you can

    download training material in the specific training introduction page.

    3  Priority to participate in Huawei Online Open Class LVC)

    Content

    :The Huawei career certification training covering all ICT technical domains like R&S, UC&C, Security,

    Storage and so on, which are conducted by Huawei professional instructors

    Method:The plan and participate method please refer to LVC Open Courses Schedule

    4 Learning Tool: eNSP 

    eNSP (Enterprise Network Simulation Platform) is a graphical network simulation tool which is developed by

    Huawei and free of charge. eNSP mainly simulates enterprise routers, switches as close to the real hardware as

    it possible, which makes the lab practice available and easy without any real device.

    In addition, Huawei has built up Huawei Technical Forum which allows candidates to discuss technical issues with

    Huawei experts , share exam experiences with others or be acquainted with Huawei Products(

    http://support.huawei.com/ecommunity/) 

    http://learning.huawei.com/enmailto:[email protected]://learning.huawei.com/enhttp://support.huawei.com/ecommunity/http://support.huawei.com/ecommunity/http://learning.huawei.com/enmailto:[email protected]://learning.huawei.com/en