0% found this document useful (0 votes)
393 views526 pages

HCIA Cloud+Computing+V5.5+Lab+Guide

Uploaded by

nncc.entel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
393 views526 pages

HCIA Cloud+Computing+V5.5+Lab+Guide

Uploaded by

nncc.entel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 526

Huawei Cloud Certification Training

HCIA-Cloud Computing

Lab Guide (Basic Exercises)


ISSUE: 5.5

HUAWEI TECHNOLOGIES CO., LTD.

2
Copyright © Huawei Technologies Co., Ltd. 2023. All rights reserved.
No part of this document may be reproduced or transmitted in any form or by any
means without prior written consent of Huawei Technologies Co., Ltd.

Trademarks and Permissions

and other Huawei trademarks are trademarks of Huawei Technologies Co., Ltd.
All other trademarks and trade names mentioned in this document are the property of
their respective holders.

Notice
The purchased products, services and features are stipulated by the contract made
between Huawei and the customer. All or part of the products, services and features
described in this document may not be within the purchase scope or the usage scope.
Unless otherwise specified in the contract, all statements, information, and
recommendations in this document are provided "AS IS" without warranties,
guarantees or representations of any kind, either express or implied.
The information in this document is subject to change without notice. Every effort has
been made in the preparation of this document to ensure accuracy of the contents, but
all statements, information, and recommendations in this document do not constitute
a warranty of any kind, express or implied.

Huawei Technologies Co., Ltd.


Address: Huawei Industrial Base Bantian, Longgang Shenzhen 518129
People's Republic of China
Website: https://e.huawei.com

Huawei Proprietary and Confidential


Copyright © Huawei Technologies Co., Ltd
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 1

Huawei Certification System


Huawei Certification is an integral part of the company's Platform + Ecosystem
strategy. It supports the development of ICT infrastructure that features Cloud-Pipe-
Device synergy. Our certification is always evolving to reflect the latest trends in ICT
development.
Huawei Certification consists of three categories: ICT Infrastructure Certification, Basic
Software & Hardware Certification, and Cloud Platform & Services Certification, making
it the most extensive technical certification program in the industry.
Huawei offers three levels of certification: Huawei Certified ICT Associate (HCIA),
Huawei Certified ICT Professional (HCIP), and Huawei Certified ICT Expert (HCIE).
Our programs cover all ICT fields and follow the industry's trend of ICT convergence.
With our leading talent development system and certification standards, we are
committed to fostering new digital ICT talent and building a sound ICT talent
ecosystem.
The HCIA-Cloud Computing V5.5 is intended for beginners. Train trainees to master the
necessary knowledge of cloud computing through pre-courses. Introduce Huawei cloud
virtualization and large-capacity desktop cloud products to help trainees understand
resource pooling. Train cloud computing engineers with FusionCompute virtualization
and FusionAccess desktop cloud management capabilities.
The HCIA-Cloud Computing V5.5 certification includes: Basic knowledge of cloud
computing (server, storage, network, and OS). FusionCompute product introduction,
virtual resource pool management, routine management, and security management.
FusionAccess product and component introduction, installation and deployment, service
management, and routine O&M.
Passing the HCIA-Cloud Computing V5.5 certification means that you are capable of
designing, managing, and maintaining FusionCompute and FusionAccess.
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 2
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 3

About This Document

Overview
This course is specific to HCIA-Cloud Computing certification. It is intended for those who
are preparing for HCIA-Cloud Computing certification or want to understand basic
configurations of storage, networks, Linux, and KVM virtualization.

About the Exercises


This document consists of four exercises:
⚫ Exercise 1: Basic storage configuration. In this experiment, Huawei OceanStor 5300
V3 storage is used to create disk domains, storage pools, LUNs, and LUN groups.
Trainees can learn about the configuration logic of hosts, host groups, and mapping
views, and then complete the configuration in section "Configuring FC Storage
Resources". This exercise helps trainees master basic configuration operations of
Huawei SAN storage.
⚫ Exercise 2: Basic network configuration, including the switch view introduction, basic
switch configuration, as well as VLAN and routing principle implementation. This
exercise helps trainees master the basic usage of switches and basic principles of
Layer 2 and Layer 3 network communication from multiple perspectives.
⚫ Exercise 3: Linux basics, including the bash commands, file viewing commands, basic
operations on the text editor, and Linux service management. This exercise helps
trainees master the basic usage of the Linux operating system.
⚫ Exercise 4: KVM virtualization, including creating VMs using KVM virtualization,
managing networks, configuring bridging, and configuring NAT networks. This
exercise helps trainees deepen their understanding of KVM virtualization principles
and master the basic principles of communication between VMs and external
networks.

Lab Environment Setup


Checking Devices
Make sure that all required software tools are ready before the exercises. The following
table lists the devices.

Table 1-1 Software and tools

Software Used For Description

eNSP V100R003C00SPC100 Network configuration One for each person


HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 4

exercise

Linux/KVM virtualization
VirtualBox 6.1.34 One for each person
exercise

openEuler-22.03-LTS- Linux/KVM virtualization


/
x86_64-dvd exercise
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 5

Contents

About This Document ............................................................................................................... 3


Overview ............................................................................................................................................................................................. 3
About the Exercises ......................................................................................................................................................................... 3
Account List ..................................................................................................................................................... 错误!未定义书签。
Lab Environment Setup ................................................................................................................................................................. 3
1 Storage Exercise ...................................................................................................................... 7
1.1 Overview ...................................................................................................................................................................................... 7
1.1.1 About This Exercise .............................................................................................................................................................. 7
1.1.2 Objectives ................................................................................................................................................................................ 7
1.1.3 Guideline .................................................................................................................................................................................. 7
1.2 Configuration Procedure ........................................................................................................................................................ 7
1.2.1 Creating a Disk Domain(Optional, If a disk domain exists in the environment, skip this step) ............. 7
1.2.2 Creating a Storage Pool ...................................................................................................................................................11
1.2.3 Creating a LUN ....................................................................................................................................................................13
1.2.4 Creating a LUN Group ......................................................................................................................................................14
1.3 Quiz .............................................................................................................................................................................................16
2 Network Configuration Exercise .......................................................................................17
2.1 Introduction to the Switch View .......................................................................................................................................17
2.1.1 Overview ................................................................................................................................................................................17
2.1.2 Configuration Procedure ..................................................................................................................................................17
2.2 Basic Switch Configuration .................................................................................................................................................20
2.2.1 Overview ................................................................................................................................................................................20
2.2.2 Configuration Procedure ..................................................................................................................................................21
2.3 VLAN Implementation Exercise .........................................................................................................................................25
2.3.1 Overview ................................................................................................................................................................................25
2.3.2 Configuration Procedure ..................................................................................................................................................26
2.4 Routing Implementation Exercise ....................................................................................................................................32
2.4.1 Overview ................................................................................................................................................................................32
2.4.2 Configuration Procedure ..................................................................................................................................................33
2.5 Quiz .............................................................................................................................................................................................39
3 Linux Exercise ........................................................................................................................40
3.1 Overview ....................................................................................................................................................................................40
3.1.1 About This Exercise ............................................................................................................................................................40
3.1.2 Objectives ..............................................................................................................................................................................40
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 6

3.2 Preparations .............................................................................................................................................................................40


3.2.1 Creating a VM ......................................................................................................................................................................40
3.2.2 Installing an OS on the VM.............................................................................................................................................43
3.3 Useful Commands ..................................................................................................................................................................49
3.3.1 help ..........................................................................................................................................................................................49
3.3.2 Other Common Commands ............................................................................................................................................50
3.4 bash Commands .....................................................................................................................................................................51
3.4.1 Power Supply Control and User Switching ................................................................................................................51
3.4.2 Basic Directory and File Operations .............................................................................................................................51
3.5 File Viewing Commands ......................................................................................................................................................54
3.5.1 Viewing Files .........................................................................................................................................................................54
3.5.2 (Optional) Searching for Files ........................................................................................................................................57
3.6 Basic Operations on the Vim Text Editor ......................................................................................................................58
3.6.1 Normal Mode of Vim ........................................................................................................................................................58
3.6.2 Insert Mode of Vim ............................................................................................................................................................62
3.6.3 Command Line Mode of Vim .........................................................................................................................................65
3.7 openEuler System and User Management ...................................................................................................................67
3.7.1 Network Management......................................................................................................................................................67
3.7.2 Service Management .........................................................................................................................................................71
3.7.3 User Management ..............................................................................................................................................................73
3.8 Quiz .............................................................................................................................................................................................74
4 KVM Installation and Resources Provisioning ...............................................................75
4.1 Overview ....................................................................................................................................................................................75
4.1.1 About This Exercise ............................................................................................................................................................75
4.1.2 Objectives ..............................................................................................................................................................................75
4.1.3 Lab Networking ...................................................................................................................................................................75
4.1.4 Exercise Planning ................................................................................................................................................................77
4.2 Exercise Configuration ..........................................................................................................................................................77
4.2.1 Guideline ................................................................................................................................................................................77
4.2.2 Procedure ...............................................................................................................................................................................78
4.3 Quiz .............................................................................................................................................................................................98
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 7

1 Storage Exercise

1.1 Overview
1.1.1 About This Exercise
This experiment helps trainees better understand the concepts and service processes
related to Huawei SAN storage by configuring Huawei SAN storage resources. (In this
experiment, only disk domain, storage pool, LUN, and LUN group are created. Host, host
group, and mapping view are created in the subsequent FC storage resource
management)

1.1.2 Objectives
⚫ Understand the concepts of disk domains and storage pools of Huawei storage
devices.
⚫ Have a basic command of the configuration of disk domains, storage pools, LUNs,
and LUN groups on Huawei storage devices.

1.1.3 Guideline
1. Create a Disk Domain and Storage Pool.
2. Create a LUN and LUN Group.
3. Create a Host and Host Group.

1.2 Configuration Procedure


1.2.1 Creating a Disk Domain(Optional, If a disk domain exists in
the environment, skip this step)
Step 1 Log in to OceanStor DeviceManager based on the login information provided by the
trainer and click Provisioning on the right. The Provisioning page is displayed.
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 8

Figure 1-1 Entering the Provisioning Interface


Step 2 Click Create Disk Domain. On the page that is displayed, set the name and select
available disks as required. (This experiment is for testing only, and hot spare policy
is set to None.) and click OK.

Figure 1-2 Creating a Disk Domain-1


Step 3 On the page that is displayed, select I have read and understand the
consequences associated with performing this operation, and click Next.
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 9

Figure 1-3 Creating a Disk Domain-2


Step 4 On the page that is displayed, select I have read and understand the
consequences associated with performing this operation and click OK.
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 10

Figure 1-4 Creating a Disk Domain-3


Step 5 On the page that is displayed, click OK. The disk domain is created.
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 11

Figure 1-5 Creating a Disk Domain-4

1.2.2 Creating a Storage Pool


Step 1 Click Create Storage Pool. On the page that is displayed, set the name, storage
medium, and capacity as required. (In this experiment, multiple environments share
one storage device. Therefore, set the capacity as shown in the figure.) and click
OK.
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 12

Figure 1-6 Creating a Storage Pool-1


Step 2 On the page that is displayed, indicating that the storage pool is successfully
created, click Close.
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 13

Figure 1-7 Creating a Storage Pool-2

1.2.3 Creating a LUN


Step 1 Click Create LUN. On the page that is displayed, set Name and Capacity as required
(This experiment is used for testing. You can select Use all available capacity of
the owning storage pool).

Figure 1-8 Creating a LUN-1


Step 2 On the page that is displayed, a message is displayed indicating that the LUN is
successfully created. Click Close.
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 14

Figure 1-9 Creating a LUN-2

1.2.4 Creating a LUN Group


Step 1 Click Create LUN Group. On the page that is displayed, set a name as required,
select LUNs, and click “ ”.
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 15

"

Figure 1-10 Creating a LUN Group-1


Step 2 Ensure that the selected LUNs is not empty and click OK.

Figure 1-11 Creating a LUN Group-2.


Step 3 On the page that is displayed, confirm the execution result and click Close.
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 16

Figure 1-12 Creating a LUN Group-3

1.3 Quiz
After a host uses an iSCSI initiator to connect to a storage device, if the iSCSI initiator
name changes, will the initiator name be updated on the storage device? If the host
initiator name will not be updated, what should I do?
Answer:
The initiator name will not be updated on the storage device. You need to remove the
iSCSI connection from the host, restart the iSCSI service, and reconnect the host to the
storage device.
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 17

2 Network Configuration Exercise

2.1 Introduction to the Switch View


2.1.1 Overview
2.1.1.1 About This Exercise
This exercise describes the basic switch operation views.

2.1.1.2 Objectives
⚫ Understand the basic operations on the eNSP simulator.
⚫ Understand the basic operation views of Huawei switches.

2.1.1.3 Guideline
1. Start a switch on eNSP.
2. Enter the user view.
3. Enter the system view.
4. Enter the interface view.
5. Exit the interface view and system view.

2.1.2 Configuration Procedure


2.1.2.1 Starting a Switch
Step 1 Run the eNSP software, click the switch icon, and drag it to the topology on the
right.
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 18

Figure 2-1 Clicking the switch icon


Step 2 Right-click the switch, choose Start, and wait for 2 to 5 minutes.

Figure 2-2 Starting a switch

2.1.2.2 Entering the User View


Step 1 Double-click the switch to enter the CLI. <> indicates the user view.

Figure 2-3 User view


Step 2 In the user view, you can run display commands to query information or
configuration. Run the following commands:

<Huawei>display interface brief


<Huawei>display version
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 19

Figure 2-4 Viewing the interface and version information

2.1.2.3 Entering the System View


Step 1 Run the following command to enter the system view of the switch:

<Huawei>system-view

Figure 2-5 System view


Step 2 Run the following command in the system view to change the system name:

[Huawei]sysname SW1

Figure 2-6 Changing the system name

2.1.2.4 Entering the Interface View


In the interface view, you can configure information such as the link type (Layer 2) and
IP address (Layer 3) for the interface.

Step 1 Check brief information about interfaces in the system view.

[SW1]display interface brief


HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 20

Figure 2-7 Checking interface information


Step 2 Run the following command to enter the GigabitEthernet0/0/1 interface view:

[SW1]interface GigabitEthernet 0/0/1


[SW1-GigabitEthernet0/0/1]

Figure 2-8 Interface view

2.1.2.5 Exiting the Interface View and System View


Step 1 Run the following command to exit the GigabitEthernet0/0/1 interface view:

[SW1-GigabitEthernet0/0/1]quit
[SW1]

Step 2 Run the following command to exit the SW1 system view and return to the user
view:

[SW1]quit
<SW1>

2.2 Basic Switch Configuration


2.2.1 Overview
2.2.1.1 About This Exercise
This exercise describes how to perform basic configurations on Huawei switches.

2.2.1.2 Objectives
⚫ Understand how to change the system name of a Huawei switch.
⚫ Understand how to use the ? key on Huawei switches.
⚫ Understand how to use the display command on Huawei switches.
⚫ Understand how to use the undo command on Huawei switches.
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 21

2.2.1.3 Guideline
1. Change the system name.
2. Use the ? key.
3. Run the display command.
4. Run the undo command.

2.2.2 Configuration Procedure


2.2.2.1 Changing the System Name
Step 1 Log in to the switch and enter the system view.

<Huawei>system-view

Step 2 Change the system name to SW1 and then change it back to Huawei.

[Huawei]sysname SW1
[SW1]sysname Huawei
[Huawei]

2.2.2.2 Using the ? Key


? is used to display available commands.

Step 1 Check the available parameters of the interface command.

[Huawei]interface ?

Figure 2-9 Available parameters of the interface command


Step 2 Check the available parameters of the port command in the interface view.

[Huawei]interface GigabitEthernet 0/0/1


[Huawei-GigabitEthernet0/0/1]port ?
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 22

Figure 2-10 Available parameters of the port command

2.2.2.3 Running the display Command


Step 1 Run the following command in the system view to check interface information:

<Huawei>display interface brief

Figure 2-11 Checking brief interface information


Step 2 Run the following command to check the current device version:

<Huawei>display version

Figure 2-12 Checking the current version


Step 3 Run the following command in the system view to check the routing table:

[Huawei]display ip routing-table
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 23

Figure 2-13 Checking the routing table


Step 4 Run the following command to check the current device configuration:

[Huawei]display current-configuration

Figure 2-14 Checking the current configuration


Step 5 Run the following commands to enter the interface view and check the
configuration in the current view:

[Huawei]interface GigabitEthernet 0/0/1


[Huawei-GigabitEthernet0/0/1]display this
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 24

Figure 2-15 Checking the configuration in the current view

2.2.2.4 Running the undo Command


Step 1 Enter the interface view and set interface parameters.

[Huawei]interface GigabitEthernet 0/0/1


[Huawei-GigabitEthernet0/0/1]port link-type access

Step 2 Check the configuration of the current interface.

[Huawei-GigabitEthernet0/0/1]display this

Figure 2-16 Configuration of the current interface


Step 3 Delete the configuration of the current interface.

[Huawei-GigabitEthernet0/0/1]undo port link-type

Figure 2-17 Deleting the configuration


Step 4 Check the configuration of the current interface again.

[Huawei-GigabitEthernet0/0/1]display this
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 25

Figure 2-18 Configuration of the current interface

2.3 VLAN Implementation Exercise


2.3.1 Overview
2.3.1.1 About This Exercise
This exercise configures virtual local area networks (VLANs) on switches, so that users in
the same VLAN can communicate only with each other.

2.3.1.2 Objectives
⚫ Understand the implementation of VLAN.
⚫ Understand the link types of VLAN.
⚫ Understand how to configure different types of VLAN interfaces.
⚫ Understand how to assign VLANs based on interfaces.
⚫ Understand the functions of different interface types.

2.3.1.3 Networking Topology

Figure 2-19 Networking diagram

2.3.1.4 Exercise Planning


⚫ PC1, PC2, PC3, and PC4 are connected to a campus network through access switches
SW1 and SW2. Create VLAN 10 and VLAN 20, assign PC1 and PC2 to VLAN 10, and
assign PC3 and PC4 to VLAN 20.
⚫ Configure the type of interfaces interconnecting the access switches to trunk and
configure the trunk interfaces to allow packets from corresponding VLANs to pass
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 26

through. Configure the type of interfaces connecting the access switches to the PCs
to access and change the PVIDs of the access interfaces to the VLAN IDs to be
assigned to the PCs.
⚫ After the configuration, users in the same VLAN can communicate only with each
other, while users in different VLANs are isolated at Layer 2.

Table 2-1 VLAN interface type and parameter plan

Device Interface Interface Type VLAN Parameter

PVID: 1
GE0/0/1 Trunk
Allowed VLANs: VLAN 10 and VLAN 20
SW1
(LSW1) GE0/0/2 Access PVID: 10

GE0/0/3 Access PVID: 20

PVID: 1
GE0/0/1 Trunk
Allowed VLANs: VLAN 10 and VLAN 20
SW2
(LSW2) GE0/0/2 Access PVID: 10

GE0/0/3 Access PVID: 20

2.3.1.5 Guideline
1. Set up a topology.
2. Configure IP addresses for the hosts.
3. Create VLANs on the switches.
4. Configure access and trunk interfaces on the switches.
5. Verify the configuration.

2.3.2 Configuration Procedure


2.3.2.1 Setting Up a Topology
Step 1 Run eNSP and set up a topology according to the following figure using switch and
PC icons.
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 27

Figure 2-20 Setting up a topology


Step 2 Select all devices and click the button in the red box in the following figure to start
the devices.

Figure 2-21 Starting devices


Step 3 Check that link indicator turns green after the devices are started.

Figure 2-22 Started devices


HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 28

2.3.2.2 Configuring Hosts


Step 1 Double-click PC1 and PC2, set the IP addresses of PC1 and PC2 respectively
according to the following figure, and click Apply.

Figure 2-23 Configuring IP addresses


Step 2 Double-click PC3 and PC4, set the IP addresses of PC3 and PC4 respectively
according to the following figure, and click Apply.

Figure 2-24 Configuring IP addresses

2.3.2.3 Configuring Switches


Step 1 Configure LSW1.

Double-click LSW1 to enter the CLI. Run the following commands to enter the system
view and change the system name:

<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname SW1

Figure 2-25 Changing the system name


HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 29

Step 2 Create VLAN 10 and VLAN 20.

[Huawei]vlan batch 10 20

Figure 2-26 Creating VLANs


Step 3 Set the interface type of GE0/0/2 and GE0/0/3 to access and set their default VLAN
IDs to 10 and 20, respectively.

[SW1]interface GigabitEthernet 0/0/2


[SW1-GigabitEthernet0/0/2]port link-type access
[SW1-GigabitEthernet0/0/2]port default vlan 10
[SW1]interface GigabitEthernet 0/0/3
[SW1-GigabitEthernet0/0/2]port link-type access
[SW1-GigabitEthernet0/0/2]port default vlan 20

# Run the dis this command on the two interfaces and verify the configurations.

Figure 2-27 Checking the interface configuration


Step 4 Configure GE0/0/1 as a trunk interface and configure it to allow packets from VLAN
10 and VLAN 20 to pass through.

[SW1]int GigabitEthernet 0/0/1


[SW1-GigabitEthernet0/0/1]port link-type trunk
[SW1-GigabitEthernet0/0/1]port trunk allow-pass vlan 10 20

# Run the dis this command and verify the configuration.


HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 30

Figure 2-28 Checking the interface configuration


Step 5 Configure LSW2. You can configure LSW2 by referring to the configuration on
LSW1.
⚫ Change the system name to SW2 and create VLAN 10 and VLAN 20.
⚫ Set the interface type of GE0/0/2 and GE0/0/3 to access and set their default VLAN
IDs to 10 and 20, respectively.
⚫ Configure GE0/0/1 as a trunk interface and configure it to allow packets from VLAN
10 and VLAN 20 to pass through.
# After the configuration is complete, run the following command to check the
configuration.

[SW2]dis current-configuration interface

Figure 2-29 Checking the interface configuration

2.3.2.4 Exercise Verification


⚫ Testing the Connectivity in VLAN 10

Step 1 Double-click PC1 and click the CLI tab to enter the CLI. Ping the IP address of PC2
in the same VLAN.
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 31

Figure 2-30 Verifying connectivity


⚫ Testing the Connectivity in VLAN 20

Step 2 Double-click PC3 and click the CLI tab to enter the CLI. Ping the IP address of PC4
in the same VLAN.

Figure 2-31 Verifying connectivity


⚫ Verifying that Users in VLAN 10 Cannot Communicate with Users in VLAN 20

Step 3 Change the default VLAN of the interface connecting LSW2 to PC2 to VLAN 20.

[SW2]interface GigabitEthernet 0/0/2


[SW2-GigabitEthernet0/0/2]port link-type access
[SW2-GigabitEthernet0/0/2]port default vlan 20

Step 4 Double-click PC1 and click the CLI tab to enter the CLI. Ping the IP address of PC2
again.
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 32

Figure 2-32 Verifying connectivity

2.4 Routing Implementation Exercise


2.4.1 Overview
2.4.1.1 About This Exercise
This exercise configures static routes to allow users on different network segments to
communicate with each other.

2.4.1.2 Objectives
⚫ Understand basic operations on Huawei Layer 3 switches.
⚫ Understand basic information in routing tables of Huawei Layer 3 switches.
⚫ Understand how to configure VLANIF interfaces on Huawei Layer 3 switches.
⚫ Understand how to configure static routes on Huawei Layer 3 switches.

2.4.1.3 Networking Topology

Figure 2-33 Networking diagram

2.4.1.4 Exercise Planning


⚫ PC1, PC2, and PC3 belong to different departments and are connected to a campus
network through access switches SW1 and SW2.
⚫ The interconnection network segment of SW1 and SW2 is 10.1.40.0/24. PC1 resides
on 10.1.10.0/24, PC2 resides on 10.1.20.0/24, and PC3 resides on 10.1.30.0/24.
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 33

⚫ Configure static routes on SW1 and SW2 so that users in different departments can
communicate with each other.

Table 2-2 Interface and address plan

Interface
Device Interface VLAN VLANIF Interface
Type

GE0/0/1 Access PVID: 10 VLANIF 10: 10.1.10.254/24


SW1
GE0/0/2 Access PVID: 20 VLANIF 20: 10.1.20.254/24
(LSW1)
VLANIF 40: 10.1.40.1/24
GE0/0/3 Access PVID: 40

SW2 GE0/0/1 Access PVID: 30 VLANIF 30: 10.1.30.254/24


(LSW2) VLANIF 40: 10.1.40.2/24
GE0/0/3 Access PVID: 40

Table 2-3 Static route plan

Device Static Route

SW1 (LSW1) ip route-static 10.1.30.0 24 10.1.40.2

ip route-static 10.1.10.0 24 10.1.40.1


SW2 (LSW2)
ip route-static 10.1.20.0 24 10.1.40.1

2.4.1.5 Guideline
1. Set up a topology.
2. Configure IP addresses for the hosts.
3. Configure interfaces on the switches and configure IP addresses for the interfaces.
4. Configure static routes on the switches.
5. Verify the configuration on the hosts.

2.4.2 Configuration Procedure


2.4.2.1 Setting Up a Topology
Step 1 Run eNSP and set up a topology according to the following figure using switch and
PC icons. Start the devices and mark the planned IP addresses.
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 34

Figure 2-34 Setting up a topology and planning IP addresses

2.4.2.2 Configuring Hosts


Step 1 Double-click PC1, PC2, and PC3 and set the IP addresses of PC1, PC2, and PC3
respectively according to the following figure.

Figure 2-35 Configuring IP addresses

2.4.2.3 Configuring Switches


Step 1 Configure LSW1.
⚫ Double-click LSW1 to enter the CLI. Run the following command to change the
system name to SW1.

[Huawei]sysname SW1
[SW1]

Figure 2-36 Changing the system name


⚫ Create VLANs.

[SW1]vlan batch 10 20 40
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 35

Info: This operation may take a few seconds. Please wait for a moment...done.

Figure 2-37 Creating VLANs


⚫ Configure interfaces as planned.

[SW1]interface GigabitEthernet 0/0/1


[SW1-GigabitEthernet0/0/1]port link-type access
[SW1-GigabitEthernet0/0/1]port default vlan 10
[SW1-GigabitEthernet0/0/1] interface GigabitEthernet 0/0/2
[SW1-GigabitEthernet0/0/2]port link-type access
[SW1-GigabitEthernet0/0/2]port default vlan 20
[SW1-GigabitEthernet0/0/2] interface GigabitEthernet 0/0/3
[SW1-GigabitEthernet0/0/3] port link-type access
[SW1-GigabitEthernet0/0/3]port default vlan 40
[SW1-GigabitEthernet0/0/3]quit
[SW1]interface Vlanif 10
[SW1-Vlanif10]ip address 10.1.10.254 24
[SW1-Vlanif10]quit
[SW1]interface Vlanif 20
[SW1-Vlanif20]ip address 10.1.20.254 24
[SW1]interface Vlanif 40
[SW1-Vlanif40]ip address 10.1.40.1 24

Figure 2-38 Configuring interfaces


HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 36

⚫ Configure a static route as planned.

[SW1]ip route-static 10.1.30.0 24 10.1.40.2

Figure 2-39 Configuring a static route


⚫ Check the routing table.

[SW1]display ip routing-table

Figure 2-40 Routing table on SW1


Step 2 Configure LSW2.
⚫ Double-click LSW2 to enter the CLI and change the system name to SW2.

[Huawei]sysname SW2
[SW2]

⚫ Create VLANs.

[SW2]vlan batch 30 40
Info: This operation may take a few seconds. Please wait for a moment...done.

⚫ Configure interfaces as planned.

[SW2]interface GigabitEthernet 0/0/1


[SW2-GigabitEthernet0/0/1]port link-type access
[SW2-GigabitEthernet0/0/1]port default vlan 30
[SW2-GigabitEthernet0/0/1]interface GigabitEthernet 0/0/3
[SW2-GigabitEthernet0/0/3]port link-type access
[SW2-GigabitEthernet0/0/3]port default vlan 40
[SW2-GigabitEthernet0/0/3]quit
[SW2]interface Vlanif 30
[SW2-Vlanif20]ip address 10.1.30.254 24
[SW2]interface Vlanif 40
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 37

[SW2-Vlanif40]ip address 10.1.40.2 24

Figure 2-41 Configuring interfaces


⚫ Configure static routes as planned.

[SW2]ip route-static 10.1.10.0 24 10.1.40.1


[SW2]ip route-static 10.1.20.0 24 10.1.40.1

Figure 2-42 Configuring static routes


⚫ Check the routing table.

[SW2]display ip routing-table
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 38

Figure 2-43 Routing table on SW2

2.4.2.4 Testing Connectivity


⚫ Ping the IP address of PC2 (10.1.20.1) from PC1.

Figure 2-44 Testing connectivity


⚫ Ping the IP address of PC3 (10.1.30.1) from PC1.

Figure 2-45 Testing connectivity


HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 39

⚫ Ping the IP address of PC2 (10.1.20.1) from PC3.

Figure 2-46 Testing connectivity

2.5 Quiz
After you run the display ip interface brief on an existing VLANIF interface on a switch,
the command output shows that the physical status and protocol status of the VLANIF
interface are both Down. Why does this occur?
Reference answer:
No physical interface assigned to the VLAN corresponding to the VLANIF interface is in
Up state.
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 40

3 Linux Exercise

3.1 Overview
3.1.1 About This Exercise
This section introduces the bash commands, file management commands, and network
configuration commands on the openEuler OS.

3.1.2 Objectives
⚫ Master bash commands.
⚫ Master file management commands.
⚫ Master the basic operations on the text editor.
⚫ Master the basic operations of openEuler system and network configurations.

3.2 Preparations
3.2.1 Creating a VM
Step 1 Open VirtualBox 6.1.34 and click New to create a VM.

Figure 3-1 Creating a VM


Step 2 Enter the VM name, select the OS type and version, and click Next.
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 41

Figure 3-2 VM name and OS type


Step 3 Select the memory size and click Next. (You are advised to select 4096 MB.)

Figure 3-3 Setting the memory


Step 4 Select Create a virtual hard disk now and click Create.

Figure 3-4 Setting the virtual hard disk


Step 5 Select VHD (Virtual Hard Disk) and click Next.
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 42

Figure 3-5 Setting the virtual hard disk


Step 6 Select the size of the disk and click Create. (You are advised to select 30 GB.)

Figure 3-6 Setting the file location and size


Step 7 Click Settings on the main page.
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 43

Figure 3-7 Main page


Step 8 On the System > Motherboard tab page, change the boot order to boot from the
hard disk first.

Figure 3-8 Setting the boot order

3.2.2 Installing an OS on the VM


Step 1 Start the VM.

Figure 3-9 Starting the VM


Step 2 Select a local openEuler image file and click Start.
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 44

Figure 3-10 Starting the VM


Step 3 Select Install openEuler.

Figure 3-11 Installing the OS


Step 4 Select English and click Continue.
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 45

Figure 3-12 Selecting the OS language


Step 5 Click Installation Destination and select a disk for installation.

Figure 3-13 Selecting the disk for installation


Step 6 Use the default settings and click Done. The main page is displayed.
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 46

Figure 3-14 Selecting the installation destination


Step 7 Select Network & Hostname to configure the network.

Figure 3-15 Configuring the network


Step 8 Enable the enp0s3 network adapter and click Done. The main page is displayed.
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 47

Figure 3-16 Configuring the network


Step 9 Select Root Password to configure the root password.

Figure 3-17 Configuring the root password


Step 10 Enter the root password, confirm the password, and click Done. The main page is
displayed.
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 48

Figure 3-18 Configuring the root password


Step 11 Click Begin Installation.

Figure 3-19 Beginning installation


Step 12 Click Reboot System.
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 49

Figure 3-20 Completing installation


Step 13 Log in to the VM as user root.

Figure 3-21 Logging in to the VM

3.3 Useful Commands


3.3.1 help
Step 1 Run the help command.

[root@localhost ~]# help pwd


pwd: pwd [-LP]
Print the name of the current working directory.
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 50

Options:
-L print the value of $PWD if it names the current working
directory
-P print the physical directory, without any symbolic links

By default, `pwd' behaves as if `-L' were specified.

Exit Status:
Returns 0 unless an invalid option is given or the current directory
cannot be read.
[root@localhost ~]# help -d pwd
pwd - Print the name of the current working directory.
[root@localhost ~]# help -s pwd
pwd: pwd [-LP]

3.3.2 Other Common Commands


Step 1 Run the last command to display the latest login information about the users.

[root@localhost ~]# last


root pts/1 192.168.3.127 Thu May 5 10:41 still logged in
root pts/0 192.168.3.113 Thu May 5 08:20 still logged in
root tty1 Thu May 5 08:19 still logged in
reboot system boot 5.10.0-60.18.0.5 Thu May 5 08:13 still running

Step 2 Run the history command to view historical commands.

[root@localhost ~]# history


1 ls -l

Step 3 Press Tab to complete the command.

When entering a command, you can press Tab to automatically complete the command
or file path. For example, after you enter wh and press Tab, the following information is
displayed:

[root@localhost ~]# wh
whatis whereis which while whiptail who whoami

Step 4 Run the wget command to download a file from a specified URL.

Note that the host on which you run the wget command must be able to access the
Internet.

[root@localhost ~]# wget https://wordpress.org/latest.zip


HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 51

3.4 bash Commands


3.4.1 Power Supply Control and User Switching
Step 1 Start the openEuler VM and log in to the VM as user root.

Step 2 Practice using the basic bash commands.

Run the reboot command to reboot openEuler.

[root@localhost ~]# reboot

After the reboot, log in to openEuler as user root.


Run the logout or exit command to log out.

[root@localhost ~]# logout

3.4.2 Basic Directory and File Operations


Step 1 Run the pwd command to view the current directory.

[root@localhost ~]# pwd


/root
[root@localhost ~]#
# The command output indicates that the current directory is the /root directory.

Step 2 Run the ls commands.


⚫ View the files and directories in the current directory.

[root@localhost ~]# ls
anaconda-ks.cfg
[root@localhost ~]# ls .
anaconda-ks.cfg
# The command output indicates that the anaconda-ks.cfg file exists in the current directory.

⚫ View the files and directories in the upper-level directory.

[root@localhost ~]# ls ..
afs boot etc lib lost+found mnt proc run srv tmp var
bin dev home lib64 media opt root sbin sys usr

⚫ View the files and directories in the /tmp directory.

[root@localhost ~]# ls /tmp


systemd-private-6b5ec1dcc15141d0bf3edecae5a0c8ca-chronyd.service-ae8LHA
systemd-private-6b5ec1dcc15141d0bf3edecae5a0c8ca-systemd-logind.service-K97Nbh

⚫ View all files and directories in the current directory.

[root@localhost ~]# ls -a
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 52

. anaconda-ks.cfg .bash_logout .bashrc .tcshrc


……
# The command output indicates that the current directory contains hidden files and directories.

⚫ View detailed information about non-hidden files and directories in the current
directory.

[root@localhost ~]#ls -l
total 4
-rw-------. 1 root root 1139 Jul 8 11:07 anaconda-ks.cfg

⚫ View detailed information about all files and directories in the current directory.

[root@localhost ~]#ls -al


total 36
dr-xr-x---. 2 root root 4096 Jul 8 11:38 .
dr-xr-xr-x. 18 root root 4096 Jul 8 11:00 ..
-rw-------. 1 root root 1139 Jul 8 11:07 anaconda-ks.cfg
-rw-------. 1 root root 236 Jul 8 11:45 .bash_history

Step 3 Run the cd commands to switch to directories.


⚫ Switch to the root directory of the system.

[root@localhost ~]# cd /
[root@localhost /]#
# Note that ~ changes to /.

⚫ Switch to the /etc/ directory.

[root@localhost /]# cd /etc


[root@localhost etc]#

⚫ Use the relative path to switch to the /etc/sysconfig/ directory.

[root@localhost etc]# cd sysconfig


[root@localhost sysconfig]#

⚫ Use the absolute path to switch to the /etc/sysconfig/ directory.

[root@localhost etc]# cd /etc/sysconfig


[root@localhost sysconfig]#

⚫ Switch to the upper-level directory.

[root@localhost sysconfig]# cd ..
[root@localhost etc]#

⚫ Switch to the home directory of the current user.

[root@localhost sysconfig]#cd
[root@localhost ~]#
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 53

⚫ Switch to the previous directory.

[root@localhost sysconfig]# cd -
/etc
[root@localhost etc]#

⚫ Switch to the home directory of the current user.

[root@localhost etc]#cd /etc/sysconfig


[root@localhost sysconfig]#cd ~
[root@localhost ~]#

Step 4 Run the mkdir commands to create directories.


⚫ Create the test1 directory in the current directory.

[root@localhost ~]# mkdir test1


[root@localhost ~]# ls
anaconda-ks.cfg test1

⚫ Create the test2 directory using a relative path.

[root@localhost ~]# mkdir ./test2


[root@localhost ~]# ls
anaconda-ks.cfg test1 test2

⚫ Create the test3 directory using an absolute path.

[root@localhost ~]# mkdir /root/test3


[root@localhost ~]# ls
anaconda-ks.cfg test1 test2 test3

Step 5 Run the touch commands to create files.

Create the huawei.txt and huawei1.txt files.

[root@localhost ~]# cd test1


[root@localhost test1]# touch /root/test1/huawei.txt
[root@localhost test1]# touch huawei1.txt
[root@localhost test1]# ls
huawei.txt huawei1.txt

Step 6 Run the cp commands to copy files.


⚫ Copy huawei.txt to the /root/test2 directory and name it huawei.txt.bak.

[root@localhost test1]# cp huawei.txt /root/test2/huawei.txt.bak


[root@localhost test1]# ls /root/test2
huawei.txt.bak

⚫ Copy the test1 directory to the /root/test2 directory.

[root@localhost test1]# cp -r /root/test1 /root/test2/


HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 54

[root@localhost test1]# ls /root/test2/


huawei.txt.bak test1

Step 7 Run the rm commands to delete files.


⚫ Delete the huawei.txt file from the /root/test1 directory.

[root@localhost test1]# rm huawei.txt


rm: Are you sure you want to delete the common empty file huawei.txt? y # Enter y to confirm
the deletion.
[root@localhost test1]# rm -f huawei1.txt # -f forcibly deletes the file and does not
display any message.
[root@localhost test1]# ls
[root@localhost test1]#

⚫ Delete the test1 directory from the /root directory.

[root@localhost test1]# cd
[root@localhost ~]# ls
anaconda-ks.cfg test1 test2 test3
[root@localhost ~]# rmdir /root/test1 # Deletes an empty directory.
[root@localhost ~]# ls
anaconda-ks.cfg test2 test3
[root@localhost ~]# mkdir /root/test1
[root@localhost ~]# touch /root/test1/huawei3.txt
[root@localhost ~]# rm -r /root/test1 # -r recursively deletes the directory and all files in the
directory.

Figure 3-22 Deleting files


Step 8 Run the mv command to move and rename a file.

Move the huawei.txt.bak file from the /root/test2 directory to the /root directory and
rename the file as huawei.txt.

[root@localhost ~]# mv /root/test2/huawei.txt.bak ~/huawei.txt


[root@localhost ~]# ls
anaconda-ks.cfg huawei.txt test2 test3

3.5 File Viewing Commands


3.5.1 Viewing Files
Step 1 Copy the /etc/passwd file to the /root directory.

[root@localhost test3]# cd
[root@localhost ~]# cp /etc/passwd ~
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 55

Step 2 Run the cat command to view the content of a small text file.

View the content of the passwd file.

[root@localhost ~]# cat passwd


root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/sbin/nologin
daemon:x:2:2:daemon:/sbin:/sbin/nologin
adm:x:3:4:adm:/var/adm:/sbin/nologin
lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin
sync:x:5:0:sync:/sbin:/bin/sync
shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown
halt:x:7:0:halt:/sbin:/sbin/halt
mail:x:8:12:mail:/var/spool/mail:/sbin/nologin
operator:x:11:0:operator:/root:/sbin/nologin
games:x:12:100:games:/usr/games:/sbin/nologin
ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin
nobody:x:65534:65534:Kernel Overflow User:/:/sbin/nologin
systemd-coredump:x:999:997:systemd Core Dumper:/:/sbin/nologin
systemd-network:x:192:192:systemd Network Management:/:/sbin/nologin
systemd-resolve:x:193:193:systemd Resolver:/:/sbin/nologin
sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin
systemd-timesync:x:998:995:systemd Time Synchronization:/:/sbin/nologin
unbound:x:997:994:Unbound DNS resolver:/etc/unbound:/sbin/nologin
……

Step 3 Run the head commands to view the first several lines of a file.
⚫ View the first 10 lines of the file by default.

[root@localhost ~]# head passwd # If no option is added to the head command, the
first 10 lines of the file are displayed by default.
root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/sbin/nologin
daemon:x:2:2:daemon:/sbin:/sbin/nologin
adm:x:3:4:adm:/var/adm:/sbin/nologin
lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin
sync:x:5:0:sync:/sbin:/bin/sync
shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown
halt:x:7:0:halt:/sbin:/sbin/halt
mail:x:8:12:mail:/var/spool/mail:/sbin/nologin
operator:x:11:0:operator:/root:/sbin/nologin

⚫ View the first five lines of the file.

[root@localhost ~]# head -n 5 passwd


root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/sbin/nologin
daemon:x:2:2:daemon:/sbin:/sbin/nologin
adm:x:3:4:adm:/var/adm:/sbin/nologin
lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin

⚫ View all content except the last 20 lines of the file.


HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 56

[root@localhost etc]# head -n -20 passwd


root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/sbin/nologin
daemon:x:2:2:daemon:/sbin:/sbin/nologin
adm:x:3:4:adm:/var/adm:/sbin/nologin
lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin
sync:x:5:0:sync:/sbin:/bin/sync
shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown
halt:x:7:0:halt:/sbin:/sbin/halt
mail:x:8:12:mail:/var/spool/mail:/sbin/nologin
operator:x:11:0:operator:/root:/sbin/nologin
games:x:12:100:games:/usr/games:/sbin/nologin

⚫ View the first 10 bytes of the file.

[root@localhost ~]# head -c 10 passwd


root:x:0:0[root@localhost ~]#

Step 4 Run the tail commands to view the last several lines of a file.
⚫ View the last 10 lines of the file by default.

[root@localhost etc]# tail passwd # Similar to head, if no option is added to the head command,
the last 10 lines of the file are displayed by default.
tss:x:59:59:Account used by the trousers package to sandbox the tcsd daemon:/dev/null:/sbin/nologin
rpcuser:x:29:29:RPC Service User:/var/lib/nfs:/sbin/nologin
chrony:x:995:992::/var/lib/chrony:/sbin/nologin
systemd-network:x:990:990:systemd Network Management:/:/usr/sbin/nologin
systemd-resolve:x:989:989:systemd Resolver:/:/usr/sbin/nologin
systemd-timesync:x:988:988:systemd Time Synchronization:/:/usr/sbin/nologin
gluster:x:987:987:GlusterFS daemons:/run/gluster:/sbin/nologin
radvd:x:75:75:radvd user:/:/sbin/nologin
qemu:x:107:107:qemu user:/:/sbin/nologin
dnsmasq:x:985:985:Dnsmasq DHCP and DNS server:/var/lib/dnsmasq:/usr/sbin/nologin h

⚫ View the last five lines of the file.

[root@localhost ~]# tail -n 5 passwd

⚫ View the updated data in of a log file dynamically.

[root@localhost ~]# tail -f /var/log/messages

Step 5 Run the less command to view (and search) the file content of a large file.

View the file. Press the up and down arrow keys to navigate the lines; press the space bar
to scroll one page forward; enter a slash (/) and a keyword to search for the keyword;
and press q to exit.

[root@localhost ~]# less passwd


root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/sbin/nologin
daemon:x:2:2:daemon:/sbin:/sbin/nologin
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 57

adm:x:3:4:adm:/var/adm:/sbin/nologin
lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin
sync:x:5:0:sync:/sbin:/bin/sync

Step 6 Run the more command to view (and search) the file content of a large file.

View the file. Press the space bar to scroll one page forward or exit when you reach the
end of the file; enter a slash (/) and a keyword to search for the keyword; and press q to
exit.

[root@localhost ~]# more passwd


root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/sbin/nologin
daemon:x:2:2:daemon:/sbin:/sbin/nologin
adm:x:3:4:adm:/var/adm:/sbin/nologin
lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin
sync:x:5:0:sync:/sbin:/bin/sync

3.5.2 (Optional) Searching for Files


Step 1 Run the find commands.
⚫ Search for the file named passwd in the /etc directory.

[root@localhost etc]# find /etc -name passwd


/etc/pam.d/passwd
/etc/passwd

⚫ Search for files that belong to user root in the /root directory.

[root@localhost etc]# find /root -user root


/root
/root/bzip2-1.0.6.tar.gz
/root/bzip2-1.0.6
/root/bzip2-1.0.6/compress.o
/root/bzip2-1.0.6/libbz2.a
……

⚫ Search for files larger than 512 KB in the /etc directory.

[root@localhost etc]# find /etc -size +512k


/etc/ima/digest_lists/0-metadata_list-rpm-python3-perf-5.10.0-60.18.0.50.oe2203.x86_64
/etc/ima/digest_lists/0-metadata_list-rpm-kernel-5.10.0-60.18.0.50.oe2203.x86_64
/etc/ima/digest_lists/0-metadata_list-rpm-kernel-tools-5.10.0-60.18.0.50.oe2203.x86_64

Step 2 Run the whereis command.

This command can only be used to find binary files, source code files, and man pages.
View the location of the bash command.
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 58

[root@localhost ~]# whereis bash


bash: /usr/bin/bash

3.6 Basic Operations on the Vim Text Editor


3.6.1 Normal Mode of Vim
3.6.1.1 Cursor Control
Step 1 Run the following command to verify that the VM can access the Internet. (Prepare
the VM by referring to section 3.2 and ensure that the VM can access the Internet.)

[root@openEuler ~]# ping www.huawei.com

Step 2 Download the tutorial file.

[root@openEuler ~]# wget -c http://www.silecs.info/formations/Linux-TP-export/vimtutor-en.txt -O


vimtutor

Step 3 Run the following vim command to open the vimtutor file.

[root@openEuler ~]# vim vimtutor # Open the vimtutor file with vim. The tutorial home page is
displayed.
===============================================================================
= Welcome to the VIM Tutor - Version 1.7 =
===============================================================================
Vim is a very powerful editor that has many commands, too many to
explain in a tutor such as this. This tutor is designed to describe
enough of the commands that you will be able to easily use Vim as
an all-purpose editor.
The approximate time required to complete the tutor is 25-30 minutes,
depending upon how much time is spent with experimentation.
ATTENTION:
The commands in the lessons will modify the text. Make a copy of this
file to practise on (if you started "vimtutor" this is already a copy).

It is important to remember that this tutor is set up to teach by


use. That means that you need to execute the commands to learn them
properly. If you only read the text, you will forget the commands!
Now, make sure that your Shift-Lock key is NOT depressed and press
the j key enough times to move the cursor so that Lesson 1.1
completely fills the screen.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~

Step 4 Press j a few times to move the cursor down until you can see the full content of
section 1.1. Press k, j, h, and l keys to move the cursor up, down, left, and right,
respectively.
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 59

Figure 3-23 Moving the cursor to view the document


Step 5 Press Ctrl+D to scroll one page forward; press Ctrl+U to scroll one page backward;
press k, j, h, and l keys to move the cursor up, down, left, and right, respectively.

Step 6 Enter gg to move the cursor to the first line of the document; enter G to move the
cursor to the last line of the document.

Figure 3-24 Moving the cursor to view the document

Figure 3-25 Moving the cursor to view the document


Step 7 Enter ngg to move the cursor to line n of the document, for example, 10gg.
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 60

Figure 3-26 Moving the cursor to view the document


Step 8 Scroll down until you can see the full content of section 2.6, and then move the
cursor to the second line starting with --->.

Figure 3-27 Moving the cursor to view the document

3.6.1.2 Quick Deletion


Step 1 Enter dd to delete the line.

Figure 3-28 Deleting a line


Step 2 Move the cursor to line 4 and enter 2dd to delete lines 4 and 5.
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 61

3.6.1.3 Copying and Pasting


Step 1 Move the cursor down to the third line of section 2.7, and then enter yy to copy the
line.

Figure 3-29 Copying a line


Step 2 Enter p to paste the copied content to the current line.

Figure 3-30 Pasting the copied content


Step 3 Move the cursor to 5, and then enter P to paste the copied content above the
current line.

Figure 3-31 Pasting the copied content

3.6.1.4 Undoing
Step 1 Enter u twice to undo the paste operations.
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 62

Figure 3-32 Undoing

3.6.2 Insert Mode of Vim


3.6.2.1 Deleting Text
Step 1 Run the following command to open vimtutor again.

[root@openEuler ~]# vimtutor

Step 2 Move the cursor down until you can see the full content of section 1.3.

Figure 3-33 Moving the cursor to view the content


Step 3 Move the cursor to the unwanted c in the line starting with --->, and then press x
to delete the character.
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 63

Figure 3-34 Deleting a character


Step 4 Delete other unwanted characters in the line by referring to the preceding step.

Figure 3-35 Deleting characters

3.6.2.2 Inserting Text


Step 1 Move the cursor up until you can see the full content of section 1.4.
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 64

Figure 3-36 Moving the cursor to view the content


Step 2 Move the cursor to text in the first line starting with --->, and then press i to enter
the insert mode.

Figure 3-37 Insert mode


Step 3 Enter the missing word some by referring to the line below.

Figure 3-38 Inserting content


Step 4 Move the cursor and enter other missing characters to make the first line the same
as the second. Press Esc to exit the insert mode and return to the normal mode.

Figure 3-39 Returning to the normal mode


Step 5 Move the cursor to the end of the first line starting with --->, enter o to insert a line
below the current line, and enter Add the first line here..

Figure 3-40 Inserting a line


Step 6 Move the cursor to the end of the second line starting with --->, enter O to insert a
line above the current line, and enter Add the second line here..
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 65

Figure 3-41 Inserting a line

3.6.3 Command Line Mode of Vim


Step 1 Move the cursor down until you can see the full content of section 1.2.

Figure 3-42 Moving the cursor to view the content


Step 2 Enter :q! and press Enter to forcibly exit the tutorial without saving any changes.

:q!
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 66

Figure 3-43 Forcible exit


Step 3 Enter :wq and press Enter to save and exit the tutorial.

:wq

Figure 3-44 Save and exit


Step 4 Run the %s/Lesson/Class/g command to replace all occurrences of Lesson in the
file with Class.

:%s/Lesson/Class/g

Figure 3-45 Replacing characters


HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 67

3.7 openEuler System and User Management


3.7.1 Network Management
3.7.1.1 Host Name Management
Step 1 View the host name.

[root@localhost ~]# hostname


localhost.localdomain
[root@localhost ~]# cat /etc/hostname # View the host name configuration file.
localhost.localdomain

Step 2 Change the host name temporarily.

[root@localhost ~]# hostname huawei # Change the host name temporarily. The change becomes
invalid after a restart.
[root@localhost ~]# hostname
huawei
[root@localhost ~]# bash # Start a new session.
Welcome to 5.10.0-60.18.0.50.oe2203.x86_64
System information as of time: system_time
System load: 0.16
Processes: 129
Memory used: 3.7%
Swap used: 0%
Usage On: 23%
IP address: 10.0.2.15
Users online: 3
[root@huawei ~]# # In the command prompt, the host name is changed to
huawei.
[root@huawei ~]# exit
exit
[root@localhost ~]#

Step 3 Change the host name permanently.

Method 1:
[root@localhost ~]# hostnamectl set-hostname openEuler # This method requires a re-login
instead of a restart.
Method 2:
[root@localhost ~]# vim /etc/hostname
#Change the host name in the file, save the change, and exit. The host name is changed after the
system is restarted.
[root@localhost ~]# reboot

3.7.1.2 Network Management


Step 1 Run the ip command to add a temporary IP address to the network adapter.

[root@openEuler ~]# ip addr show


HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 68

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen
1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default
qlen 1000
link/ether 08:00:27:a5:05:8a brd ff:ff:ff:ff:ff:ff
inet 10.0.2.15/24 brd 10.0.2.255 scope global dynamic noprefixroute enp0s3
valid_lft 83814sec preferred_lft 83814sec
inet6 fe80::e2e1:a18b:f73a:d89e/64 scope link noprefixroute
valid_lft forever preferred_lft forever
[root@openEuler ~]# ip addr add 192.168.110.100/24 dev enp0s3
[root@openEuler ~]# ip addr show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen
1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default
qlen 1000
link/ether 08:00:27:a5:05:8a brd ff:ff:ff:ff:ff:ff
inet 10.0.2.15/24 brd 10.0.2.255 scope global dynamic noprefixroute enp0s3
valid_lft 83599sec preferred_lft 83599sec
inet 192.168.110.100/24 scope global enp0s3
valid_lft forever preferred_lft forever
inet6 fe80::e2e1:a18b:f73a:d89e/64 scope link noprefixroute

Step 2 Run the ip command to delete the temporary IP address of the network adapter.

[root@openEuler ~]# ip addr del 192.168.110.100/24 dev enp0s3


[root@openEuler ~]# ip addr show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen
1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default
qlen 1000
link/ether 08:00:27:a5:05:8a brd ff:ff:ff:ff:ff:ff
inet 10.0.2.15/24 brd 10.0.2.255 scope global dynamic noprefixroute enp0s3
valid_lft 83814sec preferred_lft 83814sec
inet6 fe80::e2e1:a18b:f73a:d89e/64 scope link noprefixroute
valid_lft forever preferred_lft forever

Step 3 Configure a static route.

# Set a static route to network range 192.168.2.0/24, with the next hop being the
gateway.
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 69

[root@openEuler ~]# ip route


default via 10.0.2.2 dev enp0s3 proto dhcp metric 100
default via 192.168.3.1 dev enp0s8 proto dhcp metric 101
10.0.2.0/24 dev enp0s3 proto kernel scope link src 10.0.2.15 metric 100
[root@openEuler ~]# ip route add 192.168.2.0/24 via 10.0.2.254 dev enp0s3
[root@openEuler ~]# ip route
default via 10.0.2.2 dev enp0s3 proto dhcp metric 100
default via 192.168.3.1 dev enp0s8 proto dhcp metric 101
10.0.2.0/24 dev enp0s3 proto kernel scope link src 10.0.2.15 metric 100
192.168.2.0/24 via 10.0.2.15 dev enp0s3

Step 4 Use the nmcli command to create a network connection and apply it to an
interface of the host:
⚫ View the current NetworkManager status.

[root@openEuler ~]# nmcli general status


STATE CONNECTIVITY WIFI-HW WIFI WWAN-HW WWAN
connected full enabled enabled enabled enabled

Figure 3-46 Viewing network connections


⚫ View the current connections.

[root@openEuler ~]# nmcli connection show


NAME UUID TYPE DEVICE
enp0s3 2c2c3fe1-67e0-417d-be50-c7f2ef1d890b ethernet enp0s3
enp0s8 233d807e-9a81-4f5d-bce4-837fd69ea526 ethernet enp0s8
virbr0 37fb512e-e88d-4f19-a6a1-fdb02c633ea2 bridge virbr0
net-static e4c1c576-7a43-4838-96da-321fc76e91b2 ethernet --

Figure 3-47 Viewing connections


⚫ View the status of the network devices.

[root@openEuler ~]# nmcli device status


DEVICE TYPE STATE CONNECTION
enp0s3 ethernet connected enp0s3
……
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 70

Figure 3-48 Viewing network devices


⚫ Create a new network connection net-static and apply it to an interface of the host.

[root@openEuler ~]# nmcli con add type ethernet con-name net-static ifname enp0s3 ip4
192.168.110.10/24 gw4 192.168.110.254
# conn indicates that the operation is performed on a connection.
# add adds (a connection).
# type indicates the type of the connection.
# con-name indicates the connection name.
# ifname indicates the name of the network adapter.
[root@openEuler ~]# nmcli connection show

Figure 3-49 Viewing network connections


⚫ Enable the created network connection net-static.

[root@openEuler ~]# nmcli con up net-static ifname enp0s3


[root@openEuler ~]# nmcli connection show

Figure 3-50 Viewing network connections

[root@openEuler ~]# nmcli con down net-static # Disable the connection.

Step 5 Use the nmcli command to configure a static route.

[root@openEuler ~]# nmcli connection modify enp0s3 +ipv4.routes "192.168.100.0/24


10.0.15.254"

Step 6 Change the host IP address using the configuration file of the ifcfg-enp0s3 network
adapter.

[root@openEuler ~]# cat /etc/sysconfig/network-scripts/ifcfg-enp0s3


TYPE=Ethernet # Interface type
PROXY_METHOD=none # Method for proxy configuration
BROWSER_ONLY=no # Whether the proxy configuration is for browser only
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 71

BOOTPROTO=dhcp # Boot-time protocol


DEFROUTE=yes # Whether to assign the default route to this interface
IPV4_FAILURE_FATAL=no # Whether to disable this interface if the IPv4 configuration fails
IPV6INIT=yes # Whether to initialize IPv6
IPV6_AUTOCONF=yes # Whether to configure IPv6 automatically
IPV6_DEFROUTE=yes # Whether to assign the default IPv6 route to this interface
IPV6_FAILURE_FATAL=no # Whether to disable this interface if the IPv6 configuration fails
IPV6_ADDR_GEN_MODE=stable-privacy # IPv6 address generation mode
NAME=enp0s3 # Name of the network connection
UUID=2c2c3fe1-67e0-417d-be50-c7f2ef1d890b # UUID of the devcie
ONBOOT=yes # Whether to start this interface with the system
DEVICE=enp0s3 # Name of the physical device

⚫ When configuring the network, change dhcp to static or none and add the
following information:

IPADDR=192.168.110.11
NETMASK=255.255.255.0
GATEWAY=192.168.110.254

⚫ Run the following commands for the configuration to take effect.

[root@openEuler ~]# ifdown enp0s3


[root@openEuler ~]# ifup enp0s3

Step 7 Edit /etc/hosts.

[root@openEuler ~]# vim /etc/hosts # The hosts file records the mapping between host names
and IP addresses for quick domain name resolution. Add the following information to the end of the
file:
192.168.110.11 server # After adding this line, save the file and exit.
[root@openEuler ~]# ping server -c 3
PING server (192.168.110.11) 56(84) bytes of data.
64 bytes from server (192.168.110.11): icmp_seq=1 ttl=40 time=53.3 ms
64 bytes from server (192.168.110.11): icmp_seq=2 ttl=40 time=51.3 ms

--- server ping statistics ---


3 packets transmitted, 3 received, 0% packet loss, time 2005ms
rtt min/avg/max/mdev = 51.288/52.351/53.338/0.838 ms

3.7.2 Service Management


Step 1 View the current services.

[root@openEuler ~]# systemctl list-units --type service


UNIT LOAD ACTIVE SUB DESCRIPTION
atd.service loaded active running Deferred execution scheduler
auditd.service loaded active running Security Auditing Service
chronyd.service loaded active running NTP client/server
crond.service loaded active running Command Scheduler
dbus.service loaded active running D-Bus System Message Bus
dkms.service loaded active exited Builds and install new kernel modules throug
dracut-shutdown.service loaded active exited ROceanstor eStore /run/initramfs on shutdown
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 72

firewalld.service loaded active running firewalld - dynamic firewall daemon


[email protected] loaded active running Getty on tty1
gssproxy.service loaded active running GSSAPI Proxy Daemon
hwclock-save.service loaded active exited Update RTC With System Clock

Step 2 View the status of a service, for example, the firewall service.

[root@openEuler ~]# systemctl status firewalld.service # View the service status.


○ firewalld.service - firewalld - dynamic firewall daemon
Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled)
Active: inactive (dead)
Docs: man:firewalld(1)
[root@openEuler ~]# systemctl is-active firewalld.service # Check whether the service is
running.
active
[root@openEuler ~]# systemctl is-enabled firewalld.service # Check whether the service is
enabled.
enabled

Step 3 Terminate a service, such as the firewall service.

[root@openEuler ~]# systemctl stop firewalld.service


[root@openEuler ~]# systemctl is-active firewalld.service
inactive

Step 4 Restart a service, for example, the firewall service.

[root@openEuler ~]# systemctl restart firewalld.service


[root@openEuler ~]# systemctl is-active firewalld.service
active

Step 5 Disable a service, for example, the firewall service.

[root@openEuler ~]# systemctl disable firewalld.service


Removed /etc/systemd/system/multi-user.target.wants/firewalld.service.
Removed /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
[root@openEuler ~]# systemctl is-enabled firewalld.service
disabled

Step 6 Enable a service, for example, the firewall service.

[root@openEuler ~]# systemctl enable firewalld.service


Created symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service →
/usr/lib/systemd/system/firewalld.service.
Created symlink /etc/systemd/system/multi-user.target.wants/firewalld.service →
/usr/lib/systemd/system/firewalld.service.
[root@openEuler ~]# systemctl is-enabled firewalld.service
enabled
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 73

3.7.3 User Management


Step 1 Use the id command to view the ID of a user and the ID of the group to which the
user belongs.

[root@localhost ~]# id
uid=0(root) gid=0(root) groups=0(root)

Step 2 Log in to the system as user root, create users tom, bob, and jack, and set the UID
of jack to 1024.

[root@localhost ~]# useradd tom


[root@localhost ~]# useradd bob
[root@localhost ~]# useradd -u 1024 jack
[root@localhost ~]# tail -3 /etc/passwd
tom:x:1001:1001::/home/tom:/bin/bash
bob:x:1002:1002::/home/bob:/bin/bash
jack:x:1024:1024::/home/jack:/bin/bash
[root@localhost ~]# useradd -d /home/myd bob1 # Use the -d parameter to specify the home
directory for the new user.

Step 3 Change the home directory of tom to /home/tony.

[root@localhost ~]# usermod -md /home/tony/ tom


# m and d are often used together to specify the home directory of a user.
[root@openEuler ~]# tail -4 /etc/passwd
tom:x:1000:1000::/home/tony/:/bin/bash
bob:x:1001:1001::/home/bob:/bin/bash
jack:x:1024:1024::/home/jack:/bin/bash
bob1:x:1025:1025::/home/myd:/bin/bash

Step 4 Delete user bob and its home directory.

[root@localhost ~]# userdel -r bob # Use the -r parameter to delete the user's
home directory.
[root@openEuler ~]# tail -3 /etc/passwd
tom:x:1000:1000::/home/tony/:/bin/bash
jack:x:1024:1024::/home/jack:/bin/bash
bob1:x:1025:1025::/home/myd:/bin/bash

Note: The command output shows the last three lines of the user configuration file. You
can see that user bob does not exist.
The bob directory does not exist in the /home directory.

[root@openEuler ~]# ls /home/


jack myd tony

Step 5 Use the su command to switch users.

Switch from the current user (root) to jack on the terminal.


HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 74

[root@openEuler ~]# su jack


[root@openEuler root]$ pwd
/root
[root@openEuler root]$ exit
exit
[root@openEuler ~]# su - jack
[root@openEuler ~]$ pwd
/home/jack
[root@openEuler ~]$ exit

3.8 Quiz
On Linux, how do we view the updated contents of a log file in real time?
Answer:
Run the tail -f /var/log/XX/file.log command to view the updated data of the log file.
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 75

4 KVM Installation and Resources


Provisioning

4.1 Overview
4.1.1 About This Exercise
In this lab, bridged networks and NAT networks are configured to enable the
communication between VMs and external networks. This lab introduces two network
modes (NAT and bridge) in KVM virtualization to help trainees understand the basic
principles of communication between VMs and external networks. A computer with at
least 4 cores and 8 GB memory is recommended.

4.1.2 Objectives
⚫ Understand the basic principles of KVM virtualization.
⚫ Grasp the creation and process of KVM.
⚫ Grasp the features and configuration method of bridged networks and NAT
networks.

4.1.3 Lab Networking


4.1.3.1 Lab Environment Overview
⚫ In this lab, the host VM is created using Oracle VM VirtualBox Manager (VirtualBox),
and the lab VM is created using KVM virtualization on the host VM.
⚫ In this lab, two physical interfaces are planned for the host VM: management
interface (enp0s8) and service interface (enp0s3). The service interface is configured
to NAT networks and the management interface is configured to bridged network
and is used for remote access using virtual network console (VNC) or Secure Shell
(SSH).
⚫ In this lab, the type of the default network and the test network are NAT.
⚫ In this lab, virbr0 is the default bridge, and virbr1 and virbr2 are new bridges.
⚫ In this lab, VMs access the Internet through NAT and bridged networks.

4.1.3.2 NAT Networks


⚫ VM 01 is the lab VM.
⚫ You need to create VM 01 and modify its network in this lab.
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 76

Figure 4-1 Lab Networking of NAT networks

4.1.3.3 Bridged Networks


⚫ VM 02 is the lab VM.
⚫ You need to create VM 02 using bridges in this lab.

Figure 4-2 Lab networking of bridged networks


HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 77

4.1.4 Exercise Planning


Table 4-1 Host VM port and parameter design

Connection
Device Port IP Address
Method

NIC 1
NAT 10.0.2.0/24 (service)
(enp0s3)
Host VM
NIC 2
Bridge 192.168.3.0/24 (management)
(enp0s8)

Table 4-2 Host VM bridge and parameter design

Network
Device IP Address Physical Interface
Bridge

virbr0 192.168.122.1/24 None

Host VM virbr1 192.168.100.1/24 None

virbr2 10.0.2.15/24 enp0s3

4.2 Exercise Configuration


4.2.1 Guideline
⚫ Creating a host VM
1. Select the connection methods of ports, compute and storage resources, and
enable the corresponding virtualization features as planned.
2. Import the image file and install the operating system (OS).
⚫ Preparing the lab
1. Use a terminal tool to log in to the host VM and disable services such as the
firewall service.
2. Install virtualization components and check their statuses.
3. Download the OS image file to the local host VM for backup.
⚫ Creating a VM using NAT
1. Specify default to create VM 01 and install the OS on VM 01.
2. Log in to VM 01, view its IP address, test its connectivity with external networks,
and verify the NAT network.
⚫ Changing the network information of VM 01.
1. Create test using NAT, change the network of VM 01 to test, and reboot VM 01.
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 78

2. Log in to VM 01, view the new IP address allocated by test, and verify its
connectivity with external networks.
⚫ Create a VM using bridges
1. Create virbr2, bind the planned physical service port enp0s3, and assign the IP
address of the original physical port to virbr2.
2. Specify virbr2 to create VM 02 and install the operating system on VM 02. Log
in to VM 02, view its IP address, test the connectivity between VM 02 and the
host VM or external networks, and verify the bridged network.

4.2.2 Procedure
4.2.2.1 Creating a Host VM
Step 1 Run Oracle VM VirtualBox Manager and click New to create a VM.

Figure 4-3 Creating a VM


Step 2 Enter the VM name, select the OS type and version, and click Next.

Figure 4-4 Configuring the VM name and OS type


Step 3 Select the memory size and click Next. (You are advised to select 4,096 MB.)
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 79

Figure 4-5 Configuring memory


Step 4 Select Create a virtual hard disk now and click Create.

Figure 4-6 Creating a virtual hard disk


Step 5 Select VHD (Virtual Hard Disk) and click Next.
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 80

Figure 4-7 Configuring the virtual hard disk


Step 6 Select the size of the disk and click Next. (You are advised to select 30 GB.)

Figure 4-8 Selecting the location and size of the virtual hard disk
Step 7 On the main page of the software, click the created VM (openEuler) and Settings.
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 81

Figure 4-9 Configuring the VM


Step 8 On the openEuler – Settings page, choose System, click Motherboard, and adjust
the boot order to boot from the hard disk first.

Figure 4-10 Changing the boot order


Step 9 Choose System, click Acceleration, and select KVM for Paravirtualization
Interface.

Figure 4-11 Selecting the paravirtualization interface


Step 10 Choose Network, click Adapter 2, and select Enable Network Adapter. Select
Bridged Adapter for Attached to.

Step 11 This adapter is used as the planned management adapter.


HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 82

Figure 4-12 Changing the connection method of NIC 2


Step 12 Choose System, click Processor, set Processor(s) to 4, and select Enbale Nested
VT-x/AMD-V for Extended Features.

Figure 4-13 Configuring Processors


If Nested VT-x/AMD-V cannot be enabled, you can perform the following steps:
1. Click OK to save the configuration.
2. Press Win+X to go to the Windows PowerShell (administrator) page.
3. Run the following command to enable nested VT-x/AMD-V.

PS C:\WINDOWS\system32> cd "d:\Download\virtualbox" # VirtualBox installation path


In PS D:\Download> .\VBoxManage.exe modifyvm "openEuler" --nested-hw-virt on # the text with
double quotation marks is the VM name.
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 83

Figure 4-14 Run the command


Note: After running commands, you need to recheck whether these two options are
selected. If yes, click OK.

Figure 4-15 Enabling nested VT-x/AMD-V

4.2.2.2 Installing an OS on the VM


Step 1 Choose openEuler and click Start to start the VM.

Figure 4-16 Starting the VM


Step 2 Select a local openEuler image file and click Start.
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 84

Figure 4-17 Selecting start-up disk and starting the VM


Step 3 Select Install openEuler 22.03-LTS.

Figure 4-18 Installing the OS


Step 4 Select English and click Continue.
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 85

Figure 4-19 Selecting the OS language


Step 5 Click Installation Destination to select a disk where to install the OS.

Figure 4-20 Selecting the installation destination


Step 6 Use the default settings and click Done.

Step 7 The main page is displayed.


HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 86

Figure 4-21 Selecting the installation destination


Step 8 Click Network & Host Name to configure the network.

Figure 4-22 Configuring the network and host name


Step 9 Enable the NIC 1 (enp0s3) and the NIC 2 (enp0s8). Click Done.

Step 10 The main page is displayed.


HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 87

Figure 4-23 Enabling the NIC 1 (enp0s3)

Figure 4-24 Enabling the NIC 2 (enp0s8)


Step 11 Select Root Password to configure it.
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 88

Figure 4-25 Configuring the root password


Step 12 Enter the root password, confirm it, and click Done. Click Done.

Step 13 The main page is displayed.

Figure 4-26 Configuring the root password


Step 14 Click Begin Installation.
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 89

Figure 4-27 Installing the OS on the VM


Step 15 Click Reboot System.

Figure 4-28 Rebooting the OS


Step 16 Enter root and the password to log in to the VM.
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 90

Figure 4-29 Logging in to the VM


Step 17 Run the following command to view the current IP address.

10.0.2.15/24 is the service address, and 192.168.3.117/24 is the management address.

[root@localhost ~]# ip addr

Figure 4-30 Viewing the current IP address

4.2.2.3 Preparing the Lab


Step 1 Start a terminal tool and enter the management IP address to log in to the VM.
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 91

Figure 4-31 Logging in to the VM


Step 2 Run the following commands to disable the corresponding service.

[root@localhost ~]# systemctl disable firewalld.service # Disabling the firewall service


for [root@localhost ~]# vi /etc/selinux/config # Changing SELINUX=disabled
[root@localhost ~]# reboot # Rebooting the VM

Figure 4-32 Disabling the firewall service

[root@localhost ~]# systemctl status firewalld # Checking the status


of the firewall service
○ firewalld.service - firewalld - dynamic firewall daemon
Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled)
Active: inactive (dead)
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 92

Docs: man:firewalld(1)
[root@localhost ~]# cat /etc/selinux/config

# This file controls the state of SELinux on the system.


# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of these three values:
# targeted - Targeted processes are protected,
# minimum - Modification of targeted policy. Only selected processes are protected.
# mls - Multi Level Security protection.
SELINUXTYPE=targeted

Step 3 Install virtualization components and start libvirtd.

[root@localhost ~]# yum -y install libvirt qemu virt-install wget net-tools bridge-utils
[root@localhost ~]# systemctl start libvirtd
[root@localhost ~]# systemctl enable libvirtd

⚫ libvirt is an open-source API, daemon and management tool for managing


virtualization platforms.
⚫ QEMU is open-source (emulation) software. It can emulate all resources required by
VMs, including the CPU, memory, I/O device, USB, and NICs.
⚫ virt-install is a command line tool for creating VMs and installing OSs for KVM, Xen,
or other hypervisors supporting libvirt.
⚫ wget is a free tool for automatically downloading files from Internet.
⚫ net-tools is a network configuration tool.
⚫ bridge-utils is used to configure Linux bridges.

Step 4 Check the status of components and libvirtd.


⚫ The status of the QEMU component

[root@localhost ~]# rpm -qi qemu


Name : qemu
Epoch :2
Version : 6.2.0
Release : 29.oe2203
Architecture: x86_64
...

⚫ The status of the libvirt component

[root@localhost ~]# rpm -qi libvirt


Name : libvirt
Version : 6.2.0
Release : 36.oe2203
Architecture: x86_64
...
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 93

⚫ The service status of libvirtd

[root@localhost ~]# systemctl status libvirtd


○ libvirtd.service - Virtualization daemon
Loaded: loaded (/usr/lib/systemd/system/libvirtd.service; enabled; vendor preset: enabled)
......

Step 5 Download the image to the /opt directory.

[root@localhost ~]# cd /opt


[root@localhost opt]# wget https://mirrors.tuna.tsinghua.edu.cn/openeuler/openEuler-22.03-
LTS/ISO/x86_64/openEuler-22.03-LTS-x86_64-dvd.iso

4.2.2.4 Creating a VM Using default and Communicating with External


Networks Using NAT
Step 1 Create VM 01 using default.

[root@localhost opt]# virt-install --name vm01 --virt-type kvm --video vga --memory 1024 --vcpu 1 -
-disk size=8 --cdrom /opt/openEuler-22.03-LTS-x86_64-dvd.iso --network network=default --graphics
vnc,listen=0.0.0.0,port=5900,password=123456 --noautoconsole

Parameters

--virt-type Specifies the name of the management program.


--cdrom CDROM Specifies the optical disc drive installation media.
--memory MEMORY Specifies the memory.
--vcpus VCPUS Specifies the number of virtual CPUs.
--noautoconsole Do not automatically try to connect to the guest console.
--disk DISK Specifies storage with various options. For example, the disk size is 10
GB.
--network NETWORK Specifies network interfaces. For example:
--network bridge=mybr0
--network network=my_libvirt_virtual_net
--graphics GRAPHICS Configures the display settings of guest machines.

1. View the ID of virtual network console (VNC).

[root@localhost opt]# virsh vncdisplay vm01


:0

2. Run a VNC login tool, enter the management IP address (192.168.3.117), and the
port number (5900), and click OK.
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 94

Figure 4-33 Logging in to VNC


3. Install the operating system as described in section 4.2.2.2.
Note: If VM 01 is shut off after being rebooted, run the virsh start vm01 command to
manually start it.

Step 2 Verify the connectivity of VM 01.

1. Log in to VM 01 using VNC, view the current IP address, and test the connectivity
with external networks.
Alternatively, run the following commands to view the IP address of VM 01 on the host
VM and log in to VM 01 using SSH.

[root@server ~]# virsh domifaddr vm01


name MAC address Protocol Address
-------------------------------------------------------------------------------
vnet0 52:54:00:a2:f0:37 ipv4 192.168.122.39/24
[root@server ~]# ssh 192.168.122.39

2. After logging in to the VM using VNC, run the ip addr command to view the current
IP address.

Figure 4-34 Viewing the current IP address


HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 95

Note: The default network is in NAT mode, the specified bridge is virbr0, and the IP
address obtained by the VM is the one configured in the address pool for default.
3. Test the connectivity with external networks.

Figure 4-35 Testing the connectivity with external networks

4.2.2.5 Changing default to test and Enabling the VM to Communicate


with External Networks Using NAT
Step 1 Create test and specify the new bridge virbr1.

1. Change default and generate an XML file for test.


Before change

[root@localhost opt]# virsh net-edit default


<network>
<name>default</name> #Changing the value to test
<uuid>504fd670-7a5c-45e9-8034-2a78959734ef</uuid> #Changing two digits
<forward mode='nat'/>
<bridge name='virbr0' stp='on' delay='0'/> #Changing virbr0 to virbr1
<mac address='52:54:00:1b:53:3b'/>
<ip address='192.168.122.1' netmask='255.255.255.0'> #Changing it to the new IP address
<dhcp>
<range start='192.168.122.2' end='192.168.122.254'/> #Changing it to the new address pool
</dhcp>
</ip>
</network>

After change

<network>
<name>test</name> #The name has been changed to test.
<uuid>504fd670-7a5e-75e9-805e-2a78959734ef</uuid> #The UUID has been changed.
<forward mode='nat'/>
<bridge name='virbr1' stp='on' delay='0'/> #The designated bridge has been changed to
virbr1.
<mac address='52:54:00:1b:53:3b'/>
The <ip address='192.168.100.1' netmask='255.255.255.0'> #IP address has been changed.
<dhcp>
<range start='192.168.100.2' end='192.168.100.254'/> #The address pool has been modified.
</dhcp>
</ip>
</network>
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 96

After change, the test.xml file is generated in /etc/libvirt/qemu/networks/. You can run
the following command to define and start test.

The [root@localhost ~]# virsh net-define /etc/libvirt/qemu/networks/test.xml # Defining the


network from the test.xml file
The [root@localhost ~]# virsh net-start test # starting test
[root@localhost ~]# virsh net-list # Viewing the network list

2. Start the network to check whether virbr1 is automatically generated.


The configuration file is stored in /run/NetworkManager/system-connections.
In this case, you can run the ifconfig command to view the API address of the generated
virbr1 and run the brctl show command to view the generated bridge virbr1.

[root@localhost ~]# brctl show


[root@localhost ~]# ifconfig

Step 2 Change the network of VM 01 to test.

[root@localhost ~]# virsh edit vm01


<interface type='network'>
<mac address='52:54:00:a2:f0:37'/>
<source network='test'/> #Changing default to test
<model type='e1000'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
</interface>
<serial type='pty'>

⚫ Reboot VM 01.

[root@localhost ~]# virsh destroy vm01


[root@localhost ~]# virsh start vm01

⚫ On the VM 01, run the ip addr command to view the current IP address.
Check whether the IP address is the IP address range of test.

Figure 4-36 Viewing the current IP address


⚫ Test the communication with external networks.
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 97

Figure 4-37 Testing the connectivity with external networks

4.2.2.6 Specifying a Bridge to create a VM and Communicate with External


Networks Using Bridges
Step 1 Create virbr2 and specify it to create VM 02 using bridges.

1. Create virbr2, assign the IP address of the original physical interface to it, and bind it
to the physical service interface.

[root@localhost ~]# brctl addbr virbr2


[root@localhost ~]# brctl addif virbr2 enp0s3
[root@localhost ~]# ifconfig enp0s3 0.0.0.0
#After the enp0s3 interface is bound to the bridge, no IP address is required. Set the IP address of
enp0s3 to 0.0.0.0.
[root@localhost ~]# ifconfig virbr2 10.0.2.15 netmask 255.255.255.0
# Assigning the IP address of the original physical interface to virbr2.

2. Specify virbr2 to create VM 02.

[root@localhost ~]# virt-install --name vm02 --virt-type kvm --video vga --memory 1024 --vcpu 1 --
disk size=10 --cdrom /opt/openEuler-22.03-LTS-x86_64-dvd.iso --network bridge=virbr2 --graphics
vnc,listen=0.0.0.0,port=5901,password=123456 --noautoconsole
[root@localhost ~]# virsh vncdisplay vm02
1

3. Log in to the VM using VNC referring to step 1 in Section 4.2.2.4, change the port
number to 5901, and install the OS.

Figure 4-38 Logging in to the VM using VNC


4. View the IP address of VM 02.

Figure 4-39 Viewing the IP address of VM 02


5. Test the connectivity between VM 02 and external networks.
HCIA-Cloud Computing V5.5 Lab Guide (Basic Exercises) Page 98

Figure 4-40 Testing the connectivity with external networks


⚫ Test the connectivity between VM 02 and the host VM.

Figure 4-41 Testing the connectivity with the host VM

4.3 Quiz
In KVM virtualization, what are the differences between NAT networks and bridged
networks in assigning IP addresses to VMs?
Answer:
NAT networks use the address pool configured on the corresponding network to assign IP
addresses to VMs. Bridged networks use the address segment of the physical interface or
bridge interface to allocate addresses to VMs.
Huawei Cloud Certification Training

HCIA-Cloud Computing

Lab Guide (FusionCompute)

ISSUE: 5.5

HUAWEI TECHNOLOGIES CO., LTD.

2
Copyright © Huawei Technologies Co., Ltd. 2023. All rights reserved.
No part of this document may be reproduced or transmitted in any form or by any
means without prior written consent of Huawei Technologies Co., Ltd.

Trademarks and Permissions

and other Huawei trademarks are trademarks of Huawei Technologies Co., Ltd.
All other trademarks and trade names mentioned in this document are the property of
their respective holders.

Notice
The purchased products, services and features are stipulated by the contract made
between Huawei and the customer. All or part of the products, services and features
described in this document may not be within the purchase scope or the usage scope.
Unless otherwise specified in the contract, all statements, information, and
recommendations in this document are provided "AS IS" without warranties,
guarantees or representations of any kind, either express or implied.
The information in this document is subject to change without notice. Every effort has
been made in the preparation of this document to ensure accuracy of the contents, but
all statements, information, and recommendations in this document do not constitute
a warranty of any kind, express or implied.

Huawei Technologies Co., Ltd.


Address: Huawei Industrial Base Bantian, Longgang Shenzhen 518129
People's Republic of China

Website: https://e.huawei.com

Huawei Proprietary and Confidential


Copyright © Huawei Technologies Co., Ltd
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 1

Huawei Certification System


Huawei Certification is an integral part of the company's Platform + Ecosystem
strategy. It supports the development of ICT infrastructure that features Cloud-Pipe-
Device synergy. Our certification is always evolving to reflect the latest trends in ICT
development.
Huawei Certification consists of three categories: ICT Infrastructure Certification, Basic
Software & Hardware Certification, and Cloud Platform & Services Certification, making
it the most extensive technical certification program in the industry.
Huawei offers three levels of certification: Huawei Certified ICT Associate (HCIA),
Huawei Certified ICT Professional (HCIP), and Huawei Certified ICT Expert (HCIE).
Our programs cover all ICT fields and follow the industry's trend of ICT convergence.
With our leading talent development system and certification standards, we are
committed to fostering new digital ICT talent and building a sound ICT talent
ecosystem.
The HCIA-Cloud Computing V5.5 is intended for beginners. Train trainees to master the
necessary knowledge of cloud computing through pre-courses. Introduce Huawei cloud
virtualization and large-capacity desktop cloud products to help trainees understand
resource pooling. Train cloud computing engineers with FusionCompute virtualization
and FusionAccess desktop cloud management capabilities.
The HCIA-Cloud Computing V5.5 certification includes: Basic knowledge of cloud
computing (server, storage, network, and OS). FusionCompute product introduction,
virtual resource pool management, routine management, and security management.
FusionAccess product and component introduction, installation and deployment, service
management, and routine O&M.
Passing the HCIA-Cloud Computing V5.5 certification means that you are capable of
designing, managing, and maintaining FusionCompute and FusionAccess.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 2
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 3

About This Document

Overview
This document is intended for HCIA-Cloud Computing certification training courses. It is
intended for users who are preparing to take the HCIA-Cloud Computing exam or who
want to learn about Huawei server virtualization FusionCompute and be proficient in
using and managing FusionCompute.

About the Exercises


This lab guide consists of four exercises from FusionCompute environment setup to
FusionCompute O&M management:
⚫ Exercise 1: FusionCompute environment setup experiment. This part simulates the
service deployment scenario on the live network. Servers and storage devices are
used to complete the infrastructure construction of the entire platform. From CNA
installation to VRM deployment, users can master the FusionCompute architecture
from the bottom layer.
⚫ Exercise 2: FusionCompute resource management experiment, including computing
resource management, storage resource management, and network resource
management. After this exercise, you will be familiar with the computing, storage,
and network virtualization functions of FusionCompute server virtualization and
understand the resource management advantages of FusionCompute.
⚫ Exercise 3: FusionCompute VM provisioning and management experiment, which
consists of two modules: VM provisioning and VM management. This experiment
includes VM creation, VM specification adjustment, HA, live migration, security
group, and rule group. Through this experiment, you can deeply understand and be
proficient in basic service O&M.
⚫ Exercise 4: FusionCompute common O&M labs, include alarm management, system
management, rights management, and security management. After this lab, you will
be familiar with basic FusionCompute O&M and master basic O&M capabilities.

Lab Environment Overview


Scenarios
Two servers have been installed and configured with BMC management addresses in the
equipment room of a company. The company plans to use Huawei FusionCompute
virtualization suite to build a service test platform for service tests and employee skill
training. The virtualization platform must support functions such as VM resource
management, VM live migration, VM snapshot, and HA. Based on the future service
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 4

requirements of Huawei, the VRM is deployed in dual-node virtualization mode. The


existing storage devices of Huawei are used for storage resources. LUNs are created for
the platform. The following describes how to set up the FusionCompute platform and
perform related services and management.

Design
Based on the application scenarios of the company's services, the administrator designs
the environment as follows:
⚫ Based the existing environment resources, two servers are planned to connect to the
management locked-down server and storage device through switches. On the
network, eth0 is the management network port while eth1 is the storage network
port.
⚫ Deploy VRM on two VM nodes.
⚫ Create LUNs on the company's existing storage devices for the platform.
⚫ Considering that operations such as live migration and HA need to be performed on
VMs, create LUNs on backend storage to ensure high availability.

Networking Topology
⚫ As shown in Figure 1-1, use management ports (eth0) to connect CNA01 and CNA02
to the jump server through a switch. For details about IP address planning, see the
network configuration description.
⚫ As shown in Figure 1-1, use storage ports (eth1) to connect CNA01 and CNA02 to
the storage device through a switch. For details about IP address planning, see the
network configuration description.
⚫ As shown in Figure 1-1, the service port of the storage device is connected to the
switch and communicates with the storage port of CNA01 and CNA02 to provide
storage resources.
⚫ The BMC/Mgmt port connections between servers and storage devices are not shown
in Figure 1-1. You need to plan the connections.
⚫ Deploy VRM on two VM nodes. After the deployment, CNA01 and CNA02 belong to
the same FusionCompute resource pool.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 5

Figure 1-1 HCIA-Cloud Computing V5.5 networking topology

Devices and Software Description


Table 1-1 Devices

Device Quantity Remarks

Server 2 2 for each group

Switch 1 Shared by all groups

Huawei OceanStor V3/V5 series


1 Shared by all groups
storage devices

Jump server 1 1 for each group

⚫ Software and tools (which need to be uploaded by the trainer to the jump server in
advance)

Table 1-2 Software and tools

Software Description How to Obtain

FusionCompute-LinuxInstaller-8.3.0- Server https://support.huawei.co


HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 6

X86_64.zip virtualization m/enterprise/en/distribute


installation tool d-storage/fusioncompute-
pid-8576912/software
VRM software
FusionCompute_VRM-8.3.0-X86_64.zip
package

FusionCompute_CNA-8.3.0-X86_64.iso CNA image

https://www.openeuler.org
openEuler22.03 /zh/download/archive/deta
openEuler-22.03-LTS-x86_64-dvd.iso
image il/?version=openEuler%202
2.03%20LTS

https://the.earth.li/~sgtath
Terminal login
PuTTY am/putty/0.76/w64/putty-
tool
64bit-0.76-installer.msi

Terminal login https://winscp.net/downloa


WinSCP
tool d/WinSCP-5.19.6-Setup.exe

Device Network Configurations


⚫ The actual network configuration in the experiment is subject to the actual
environment.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 7

Table 1-3 Network configurations


NE Port Description VLAN IP Address

Management/
eth0 113 192.168.113.2/24
Service channel
CNA01
Logical port address:
eth1 Storage channel 213
192.168.213.2/24

Management/
eth0 113 192.168.113.3/24
Service channel
CNA02
Logical port address:
eth1 Storage channel 213
192.168.213.3/24

192.168.113.10/24
VRM01 Management (floating IP address)
/ 113
(active) address
192.168.113.11/24

VRM02 Management
/ 113 192.168.113.12/24
(standby) address

service Provides storage


Storage 213 192.168.213.5/24
interface services.

Switch Configurations
⚫ The switch configuration in the experiment is subject to the actual environment.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 8

Table 1-4 Switch configurations


VLANIF
Port Port
Switch VLAN Port Description Configuratio
Type Configuration
n

Connects to PVID:113
10GE1/0
port eth0 of Hybird Untagged
/1
CNA01. VLAN:113

Connects to PVID:113 VLANIF113:


10GE1/0
port eth0 of Hybird Untagged
/2 192.168.113.1
CNA02. VLAN:113 /24
Connects to
10GE1/0 the Default VLAN:
Access
/48 administrator's 113
VLAN 113
Huawei PC.
VLAN 213
Connects to
10GE1/0 Default VLAN:
port eth1 of Access
/11 213
CNA01.

Connects to VLANIF213:
10GE1/0 Default VLAN:
port eth1 of Access 192.168.213.1
/12 213
CNA02. /24

Connects to
10GE1/0 Default VLAN:
storage service Access
/13 213
ports.

FusionCompute Accounts
(Link to the product documentation: FusionCompute 8.3.0 Product Documentation)

Table 1-5 FusionCompute accounts


NE Username Password

FusionCompute-
admin IaaS@PORTAL-CLOUD8!
LinuxInstaller

CNA node root Custom

CNA node grub Custom

CNA node gandalf Custom

VRM admin Custom


HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 9

Contents

About This Document ............................................................................................................... 3


Overview ............................................................................................................................................................................................. 3
About the Exercises ......................................................................................................................................................................... 3
Lab Environment Overview .......................................................................................................................................................... 3
1 FusionCompute Environment Setup ................................................................................11
1.1 Introduction ..............................................................................................................................................................................11
1.1.1 About This Exercise ............................................................................................................................................................11
1.1.2 Objectives ..............................................................................................................................................................................11
1.1.3 Procedure ...............................................................................................................................................................................11
1.2 Basic Network Configuration (Switch) ...........................................................................................................................11
1.3 CNA Installation ......................................................................................................................................................................12
1.4 VRM Installation .....................................................................................................................................................................26
1.5 Quiz .............................................................................................................................................................................................37
2 FusionCompute Resource Management .........................................................................38
2.1 Compute Resource Management .....................................................................................................................................38
2.1.1 Introduction ..........................................................................................................................................................................38
2.1.2 Creating a Cluster ...............................................................................................................................................................38
2.1.3 Moving a Host......................................................................................................................................................................41
2.1.4 Deleting a Cluster ...............................................................................................................................................................43
2.1.5 Configuring Cluster Policies ............................................................................................................................................43
2.2 Storage Resource Management ........................................................................................................................................46
2.2.1 Introduction ..........................................................................................................................................................................46
2.2.2 Configuring Storage Ports ...............................................................................................................................................46
2.2.3 Configuring IP-SAN storage ............................................................................................................................................50
2.2.4 Adding IP SAN Storage .....................................................................................................................................................61
2.2.5 Creating a Disk ....................................................................................................................................................................69
2.3 Network Resource Management ......................................................................................................................................71
2.3.1 Introduction ..........................................................................................................................................................................71
2.3.2 DVS Management...............................................................................................................................................................71
2.4 Quiz .............................................................................................................................................................................................78
3 FusionCompute VM Provisioning and Management ....................................................79
3.1 VM Provisioning ......................................................................................................................................................................79
3.1.1 Introduction ..........................................................................................................................................................................79
3.1.2 VM Provisioning...................................................................................................................................................................79
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 10

3.2 VM Management ................................................................................................................................................................ 113


3.2.1 Introduction ....................................................................................................................................................................... 113
3.2.2 VM Parameter Modification ........................................................................................................................................ 113
3.2.3 VM Storage Adjustment ................................................................................................................................................ 125
3.2.4 VM Snapshot Management ......................................................................................................................................... 128
3.2.5 VM Live Migration ........................................................................................................................................................... 133
3.2.6 VM Rule Group ................................................................................................................................................................. 136
3.2.7 Security Group Creation ................................................................................................................................................ 147
3.2.8 VM HA.................................................................................................................................................................................. 153
3.3 Quiz .......................................................................................................................................................................................... 156
4 Common O&M Management ......................................................................................... 158
4.1 Introduction ........................................................................................................................................................................... 158
4.1.1 About This Exercise ......................................................................................................................................................... 158
4.1.2 Objectives ........................................................................................................................................................................... 158
4.1.3 Procedure ............................................................................................................................................................................ 158
4.2 Viewing the System ESN ................................................................................................................................................... 158
4.3 Managing Alarms ................................................................................................................................................................ 160
4.4 Configuring the System Clock......................................................................................................................................... 161
4.5 Permission Management .................................................................................................................................................. 163
4.5.1 Role Management ........................................................................................................................................................... 163
4.5.2 User Management ........................................................................................................................................................... 164
4.5.3 Password Policy Management .................................................................................................................................... 165
4.6 Security Management........................................................................................................................................................ 166
4.6.1 FusionCompute Account Management ................................................................................................................... 166
4.6.2 Log Management............................................................................................................................................................. 169
4.6.3 Port Management............................................................................................................................................................ 174
4.6.4 FusionCompute Backup and Restoration ................................................................................................................ 177
4.7 Quiz .......................................................................................................................................................................................... 186
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 11

1 FusionCompute Environment Setup

1.1 Introduction
1.1.1 About This Exercise
In this exercise, you need to install CNA on two prepared servers and use installation
tools to deploy VRM to set up a dual-node FusionCompute cluster.

1.1.2 Objectives
⚫ Understand what CNA is.
⚫ Install and configure CNA.
⚫ Install VRM using tools.
⚫ Log in to FusionCompute.

1.1.3 Procedure

Figure 1-1 Procedure

1.2 Basic Network Configuration (Switch)


⚫ Configure VLANs:

[Huawei]vlan batch 113 213

⚫ Configure ports:

[Huawei]display current-configuration interface


#
interface Vlanif113
ip address 192.168.113.1 255.255.255.0
#
interface Vlanif213
ip address 192.168.213.1 255.255.255.0
#
interface 10GE1/0/1
port link-type hybrid
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 12

port hybrid pvid vlan 113


port hybrid untagged vlan 113
device transceiver 10GBASE-FIBER
#
interface 10GE1/0/2
port link-type hybrid
port hybrid pvid vlan 113
port hybrid untagged vlan 113
device transceiver 10GBASE-FIBER
#
interface 10GE1/0/11
port default vlan 213
device transceiver 10GBASE-FIBER
#
interface 10GE1/0/12
port default vlan 213
device transceiver 10GBASE-FIBER
#
interface 10GE1/0/13
port default vlan 213
device transceiver 10GBASE-FIBER
#
interface 10GE1/0/48
port default vlan 113
device transceiver 10GBASE-FIBER
#

1.3 CNA Installation


Step 1 Log in to the iBMC page of the CNA01 server, configure RAID 1 for the server and
set RAID 1 as the boot device.

Step 2 Click CD/DVD icon, and select the image file FusionCompute_CNA-8.3.0-
X86_64.iso on your local computer.

Figure 1-2 Selecting image file


Step 3 Click Connect to mount the CNA image file.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 13

Figure 1-3 Mounting image file


Step 4 Click Power Control, and click Forced Restart.

Figure 1-4 Restart the server


Step 5 During the host restart, press F11 repeatedly until the BIOS password setting
screen is displayed. Enter the password (default password is Admin@9000).

Step 6 On the displayed screen, select Virtual DVD-ROM VM 1.1.0 to set the boot device
to CD/DVD-ROM drive.

Figure 1-5 Setting the boot device


HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 14

Step 7 On the displayed screen, select Installation within 30s and press Enter. After the
boot program is loaded, the CNA installation page is displayed.

Figure 1-6 Move the cursor to Installation

Figure 1-7 Installation page


Step 8 Move the cursor to *Hard Drive and press Enter to go to the disk configuration
page. Confirm that the disk information is correct, move the cursor to OK, press
Enter, and then click Yes.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 15

Figure 1-8 Selecting a disk

Figure 1-9 Formatting a disk


Step 9 Configure the CNA network. Move the cursor to Network and press Enter.

Figure 1-10 Configuring an IPv4 network


Step 10 Select IPv4 and press Enter.
Step 11 Select the eth0 NIC and press Enter. On the NIC IP configuration page, configure
the CNA01 IP address 192.168.113.2/255.255.255.0 as planned. Move the cursor
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 16

to OK and press Enter. (Set the CNA02 IP address to


192.168.113.3/255.255.255.0.)

Figure 1-11 Configuring the network


Step 12 Set the default gateway address 192.168.113.1, move the cursor to OK, and press
Enter.

Figure 1-12 Configuring the gateway


Step 13 Move the cursor to OK and press Enter to complete the network configuration.
Step 14 Move the cursor to Hostname, press Enter, enter the host name CNA01, move
the cursor to OK, and then press Enter. (The host name for CNA02 is CNA02.)
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 17

Figure 1-13 Setting the host name


Step 15 Move the cursor to Timezone, press Enter, and configure the clock based on the
current time.

Figure 1-14 Setting the time zone


Step 16 Move the cursor to Password and press Enter. Enter the password for the root
user to log in to the CAN node. Move the cursor to OK and press Enter.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 18

Figure 1-15 Setting the password for the root user to log in to the
node
Step 17 Move the cursor to Grubpassword, press Enter, and enter Grubpassword. Move
the cursor to OK and press Enter.

Figure 1-16 Setting a GRUB password


Step 18 Move the cursor to OK and press Enter. Select Yes three times to go to the CNA
installation page.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 19

Figure 1-17 Installing the system


Step 19 Wait for about 3 to 6 minutes until the installation is complete. After the
installation progress reaches 100%, the CNA node restarts.

Step 20 Log in to the CNA01 as the root user.

Figure 1-18 Logging in to CNA01 as the root user


Step 21 Run the following command to set the passwords of the gandalf user and Redis
database account.

CNA01:~#cnaInit
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 20

Figure 1-19 Setting the password for the gandalf user


Step 22 Enter 0 set general cipher mode and press Enter.

Figure 1-20 Setting general cipher mode


Step 23 Enter a custom password for the gandalf user and confirm the password.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 21

Figure 1-21 Setting the password for the gandalf user


Step 24 Enter a custom password for Redis database and confirm the password.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 22

Figure 1-22 Setting the password for the Redis database


Step 25 Perform Step 1 through Step 24 again to install CNA02.
Step 26 Use a terminal tool to log in to CNA01 as the gandalf user.

Figure 1-23 Remotely logging in to CNA01 as the gandalf user


HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 23

Step 27 Switch to the root user and enter the password of the root user to log in.
[gandalf@CNA01 ~]$ su - root

Figure 1-24 Switching to the root user


Step 28 Enable SFTP for CNA01.
CNA01:~ # sh /opt/galax/gms/common/util/configSshSftp.sh open

Figure 1-25 Enabling SFTP


Step 29 Use WinSCP (or another terminal tool such as MobaXterm) to log in to CNA01 as
the gandalf user through SFTP.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 24

Figure 1-26 Remotely logging in to CNA01


Step 30 After login, find the FusionCompute-LinuxInstaller-8.3.0-X86_64.zip installation
package on the left and drag it to the /home/GalaX8800 directory on the right. In
the dialog box that is displayed, click OK.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 25

Figure 1-27 Uploading the installation package


Step 31 Open the CNA01 CLI you have logged in on PuTTY, go to the /home/GalaX8800
directory and decompress the FusionCompute-LinuxInstaller-8.3.0-X86_64.zip
package.

CNA01:~ # cd /home/GalaX8800/
CNA01: /home/GalaX8800 # unzip FusionCompute-LinuxInstaller-8.3.0-X86_64.zip

Figure 1-28 Decompressing the installation package


Step 32 Go to the FusionCompute-LinuxInstaller-8.3.0-X86_64 folder and install the
webInstaller tool.

CNA01: /home/GalaX8800 # cd FusionCompute-LinuxInstaller-8.3.0-X86_64


CNA01: /home/GalaX8800/ FusionCompute-LinuxInstaller-8.3.0-X86_64 # bash bin/webInstaller.sh
install

Figure 1-29 Running installation commands


Step 33 Open the browser and enter https://192.168.113.2:8080 (192.168.113.2 is the
management IP address of CNA01) in the address box to open the login page of
FusionCompute.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 26

⚫ Obtain the initial account and password in 错误!未找到引用源。.


⚫ Change the initial password, record the new password, and log in again.

Figure 1-30 WebUI login page


(Note: If you click on the operation page after successfully logging in using the Firefox
browser, you may be automatically logged out and a message is displayed, indicating that
you have not logged in or the login times out.)
Possible cause: The time of the server where the FusionCompute web installation tool is
deployed is not synchronized with the local time. As a result, the Firefox browser considers
that the registered session has expired.
Solution: Change the local time or run the data -s xx:xx:xx command (xx:xx:xx:xx indicates
hours:minutes:seconds respectively) on the server to ensure that the local time is the same
as the time of the server where the web installation tool is deployed, refresh the browser,
and log in again.)

1.4 VRM Installation


Step 1 Log in to FusionCompute InstallTools, set the installation language to English,
choose Custom Installation, select VRM for Components, and click Next.

Figure 1-31 Logging in to FusionCompute


HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 27

Figure 1-32 Selecting VRM

Figure 1-33 Clicking Next


Step 2 Click the position in the red box in the following figure.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 28

Figure 1-34 Clicking the position in the red box


Step 3 In the dialog box that is displayed, select the FusionCompute_VRM-8.3.0-
X86_64.zip package and click Open.

Figure 1-35 Selecting the VRM software package


Step 4 Click Upload to upload the software package. Click Next after the configuration is
complete.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 29

Figure 1-36 Uploading the software package

Figure 1-37 Software package uploaded successfully


Step 5 Click Custom installation and click Next.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 30

Figure 1-38 Clicking Custom installation


Step 6 On the page that is displayed, set VRM parameters as follows and click Next.
⚫ Installation Mode: Active/standby
⚫ Configuration Mode: By scale
⚫ Floating IP Address: 192.168.113.10
⚫ Active VRM Node Name and Active VRM Node IP Address: VRM01 and
192.168.113.11, respectively
⚫ Standby VRM Node Name and Standby VRM Node IP Address: VRM02 and
192.168.113.12, respectively
⚫ Subnet Mask: 255.255.255.0
⚫ Subnet Gateway: 192.168.113.1
⚫ Quorum IP Address 01: 192.168.113.1
⚫ MAC Address Pool: segment mode
⚫ Set other parameters as planned.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 31

Figure 1-39 Setting VRM parameters

Figure 1-40 Setting VRM parameters


Step 7 Enter information about the CNA01 and CNA02 hosts, and click Configure Host.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 32

Figure 1-41 Configuring hosts


(This step takes about 5 to 10 minutes.)

Step 8 Wait until the configuration is complete and click Next.

Figure 1-42 Host configuration completed


(The size of CNA host disk space cannot be less than 100 GB. Otherwise, the datastores
cannot be discovered.)

Step 9 Select a local storage for each node and click Next. (Select disks based on the site
requirements.)
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 33

Figure 1-43 Host 01

Figure 1-44 Host 02


Step 10 Set the password of the VRM admin user as planned and click Next.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 34

Figure 1-45 Configuring the login password


Step 11 Click Install VRM. After the installation is complete, click Next. The
FusionCompute login information is displayed. And then click Finish.

Figure 1-46 Installing VRM


HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 35

Figure 1-47 VRM installed

Figure 1-48 Clicking Confirm


Step 12 The browser automatically switches to the FusionCompute login page. (VRM
floating IP address, which is 192.168.113.10 in this exercise) In the dialog box that
is displayed, click OK to accept the license agreement. Enter the user name admin
and the configured password, and click Login.

(If no commercial license is loaded to the system, free trial will expire in 90 days.)
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 36

Figure 1-49 Logging in to FusionCompute

Figure 1-50 Logged in successfully (ignoring system alarms)


Step 13 Choose Help > About in the upper right corner to check the version.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 37

Figure 1-51 Checking the version

1.5 Quiz
What are the principles for deploying FusionCompute hosts?
Answers:
Deployment principles: Multiple hosts can be deployed based on customer requirements
for compute resources. The hosts also provide storage resources if local hard disks are
used to provide storage resources. If a small number of hosts, for example, fewer than 10
hosts, are deployed, you can add all the hosts to the management cluster, which
therefore also provides user services. If a large number of hosts are deployed, you can
add the hosts to one or more service clusters by service to facilitate service management.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 38

2 FusionCompute Resource Management

2.1 Compute Resource Management


2.1.1 Introduction
2.1.1.1 About This Exercise
This exercise illustrates how to configure compute resources on the installed
FusionCompute as an administrator, to facilitate cluster capacity expansion and host
moving during employee training.

2.1.1.2 Objectives
⚫ Understand clusters, hosts, and the relationship between hosts and clusters.
⚫ Describe the cluster operation process and configure a cluster policy.
⚫ Understand host operations and related parameters.

2.1.1.3 Procedure

Figure 2-1 Procedure

2.1.2 Creating a Cluster


Step 1 Log in to FusionCompute.

Step 2 Choose Resource Pools > Create Cluster.

Step 3 Set basic cluster parameters to those shown in the following figure and click
Next.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 39

Figure 2-2 Creating a Cluster


Step 4 In the Basic Configuration pane, use the default settings and click Next.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 40

Figure 2-3 Basic Configuration


Step 5 In the Configure HA pane, use the default settings and click Next.

Figure 2-4 Configuring HA


HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 41

Step 6 Click OK to complete cluster creation.

Figure 2-5 Confirming info

2.1.3 Moving a Host


Step 1 Choose Resource Pools > ManagementCluster > CNA01.

Figure 2-6 Accessing the CNA01 management page


HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 42

Step 2 Right-click CNA01 and choose Move.

Figure 2-7 Moving CNA01 host


Step 3 Select mycluster and click OK to move the CNA01 host to the mycluster cluster.

Figure 2-8 Moving a host to the mycluster cluster


Step 4 Repeat Step 2 and Step 3 to move the CNA02 host to the mycluster cluster.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 43

Step 5 Choose Resource Pools > mycluster > CNA02. Information about the two hosts is
displayed in the pane on the right.

Figure 2-9 Both hosts moved to the mycluster cluster

2.1.4 Deleting a Cluster


Step 1 Choose Resource Pools, right-click ManagementCluster and choose Remove.

Figure 2-10 Deleting empty cluster ManagementCluster


Step 2 In the displayed dialog box, click OK to delete ManagementCluster.

2.1.5 Configuring Cluster Policies


Step 1 Choose Resource Pools > mycluster. Click the Configuration tab to view the
cluster configuration. Then click Edit in the upper right corner of the Configuration
tab page.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 44

Figure 2-11 Configuration tab page


Step 2 In the Control Cluster Resource pane, toggle on Auto Adjustment of VM NUMA
Topology. Then click OK to close the Control Cluster Resource pane.

Figure 2-12 Toggling on Auto Adjustment of VM NUMA Topology


Step 3 On the Configuration tab page, verify that the function has been enabled.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 45

Figure 2-13 Verifying that the function has been enabled


Step 4 Repeat Step 1 and Step 2 to toggle off Auto Adjustment of VM NUMA Topology.

Figure 2-14 Verifying that the function has been disabled


HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 46

2.2 Storage Resource Management


2.2.1 Introduction
2.2.1.1 About This Exercise
This exercise illustrates how to configure storage resources on the installed
FusionCompute. You need to connect backend SAN storage devices to FusionCompute
and manage disks on FusionCompute, to facilitate subsequent services such as high
availability (HA) and live migration.

2.2.1.2 Objectives
⚫ Understand the FusionCompute storage model.
⚫ Create storage network ports and understand related parameters.
⚫ Add universal IP-SAN storage.
⚫ Configure storage resources.
⚫ Create a disk and understand related parameters.

2.2.1.3 Procedure

Figure 2-15 Procedure

2.2.2 Configuring Storage Ports


2.2.2.1 Changing the iSCSI Initiator WWN of a Host
Step 1 Choose Resource Pools > mycluster > CNA01. Click the Configuration tab.

Figure 2-16 Configuration tab page


Step 2 Click Modify in the Storage Adapter pane and change the iSCSI initiator WWN of
CNA01 to iqn.20XX-XX.huawei.hcia:cna01.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 47

Figure 2-17 Changing the WWN of CNA01


Step 3 Repeat the preceding steps to change the iSCSI initiator WWN of CNA02 to
iqn.20XX-XX.huawei.hcia:cna02.

Figure 2-18 Changing the WWN of CNA02

2.2.2.2 Adding Storage Ports


Step 1 Choose Resource Pools > mycluster > CNA01. Click the Configuration tab.

Step 2 Choose Network > Logical Interface > Configuration tab, click Add Storage Port.

Figure 2-19 Configuring a logical interface


Step 3 Select eth1 and click Next.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 48

Figure 2-20 Selecting a storage port


Step 4 Enter the storage port information (set VLAN ID to 0 and IPv4 Address to
192.168.213.2) of the CNA01 host, as shown in the following figure.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 49

Figure 2-21 Configuring storage information


Step 5 Click Next. Confirm the information and click OK.

Figure 2-22 Confirming storage information


Step 6 Repeat the preceding steps to add a storage port to the CNA02 host.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 50

Figure 2-23 Adding a storage port to the CNA02

2.2.3 Configuring IP-SAN storage


2.2.3.1 Creating a host
Step 1 Log in to the OceanStor DeviceManage and click Provisioning.

Figure 2-24 Accessing the provisioning page


Step 2 On the Provisioning page, choose Host > Initiator, and click Create.

Figure 2-25 Creating an Initiator


Step 3 Enter the iSCSI initiator WWN of the CNA01 host, deselect Enable CHAP
authentication, and click OK.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 51

Figure 2-26 Entering the WWN of CNA01


Step 4 Repeat the preceding steps to create an initiator for the CNA02 host.

Step 5 Return to the Provisioning page and click Create Host. Set host information, as
shown in the following figure and click Next.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 52

Figure 2-27 Setting host information

Step 6 Select the iSCSI initiator of the CNA01 host and click .
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 53

Figure 2-28 Selecting the initiator


Step 7 Verify that the selected initiator is correct and click Next.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 54

Figure 2-29 Verifying the initiator


Step 8 Verify that the host settings are correct and click Finish.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 55

Figure 2-30 Finishing the host creation


Step 9 In the displayed dialog box, select I have read... and click Next.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 56

Figure 2-31 Confirming the operation records(1)


Step 10 In the displayed dialog box, select I have read... and click OK.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 57

Figure 2-32 Confirming the operation records(2)


Step 11 Repeat the preceding steps, create another host and associate it with CNA02.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 58

Figure 2-33 The created host associated with CNA02

2.2.3.2 Creating a host group


Step 1 Choose Provisioning > Host > Host Group tab, and click Create.

Step 2 On the displayed tab page, set host group name shown in the following figure,
then select the created hosts and click .

Figure 2-34 Creating a host group


Step 3 Verify that the selected host is correct and click OK.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 59

Figure 2-35 Verifying the selected hosts


Step 4 On the displayed page, click OK.

Figure 2-36 Caution


Step 5 On the displayed page, confirm the execution results and click Close.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 60

Figure 2-37 Confirming the execution results

2.2.3.3 Creating a Mapping View


Step 1 Choose Provisioning > Create Mapping View.

Step 2 On the displayed page, set the view name and select the LUN group and host
group created by you, as shown in the following figure, then click OK.

Figure 2-38 Creating a Mapping View


Step 3 On the displayed page, select I have read... and click OK.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 61

Figure 2-39 Danger


Step 4 On the displayed page, confirm the execution results and click Close.

Figure 2-40 Confirming the execution results

2.2.4 Adding IP SAN Storage


2.2.4.1 Adding Storage Resources
Step 1 Choose Resource Pools > Storage. Click the Storage Resources tab.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 62

Figure 2-41 Storage Resources tab page


Step 2 Click Add Storage Resource. Set basic information, as shown in the following
figure.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 63

Figure 2-42 Setting basic information


Step 3 Click Next. Confirm the information and click OK.

Figure 2-43 Confirming basic information


Step 4 View the storage resource created on the Storage Resources tab page.

Figure 2-44 Viewing the added IP-SAN


Step 5 Click More in the row that contains the IP-SAN storage resource and choose
Associate Host.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 64

Figure 2-45 Associating a host


Step 6 In the Associate Host dialog box, select mycluster and click OK.

Figure 2-46 Selecting a cluster


Step 7 On the Storage Resources tab page, verify that two hosts have been associated with
the storage resource.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 65

Figure 2-47 Verifying successful association

2.2.4.2 Scanning for Storage Devices


Step 1 Choose Resource Pools > Storage. Click the Storage Device tab.

Figure 2-48 Storage Device tab page


Step 2 Click Scan. In the displayed dialog box, select mycluster and click OK to scan for
storage devices.

Figure 2-49 Scanning storage devices


HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 66

Step 3 Click the Recent Tasks icon in the lower left corner of the page to view the scan
progress.

Figure 2-50 Viewing the progress


Step 4 After successful scanning, choose Resource Pools > Storage and click the Storage
Device tab page to view the detected storage devices.

Figure 2-51 Scanned successfully

2.2.4.3 Adding a Datastore


Step 1 Choose Resource Pools > Storage. Click the Datastore tab.

Figure 2-52 Datastore tab page


Step 2 Click Add Datastore. In the displayed dialog box, select IP SAN storage and click
Next.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 67

Figure 2-53 Adding IP SAN storage


Step 3 Set datastore parameters shown in the following figure and click Next.

Figure 2-54 Configuring datastore


HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 68

Step 4 In the displayed dialog box, confirm the information and click OK.

Figure 2-55 Confirming the information


Step 5 Confirm the information and click OK.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 69

Figure 2-56 Confirming the info


Step 6 The adding datastore takes 3 to 5 minutes. You can view the progress in the Recent
Tasks.

Figure 2-57 Viewing the progress


Step 7 View the new datastore on the Datastore tab page.

Figure 2-58 The datastore added successfully

2.2.5 Creating a Disk


2.2.5.1 Creating a Thin Provisioning Disk
Step 1 Choose Resource Pools > Storage. Click the Datastore tab.

Figure 2-59 Datastore tab page


Step 2 On the Datastore tab page, select IP-SAN. Then choose Disks tab > Create Disk.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 70

Figure 2-60 Creating a disk


Step 3 In the Create Disk dialog box, set disk parameters. Set Name to DISK01,
Capacity(GB) to 10, Type to Non-shared, Configuration Mode to Thin
provisioning, and Disk Mode to Dependent. Confirm the settings and click OK.

Figure 2-61 Setting parameters to create a disk


HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 71

Step 4 On the Datastores tab page, choose IP-SAN > Disks tab. Verify that the disk has
been created.

Figure 2-62 Verifying the disk created successfully

2.3 Network Resource Management


2.3.1 Introduction
2.3.1.1 About This Exercise
This exercise illustrates how to configure network resources on the installed
FusionCompute. You need to plan distributed virtual switches (DVSs) and design virtual
networks on FusionCompute to fulfill service requirements such as access between
service VMs, high availability (HA), and live migration.

2.3.1.2 Objectives
⚫ Understand concepts related to distributed virtual switches (DVSs).
⚫ Create a DVS.
⚫ Understand the concept and creation method of port groups.

2.3.1.3 Procedure

Figure 2-63 Procedure

2.3.2 DVS Management


2.3.2.1 Creating a DVS
Step 1 Choose Resource Pools > Network.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 72

Figure 2-64 Network page


Step 2 Click Create DVS. In the Create DVS dialog box, set Name to test-DVS and Switch
Type to Common, and use the default values for other parameters.

Figure 2-65 Setting parameters to create DVS


Step 3 Click Next. Confirm the information and click OK.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 73

Figure 2-66 Confirming the information


Step 4 Choose Resource Pools > Network to view the DVS.

Figure 2-67 Viewing the created DVS

2.3.2.2 Deleting a DVS


Step 1 Choose Resource Pools > Network.

Step 2 Click More in the Operation column of the test-DVS and choose Delete.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 74

Figure 2-68 Deleting a DVS


Step 3 In the displayed dialog box, click OK to delete the DVS.

Figure 2-69 Confirming to delete the DVS

2.3.2.3 Adding a VLAN Pool


Step 1 Choose Resource Pools > Network.

Step 2 Select ManagementDVS and click Add on the VLAN Pools tab page.

Figure 2-70 Adding a VLAN pool


Step 3 Set Start VLAN ID to 2 and End VLAN ID to 4094, and click OK.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 75

Figure 2-71 Configuring VLANs


Step 4 On the VLAN Pool tab page, view the new VLAN information.

Figure 2-72 Viewing VLAN information

2.3.2.4 Adding a Port Group


Step 1 Choose Resource Pools > Network.

Step 2 Select ManagementDVS and click Add on the Port Group tab page.

Figure 2-73 Adding a port group


HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 76

Step 3 On the displayed page, set the port group name to test, use the default values for
other parameters, and click Next.

Figure 2-74 Configuring basic information


Step 4 Set VLAN to 100 and click Next.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 77

Figure 2-75 Configuring network connection


Step 5 Confirm the information and click OK.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 78

Figure 2-76 Confirming the information


Step 6 On the Port Group tab page, view the port group information.

Figure 2-77 Viewing port group information

2.4 Quiz
FusionCompute supports three disk configuration modes: Common, Thick provisioning
lazy zeroed, and Thin provisioning. What are the characteristics of disks in Common
and Thin provisioning modes, and what are the differences between disks in these two
modes?
Answers:
Common: The system allocates disk space based on the disk capacity. During disk
creation in this mode, data remaining on the physical device will be zeroed out. The
performance of the disks in this mode is better than that in the other two modes, but the
creation duration may be longer than that required in the other modes.
Thin provisioning: In this mode, the system allocates part of the configured disk capacity
for the first time, and allocates the rest disk capacity based on the storage usage of the
disk until the configured disk capacity is allocated.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 79

3 FusionCompute VM Provisioning and


Management

3.1 VM Provisioning
3.1.1 Introduction
3.1.1.1 About This Exercise
This exercise illustrates how to create VMs, install OSs, and import templates on
FusionCompute.

3.1.1.2 Objectives
⚫ Create a VM.
⚫ Import a template and create a VM using the template.
⚫ Create a template.

3.1.1.3 Procedure

Figure 3-1 Procedure

3.1.2 VM Provisioning
3.1.2.1 Creating a VM
Step 1 Choose Resource Pools > mycluster > Create VM.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 80

Figure 3-2 Cluster management page


Step 2 On the Select Creation Mode page of the VM creation window, select Create VM
and click Next.

Figure 3-3 Creating a VM


Step 3 Set Name to openEuler01, Select VM Location to site, Set Compute Resource to
mycluster and OS to Linux, as shown in the following figure.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 81

Figure 3-4 Setting basic information


Step 4 Click Next. On the Datastore page, select IP-SAN and click Next.

Figure 3-5 Selecting a datastore


Step 5 Set VM parameters. Set CPU to 2 (vCPU), Memory to 4 GB, and Disk 1 to 40 GB.
Use the default values for other parameters and click Next.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 82

Figure 3-6 Configuring the VM


Step 6 Confirm the information and click OK.

Figure 3-7 VM created successfully


Step 7 Choose Resource Pools > mycluster. On the VM tab page, view the VM status.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 83

Figure 3-8 Viewing VM information


Step 8 Click openEuler01 in the Name column to go to the VM management page.

Figure 3-9 VM management page

3.1.2.2 Installing the OS


Step 1 Choose Resource Pools > mycluster > CNA01 > openEuler01. The VM
management page is displayed.

Step 2 Click the Configuration tab. In the navigation pane on the left, click CD/DVD-ROM
Drive Unmounted. Then Set Mount CD/DVD-ROM Drive Type to Mount Local
CD/DVD-ROM Drive and click OK.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 84

Figure 3-10 Mounting a CD/DVD-ROM drive


Step 3 On the CD/DVD-ROM management page that is displayed, click Browse and select
the specified image file, select Restart the VM now to install the OS and click OK.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 85

Figure 3-11 Selecting an image file


Step 4 In the displayed dialog box, click Load Certificate.

Figure 3-12 Loading certificate


Step 5 On the displayed page, click Advanced > Proceed to. Certificate authentication
succeed.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 86

Figure 3-13 Certificate authentication page


Step 6 Return to CD/DVD-ROM management page, click Continue mounting.

Figure 3-14 Continuing to mount the ISO file


HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 87

Step 7 Wait for several seconds until the message "The CD-ROM drive is mounted
successfully" is displayed, click OK.

Figure 3-15 Mounting successfully


Step 8 Click Log in using VNC and go to the OS installation page to complete the OS
installation.

Figure 3-16 Logging in to VM using VNC


Step 9 Select English language and click Continue.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 88

Figure 3-17 System installation


Step 10 Select the installation destination and confirm the installation location.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 89

Figure 3-18 Confirming installation Destination


Step 11 Choose Software Selection > Minmal Install > Standard, and click Done.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 90

Figure 3-19 Confirm software selection


Step 12 Select Root Password and configure the root password.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 91

Figure 3-20 Configuring the root password


Step 13 Click Begin Installation.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 92

Figure 3-21 Beginning Installation


Step 14 After the installation is complete, click Reboot.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 93

Figure 3-22 Rebooting System


Step 15 Verify that system has been installed successfully by logging in to VM as the root
user using VNC.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 94

Figure 3-23 Verifying system installed successfully


Step 16 Return to the CD/DVD-ROM Management page, click Unmount the CD-ROM
drive.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 95

Figure 3-24 Unmounting the ISO file


Step 17 In the displayed dialog box, click OK to close the CD/DVD-ROM management page.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 96

Figure 3-25 Closing the management page

3.1.2.3 Installing VMTools


Step 1 Choose Resource Pools > mycluster > CNA01. Right-click openEuler01 and choose
Tools > Mount Tools.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 97

Figure 3-26 Mounting VMTools


Step 2 In the displayed dialog box, click OK.

Figure 3-27 Confirming the information


Step 3 Log in to VM openEuler01 as the root user using VNC.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 98

Figure 3-28 Logging in to the VM


Step 4 Check for the qemu-guest-agent service.

[root@localhost ~]# ps -eaf | grep qemu-ga

Figure 3-29 Checking for the qemu-guest-agent service


If the command output contains "qemu-guest-agent", the qemu-guest-agent service
exists in the system. (If the command output does not contain "qemu-guest-agent", go to
Step 6.)

Step 5 Uninstall the open source qemu-guest-agent service.

[root@localhost ~]# rpm -e qemu-guest-agent


[root@localhost ~]# reboot

Step 6 Restart the VM, log in to the VM as the root user, and mount a CD/DVD-ROM drive
to the VM.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 99

[root@localhost ~]# mkdir xvdd


[root@localhost ~]# mount /dev/sr0 xvdd

Figure 3-30 Mounting a CD/DVD-ROM drive to a VM


Step 7 Check the VMTools installation package.

[root@localhost ~]# cd xvdd


[root@localhost ~]# ls

Figure 3-31 Checking the VMTools installation package


Step 8 Copy the VMTools installation package to the /root directory and decompress the
package.

[root@localhost xvdd]# cp vmtools-3.0.0.019.tar.bz2 /root


[root@localhost xvdd]# cd /root
[root@localhost ~]# tar –xjvf vmtools-3.0.0.019.tar.bz2

Figure 3-32 Decompressing the VMTools installation package


Step 9 Wait until the decompression is completed.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 100

Figure 3-33 Decompression Process


Step 10 Install VMTools and restart the system.

[root@localhost ~]# cd vmtools


[root@localhost ~]# ./install
...
The UVP VMTools is installed successfully.
Reboot the system for the installation to take effect.
[root@localhost ~]# reboot

Figure 3-34 Restarting the system after VMTools is installed


Step 11 On the summary tab page of openEuler01, click the refresh icon and view the
status of Tools.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 101

Figure 3-35 Viewing the status of Tools


Step 12 (Optional)Log in to VM openEuler01 as the root user using VNC and check the
status of vm-agent service.

[root@localhost ~]# service vm-agent status

Figure 3-36 Checking the status of vm-agent service


Step 13 Choose Resource Pools > mycluster > CNA01. Right-click openEuler01 and choose
Tools > Unmount Tools.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 102

Figure 3-37 Unmounting Tools


Step 14 In the displayed dialog box, click OK.

Figure 3-38 Confirming the information

3.1.2.4 Creating a VM Template


Step 1 Choose Resource Pools > mycluster > CNA01. Right-click openEuler01 and choose
Template > Export as Template.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 103

Figure 3-39 Operation page of openEuler01


Step 2 Set Export Destination to Local PC and click Next.

Figure 3-40 Exporting a template


Step 3 Enter the template name and click OK.

In order to ensure that the template could be exported successfully, you need to notice
the following points:
⚫ Ensure that jump server has sufficient disk space.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 104

⚫ Ensure that the SFTP service has been enabled on the CNA01 host where the VM is
located.
If the template still fails to be exported, continue to import the root certificate by
referring to the instructions provided by the Configuring the Chrome Browser chapter in
the product documentation.

Figure 3-41 Setting the template name


Step 4 View the export progress on the Recent Tasks page.

Figure 3-42 Confirming that the export is successful


Step 5 In the download directory of the browser, find the exported VM template file.

Figure 3-43 Verifying the template location


HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 105

3.1.2.5 Deleting a VM
Step 1 Choose Resource Pools > mycluster > CNA01 > openEuler01. The VM
management page is displayed.

Figure 3-44 VM management page


Step 2 Click More and select Safely Delete from the drop-down list.

Figure 3-45 Selecting Safely Delete


Step 3 In the Information dialog box that is displayed, click Delete now and click OK to
delete VM openEuler01.

Figure 3-46 Deleting now


HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 106

Step 4 Enter YES as prompted to confirm the deletion.

Figure 3-47 Entering YES

3.1.2.6 Importing a Template


Step 1 Choose Resource Pools > VM Template. Click Import Template in the upper right
corner of the Template management page

Figure 3-48 Template management page


Step 2 Select Import from Local PC and click Select File button next to the Template File
text box. In the displayed dialog box, select the image template you have exported
to the local path in section 3.1.2.4 "Creating a VM Template" and click Open.
Confirm the information and click Next.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 107

Figure 3-49 Importing a template


Step 3 Set Name to openEuler22.03-temp, Select Template Location to site, and Set
Compute Resource to mycluster, and click Next.

Figure 3-50 Basic information


Step 4 On the Select Datastore page, select IP-SAN and click Next.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 108

Figure 3-51 Selecting a datastore


Step 5 Use the default values for hardware configuration parameters and click Next.

Figure 3-52 Configuring template parameters


Step 6 Confirm the information and click OK. Wait until the template is created. (This step
takes some time. Please wait.)
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 109

Figure 3-53 Confirming info


Step 7 View the template import progress in Recent Tasks.

Figure 3-54 Viewing the template import progress


Step 8 After the template is uploaded, verify that the template is displayed on the VM
Template page.

Figure 3-55 Verifying the template

3.1.2.7 Deploying a VM Using a Template


Step 1 Choose Resource Pools > VM Template. The VM template management page is
displayed.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 110

Step 2 Select the openEuler template, click Operation and choose Deploy VM Using
Template.

Figure 3-56 Deploying a VM using a template


Step 3 Set Name to openEuler22.03-01, use the default values for other parameters, and
click Next.

Figure 3-57 Basic information


Step 4 Use the default values and click Next.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 111

Figure 3-58 Configuring VM parameters


Step 5 Deselect Generate Initial Password and click Next.

Figure 3-59 Deselecting Generate Initial Password


Step 6 Confirm the information, select Start VM immediately after creation, and click
OK.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 112

Figure 3-60 Confirming info


Step 7 Choose Resource Pools > mycluster. On the VM tab page, view the new VM.

Figure 3-61 Viewing the new VM

3.1.2.8 Deleting a VM
⚫ For details, see section 3.1.2.5 "Deleting a VM."

Step 1 Choose Resource Pools > VM. The VM list page is displayed.

Step 2 Locate VM openEuler22.03-01, click More and choose Safely Delete from the drop-
down list.

Step 3 In the Information dialog box that is displayed, select Delete now and click OK to
delete the template.

Step 4 Enter YES as prompted to confirm the deletion.


HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 113

3.2 VM Management
3.2.1 Introduction
3.2.1.1 About This Exercise
This exercise illustrates how to manage VMs on FusionCompute, including adjusting
flavors, creating snapshots, live migrating VMs, configuring security groups, and
configuring HA.

3.2.1.2 Objectives
⚫ Adjust VM flavors and understand precautions on these operations.
⚫ Migrate VMs.
⚫ Configure rule groups.
⚫ Configure security groups.
⚫ Understand how and why to configure HA.

3.2.1.3 Procedure

Figure 3-62 Procedure

3.2.2 VM Parameter Modification


3.2.2.1 Deploying a VM Using a Template
Step 1 Deploy an openEuler VM using the openEuler22.03-02 template created in section
3.1.2.7 "Deploying a VM Using a Template." Set Name to openEuler22.03-02 on
the Basic Information page and select IP-SAN on the Datastore page. Deselect
Generate Initial Password on the Customize OS page, select Start VM
immediately after creation on the Confirm Info page, and use the default values
for other parameters to create VM openEuler22.03-02.

3.2.2.2 Configuring the VM Network


Step 1 On the openEuler VM management page of FusionCompute, click the
Configuration tab. Choose NIC in the navigation tree on the left. The network
adapter configuration page is displayed.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 114

Figure 3-63 Network adapter configuration page


Step 2 Click Modify Port Group in the Operation column. In the dialog box that is
displayed, click OK. Change the port group name to test and click OK.

Figure 3-64 Modifying a port group

3.2.2.3 Adding a VM Network Adapter


Step 1 In the navigation tree on the left of FusionCompute, select the VM to be operated
(for example, openEuler22.03-02), click the Configuration tab, choose Hardware >
NIC, and click Add NIC.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 115

Figure 3-65 Adding a network adapter


Step 2 In the Add NIC dialog box, click Select.

Figure 3-66 Adding a NIC


Step 3 Set Port Group to managePortgroup, use the default values for other parameters,
and click OK.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 116

Figure 3-67 Selecting a port group


Step 4 Return to the Add NIC dialog box and click OK.

Figure 3-68 Confirming the port group


Step 5 View network adapter information of the VM on the network adapter management
page.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 117

Figure 3-69 Viewing network adapter information

3.2.2.4 Adding CPUs to a VM


Step 1 Choose Resource Pools > mycluster > CNA01. Select the openEuler22.03-02 VM. On
the openEuler22.03-02 VM management page, click the Summary tab and view the
current CPU quantity of the VM. (You can also log in to the VM and run the cat
/proc/cpuinfo|grep "cpu cores" |wc -l command to view and record the current CPU
information.)

Figure 3-70 Viewing the current CPU quantity of the VM


Step 2 Click the Configuration tab, choose CPU, set Number of Cores to 4, and click OK.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 118

Figure 3-71 Changing the number of CPU cores


Step 3 Click the Summary tab to view the modified CPU information. (You can also log in to
the VM and run the cat /proc/cpuinfo|grep "cpu cores" |wc -l command to view the
modified CPU information.)

Figure 3-72 Checking the number of CPU cores after modification

3.2.2.5 Hot-Adding Memory to a VM


Step 1 Choose Resource Pools > mycluster > CNA01. Select the openEuler22.03-02 VM. On
the openEuler22.03-02 VM management page, click the Summary tab and view the
current memory capacity of the VM. (You can also log in to the VM and run the free -
g command to view the current memory information.)

Figure 3-73 Viewing the memory capacity


Step 2 Go back to the openEuler22.03-02 VM management page, choose Configuration
tab > Memory, set Memory to 8 GB, and click OK.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 119

Figure 3-74 Changing the memory size


Step 3 Click the Summary tab. Verify that the VM memory size has changed to 8192 MB.
(You can also log in to the VM and run the free -g command to view the memory
capacity after modification.)

Figure 3-75 Viewing the memory capacity after modification

3.2.2.6 Expanding the VM Disk Capacity


Step 1 Choose Resource Pools > mycluster > CNA01. Select the openEuler22.03-02 VM. On
the openEuler22.03-02 VM management page, click the Summary tab and view the
current disk capacity of the VM.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 120

Figure 3-76 View the disk capacity


Step 2 On the Configuration tab page, choose Hardware > Disk. The disk management page
is displayed.

Figure 3-77 Disk management page


Step 3 Click Adjust Capacity in the Operation column of the disk. In the displayed dialog box,
set Capacity (GB) to 60 and click Save.

Figure 3-78 Adjusting the disk capacity


HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 121

Step 4 After the task is complete, verify that the disk capacity has changed to 60 GB on the
disk management page.

Figure 3-79 Viewing the disk capacity after adjustment


Step 5 (Optional) Log in to the openEuler22.03-02 VM using VNC and view the current disk
capacity. The command output shows that the disk capacity has been changed to 60
GB.

[root@localhost ~]# fdisk –l

Figure 3-80 Checking disk partitions.


Step 6 Check the current file system capacity. The command output shows that the total file
system capacity remains unchanged (which is still 40 GB).

[root@localhost ~]# df –h
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 122

Figure 3-81 Checking the system mounting status


Step 7 Create a disk partition.

[root@localhost ~]# fdisk /dev/vda

Figure 3-82 Creating a disk partition


Step 8 Restart the Linux system.

[root@localhost ~]# reboot

Step 9 Create a physical volume (PV).

[root@localhost ~]# pvcreate /dev/vda3


HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 123

Figure 3-83 Creating a PV


Step 10 View information about the current PV.

[root@localhost ~]# pvdisplay

Figure 3-84 Viewing information about the current PV


Step 11 Add the new partition /dev/vda3 to the current volume group centos.

[root@localhost ~]# vgextend openeuler /dev/vda3

Figure 3-85 Expanding the capacity of a volume group


Step 12 View information about the openeuler volume group.

[root@localhost ~]# vgdisplay


HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 124

Figure 3-86 View information about the centos volume group


Step 13 Increase the capacity of a logical volume by 10 GB.

[root@localhost ~]# lvresize -L +10G /dev/mapper/openeuler-root

Figure 3-87 Expanding the capacity of a logical volume


Step 14 Expand the capacity of the file system.

[root@localhost -]# resize2fs /dev/mapper/openeuler-root

Figure 3-88 Scanning the file system


Step 15 Check the file system capacity after capacity expansion. The capacity has been
increased by 10 GB.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 125

[root@localhost ~]# df –h

Figure 3-89 Checking the capacity

3.2.3 VM Storage Adjustment


3.2.3.1 Adding a Common Disk
Step 1 In the navigation tree on the left of FusionCompute, select openEuler22.03-02, click
the Configuration tab, choose Hardware > Disk, and click Attach Disk.

Figure 3-90 Attaching a disk to a VM


Step 2 Select the disk01 disk created in section 2.2.5 "Creating a Disk" and click OK.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 126

Figure 3-91 Selecting a disk


Step 3 On the VM disk management page, verify that the disk has been attached to the VM.

Figure 3-92 Viewing the attached disk

3.2.3.2 Adjusting the Disk Type


Step 1 On the openEuler22.03-02 VM management page, click Stop button. In the dialog box
that is displayed, click OK to stop the VM.

Figure 3-93 Stopping a VM


Step 2 On the openEuler22.03-02 VM disk management page, click Edit in the Operation
column of disk01.

Figure 3-94 Editing disk information


Step 3 In the Modify Disk dialog box that is displayed, set Disk Mode to Independent &
persistent and click OK.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 127

Figure 3-95 Changing the disk mode

3.2.3.3 Deleting a Disk


Step 1 On the openEuler22.03-02 VM disk management page, click Detach in the Operation
column of disk01.

Figure 3-96 Detaching a disk from a VM


Step 2 In the displayed dialog box, click OK.

Figure 3-97 Confirming the warning


Step 3 Choose Resource Pools > Storage > IP-SAN > Disk List. Locate the row that contains
disk01, click More, and choose Safely Delete to delete disk files.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 128

Figure 3-98 Deleting a disk


Step 4 In the displayed dialog box, enter YES and click OK.

Figure 3-99 Confirm the information

3.2.4 VM Snapshot Management


3.2.4.1 Creating a Snapshot
Step 1 Log in to the openEuler22.03-02 VM using VNC, create the /root/hcia directory on the
VM, and create the huawei.txt file in this directory.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 129

Figure 3-100 Creating the huawei.txt file on the VM


Step 2 On the Snapshot tab page of the VM, click Create Snapshot.

Figure 3-101 Creating a snapshot for a VM


Step 3 Enter 01 in the Snapshot Name text box and click OK.

Figure 3-102 Setting the snapshot name


Step 4 In the displayed dialog box, click OK.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 130

Figure 3-103 Confirming the information


Step 5 Wait for about 1 minute and verify that snapshot 01 is displayed on the Snapshot tab
page.

Figure 3-104 Viewing a snapshot

3.2.4.2 Rolling Back a Snapshot


Step 1 Log in to the openEuler22.03-02 VM using VNC and create the huawei123.txt file in
the /root/hcia directory of the VM.

Figure 3-105 Creating the huawei123.txt file


Step 2 On the Snapshot tab page of the VM, click Resume VM.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 131

Figure 3-106 Restoring a VM


Step 3 In the information dialog box that is displayed, click OK.

Figure 3-107 Confirming to restore a VM


Step 4 Choose System > Tasks and Logs > Task Center and view the snapshot rollback
progress. (The VM may be started on another CNA host.)

Figure 3-108 VM restoration progress


Step 5 Refresh the page. After the snapshot is rolled back, log in to the VM using VNC. Go to
the /root/hcia directory of the VM and check the current files. If only the huawei.txt
file exists, the snapshot restoration is successful.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 132

Figure 3-109 Confirming the restoration successed

3.2.4.3 Deleting a Snapshot


Step 1 On the snapshot management page of the openEuler22.03-02 VM, select the 01
snapshot and click Delete.

Figure 3-110 Deleting a snapshot


Step 2 In the information dialog box that is displayed, set the deletion speed to 500 and
click OK.

Figure 3-111 Confirming the deletion


Step 3 In the information displayed dialog box, click OK.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 133

Figure 3-112 Confirming the information


Step 4 After the snapshot is deleted, verify that the deleted snapshot is not displayed on the
snapshot management page.

Figure 3-113 Verifying the snapshot deletion result

3.2.5 VM Live Migration


Step 1 On the openEuler22.03-02 VM management page, view the host (CNA01 in this
example) where the VM is located and click Migrate.

Figure 3-114 VM management page


Step 2 In the displayed dialog box, set Select Migration Mode to Change Host and
Migration Policy to Migration Priority, and click Next.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 134

Figure 3-115 Selecting a migration policy


Step 3 Expand the mycluster cluster, click the remaining CNA host, and click Next. (The CNA
host may vary according to the lab environment. The following uses CNA02 as an
example.)

Figure 3-116 Selecting the host to be migrated


Step 4 Confirm the information and click OK.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 135

Figure 3-117 Confirming info


Step 5 View the migration progress in Recent Tasks.

Figure 3-118 Migrating


Step 6 After the migration is complete, go to the openEuler22.03-02 VM management page,
and verify that the VM has been migrated to CNA02.

Figure 3-119 Verifying that the VM has been migrated to CNA02


HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 136

3.2.6 VM Rule Group


3.2.6.1 Deploying a Second VM
Step 1 Deploy a new VM using the openEuler template created in section 3.1.2.7 "Deploying a
VM Using a Template." Set the VM name to openEuler22.03-03, the compute
resource to CNA02, and the storage resource to IP-SAN, use the default values for
other parameters, deselect Generate Initial Password, select Start VM immediately
after creation, and click OK to create VM openEuler22.03-03.

3.2.6.2 Verifying the "Mutually Exclusive VM" Rule Group


Step 1 Choose Resource Pools > mycluster > CNA02. On the VM tab page, view the VMs
running on CNA02.

Figure 3-120 Viewing the VMs running on CNA02


Step 2 Choose Resource Pools > mycluster. Click the Configuration tab. Choose
Configuration > Control Cluster Resource. Click Edit.

Figure 3-121 Editing cluster resources


Step 3 In the navigation pane, choose Configure Resource Scheduling. In the right pane,
toggle on Enable Compute Resource Scheduling and click OK.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 137

Figure 3-122 Toggling on Enable Compute Resource Scheduling


Step 4 Choose Resource Pools > mycluster. Click the Configuration tab. Choose DRS Rule >
Rule Group. Click Add.

Figure 3-123 Adding a rule group


Step 5 Set Name to Mutually exclusive and Type to Keep VMs mutually exclusive. Select
openEuler22.03-02 and openEuler22.03-03, and click OK.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 138

Figure 3-124 Configuring a "Mutually Exclusive VM" rule group


Step 6 Choose System > Tasks and Logs > Task Center and verify that a VM migration task
is running. Click Refresh to refresh the progress.

Figure 3-125 Viewing the migration progress


Step 7 After the migration is complete, choose Resource Pools > mycluster > CNA02. On the
VM tab page, verify that only the CentOS VM is running on CNA02.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 139

Figure 3-126 Viewing the VM running on CNA02


Step 8 Verify that the migrated VM is running on CNA01.

Figure 3-127 Viewing the VM running on CNA01


Step 9 Choose Resource Pools > mycluster. Click the Configuration tab. Choose DRS Rule >
Rule Group. Click Delete in the Operation column of the row that contains Mutually
exclusive. In the displayed dialog box, click OK to delete the Mutually exclusive rule
group.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 140

Figure 3-128 Deleting a rule group

3.2.6.3 Verifying the "Keep VMs together" Rule Group


Step 1 Choose Resource Pools > mycluster. Click the Configuration tab. Choose DRS Rule >
Rule Group. Click Add.

Figure 3-129 Adding a rule group


Step 2 Set Name to together and Type to Keep VMs together. Select openEuler22.03-02
and openEuler22.03-03, and click OK.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 141

Figure 3-130 Configuring the "Keep VMs together" rule group


Step 3 View the Migrate VM progress on the Recent Tasks page.

Figure 3-131 Viewing the migration progress


Step 4 Wait until the migration is complete. Then you can view two CentOS VMs on the VM
tab page of CNA01 or CNA02, indicating that the two VMs are running on the same
host.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 142

Figure 3-132 Verifying VMs running on CNA01


Step 5 Choose Resource Pools > mycluster. Click the Configuration tab. Choose DRS Rule >
Rule Group. Click Delete in the Operation column of the row that contains together.
In the displayed dialog box, click OK to delete the together rule group.

Figure 3-133 Deleting a rule group

3.2.6.4 Verifying the "VMs to hosts" Rule Group


Step 1 Choose Resource Pools > mycluster. Click the Configuration tab. Choose DRS Rule >
Host Group. Click Add.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 143

Figure 3-134 Add a host group


Step 2 Enter hostgroup01 in the Name text box, select CNA01, and click OK.

Figure 3-135 Selecting CNA01


HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 144

Step 3 Choose Resource Pools > mycluster. Click the Configuration tab. Choose DRS Rule >
VM Group. Click Add.

Figure 3-136 Adding a rule group


Step 4 Enter vmgroup01 in the Name text box, select openEuler22.03-02, and click OK.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 145

Figure 3-137 Adding a VM group


Step 5 Choose Resource Pools > mycluster. Click the Configuration tab. Choose DRS Rule >
Rule Group. Click Add.

Figure 3-138 Adding a rule group


HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 146

Step 6 Set Name to v2h, Type to VMs to hosts, and Rule to Must not run on host group.
Select vmgroup01 and hostgroup01, and click OK.

Figure 3-139 Configuring a "VMs to hosts" rule group


Step 7 Choose System > Tasks and Logs > Task Center and verify that a VM migration task
is running. Click Refresh to refresh the progress.

Figure 3-140 Viewing the migration progress


Step 8 Verify that the migrated VM is running on CNA02.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 147

Figure 3-141 Verification


Step 9 Choose Resource Pools > mycluster. Click the Configuration tab. Choose DRS Rule >
Rule Group. Click Delete in the Operation column of the row that contains v2h. In
the displayed dialog box, click OK to delete the v2h rule group.

Step 10 Choose Resource Pools > mycluster. Click the Configuration tab. Choose DRS Rule >
VM Group. Click Delete in the Operation column of the row that contains
vmgroup01. In the displayed dialog box, click OK to delete the vmgroup01 VM group.

Step 11 Choose Resource Pools > mycluster. Click the Configuration tab. Choose DRS Rule >
Host Group. Click Delete in the Operation column of the row that contains
hostgroup01. In the displayed dialog box, click OK to delete the hostgroup01 host
group.

3.2.7 Security Group Creation


Step 1 Log in to the openEuler22.03-02 and openEuler22.03-03 VMs using VNC, and set the
eth0 IP addresses of the two VMs to 192.168. 112.4/24 and 192.168. 112.5/24
respectively. (For details about the configuration method, see the Linux basic
exercises.)

Step 2 Change the port group name of the openEuler22.03-03 VM to test by referring to
section 3.2.2.2 "Configuring the VM Network." (The port group of the openEuler22.03-
02 VM is also named test).

Step 3 Configure the physical service switch to allow packets from VLAN 100 to pass through.
(For details, see the environment setup guide.)

Step 4 Log in to the openEuler22.03-03 VM using VNC and test the connectivity between
openEuler22.03-03 and openEuler22.03-02.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 148

Figure 3-142 Testing connectivity


Step 5 Choose Resource Pools > Security Group. Click Add Security Group.

Figure 3-143 Adding a security group


Step 6 Set Name to sec01 and Security Group Type to Whitelist, and click OK.

Figure 3-144 Configuring security group information


Step 7 After the security group is created, click Add Rule in the lower left corner of the
security group management page.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 149

Figure 3-145 Adding rules


Step 8 Add the following rule and click OK. (Add this rule to enable the sec01 security group.
If no rule is specified, the whitelist security group will allow all traffic.)

Figure 3-146 Configuring rule information


Step 9 Return to the openEuler22.03-02 VM management page and click Stop to stop the
VM.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 150

Figure 3-147 Stopping the CentOS02 VM


Step 10 After the VM is stopped, click the Configuration tab, and choose Hardware > NIC.
Locate the row that contains test, click More, and choose Configure Security Group.

Figure 3-148 Configuring a security group


Step 11 Toggle on Enable Security Group, click Select, select the sec01 security group, and
click OK. In the Configure Security Group dialog box, click OK.

Figure 3-149 Selecting the sec01 security group


Step 12 Click Start to start the CentOS02 VM.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 151

Figure 3-150 Starting a VM


Step 13 Log in to the openEuler22.03-03 VM using VNC and test the connectivity between
openEuler22.03-03 and openEuler22.03-02 again.

Figure 3-151 Testing connectivity


Step 14 Click Add Rule on the page of the sec01 security group.

Figure 3-152 Adding another rule


Step 15 Set Direction to Inbound, Protocol to ICMP, Type to Subnet, IP Address to
192.168.112.0, Subnet mask to 255.255.255.0, ICMP Type to Any, and click OK. (You
can change the values as required.)
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 152

Figure 3-153 Configuring rule information


Step 16 After the security group is created, view information about the security group on the
Security Group page.

Figure 3-154 Viewing security group information


Step 17 Log in to the openEuler22.03-03 VM using VNC and test the connectivity between
openEuler22.03-03 and openEuler22.03-02 again.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 153

Figure 3-155 Testing connectivity

3.2.8 VM HA
Step 1 Check the VMs on CNA02. As shown in the following figure, the openEuler22.03-02
VM exists on CNA02.

Figure 3-156 Checking the node where openEuler22.03-02 resides


HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 154

Step 2 Choose Resource Pools > mycluster. Click the Configuration tab. Choose
Configuration > Control Cluster Resource. Click Edit.

Figure 3-157 Editing cluster resource control


Step 3 In the Control Cluster Resource dialog box, choose Configure HA in the navigation
pane. Toggle on Enabled to enable HA, toggle on Host Fault Policies, and set Host
Fault Policy to HA.

Figure 3-158 Configuring HA


Step 4 Click the Cluster Fault Control tab, toggle on Enabled to enable cluster fault control,
and click OK.
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 155

Figure 3-159 Enabling cluster fault control


Step 5 Power off the CNA02 host on the CNA02 management page to simulate a fault.

Figure 3-160 Forcibly powering off CNA02


Step 6 Choose Resource Pools > mycluster. On the Host tab page, verify that the CNA02
host is in Faulty state.

Figure 3-161 Viewing the status of CNA02


HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 156

Step 7 Go to Task Center to view VM HA tasks.

Figure 3-162 Viewing VM HA tasks


Step 8 Choose Resource Pools > mycluster > CNA01. Click the VM tab. On the VM tab page,
verify that the openEuler22.03-02 VM is on the CNA01 host.

Figure 3-163 Checking the node where CentOS02 resides


Step 9 Power on the CNA02 host on the CNA02 management page.

Figure 3-164 Powering on CNA02

3.3 Quiz
FusionCompute supports multiple VM creation methods, such as creating a VM using a
template and creating a VM using a VM. What are the application scenarios of these
two methods?
Answers:
HCIA-Cloud Computing V5.0 Lab Guide (FusionCompute) Page 157

If there is a proper template (with the same OS and hardware configurations as the VM
to be created) in the system, you are advised to create the VM using the template. In this
scenario, using the template can save your time.
HCIA-Cloud Computing Lab Guide (FusionCompute) Page 158

4 Common O&M Management

4.1 Introduction
4.1.1 About This Exercise
This exercise illustrates how to manage the FusionCompute system, including loading
license files, viewing alarms, configuring the system clock, and managing system
permissions.

4.1.2 Objectives
⚫ View the system ESN and load a license file.
⚫ Manage system alarms.
⚫ Configure the system clock.
⚫ Configure system permissions.

4.1.3 Procedure

Figure 4-1 Procedure

4.2 Viewing the System ESN


The system has only a 90-day trial period because no license file is loaded. The system
ESN is required for loading the license. This section only describes how to view the
system ESN. For a commercial version, load the license.

Step 1 Choose System > System Configuration > License Management. Click Load License
File.
HCIA-Cloud Computing Lab Guide (FusionCompute) Page 159

Figure 4-2 Clicking Load License File


Step 2 In the Load License File dialog box, select Independent license and click Obtain ESN.
The ESN is displayed. Click Cancel to close the current dialog box. If a license file is
available, click Select, select the license file, and click OK to load the commercial
license.

Figure 4-3 Loading a license


HCIA-Cloud Computing Lab Guide (FusionCompute) Page 160

4.3 Managing Alarms


Step 1 Choose Monitoring > Alarm > Alarms. View alarm information such as Alarm
Severity, Alarm Name, and Alarm Object of each alarm.

Figure 4-4 Viewing real-time alarms


Step 2 Click an alarm ID. A new page is displayed, showing the alarm description and
handling procedure.

Figure 4-5 Alarm information


Step 3 Click Clear in the Operation column of the "License File Is Not Loaded" alarm. In the
displayed dialog box, click OK to manually clear the alarm.
HCIA-Cloud Computing Lab Guide (FusionCompute) Page 161

Figure 4-6 Manually clearing an alarm


Step 4 In the cleared alarms, locate the alarm named "License File Is Not Loaded", click More
and choose Mask This Alarm for All. In the displayed dialog box, click OK to mask
the alarm.

Figure 4-7 Masking an alarm

4.4 Configuring the System Clock


In a commercial environment, an NTP network clock must be configured to ensure
consistent system clocks. This section uses CNA01 as the NTP server to demonstrate how
to configure the time.

Step 1 Choose System > System Configuration > Time Management.


HCIA-Cloud Computing Lab Guide (FusionCompute) Page 162

Figure 4-8 Time Management page


Step 2 Toggle on NTP, enter the IP address of the CNA01 node where VRM is located, and
click Save. In the displayed dialog box, click OK. Wait until the system configuration is
complete. If necessary, you can click Forcibly Synchronize Time to synchronize the
time again. The system will stop for 1–2 minutes. Refresh the page until you can log in
to FusionCompute.

Figure 4-9 Configuring the clock server


HCIA-Cloud Computing Lab Guide (FusionCompute) Page 163

4.5 Permission Management


4.5.1 Role Management
Step 1 If the default roles do not meet operation permission requirements, you can self-
define a role and configure the required permissions for the role. Choose System >
Rights Management > Role Management. On the Role Management page, view the
permission list in the right pane.

Figure 4-10 Permission management page


Step 2 Click Add Role. In the displayed dialog box, set Role Name to vmmanager, select VM
Management for Permission, and click OK.
HCIA-Cloud Computing Lab Guide (FusionCompute) Page 164

Figure 4-11 Adding a role

4.5.2 User Management


Step 1 FusionCompute allows you to create users and assign different roles to the users to
meet different access control requirements. Choose System > Rights Management >
User Management. Click Add User.

Figure 4-12 Adding a user


HCIA-Cloud Computing Lab Guide (FusionCompute) Page 165

Step 2 In the Add User dialog box, set User Type to Local user, Username to huawei,
Password to a customized string, and Role to vmmanager, set other parameters as
required, and click OK.

Figure 4-13 Configuring user information


Step 3 Log out of the current user and log in to the system as the huawei user. Change the
password upon the first login.

4.5.3 Password Policy Management


Step 1 Log in to the system as the admin user and choose System > Rights Management >
Password Policy. On the Password Policy page, view the password policy
configuration of the system.

Figure 4-14 Password policy


HCIA-Cloud Computing Lab Guide (FusionCompute) Page 166

Step 2 Click Modify in the lower left corner of the page. Set the parameters as follows:
Account lockout duration (min) to 1, Number of times a password can be reused
to 3, Password expiry alert (days) to 0, Password validity period (days) to 0, and
Account lockout threshold to 1. Click Save.

Figure 4-15 Modifying a password policy


Step 3 Attempt to log in using an incorrect password. Verify that the account is locked for 1
minute.

Figure 4-16 Test and verification

4.6 Security Management


4.6.1 FusionCompute Account Management
In order to reduce attacks caused by the exposure of the default user names and improve
system O&M security, the system administrator can change the default user name of the
FusionCompute administrator account.

Step 1 Log in to the active VRM node as gandalf user using PuTTY.
HCIA-Cloud Computing Lab Guide (FusionCompute) Page 167

Figure 4-17 Logging in to the active VRM node


Step 2 Switch to root user.

[gandalf@VRM01 ~]$ su - root

Figure 4-18 Switching to root user


HCIA-Cloud Computing Lab Guide (FusionCompute) Page 168

Step 3 Prevent system exit due to timeout.

VRM01:~ # TMOUT=0

Figure 4-19 Preventing system exit


Step 4 Move to the directory where the script is stored.

VRM01:~ # cd /opt/galax/root/vrm/tomcat/script/omsconfig/bin

Figure 4-20 Script working directory


Step 5 Change the username of the administrator account.

VRM01:~ # sh modifySystemManageUser.sh admin huawei1

Figure 4-21 Executing script


Step 6 Enter the password for FusionCompute to access the database.
HCIA-Cloud Computing Lab Guide (FusionCompute) Page 169

Figure 4-22 Changing administrator’s username


Step 7 Log in to FusionCompute again and verify that the account name (password:
admin) has been changed successfully.

Figure 4-23 Verifying the new administrator account

4.6.2 Log Management


4.6.2.1 Viewing Operation Logs
Step 1 Click System Management. The system management page is displayed.

Figure 4-24 System management page


Step 2 Choose System Management > Tasks and Logs > Operation Log.
HCIA-Cloud Computing Lab Guide (FusionCompute) Page 170

Figure 4-25 Operation Log page


Step 3 Enter the search criteria as required and click . In this query, use huawei1 as the
filtering condition of Operator User and the result is as follows.

Figure 4-26 Search results


Step 4 Click Advanced Search. In the drop-down table, enter the search criteria shown in
the following figure.

Figure 4-27 Advanced search


Step 5 Click Search. Check the search results you need.
HCIA-Cloud Computing Lab Guide (FusionCompute) Page 171

Figure 4-28 Advanced search results


Step 6 Click Export. In the displayed dialog box, click OK. Then the operation logs will be
saved in your local computer.

Figure 4-29 Exporting the operation log

4.6.2.2 Collecting Logs


Step 1 Choose System Management > Tasks and Logs > Log Collection.

Figure 4-30 Log Collection page


HCIA-Cloud Computing Lab Guide (FusionCompute) Page 172

Step 2 Use Scenario Collection as an example and select a scenario of VRM Status, as
shown in the following figure.

Figure 4-31 Collecting scenatio logs


Step 3 Select a collection period, last two days.

Figure 4-32 Selecting a collection period


Step 4 Select a node on which logs are to be collected.
HCIA-Cloud Computing Lab Guide (FusionCompute) Page 173

Figure 4-33 Selecting VRM nodes


Step 5 Click Collect.

Figure 4-34 Executing the collection task


Step 6 Keep the pop-up window open until the log collection is completed.
HCIA-Cloud Computing Lab Guide (FusionCompute) Page 174

Figure 4-35 Log collected successfully


Step 7 View the log collection progress on the Recent Tasks page.

Figure 4-36 Viewing the Log Collection Progress

4.6.3 Port Management


4.6.3.1 Modifying the Port Used by the FusionCompute Management
System
Step 1 Log in to the floating IP address of the VRM node as gandalf user using PuTTY
HCIA-Cloud Computing Lab Guide (FusionCompute) Page 175

Figure 4-37 Logging in to the active VRM node


Step 2 Switch to root user.

[gandalf@VRM01 ~]$ su - root

Figure 4-38 Switching to root user


Step 3 Prevent system exit due to timeout.

VRM01:~ # TMOUT=0

Figure 4-39 Preventing system exit


Step 4 Configure the new network port.

sh /opt/galax/root/vrmportal/tomcat/script/portalSh/modifyPortalPort.sh 8888
HCIA-Cloud Computing Lab Guide (FusionCompute) Page 176

Figure 4-40 Configuring a new network port


Step 5 Refresh the current page of FusionCompute and the original port number 8443
can’t be accessed.

Figure 4-41 Unaccessed original port page


Step 6 Change the port number in the address box, refresh the page and log in again.
Verify that the port number is modified successfully.

Figure 4-42 Verifying the new port number


HCIA-Cloud Computing Lab Guide (FusionCompute) Page 177

4.6.4 FusionCompute Backup and Restoration


4.6.4.1 Data Backup
This exercise illustrates the backup and restoration process by using the VRM node as an
example. Management data in the production environment will be backed up to a host
or a third-party FTP server. Performing operations strictly in accordance with the
troubleshooting process, upgrade and change specifications, and related chapters in the
product documentation.

Step 1 Choose System Management> System Configuration > Service and


Management Nodes.

Figure 4-43 Service and Management Nodes page


Step 2 Click More in the row that contains the VRM service and choose Back Up
Management Data.

Figure 4-44 Management Data Back Up


Step 3 In the displayed information dialog box, click OK.
HCIA-Cloud Computing Lab Guide (FusionCompute) Page 178

Figure 4-45 Confirming the information


Step 4 Wait for about 5 minutes for the backup process. Log in to the active VRM node as
gandalf user using PuTTY.

Figure 4-46 Logging in to the active VRM node


Step 5 Switch to root user.

[gandalf@VRM01 ~]$ su - root


HCIA-Cloud Computing Lab Guide (FusionCompute) Page 179

Figure 4-47 Switching to root user


Step 6 Prevent system exit due to timeout.

VRM01:~ # TMOUT=0

Figure 4-48 Preventing system exit


Step 7 Check whether the latest backup directory named YYYY-MM-DD_sn exists.

VRM01:~ # ll /var/backup/manual

Figure 4-49 Checking the latest backup directory


HCIA-Cloud Computing Lab Guide (FusionCompute) Page 180

4.6.4.2 Restore Data


4.6.4.2.1 (Optional)Backing Up Data on the Abnormal VRM Node
You are advised to back up the data of the faulty active node when the FusionComputer
can’t be logged in normally. In this exercise, the FusionComputer is healthy, so you can
directly go to section 4.6.4.2.2 that stopping the process on the standby VRM node.

Step 1 Log in to the active VRM node as gandalf user using PuTTY.

Figure 4-50 Logging in to the active VRM node


Step 2 Switch to root user.

[gandalf@VRM01 ~]$ su - root


HCIA-Cloud Computing Lab Guide (FusionCompute) Page 181

Figure 4-51 Switching to root user


Step 3 Prevent system exit due to timeout.

VRM01:~ # TMOUT=0

Figure 4-52 Preventing system exit


Step 4 Back up data in the /var/backup/ directory

VRM01:~ # cronBackupUpload
HCIA-Cloud Computing Lab Guide (FusionCompute) Page 182

Figure 4-53 Backing up data


4.6.4.2.2 Stopping the Process on the Standby VRM Node
Step 1 Log in to the standby VRM node as gandalf user using PuTTY.

Figure 4-54 Logging in to the standby VRM node


Step 2 Switch to root user.

Step 3 Prevent system exit due to timeout.

Step 4 Stop the monitoring process on the standby VRM node.

VRM02:~ # service had stop


HCIA-Cloud Computing Lab Guide (FusionCompute) Page 183

Figure 4-55 Stopping the monitoring process


Step 5 Stop the CMA process on the standby VRM node.

VRM02:~ # service cmad stop

Figure 4-56 Stopping the CMA process


4.6.4.2.3 Copy the Required Backup Data to the Active VRM Node
Step 1 Check whether the the backup directories named YYYY-MM-DD_sn exist on the
active VRM node.
⚫ In the production environment, select backup data that meets requirements as
required. In this exercise, select the latest backup directories in the corresponding
path.

VRM01:~ # ll /var/backup #Path of the automatic backup file


VRM01:~ # ll /var/backup/manual #Path of the manually backed up file
VRM01:~ # ll /var/backup/month # Path of the automatic monthly backup file

Figure 4-57 Step 1 Checking the the backup directories


HCIA-Cloud Computing Lab Guide (FusionCompute) Page 184

Step 2 Switch to the backup directory of the active VRM node. (Select the backup directory
with the largest serial number in this exercise)

VRM01:~ # cd /var/backup

Figure 4-58 Selecting the largest SN directory


Step 3 Copy the backup directory to be restored to the /home/GalaX8800 directory on the
active VRM node.

VRM01:~ # cp -r YYYY-MM-DD_sn /home/GalaX8800/

Figure 4-59 Copying the backup directory


Step 4 View the VRM backup configuration data file and VRM backup database data file.

VRM01:~ # ll /home/GalaX8800/YYYY-MM-DD_sn/

Figure 4-60 Viewing the backup files


4.6.4.2.4 Restoring Data on the Active VRM Node
Step 1 Restore the configuration data of the VRM node. (Wait for several minutes)

VRM01:~ # restoreGeData -t DATA -f /home/Galax8800/YYYY-MM-DD_sn/DATA/backup filename


HCIA-Cloud Computing Lab Guide (FusionCompute) Page 185

Figure 4-61 Restoring the configuration data


Step 2 Restore the database data on the VRM node. (Wait for several minutes)

VRM01:~ # restoreGeData -t DB -f /home/GalaX8800/YYYY-MM-DD_sn/DB/backup filename

Figure 4-62 Restoring the database data


4.6.4.2.5 Start the Standby VRM Process
Step 1 Start the monitoring process on the standby VRM node.

VRM02:~ # service had start

Figure 4-63 Starting the monitoring process


HCIA-Cloud Computing Lab Guide (FusionCompute) Page 186

Step 2 Check the status of the monitoring process until the process is normal on the active
VRM node. (Wait for several minutes)

VRM01:~ # service had query

Figure 4-64 Checking the status of the monitoring process


4.6.4.2.6 Restoring the Weak Password Dictionary
Step 1 Check the status of the weak password dictionary after data restoration on the
active VRM node.

VRM01:~ # cat /usr/share/uvpdict/dictswitch

Figure 4-65 Checking the status of the weak password dictionary


Step 2 Enable the weak password dictionary function.

VRM01:~ # uvp_userdict_ctrl -p on

Figure 4-66 Enabling the weak password dictionary function

4.7 Quiz
What are the differences between major alarms and minor alarms on FusionCompute?
Answers:
A major alarm indicates a fault that affects the service at present, and if not rectified,
could result in serious consequences. A minor alarm indicates a fault that does not affect
the service at present, but if not rectified, could result in more severe faults.
Huawei Cloud Certification Training

HCIA-Cloud Computing

Lab Guide
(FusionAccess)

ISSUE: 5.5.

HUAWEI TECHNOLOGIES CO., LTD

2
Copyright © Huawei Technologies Co., Ltd. 2023. All rights reserved.
No part of this document may be reproduced or transmitted in any form or by any
means without prior written consent of Huawei Technologies Co., Ltd.

Trademarks and Permissions

and other Huawei trademarks are trademarks of Huawei Technologies Co., Ltd.
All other trademarks and trade names mentioned in this document are the property of
their respective holders.

Notice
The purchased products, services and features are stipulated by the contract made
between Huawei and the customer. All or part of the products, services and features
described in this document may not be within the purchase scope or the usage scope.
Unless otherwise specified in the contract, all statements, information, and
recommendations in this document are provided "AS IS" without warranties,
guarantees or representations of any kind, either express or implied.
The information in this document is subject to change without notice. Every effort has
been made in the preparation of this document to ensure accuracy of the contents, but
all statements, information, and recommendations in this document do not constitute
a warranty of any kind, express or implied.

Huawei Technologies Co., Ltd.


Address: Huawei Industrial Base Bantian, Longgang Shenzhen 518129
People's Republic of China
Website: https://e.huawei.com

Huawei Proprietary and Confidential


Copyright © Huawei Technologies Co.,Ltd
HCIA-Cloud Computing V5.5 Lab Guide Page 1

Huawei Certification System


Huawei Certification is an integral part of the company's Platform + Ecosystem
strategy. It supports the development of ICT infrastructure that features Cloud-Pipe-
Device synergy. Our certification is always evolving to reflect the latest trends in ICT
development.
Huawei Certification consists of three categories: ICT Infrastructure Certification, Basic
Software & Hardware Certification, and Cloud Platform & Services Certification, making
it the most extensive technical certification program in the industry.
Huawei offers three levels of certification: Huawei Certified ICT Associate (HCIA),
Huawei Certified ICT Professional (HCIP), and Huawei Certified ICT Expert (HCIE).
Our programs cover all ICT fields and follow the industry's trend of ICT convergence.
With our leading talent development system and certification standards, we are
committed to fostering new digital ICT talent and building a sound ICT talent
ecosystem.
The HCIA-Cloud Computing V5.5 is intended for beginners. Train trainees to master the
necessary knowledge of cloud computing through pre-courses. Introduce Huawei cloud
virtualization and large-capacity desktop cloud products to help trainees understand
resource pooling. Train cloud computing engineers with FusionCompute virtualization
and FusionAccess desktop cloud management capabilities.
The HCIA-Cloud Computing V5.5 certification includes: Basic knowledge of cloud
computing (server, storage, network, and OS). FusionCompute product introduction,
virtual resource pool management, routine management, and security management.
FusionAccess product and component introduction, installation and deployment, service
management, and routine O&M.
Passing the HCIA-Cloud Computing V5.5 certification means that you are capable of
designing, managing, and maintaining FusionCompute and FusionAccess.
HCIA-Cloud Computing V5.5 Lab Guide Page 2
HCIA-Cloud Computing V5.5 Lab Guide Page 3

About This Document

Overview
This document is a training course for the HCIA-Cloud Computing V5.5 certification. It is
intended for trainees who are preparing to take the HCIA-Cloud Computing V5.5 exam and
readers who want to know the FusionAccess deployment solution, component functions,
and O&M methods of the FusionAccess desktop cloud.

Description
This experiment guide consists of three experiments, starting from the creation of
FusionAccess empty VMs, installing functional components of the desktop cloud one by
one, and completing the service provisioning and O&M of the desktop cloud.
⚫ Experiment 1: FusionAccess component installation experiment: Create an empty VM
on FusionCompute, install and configure the OS, install functional components on
the VM, and set up the FusionAccess that can be logged in to through the web. This
experiment helps readers master the logical networking, component functions, and
installation process of the entire desktop cloud.
⚫ Experiment 2: Create a VM user on the AD, DNS, or DHCP server and create a VM
template on FusionCompute. (The VM template is encapsulated by Huawei
dedicated tools.) Configure templates, VM naming rules, and desktop groups on
FusionAccess, provision full copy and linked clone desktops, log in to the WI through
SC, and connect to the provisioned desktops through HDP. This section helps readers
understand the entire desktop cloud provisioning process and the HDP protocol, and
distinguish the differences between full copy and linked clone.
⚫ Experiment 3 is a FusionAccess desktop cloud O&M and management experiment.
This experiment helps readers master the desktop cloud O&M process through some
common O&M scenarios. This O&M experiment consists of the following parts:
▪ The desktop cloud provides rich policy management. This experiment
focuses on using multiple common policies. File redirection policies are
used to control file transfer between clients and virtual desktops. The
clipboard redirection policy is used to copy the clipboard content (such as
text and images) between the client and the virtual desktop. Create
session policies to control the access of virtual desktops. Customized
content can be displayed on virtual desktops by setting watermark
policies.
▪ During daily use, cloud desktop VM services are adjusted, for example,
modifying VM specifications, adding new VM users, adding new VMs,
upgrading common desktops to VIP desktops, unassigning or restoring
VMs, and setting user access control policies.
▪ View and handle FusionAccess routine alarms.
HCIA-Cloud Computing V5.5 Lab Guide Page 4

Background Knowledge Required


This course is a basic course for Huawei certification. To better master the contents of this
document, the readers of this document must meet the following basic requirements:
⚫ Have basic knowledge about Linux, storage, and network systems. Be familiar with
Huawei servers and basic cloud computing knowledge.

Experiment Environment Overview


Experiment Scenarios
A training institute wants to use Huawei desktop cloud to replace the original desktops for
daily office. The requirements are as follows: Some desktop cloud resources are used by
trainers. Other desktop cloud resources are used by trainees in the training classroom. The
system restores to the initial state each time the computer in the training classroom is
powered off. The training institute has a large number of personnel, which has
requirements on the high reliability of the desktop cloud system. In addition, a teacher who
is responsible for the desktop cloud can temporarily rectify faults when the system is faulty.

Experimental Design
Based on the desktop cloud application scenario of the training institution, the design
roadmap is as follows:
1. The desktop cloud used by trainers in training institutions uses the full copy desktop
solution.
2. The desktop cloud used by trainees in the training classroom uses the linked clone
desktop solution. The desktop group type is set to dynamic pool. The VMs in the
desktop group can be automatically restored to the initial configuration after restart.
3. To improve system reliability and reduce system resource usage, the
ITA/GaussDB/HDC/WI/License/vAG/vLB is deployed on two active/standby nodes and
on two AD, DNS, and DHCP nodes. The vLB implements load balancing when
different users log in to the same WebUI, preventing overload caused by all users
logging in to the same WebUI at the same time.
HCIA-Cloud Computing V5.5 Lab Guide Page 5

Networking Topology

Figure 1-1 Networking diagram

Experimental Equipment and Software Description


To meet the HCIA-Cloud Computing V5.5 lab requirements, the following configuration is
recommended for each lab environment:

Table 1-1 Lab Environment Configuration Table

Device Quantity Remarks

Used to deploy two CNA


Server 2 hosts and active/standby
VRM.

Storage 1 Provides service storage.

Provides network
Switches 1
interconnection.

Software and Tools


This experiment involves installing and using FusionAccess 8.0.2. The following tools and
software are used:

Table 1-2 Software and Tools


software action Download URL

Used to log in to the Linux


Putty /
system using SSH.
HCIA-Cloud Computing V5.5 Lab Guide Page 6

WinSCP Used to transfer files. /

Used to prepare the basic IT


Windows_Server_2016.iso environment for /
AD/DNS/DHCP.

https://support.huawei.c
om/enterprise/en/cloud
-
computing/fusionaccess
-pid-
FusionAccess_Manager_Inst FusionAccess Linux
19917528/software/251
aller_8.0.2-x86_64.iso infrastructure VM image
807361?idAbsPath=fixn
ode01%7C22658044%7
C7919788%7C9856606
%7C250416237%20%7
C19917528

https://support.huawei.c
om/enterprise/en/cloud
-
computing/fusionaccess
-pid-
FusionAccess_WindowsDesk FusionAccess template
19917528/software/251
top_Installer_8.0.2.iso creation tool
807361?idAbsPath=fixn
ode01%7C22658044%7
C7919788%7C9856606
%7C250416237%7C199
17528

Image file required for


creating virtual desktops.
cn_windows_10_multiple_ed
(You can prepare different /
itions_x86_dvd_6846431.iso
Windows 10 image files as
required.)

VM Deployment Description
Table 1-3 Components deployed on VMs
VM name Operating system Deploy components.

FA-AD-01 Windows Server 2016 AD/DNS/DHCP

FA-AD-02 Windows Server 2016 AD/DNS/DHCP

ITA/GaussDB/HDC/Cache/WI/License/v
FA-01 EulerOS 2.5
AG/vLB/LiteAS/VNCProxy

FA-02 EulerOS 2.5 ITA/GaussDB/HDC/Cache/WI/License/v


HCIA-Cloud Computing V5.5 Lab Guide Page 7

AG/vLB/LiteAS/VNCProxy

VM Specifications
Table 1-4 VM Specifications
VM name VM Specifications Network adapter

2 vCPUs, 4 GB memory, NIC 1: service port group, for


FA-AD-01
and 50 GB system disk example, FA_Service_Portgroup.

2 vCPUs, 4 GB memory, NIC 1: service port group, for


FA-AD-02
and 50 GB system disk example, FA_Service_Portgroup.

8 vCPUs, 16 GB memory, NIC 1: service port group, for


FA-01
and 60 GB system disk example, FA_Service_Portgroup.

8 vCPUs, 16 GB memory, NIC 1: service port group, for


FA-02
and 60 GB system disk example, FA_Service_Portgroup.

VM IP address and VLAN plan


The actual network environment prevails.

Table 1-5 VM IP address and VLAN plan


VM name Network adapter IP address VLAN Gateway

FA-AD-01 FA_Service_Portgroup 192.168. 163.21 / 24 313 192.168. 163.1

FA-AD-02 FA_Service_Portgroup 192.168. 163.22 / 24 313 192.168. 163.1

192.168. 163.11 / 24
FA-01 FA_Service_Portgroup 192.168. 163.10 / 24 313 192.168. 163.1
(floating IP address)

FA-02 FA_Service_Portgroup 192.168. 163.12 / 24 313 192.168. 163.1

FusionAccess Account Information


Table 1-6 FusionAccess Account Information
Default Account
Category Account Description
Information

Linux Linux server root account: used to install


the programs for each component Username: root
infrastructure VM
(excluding GaussDB). The account does Password: Cloud12#$
OS account not support Secure Shell (SSH) login.
HCIA-Cloud Computing V5.5 Lab Guide Page 8

Username: gandalf
Linux server local common account.
Password: Cloud12#$

Password of the
Password of the HA root certificate Huawei@123
HA root certificate

Username: admin
FusionAccess Default account of the FusionAccess
account Portal in common mode Password: user-
defined

Username: vdisysman
Northbound interface (NBI) account for Password: user-
FusionCompute
interconnecting FusionCompute with defined. You are
account
FusionAccess advised to set it to
VdiEnginE@234.
HCIA-Cloud Computing V5.5 Lab Guide Page 9

Contents

About This Document ............................................................................................................... 3


Overview ............................................................................................................................................................................................. 3
Description ......................................................................................................................................................................................... 3
Background Knowledge Required ............................................................................................................................................. 4
Experiment Environment Overview .......................................................................................................................................... 4
1 FusionAccess Desktop Cloud Componet Installation Experiment .............................11
1.1 Introduction ..............................................................................................................................................................................11
1.1.1 About This Lab .....................................................................................................................................................................11
1.1.2 Objectives ..............................................................................................................................................................................11
1.1.3 Configuration Procedure ..................................................................................................................................................11
1.2 Experiment Task Configuration .........................................................................................................................................12
1.2.1 FusionAccess Network Configuration ..........................................................................................................................12
1.2.2 AD/DNS/DHCP Server Configuration ..........................................................................................................................16
1.2.3 FusionAccess Component Configuration ....................................................................................................................73
1.3 Thinking questions .................................................................................................................................................................85
2 FusionAccess Desktop Cloud Service Provisioning Experiment .................................86
2.1 Experiment Introduction ......................................................................................................................................................86
2.1.1 About this lab .......................................................................................................................................................................86
2.1.2 Objective of the experiment ...........................................................................................................................................86
2.1.3 Experiment Procedure .......................................................................................................................................................86
2.2 Experiment Task Configuration .........................................................................................................................................87
2.2.1 Creating a VM Template ..................................................................................................................................................87
2.2.2 Provisioning desktops ..................................................................................................................................................... 165
2.2.3 Logging In to the Desktop (by SC) ............................................................................................................................ 189
2.3 Thinking questions .............................................................................................................................................................. 193
3 usionAccess Desktop Cloud O&M and Management Experiment.......................... 194
3.1 Experiment Introduction ................................................................................................................................................... 194
3.1.1 About this lab .................................................................................................................................................................... 194
3.1.2 Objective of the experiment ........................................................................................................................................ 194
3.1.3 Experiment Procedure .................................................................................................................................................... 195
3.2 Experiment Task Configuration ...................................................................................................................................... 195
3.2.1 Policy management ........................................................................................................................................................ 195
3.2.2 Service adjustment .......................................................................................................................................................... 214
3.2.3 Viewing and handling routine alarm information ............................................................................................... 234
HCIA-Cloud Computing V5.5 Lab Guide Page 10

3.3 Thinking questions .............................................................................................................................................................. 236


HCIA-Cloud Computing V5.5 Lab Guide Page 11

1 FusionAccess Desktop Cloud Componet


Installation Experiment

1.1 Introduction
1.1.1 About This Lab
This section describes how to configure the FusionAccess private network on
FusionCompute, install and configure the AD, DNS, and DHCP server, create and configure
the active/standby Linux infrastructure VM, and install FusionAccess components on the
corresponding VM. After the configuration, you can log in to FusionAccess through the web
page to complete initial configuration, such as the interconnection between FusionAccess
and FusionCompute and the AD/DNS/DHCP server.

1.1.2 Objectives
Upon completion of this task, you will be able to:
⚫ Understand the functions of the ITA, GaussDB, HDC, WI, and License components.
⚫ Understand the functions of the vAG and vLB components.
⚫ Master the installation and configuration process of each component.
⚫ Master the initial configuration process of FusionAccess components.
⚫ Configure parameters for the interconnection between FusionAccess and
FusionCompute.
⚫ Configure parameters for interworking between FusionAccess and the AD/DNS/DHCP
server.

1.1.3 Configuration Procedure

Figure 1-1 Experiment Flowchart


HCIA-Cloud Computing V5.5 Lab Guide Page 12

1.2 Experiment Task Configuration


1.2.1 FusionAccess Network Configuration
1.2.1.1 Creating a FusionAccess Port Group
1.2.1.1.1 Logging In to FusionCompute
Step 1 Log in to FusionCompute.

Enter https://floating IP address of FusionCompute (192.168.113.10:8443) in the browser


and press Enter.

Figure 1-2 Logging in to FusionCompute


Step 2 Enter the FusionCompute username and password.
HCIA-Cloud Computing V5.5 Lab Guide Page 13

Figure 1-3 FusionCompute homepage


1.2.1.1.2 Creating a Port Group
Step 1 On FusionCompute, go to the Resource Pools page. Choose Resource Pool >
Network, and click the distributed virtual switch (DVS). The DVS details are
displayed in the lower part of the page.

Figure 1-4 Viewing a DVS


Step 2 On the VLAN Pools tab page, click Add. Specify the start and end VLAN IDs.

Figure 1-5 Adding a VLAN pool


Step 3 Click OK. The VLAN pool is added.
HCIA-Cloud Computing V5.5 Lab Guide Page 14

Figure 1-6 VLAN pool added


Step 4 Create the FusionAccess service port group FA_Service_Portgroup.
⚫ Name: FA_Service_Portgroup
⚫ Port Type: Access
⚫ Connection Mode: VLAN
⚫ VLAN: 313

Figure 1-7 Adding a port group


HCIA-Cloud Computing V5.5 Lab Guide Page 15

Figure 1-8 Basic information

Figure 1-9 Network connection

Figure 1-10 Port group added

1.2.1.2 Configuring a Switch


*Note: In this experiment, the network configuration depends on the FusionCompute that
has been set up. This section lists only the configurations to be added.
⚫ VLAN configuration.

[Huawei]vlan 313

⚫ Interface configuration.

[Huawei]display current-configuration interface


#
interface Vlanif313
HCIA-Cloud Computing V5.5 Lab Guide Page 16

ip address 192.168.163.1 255.255.255.0


#
interface 10GE1/0/1
port link-type hybrid
port hybrid pvid vlan 113
port hybrid untagged vlan 113
port hybrid tagged vlan 313
device transceiver 10GBASE-FIBER
#
interface 10GE1/0/2
port link-type hybrid
port hybrid pvid vlan 113
port hybrid untagged vlan 113
port hybrid tagged vlan 313
device transceiver 10GBASE-FIBER
#

⚫ Save and exit the switch configuration.

[Huawei] quit
<Huawei> save

1.2.2 AD/DNS/DHCP Server Configuration


1.2.2.1 Creating a Windows Server 2016 VM Template
1.2.2.1.1 Creating a Bare VM
Step 1 Log in to FusionCompute and click Resource Pool on the left of the homepage. And
then click Create VM.

Figure 1-11 Creating a bare VM


Step 2 In the Create VM dialog box displayed, click Next in the Select Creation Mode
step.
HCIA-Cloud Computing V5.5 Lab Guide Page 17

Figure 1-12 Selecting the VM creation mode


Step 3 When configuring Basic Information, change name to Windows_2016_en_temp.
For Set Compute Resource, select CNA01 in mycluster and click OK. Set OS to
Windows and OS Version to Windows Server 2016 64bit, and click Next.

Figure 1-13 VM basic configuration page


HCIA-Cloud Computing V5.5 Lab Guide Page 18

Step 4 In the Select Datastore step, select autoDS_CNA01 and click Next.

Figure 1-14 Selecting a datastore for the VM

Note:
You can select any available datastore for the VM in this step and subsequent steps.

Step 5 In the Configure VM step, configure the VM hardware information and options as
planned, and click Next.
⚫ Set CPU to 2.
⚫ Set Memory to 4 GB.
⚫ Set Disk 1 to 50 GB.
⚫ Set NIC 1 to a service port group, for example, FA_Service_Portgroup.
HCIA-Cloud Computing V5.5 Lab Guide Page 19

Figure 1-15 VM configuration page


Step 6 In the Confirm Info step, select Start VM immediately after creation and click
OK. The VM tab page is displayed.

Figure 1-16 Confirming information


HCIA-Cloud Computing V5.5 Lab Guide Page 20

Figure 1-17 VM being created


1.2.2.1.2 Installing Windows Server 2016
Step 1 After the VM is created, click the Configuration tab and choose Hardware >
CD/DVD-ROM Drive. Select Mount Local CD/DVD-ROM Drive in Mount CD/DVD-
ROM Driver Type. Click OK. A dialog box is displayed.

Figure 1-18 Mounting a local CD/DVD-ROM drive


Step 2 Select the directory where the CD/DVD-ROM drive is located. To mount an ISO file,
select File(*.iso), and click Browse to select the file.
HCIA-Cloud Computing V5.5 Lab Guide Page 21

Figure 1-19 Selecting an ISO image file


Step 3 Select Restart the VM now to install the OS and click OK.

Figure 1-20 Confirming the mounting and restarting the VM

Note: Do not close the window during the mounting process. Otherwise, the CD/DVD-
ROM drive will be automatically unmounted.

Note: During the mounting of the CD-ROM drive, a message may be displayed asking
you to load the certificate. If the page shown in the following figure is displayed, start from
step 4. If the page shown in the following figure is not displayed, start from step 8.
HCIA-Cloud Computing V5.5 Lab Guide Page 22

Figure 1-21 Load certificate page


Step 4 Click Load Certificate.

Step 5 On the browser tab page that is displayed, choose Advanced > Proceed to
192.168.113.10(unsafe).

Figure 1-22 Advanced setting


HCIA-Cloud Computing V5.5 Lab Guide Page 23

Step 6 When the Certificate authentication succeeded dialog box is displayed, close the
browser window and return to the Load Certificate dialog box. Click Continue
mounting. After the mounting is successful, a message is displayed, indicating that
the CD-ROM drive is mounted successfully.

Figure 1-23 Click continue mounting


Step 7 Click Log In Using VNC above the Configuration tab.

Figure 1-24 Logging in using VNC


Step 8 In the VNC window, install the Windows OS as prompted.
HCIA-Cloud Computing V5.5 Lab Guide Page 24

Figure 1-25 Installing Windows

Figure 1-26 Selecting the version of Windows to be installed


Step 9 Select Custom: Install Windows only (advanced).
HCIA-Cloud Computing V5.5 Lab Guide Page 25

Figure 1-27 Selecting custom installation


Step 10 Click Load driver.

Figure 1-28 Loading the driver


Step 11 In the displayed dialog box, click OK.
HCIA-Cloud Computing V5.5 Lab Guide Page 26

Figure 1-29 Confirmation


Step 12 Select the drive where Window is to be installed and click Next.

Figure 1-30 Selecting a drive


Step 13 After the installation, set a password for Administrator and log in to the VM.
HCIA-Cloud Computing V5.5 Lab Guide Page 27

Figure 1-31 Setting a password

Figure 1-32 Logging in to the system


Step 14 Back to CD/DVD-ROM management page. Unmount the CD/DVD-ROM drive.

Figure 1-33 Unmounting the CD/DVD-ROM drive


HCIA-Cloud Computing V5.5 Lab Guide Page 28

Step 15 After the unmounting, the Information dialog box is displayed. Click OK.

Figure 1-34 Confirming the unmounting


1.2.2.1.3 Changing group policies

Step 1 Log in to the system as user Administrator, right click on the taskbar in the
lower left corner, click Run and and enter gpedit.msc, click OK.

Figure 1-35 Run gpedit.msc


Step 2 Choose Computer Configuration > Administrative Templates > Network >
Network Connections > Windows Firewall. Set Windows Firewall: Protect all
network connections in Domain Profile and Standard Profile to Disabled.
HCIA-Cloud Computing V5.5 Lab Guide Page 29

Figure 1-36 Disabling the firewall


Step 3 Close the Local Group Policy Editor window.

1.2.2.1.4 Disabling the firewall


Step 1 Enter services.msc in the Run text box, and press Enter.

Step 2 Disable Application Layer Gateway Service.

Figure 1-37 Disabling Application Layer Gateway Service


Step 3 Disable the Windows Firewall service by referring to the preceding step.
HCIA-Cloud Computing V5.5 Lab Guide Page 30

Figure 1-38 Disabling Windows Firewall


1.2.2.1.5 Installing the Driver Tools
Step 1 On the Configuration tab page, choose More > Tools > Mount Tools, and click
OK.

Figure 1-39 Mounting Tools

Step 2 On the Windows VM screen, click on the taskbar in the lower left corner, and
select This PC.

Figure 1-40 Selecting This PC


HCIA-Cloud Computing V5.5 Lab Guide Page 31

Figure 1-41 Opening CDROM


Step 3 Go to the VM CD-ROM directory. Right-click Setup and choose Run as
administrator. Install the software as prompted. During the installation, retain the
default settings.

Figure 1-42 Running the Tools installation program


HCIA-Cloud Computing V5.5 Lab Guide Page 32

Figure 1-43 Tools installed


Step 4 After the software is installed, restart the system as prompted.

Figure 1-44 Restarting the system


Step 5 After the VM is restarted, back to FusiomCompute page. On the Configuration tab
page, choose More > Tools > Unmount Tools, and click OK.
HCIA-Cloud Computing V5.5 Lab Guide Page 33

Figure 1-45 Unmounting Tools


1.2.2.1.6 Installing .NET Framework 3.5.1
Step 1 Mount the ISO file to the VM by referring to 1.2.2.1.2 Step 1 to Step 3. Deselect
Restart the VM now to install the OS and click Confirm.

Step 2 click on the taskbar in the lower left corner, and click Server Manager.

Figure 1-46 Server Manager


Step 3 In the middle of the page, click Add roles and features. The Add Roles and
Features Wizard dialog box is displayed. And click Next for four times.
HCIA-Cloud Computing V5.5 Lab Guide Page 34

Figure 1-47 Add roles and features


Step 4 In the displayed dialog box, select .NET Framework 3.5 Features and click Next.

Figure 1-48 Installing .NET Framework 3.5


Step 5 Click Specify an alternate source path.
HCIA-Cloud Computing V5.5 Lab Guide Page 35

Figure 1-49 Specifying an alternate source path


Step 6 In the displayed dialog box, set Path to Windows Server 2016 ISO
drive:\Sources\SxS. For example, if the Windows Server 2016 ISO file is saved in
drive D, set Path to D:\Sources\SxS.

Figure 1-50 Setting path


HCIA-Cloud Computing V5.5 Lab Guide Page 36

Step 7 Click Install. When Installation succeeded is displayed, the installation is


successful.

Step 8 Click Close.

Step 9 Back to CD/DVD-ROM management page. Unmount the CD/DVD-ROM drive.

1.2.2.1.7 Installing the monitoring agent


Step 1 Mount the FusionAccess_WindowsDesktop_Installer_8.0.2.iso file to the VM by
referring to 1.2.2.1.2 Step 1 to Step 3. Deselect Restart the VM now to install the
OS and click Confirm.

Step 2 On the Windows VM, double-click CD-ROM Drive to go to the virtual CD-ROM
drive directory of the VM.

Step 3 Right-click run and choose Run as administrator.

Step 4 Click Scale-out Deployment.

Figure 1-51 Scale-out Deployment


Step 5 Select Monitoring agent and click Install. Install the monitoring agent as
prompted.
HCIA-Cloud Computing V5.5 Lab Guide Page 37

Figure 1-52 Monitoring Agent


Step 6 Close the FusionAccess Windows Installer window.

Step 7 Unmount the CD/DVD-ROM drive.

1.2.2.1.8 Encapsulating the VM template


Step 1 Go to C:\Windows\System32\Sysprep and double-click sysprep.exe.

Step 2 Set the parameters for encapsulating the VM template.


⚫ System Cleanup Action: Select Enter System Out-of-Box Experience (OOBE).
⚫ Select Generalize.
⚫ Shutdown Options: Select Shutdown.
HCIA-Cloud Computing V5.5 Lab Guide Page 38

Figure 1-53 Parameters for encapsulating the VM template


Step 3 Click OK. After the template encapsulation is complete, the VM automatically shuts
down.

1.2.2.1.9 Converting the VM to a template


Step 1 Back to FusiomCompute page. On the Configuration tab page, choose More >
Template > Convert to Template, and click OK.

Figure 1-54 Converting the VM to a template

1.2.2.2 Creating and configuring AD/DNS/DHCP server


1.2.2.2.1 Creating AD/DNS/DHCP server
Step 1 On FusionCompute, go to the Resource Pools page. Choose Resource Pool > VM
Templates, and click Operation > Deploy VM Using Template.
HCIA-Cloud Computing V5.5 Lab Guide Page 39

Figure 1-55 Deploy VM Using Template


Step 2 Configure the parameters as follow.
⚫ Name: FA-AD-01
⚫ Set Compute Resource: CNA01
⚫ CPU: 2
⚫ Memory: 4
⚫ NIC 1: FA_Service_Portgroup
⚫ Attributes: Do not customize
⚫ Generate Initial Password: Deselect
⚫ Start VM immediately after creation: Select

Step 3 Use the same configuration as in step 2, provision the VM named FA-AD-02, and
select the CNA02 as compute resource.

1.2.2.2.2 Configuring AD/DNS/DHCP server


Step 1 Choose Resource Pool > Storage. On the Storage tab page, select the local disk
autoDS_CNA01 of CNA01 and click Disks.
HCIA-Cloud Computing V5.5 Lab Guide Page 40

Figure 1-56 Storage page


Step 2 Click Create Disk, set Capacity(GB) to 20 and set Comfiguration Mode to Thick
provisioning lazy zeroed.

Figure 1-57 Creating disk


Step 3 On the Resource Pool page, click the VM tab and then click FA-AD-01. The
Summary tab page is displayed.

Step 4 Click the Configuration tab and choose Hardware > Disk.
HCIA-Cloud Computing V5.5 Lab Guide Page 41

Figure 1-58 Configuring disk


Step 5 Click Attach Disk, and select the disk created in Step 2, and click OK.

Figure 1-59 Attach disk


Step 6 Log in to the FA-AD-01 by VNC. On the taskbar in the lower left corner, right-click

, enter compmgmt.msc in the Run text box, and press Enter.

Step 7 Choose Storage > Disk Management. Right-click a blank area on the left of the
newly added disk and choose Online.
HCIA-Cloud Computing V5.5 Lab Guide Page 42

Figure 1-60 Making the disk online


Step 8 Right-click the disk and choose Initialize Disk from the shortcut menu.

Figure 1-61 Initalizing Disk


Step 9 Select the newly added disk and select MBR (Master Boot Record) and click OK.

Figure 1-62 Choosing MBR


Step 10 In the Unallocated area of the newly added disk, right-click a blank area and
choose New Simple Volume.
HCIA-Cloud Computing V5.5 Lab Guide Page 43

Figure 1-63 Choosing New Simple Volume


Step 11 Format the disk as prompted.

Step 12 On the taskbar, right-click and choose Run. In the Run text box that is
displayed, enter the ncpa.cpl command.

Step 13 Right-click the NIC and choose Properties > Internet Protocol Version 4
(TCP/IPv4).

Step 14 Configure the NIC address and attributes based on "Table 1-5 VM IP address and
VLAN planning" in "Lab Environment Overview".

Figure 1-64 IPv4 properties


HCIA-Cloud Computing V5.5 Lab Guide Page 44

Notes:
⚫ Preferred DNS server: Enter the planned IP address of the active DNS server.
⚫ Alternate DNS server: Enter the planned IP address of the standby DNS server.

Step 15 Repeat Step 1 to Step 14 to configure disks and networks for the FA-AD-02 server.

1.2.2.2.3 Installing the AD, DNS, and DHCP Services


Step 1 Log in to the active server for installing the AD, DNS, and DHCP services as an
administrator in VNC mode.

Step 2 On the taskbar, right-click and choose Run. In the Run text box, enter the
sysdm.cpl command and press Enter.

Step 3 Click Change. In the Computer name text box, enter the planned computer name
and click OK.

Figure 1-65 Changing computer name


Step 4 Complete the configuration as prompted, restart the VM, and log in to the VM
using the administrator account.
HCIA-Cloud Computing V5.5 Lab Guide Page 45

Step 5 On the taskbar, click , then click on the right of the Start
menu.

Step 6 In the middle of the page, click Add roles and features.

Step 7 Click Next for three times.

Step 8 In the Roles area, select Active Directory Domain Services, DHCP Server, and
DNS Server. In the dialog box that is displayed, click Add Features. Then, click
Next.

Figure 1-66 Selecting server roles


Step 9 In the Features area, select Windows Server Backup.
HCIA-Cloud Computing V5.5 Lab Guide Page 46

Figure 1-67 Selecting features


Step 10 Click Next until the Confirm dialog box is displayed.

Step 11 Click Install. The installation progress bar is displayed. When Installation
succeeded is displayed, the installation is successful.

Step 12 Log in to the standby server for installing the AD, DNS, and DHCP services as an
administrator in VNC mode.

Step 13 Install the AD, DNS, and DHCP services on the standby server by referring to Step 2
to Step 11.

1.2.2.2.4 Configuring the AD Service


Step 1 Log in to the active AD server using the administrator account.

Step 2 In the upper right corner of the Server Manager page, click , and select
Promote this server to a domain controller.

Step 3 Select Add a new forest, specify Root domain name, for example
vdesktop.huawei.com, and click Next.
HCIA-Cloud Computing V5.5 Lab Guide Page 47

Figure 1-68 Adding a new forest


Step 4 Set Forest functional level and Domain functional level both to Windows Server
2016, set Type the Directory Services Restore Mode (DSRM) password, and click
Next.
HCIA-Cloud Computing V5.5 Lab Guide Page 48

Figure 1-69 Configuring the domain controller


Step 5 Retain the default values, click Next for four times, and click Install.

Step 6 Log in to the AD server using the administrator account. The administrator account
is in the User domain name\Administrator format, for example
vdesktop.huawei.com\Administrator.

Step 7 Log in to the standby AD server using the administrator account.

Step 8 In the upper right corner of the Server Manager page, click , and select
Promote this server to a domain controller.

Step 9 Select Add a domain controller to an existing domain.

Step 10 Click Select of Domain.


HCIA-Cloud Computing V5.5 Lab Guide Page 49

Figure 1-70 Active Directory Domain Services Configuration Wizard


Step 11 Enter the domain username and password of the active AD, and click OK.

Figure 1-71 Windows Security


Step 12 In the Select a domain from the forest dialog box, select a domain and click OK.
HCIA-Cloud Computing V5.5 Lab Guide Page 50

Step 13 In the Active Directory Domain Services Configuration Wizard window, click
Next.

Step 14 Set Directory Services Restore Mode Administrator Password and click Next.

Figure 1-72 Entering the DSRM password


Step 15 Retain the default values, click Next for four times, then click Install to install the
AD service as prompted, and restart the VM.

Step 16 Log in to the AD server using the administrator account. The administrator account
is in the User domain name\Administrator format, for example
vdesktop.huawei.com\Administrator.

1.2.2.2.5 Configuring the DNS Reverse Lookup Function


Note: The configuration in section 1.2.2.2.5 is required only on the active DNS server, that
is, FA-AD-01.

Step 1 Log in to the active DNS server using the administrator account.

Step 2 On the taskbar, click , then click on the right of the Start
menu.
HCIA-Cloud Computing V5.5 Lab Guide Page 51

Step 3 In the navigation pane on the left, click DNS.

Figure 1-73 Configuring DNS


Step 4 In the SERVERS area, right-click Server name and choose DNS Manager from the
shortcut menu.

Figure 1-74 Configuring DNS Manager


Step 5 In the navigation pane, choose DNS > FA-AD-01.vdesktop.huawei.com > Reverse
Lookup Zones, right-click Reverse Lookup Zones, and choose New Zone.
HCIA-Cloud Computing V5.5 Lab Guide Page 52

Figure 1-75 Adding a new zone


Step 6 Click Next three times as promoted.

Step 7 Select IPv4 Reverse Lookup Zone and click Next.

Step 8 In Network ID, enter the IP address segment for reverse lookup and click Next.

Figure 1-76 Configuring reverse lookup zone name


Step 9 Retain the default setting and complete the DNS reverse lookup configuration as
prompted. In the Server Manager window, the added domain is displayed in the
right pane of Reverse Lookup Zones.
HCIA-Cloud Computing V5.5 Lab Guide Page 53

Figure 1-77 Configuring the reverse lookup function


1.2.2.2.6 Configuring the DNS Forward Lookup Function
Note: The configuration in section 2.2.6 is required only on the active DNS server, that is,
FA-AD-01.

Step 1 In the navigation pane, choose DNS > vdesktop.huawei.com > Forward Lookup
Zones. Right-click User domain, for example, vdesktop.huawei.com, and choose
New Host from the shortcut menu.
HCIA-Cloud Computing V5.5 Lab Guide Page 54

Figure 1-78 New Host


Step 2 Enter the HDC server information and select Create associated pointer (PTR) record.
Click Add Host and complete the HDC server configuration as prompted.
⚫ Name: Enter the VM name planned for the HDC server.
⚫ IP address: Enter the service plane IP address planned for the HDC server.
⚫ Select Create associated pointer (PTR) record to add reverse lookup data at the
same time.

Note:
Configure the name and IP address based on "Table 1-5 VM IP address and VLAN planning"
in "Lab Environment Overview".
HCIA-Cloud Computing V5.5 Lab Guide Page 55

Figure 1-79 New host configuration


Step 3 If other HDC servers are deployed to share the workload, repeat Step 2 to configure
other HDC servers.

Step 4 Close the New Host window. In the navigation pane, expand Reverse Lookup
Zones, right-click Reverse IP address segment, and choose Refresh from the
shortcut menu. Verify that the DNS reverse lookup information is automatically
added.
HCIA-Cloud Computing V5.5 Lab Guide Page 56

Figure 1-80 Reverse Lookup Zones


1.2.2.2.7 Configuring DNS Policies
Step 1 Table 1-1 lists the differences between configuring DNS policies on the active and
standby DNS servers.

Table 1-1 Differences in configuring DNS policies on active and standby DNS
servers
Item Active Server Standby Server Difference
1. Selecting the IP address for
√ √ None
monitoring the DNS server
2. Configuring advanced DNS
√ × -
properties
3. Enabling the aging and scavenging
√ × -
functions for the DNS server
4. Changing the start of authority
√ × -
(SOA)
5. Disabling IPv6 for the DNS server √ √ None

Step 2 Log in to the active DNS server using the administrator account.
HCIA-Cloud Computing V5.5 Lab Guide Page 57

Step 3 On the taskbar, click , then click on the right of the Start
menu.

Step 4 In the left navigation pane, click DNS.

Step 5 In the SERVERS area, right-click Server name and choose DNS Manager from the
shortcut menu.

Step 6 Expand DNS. Right-click Computer name and choose Properties from the shortcut
menu.

Figure 1-81 Properties


Step 7 Click the Interfaces tab. Select Only the following IP address and the IPv4 address
for the service plane NIC, and click Apply.
HCIA-Cloud Computing V5.5 Lab Guide Page 58

Figure 1-82 Interfaces


Step 8 Click the Advanced tab and set the parameters as shown in following figure.

Figure 1-83 Advanced


HCIA-Cloud Computing V5.5 Lab Guide Page 59

Step 9 Click the Root Hints tab. In the Name servers area, click Remove to delete all
*.root-servers.net..

Figure 1-84 Root Hints


Step 10 Click OK and close the Properties dialog box.

Step 11 Delete the CACHE.DNS file in C:\Windows\System32\dns\ to prevent the deleted


information from being restored after the DNS server is restarted.

Step 12 Expand DNS. Right-click Computer name and choose Set Aging/Scavenging for All
Zones from the shortcut menu.

Step 13 Select Scavenging stale resource records and click OK.


HCIA-Cloud Computing V5.5 Lab Guide Page 60

Figure 1-85 Scavenging stale resource records


Step 14 Select Apply these settings to the existing Active Directory-integrated zones
and click OK.

Step 15 In the navigation pane, choose DNS > Computer name > Reverse Lookup Zones.

Right-click Reverse IP address segment, for example, 163.168.192.in-addr.arpa and choose


Properties from the shortcut menu.
HCIA-Cloud Computing V5.5 Lab Guide Page 61

Figure 1-86 Properties


Step 16 Click the Start of Authority (SOA) tab and set Expires after to 100 days, and click
OK.

Figure 1-87 Settings on the Start of Authority (SOA) tab page


HCIA-Cloud Computing V5.5 Lab Guide Page 62

Step 17 On the taskbar, right-click and choose Run. In the Run text box, enter the
ncpa.cpl command and press Enter.

Step 18 Right-click the service plane NIC (Ethernet here), choose Properties from the
shortcut menu, deselect Internet Protocol Version 6 (TCP/IPv6) on the
Networking tab page, and click OK.

Figure 1-88 Deselecting IPv6


Step 19 On the CLI, run the following commands in sequence to disable the tunnel adapter:

netsh interface teredo set state disabled


netsh interface 6to4 set state disabled
netsh interface isatap set state disabled

Step 20 Log in to the standby DNS server using the administrator account.

Step 21 Repeat Step 3 to Step 8 to configure the IP address for monitoring the DNS server.

Step 22 Repeat Step 17 to Step 19 to disable the IPv6 protocol for the DNS server.

1.2.2.2.8 Configuring the DHCP Service


Step 1 Log in to the active DHCP server using the administrator account.
HCIA-Cloud Computing V5.5 Lab Guide Page 63

Step 2 In the upper right corner of the Server Manager page, click , and select
Complete DHCP configuration.

Step 3 Click Next.

Step 4 Click Commit.

Step 5 Click Close.

Step 6 On the taskbar, click > Windows Administrative Tools > DHCP.

Step 7 In the navigation pane, expand DHCP Server, right-click IPv4, and choose New
Scope.

Figure 1-89 New Scope


Step 8 Click Next to switch to the Scope Name dialog box.

Step 9 Enter the name and description of the new scope and click Next.

Step 10 Configure the following parameters based on the data plan:


⚫ Start IP address: Enter the start IP address in the IP address pool that has been
added for the newly created port group.
⚫ End IP address: Enter the end IP address in the IP address pool that has been added
for the newly created port group.
⚫ Subnet mask: Enter the subnet mask of the scope.
HCIA-Cloud Computing V5.5 Lab Guide Page 64

Figure 1-90 Configuring the IP address range


Step 11 Click Next three times as promoted.

Step 12 Select Yes, I want to configure these options now and click Next.

Figure 1-91 Configuring DHCP Options


HCIA-Cloud Computing V5.5 Lab Guide Page 65

Step 13 Enter the VM gateway IP address of the port group under the IP address parameter
and click Add.

Step 14 Click Next to switch to the Domain Name and DNS Servers dialog box.

Step 15 Configure IP address and click Add to add the standby DNS server.

Figure 1-92 Adding the standby DNS server


Step 16 Click Next three times as promoted.

Step 17 Click Finish.

Step 18 Right-click Scope [IP address segment] DHCP scope name, for example Scope
[192.168.163.0] hcia, and choose Advanced > Split-Scope.
HCIA-Cloud Computing V5.5 Lab Guide Page 66

Figure 1-93 Split-Scope


Step 19 Click Next and select Add Server window in the Additional DHCP Server.

Step 20 Click Browse, enter the name or IP address of the standby DHCP server, and click
OK twice.

Step 21 Click Next and set the ratio of IP addresses assigned by the active DHCP server to
those assigned by the standby DHCP server. The recommended value is 8:2.

Step 22 Click Next and set the following parameters:


⚫ Set Host DHCP Server to 0.
⚫ Set Added DHCP Server to 1000.

Step 23 Complete the synchronization as prompted and close the window.

Step 24 Log in to the standby DHCP server using the administrator account.

Step 25 Repeat Step 2 to Step 5 to configure the DHCP service on the standby DHCP server.

Step 26 On the taskbar, click > Windows Administrative Tools > DHCP. In the
displayed DHCP window, choose DHCP > Computer name. Right-click IPv4 and
choose Refresh from the shortcut menu.
HCIA-Cloud Computing V5.5 Lab Guide Page 67

Step 27 Right-click the DHCP scope, and choose Activate from the shortcut menu to
activate the IP address pool.

1.2.2.2.9 Creating Domain Administrator Accounts


Step 1 Log in to the active AD server using the administrator account.

Step 2 On the taskbar, click , then click on the right of the Start
menu.

Step 3 In the navigation pane of the Server Manager window, click AD DS.

Step 4 In the SERVERS area, right-click Server name, and choose Active Directory Users
and Computers from the shortcut menu.

Figure 1-94 Active Directory Users and Computers


Step 5 In the navigation pane on the left, right-click a domain name, and choose New >
Organizational Unit.
HCIA-Cloud Computing V5.5 Lab Guide Page 68

Figure 1-95 Organizational Unit


Step 6 Enter the name of the user domain OU to be created, for example, UserOU, and
click OK.

Figure 1-96 Creating UserOU


HCIA-Cloud Computing V5.5 Lab Guide Page 69

Step 7 Repeat Step 5 to Step 6 to create a VM OU, for example, VMOU.

Step 8 Right-click User domain OU which created in Step 6 and choose New > User from
the shortcut menu.

Figure 1-97 User


Step 9 Enter the domain account in First name and User logon name, and click Next.
HCIA-Cloud Computing V5.5 Lab Guide Page 70

Figure 1-98 Creating new user


Step 10 Set the password for the domain account, deselect User must change password at
next logon, and click Next.

Step 11 Click Finish.

1.2.2.2.10 Configuring Domain Administrator Accounts


Step 1 Right-click the VMOU and choose Delegate Control from the shortcut menu.

Step 2 Click Next. In the Users or Groups window that is displayed, click Add.

Step 3 Enter the domain account to be configured as the domain administrator, and click
Check Names, and click OK.

Figure 1-99 Adding a domain administrator account


HCIA-Cloud Computing V5.5 Lab Guide Page 71

Step 4 Click Next.

Step 5 Select Create a custom task to delegate and click Next.

Figure 1-100 Task to Delegate


Step 6 Select This folder, existing objects in this folder, and creation of new objects in
this folder and click Next.

Figure 1-101 Active Directory Object Type


HCIA-Cloud Computing V5.5 Lab Guide Page 72

Step 7 Select Creation/deletion of specific child objects. In the Permissions area, select
Create User objects, Delete User objects, Create Group objects, Delete Group
objects, Create Computer objects, and Delete Computer objects, and click Next.

Figure 1-102 Permissions


Step 8 Click Finish.

1.2.2.2.11 Configuring Backup Paths


Step 1 Repeat Step 1 to Step 6 in chapter 1.2.2.1.2 to mount the FusionAccess software
package FusionAccess_WindowsDesktop_Installer_8.0.2.iso to the AD server.

Note: When mounting CD/DVD-ROM Drive, do not select Restart the VM now to install
the OS.

Step 2 On the VM, double-click the CD/DVD-ROM.

Step 3 Run run.bat as the administrator.

Step 4 Click Scale-out Deployment.


HCIA-Cloud Computing V5.5 Lab Guide Page 73

Figure 1-103 Scale-out Deployment


Step 5 Select Windows BackupTools and click Install.

Step 6 In BackupTools, click Browse and set BackupPath to a path residing on a disk
(except the system disk) with more than 15 GB available space.

Step 7 Click Save and Exit.

Step 8 Log in to the standby AD server using the administrator account.

Step 9 Repeat Step 1 to Step 7 to configure the backup path for the standby AD server.

1.2.3 FusionAccess Component Configuration


1.2.3.1 Creating infrastructure VMs
1.2.3.1.1 Creating primary infrastructure VM
Step 1 Log in to FusionCompute and click Resource Pool on the left of the homepage. And
then click Create VM.
HCIA-Cloud Computing V5.5 Lab Guide Page 74

Figure 1-104 Creating VM


Step 2 In the Create VM dialog box displayed, click Next in the Select Creation Mode
step.

Step 3 When configuring Basic Information, change name to FA-01. For Set Compute
Resource, select CNA01 in mycluster and click OK. Set OS to Linux and OS
Version to EulerOS 2.5 64bit, and click Next.

Figure 1-105 Basic Information


Step 4 In the Select Datastore step, select autoDS_CNA01 and click Next.

Note:
You can select any available datastore for the VM in this step and subsequent steps.
HCIA-Cloud Computing V5.5 Lab Guide Page 75

Step 5 In the Configure VM step, configure the VM hardware information and options as
planned, and click Next.
⚫ Set CPU to 8.
⚫ Set Memory to 16 GB.
⚫ Set Disk 1 to 60 GB.
⚫ Set NIC 1 to a service port group, for example, FA_Service_Portgroup.

Figure 1-106 Configuring hardware


Step 6 In the Confirm Info step, select Start VM immediately after creation and click
OK. The VM tab page is displayed.

1.2.3.1.2 Configuring primary infrastructure VM


Step 1 After the VM is created, click the Configuration tab and choose Hardware >
CD/DVD-ROM Drive. Select Mount Local CD/DVD-ROM Drive in Mount CD/DVD-
ROM Driver Type. Click OK. A dialog box is displayed.

Step 2 Select the directory where the CD/DVD-ROM drive is located. To mount an ISO file,
select File(*.iso), and click Browse to select the
FusionAccess_Manager_Installer_8.0.2-x86_64.iso.
HCIA-Cloud Computing V5.5 Lab Guide Page 76

Figure 1-107 Selecting an ISO file


Step 3 Select Restart the VM now to install the OS and click OK.

Step 4 Click Log In Using VNC above the Configuration tab.

Step 5 After the VM is restarted, select Test this media & install EulerOS V2.0SP5 within
60s and press Enter.

Step 6 After the OS is installed. Back to FusionCompute, click the Summary tab, choose
Operation > Tools > Mount Tools, and click OK.

Step 7 Log in to the VM using VNC as user root (preset password: Cloud12#$).

Step 8 Configure the IP address, subnet mask, and gateway of the infrastructure VM
template based on the data plan, and press Enter.

Figure 1-108 Configuring network


Step 9 On the FusionAccess command-line interface (CLI), enter 1 to select Driver Tools,
and press Enter.
HCIA-Cloud Computing V5.5 Lab Guide Page 77

Figure 1-109 Selecting driver tools


Step 10 Input 1 to select Install Driver Tools, and press Enter to start installing the Driver
Tools.

Figure 1-110 Selecting install driver tools


Step 11 After the installation is complete, enter yes and press Enter to restart the VM.

Figure 1-111 Inputing yes to restart the server


Step 12 Back to FusiomCompute page. On the Configuration tab page, choose More >
Tools > Unmount Tools, and click OK.
HCIA-Cloud Computing V5.5 Lab Guide Page 78

1.2.3.1.3 Creating and configuring standby infrastructure VM


Step 1 Repeat chapter 1.2.3.1.1 to chapter 1.2.3.1.2 to create and configure standby
infrastructure vm named FA-02.

1.2.3.2 Installing the FusionAccess Components on the GUI


1.2.3.2.1 Installing the FusionAccess Components on the active infrastructure VM
Step 1 Log in to the active infrastructure VM as user root (whose password is
Cloud12#$ by default) using VNC.

Step 2 Enter startTools and press Enter.

Note:
If this is the first or second time for the root user to log in to the VM, the FusionAccess CLI
is displayed.

Step 3 Input 3 to select Software and press Enter.

Figure 1-112 Software


Step 4 Input 1 to select All In One and press Enter.

Figure 1-113 All In One


Step 5 Input 1 to select Create a new node and press Enter.
HCIA-Cloud Computing V5.5 Lab Guide Page 79

Figure 1-114 Create a new node


Step 6 Input 1 to select Common mode and press Enter.

Step 7 Specify Local Service IP (the service plane IP address of the local server) and press
Enter.

The system starts installing and configuring the components.


If the message "Install all components successfully" is displayed, the components are
successfully installed.
HCIA-Cloud Computing V5.5 Lab Guide Page 80

Figure 1-115 Installing components


Step 8 Input e and press Enter to exit.

1.2.3.2.2 Installing the FusionAccess Components on the standby infrastructure VM


Step 1 Log in to the standby infrastructure VM as user root (whose password is
Cloud12#$ by default) using VNC.

Step 2 Enter startTools and press Enter.

Note:
If this is the first or second time for the root user to log in to the VM, the FusionAccess CLI
is displayed.

Step 3 Input 3 to select Software and press Enter.


HCIA-Cloud Computing V5.5 Lab Guide Page 81

Figure 1-116 Choosing Software


Step 4 Input 1 to select All In One and press Enter.

Figure 1-117 Choosing All In One


Step 5 Input 2 to select Add to an existing node and press Enter.

Figure 1-118 Choosing Add to an existing node


Step 6 Set the following parameters and press Enter repeatedly:
⚫ Local ip address: Enter the service plane IP address of the VM.
⚫ Peer ip address: Enter the service plane IP address of the active VM.
⚫ Float ip address: Enter the floating IP address of the active and standby VMs.
⚫ Float ip mask: Enter the subnet mask of the VM.
⚫ Gateway: Enter the service plane gateway of the VM.
HCIA-Cloud Computing V5.5 Lab Guide Page 82

⚫ Root cert's password of HA: Enter the password of the HA root certificate, which is
Huawei@123 by default.
⚫ Peer gandalf password: Enter the password of gandalf (Cloud12#$ by default) for
logging in to the active VM.

Step 7 The system starts installing and configuring the components. If the message "Install
all components successfully" is displayed, the components are successfully installed.

Step 8 Input e and press Enter to exit.

1.2.3.3 Initial Configuration


1.2.3.3.1 Creating a vdisysman user
Step 1 Log in to FusionCompute.

Step 2 Click in the navigation tree on the left. The System page is displayed.

Step 3 In the navigation tree on the left, choose System > Rights Management > User
Management, click Add User, and configure related parameters.
⚫ User Type: Select Interface interconnection user.
⚫ Username: vdisysman
⚫ Password: Set the password based on the rules. Remember the password because it
will be used in subsequent operations.
⚫ Role: Select administrator.
⚫ Max. Concurrent Logins: No limit

Step 4 Click OK. The vdisysman user is created.

1.2.3.3.2 Logging in to FusionAccess Web Client


Step 1 In the address box of your web browser, enter https://Service plane IP address of
the active ITA VM:8448, and press Enter, for example, https://192.168.163.11:8448

Step 2 Set the passwords as planned. The password must meet the following requirements:
⚫ Contains at least one uppercase letter (A to Z), one lowercase letter (a to z), one
digit (0 to 9), and one special character (~!@#$%^&*()-_=+\|{};:'",<.>/? or space).
⚫ Contains 8 to 32 characters.
⚫ Cannot contain the username or the username in reversed order.
⚫ Cannot be any weak password by default, such as Huawei@, Huawei123@, or
huawei_123.

Step 3 Click Save.

Step 4 Enter the username and password and click Login.


HCIA-Cloud Computing V5.5 Lab Guide Page 83

1.2.3.3.3 Configuring the virtualization environment


Step 1 On the Configure a virtualized environment page, configure related parameters.
⚫ FusionCompute IP Address: You can choose an IPv4 address and enter the floating
IP address of the VRM node.
⚫ FusionCompute Port Number: Enter 7070.
⚫ SSL Port Number: Enter 7443.
⚫ Username: The default value is vdisysman.
⚫ Password: Password set in step 3.3.1.
⚫ Protocol: https

Step 2 Click Next. The page for configuring the vAG/vLB/VNCProxy is displayed.

Step 3 Click Next, in the displayed Warning dialog box, click OK. The Configure Default
Policy page is displayed.

Step 4 Configure the default policy for peripherals. By default, Main Switch for peripherals
is enabled, and all peripherals can be directly used.

Step 5 Click Next. The Confirm page is displayed.

Step 6 Confirm all parameter settings and click Next. The system automatically performs
the configuration. After the configuration is complete, the FusionAccess Web
Client page is displayed.

1.2.3.3.4 Configuring Time Synchronization


Step 1 Choose System > System Configuration > Time Management from the main
menu.

Figure 1-119 Choosing Time Management


Step 2 Click the Time Synchronization tab.

Step 3 Set the clock source IP address to the service plane IP address of the active AD
server, that is, FA-AD-01.
HCIA-Cloud Computing V5.5 Lab Guide Page 84

Figure 1-120 Setting clock source IP address


Step 4 Click OK.

1.2.3.3.5 Configuring Windows AD


Step 1 Choose System > System Configuration > Authentication Configuration and click
the Windows AD tab.

Figure 1-121 Choosing Windows AD tab


Step 2 Toggle Whether to Enable Windows AD on.

Step 3 Click Create.

Step 4 Configure the connection to Windows AD. Retain the default values for other
parameters.
⚫ FQDN: name of the Windows AD domain controller, for example,
vdesktop.huawei.com
⚫ Domain Administrator: name of the administrator who accesses the Windows AD
server, for example, vdsadmin
⚫ Domain Administrator Password: administrator password for login
⚫ Domain Controller IP: service-plane IP address of the Windows AD server.
⚫ DC Host Name: host name of the Windows AD server, for example, FA-AD-01.
HCIA-Cloud Computing V5.5 Lab Guide Page 85

⚫ Active DNS Server IP Address: service plane IP address of the active DNS server. You
can choose an IPv4 address.
⚫ Standby DNS Server IP Address: (Optional) service plane IP address of the standby
DNS server. You can choose an IPv4 address.

Figure 1-122 Configuring AD


Step 5 Click OK.

1.3 Thinking questions


What are the effects of the VM self-recovery attributes configured in step 1.2.4? What are
the possible consequences if not configured?
Reference answer:
If the storage network of the FusionCompute is abnormal after the automatic recovery
attributes of the VM are configured, the VM files cannot be read and cannot be used. After
the storage network recovers, VMs can be automatically recovered to ensure system
reliability.
If the self-recovery attribute is not configured for the infrastructure VM, the storage
network is abnormal and the VM may fail to recover automatically.
HCIA-Cloud Computing V5.5 Lab Guide Page 86

2 FusionAccess Desktop Cloud Service


Provisioning Experiment

2.1 Experiment Introduction


2.1.1 About this lab
This section describes how to create a virtual desktop user on the AD, DNS, or DHCP server,
create a VM on the FusionCompute, install the OS, and configure and encapsulate the VM
system using the Huawei desktop cloud tool. (There are full copy and linked clone modes
based on the encapsulation mode.) and return to the FusionCompute template creation
page. After the template is created, create command rules, VM groups, and desktop groups
on FusionAccess, and quickly provision desktops (full copy desktops and linked clone
desktops). After the desktops are provisioned, log in to the desktops through the SC.

2.1.2 Objective
⚫ Understand the functions of the vAG and vLB.
⚫ Understand the differences between linked clone and full copy.
⚫ Understand the desktop group types, including dedicated, static, and dynamic pools.
⚫ Learn how to create a login user.
⚫ Master the encapsulation of linked clone and full copy templates.
⚫ Master desktop group operations.
⚫ Master VM naming rules.
⚫ Master VM group operations.
⚫ Quick provisioning operations.
⚫ Learn how to log in to the SC.

2.1.3 Experiment Procedure

Figure 2-1 Experiment Flowchart


HCIA-Cloud Computing V5.5 Lab Guide Page 87

2.2 Experiment Task Configuration


2.2.1 Creating a VM Template
2.2.1.1 Creating an bare VM
Step 1 Log in to FusionCompute and click Create VM on the homepage.

Figure 2-2 Creating a VM


Step 2 On the Create VM page, select Create VM for Select Type and click Next.

Figure 2-3 Select Creation Type


Step 3 On the Basic Infromation page, set parameters such as Name as required. In this
experiment, set Name to Win10 desktop temp, Set Compute Resource to
mycluster, OS Type to Windows, and OS Version to Windows 10 Professional
64bit. Click Next.
HCIA-Cloud Computing V5.5 Lab Guide Page 88

Figure 2-4 Setting basic parameters


Step 4 On the DataStore page, select the IP-SAN data store and click Next.

Description:
Select any available data store resource for the VM.

Figure 2-5 Select Data Store


HCIA-Cloud Computing V5.5 Lab Guide Page 89

Step 5 On the Configure VM page, set VM Hardware and Options as planned, and click
Next.
⚫ CPU: At least 4 CPUs are recommended.
⚫ Memory: At least 4 GB
⚫ Disk 1: At least 40 GB. Set Disk Configuration Mode to Thin Provisioning.
⚫ NIC 1: Select a service port group.

Description:
If the system displays a message indicating that the CPU cannot be adjusted when the CPU
cores are adjusted to 4 cores, change the Number of Cores per Socket to 2.

Figure 2-6 Configuring the CPU


HCIA-Cloud Computing V5.5 Lab Guide Page 90

Figure 2-7 Configuring the disk configuration mode

Figure 2-8 Configuring the NIC


Step 6 On the Confirm Info page, select Start VM immediately after creation and click
OK. The VM Summary page is displayed.
HCIA-Cloud Computing V5.5 Lab Guide Page 91

Figure 2-9 Confirming information


You can view the creation progress in Recent Tasks and wait until the VM status changes
to Running.

Figure 2-10 Confirm that the bare VM is created successfully

2.2.1.2 Installing the VM System


Step 1 Log in to FusionCompute. On the Resource Pool page, select the created bare VM,
choose Configuration > Hardware > CD/DVD-ROM Drive, select Mount Local
CD/DVD-ROM Drive, and click OK.
HCIA-Cloud Computing V5.5 Lab Guide Page 92

Figure 2-11 Mounting the CD-ROM drive


Step 2 On the CD/DVD-ROM Management page, in Image file, click Browse, select the
OS ISO image file stored on the local computer, select Restart the VM now to
install the OS, and click OK.

Figure 2-12 Selecting an ISO File


HCIA-Cloud Computing V5.5 Lab Guide Page 93

Step 3 After the CD/DVD-ROM drive is mounted successfully, click OK in the dialog box
that is displayed. (Do not close or refresh this page when the CD-ROM drive is
mounted locally.)

Figure 2-13 Confirm mounting


Step 4 Return to the VM page and click Log In Using VNC.
HCIA-Cloud Computing V5.5 Lab Guide Page 94

Figure 2-14 VNC login


Step 5 On the VM page, install the VM OS as prompted. (Pay attention to the OS version
and the driver file selection of the floppy drive.)

Step 6 On the CD/DVD-ROM Management page, click Unmount CD/DVD-ROM Drive.


HCIA-Cloud Computing V5.5 Lab Guide Page 95

Figure 2-15 Unmounting the CD-ROM drive


Step 7 After the CD/DVD-ROM drive is detached, click OK in the dialog box that is
displayed.

Figure 2-16 Confirm the uninstallation

Step 8 On the VM, right-click in the lower left corner, enter compmgmt.msc in the
Run text box, and press Enter. The Computer Management window is displayed.
HCIA-Cloud Computing V5.5 Lab Guide Page 96

Figure 2-17 Open the Computer Management window


Step 9 In the navigation tree on the left of the Computer Management window, choose
Computer Management (Local) > System Tools > Local Users and Groups, and
select Users. In the right pane, right-click Administrator and choose Properties.

Figure 2-18 Select "Properties"


Step 10 In the displayed Administrator Properties dialog box, on the General page,
deselect Account is disabled and click OK. The Administrator account is activated,
and its default password is empty.
HCIA-Cloud Computing V5.5 Lab Guide Page 97

Figure 2-19 Activating the Administrator Account


Step 11 Right-click Administrator and select Set Password.
HCIA-Cloud Computing V5.5 Lab Guide Page 98

Figure 2-20 Set Password


Step 12 In the displayed Set Password for Administrator dialog box, click Proceed.

Figure 2-21 Click "Proceed"


Step 13 Set the password for the Administrator account as required and click OK.

Note: It is recommended to set a password that is easy to remember to prevent


forgetting.

Figure 2-22 Setting the Administrator Account Password


Step 14 On the displayed Local User and Group dialog box, click OK.
HCIA-Cloud Computing V5.5 Lab Guide Page 99

Figure 2-23 Complete the password setting

Step 15 Right-click in the lower left corner and choose Shut down or sign out > Sign
out to log out of the operating system.

Figure 2-24 Select Log Out


Step 16 Log in to the VM OS as user Administrator.
HCIA-Cloud Computing V5.5 Lab Guide Page 100

Figure 2-25 Administrator login

Step 17 On the VM, right-click , enter sysdm.cpl in the Run text box, and press Enter.

Figure 2-26 Open the System Properties window


Step 18 In the displayed System Properties window, click the Advanced tab. In the User
Profile area, click Settings.
HCIA-Cloud Computing V5.5 Lab Guide Page 101

Figure 2-27 User Profile Settings


Step 19 On the User Profile page, select the user name to be deleted and click Delete.
HCIA-Cloud Computing V5.5 Lab Guide Page 102

Figure 2-28 Delete Configuration File


Step 20 In the displayed Confirm dialog box, confirm the user to be deleted and click Yes.

Figure 2-29 Confirming the deletion of the configuration file

Step 21 On the VM, right-click , enter compmgmt.msc in the Run text box, and press
Enter.
HCIA-Cloud Computing V5.5 Lab Guide Page 103

Figure 2-30 Open the Computer Management window


Step 22 In the navigation tree, choose Local Users and Groups > Users. In the right pane,
right-click the user name to be deleted and choose Delete.

Figure 2-31 Deleting a Local User


Step 23 In the displayed Local Users and Groups dialog box, confirm the user to be deleted
and click Yes.
HCIA-Cloud Computing V5.5 Lab Guide Page 104

Figure 2-32 Are you sure you want to delete the user - 1
In the displayed dialog box, click OK.

Figure 2-33 Are you sure you want to delete the user - 2
HCIA-Cloud Computing V5.5 Lab Guide Page 105

2.2.1.3 Configuring the VM OS


Step 1 Log in to the FusionCompute, right-click the VM on which the OS has been installed
under Resource Pool, and click Tools. In the displayed list, click Mount Tools.

Figure 2-34 Mount Tools - 1


Step 2 In the displayed Information dialog box, click OK.

Figure 2-35 Mounting Tools - 2


Step 3 Go to the VM CD-ROM directory, right-click Setup, and choose Run as
administrator. Install the software as prompted by the default settings.
HCIA-Cloud Computing V5.5 Lab Guide Page 106

Figure 2-36 VM CD-ROM directory

Figure 2-37 Run Setup


HCIA-Cloud Computing V5.5 Lab Guide Page 107

Figure 2-38 Start the installation


Step 4 After the software is installed, restart the VM as prompted.

Figure 2-39 Restart


HCIA-Cloud Computing V5.5 Lab Guide Page 108

Step 5 After the restart is complete, log in to the VM as the Administrator user.

Step 6 On the FusionCompute, right-click the VM on which the OS has been installed in
Resource Pools and click Tools. In the displayed list, click Unmount Tools.

Figure 2-40 Uninstalling Tools-1


Step 7 In the displayed dialog box, click OK.
HCIA-Cloud Computing V5.5 Lab Guide Page 109

Figure 2-41 Uninstalling Tools-2


Step 8 (Optional) Enable the remote service connection. In the VNC window of the VM,
click and select Run.

Figure 2-42 Open Run


Step 9 In the Run dialog box, enter sysdm.cpl and click OK. The System Properties dialog
box is displayed.

Figure 2-43 Open System Properties


Step 10 On the Remote page, select Allow remote connections to this computer and click
OK.
HCIA-Cloud Computing V5.5 Lab Guide Page 110

Figure 2-44 Allow remote connections

Step 11 Set Remote Desktop Services. Right-click and choose Run from the shortcut
menu.

Step 12 Enter services.msc in the Run text box and click OK. The Services window is
displayed.

Figure 2-45 Open the Services window


Step 13 In the list, right-click Remote Desktop Services. In the displayed list, click
Properties.
HCIA-Cloud Computing V5.5 Lab Guide Page 111

Figure 2-46 Open Properties


Step 14 On the General page of the Remote Desktop Services Properties (Local
Computer) dialog box, set Startup type to Automatic and click OK.
HCIA-Cloud Computing V5.5 Lab Guide Page 112

Figure 2-47 Set Startup Type

Step 15 Modify the group policy. Right-click and choose Run.

Step 16 In the Run text box, enter gpedit.msc and click OK. The Local Group Policy Editor
window is displayed.

Figure 2-48 Open the Local Group Policy Editor


Step 17 In the Local Group Policy Editor window, choose Computer Configuration >
Administrative Templates > System in the navigation tree on the left. Double-click
HCIA-Cloud Computing V5.5 Lab Guide Page 113

Activate Shutdown Event Tracker System State Data and Display Shutdown
Event Tracker, respectively, to set their status to Disabled.

Figure 2-49 Modifying a Group Policy


Step 18 In the Local Group Policy Editor window, choose Computer Configuration >
Administrative Templates > Windows Components > Remote Desktop
Services > Remote Desktop Session Host > Security, and set Require use of
specific security layers for remote (RDP) connections to Enabled. Set the
security layer to RDP.
HCIA-Cloud Computing V5.5 Lab Guide Page 114

Figure 2-50 Open the "Security Layer"


HCIA-Cloud Computing V5.5 Lab Guide Page 115

Figure 2-51 Set the "Security Layer"


Step 19 Change Require user authentication for remote connections by using Network
Level Authentication to Disabled.
HCIA-Cloud Computing V5.5 Lab Guide Page 116

Figure 2-52 Turn on Authentication


In the displayed dialog box, select Disabled and click OK.
HCIA-Cloud Computing V5.5 Lab Guide Page 117

Figure 2-53 Set Authentication

Step 20 Configure the local security policy. In the VNC window of the VM, right-click
and choose Run.

Step 21 In the Run text box, enter secpol.msc and click OK.

Figure 2-54 Open Local Security Policy


HCIA-Cloud Computing V5.5 Lab Guide Page 118

Step 22 In the navigation tree on the left, expand Local Policies > Security Options, and
double-click User Account Control: Admin Approval Mode for Built-in
Administrator Account. In the displayed window, select Disabled and click OK.

Figure 2-55 Disable User Account Control


Step 23 On the FusionCompute, locate the preceding VM and click Stop.
HCIA-Cloud Computing V5.5 Lab Guide Page 119

Figure 2-56 Shutting Down the Virtual Machine - 1


Step 24 In the displayed Information dialog box, click OK to stop the VM.

Figure 2-57 Shutting down the VM - 2


Step 25 Right-click the VM that has just been stopped, choose Template and click Convert
to Template.

Figure 2-58 Convert to Template - 1


Step 26 In the displayed Information dialog box, click OK.
HCIA-Cloud Computing V5.5 Lab Guide Page 120

Figure 2-59 Convert to Template - 2

2.2.1.4 Creating a Full Copy VM Template


Step 1 In the navigation pane on the left of the FusionCompute, choose VM Template,
find the created template Win10 desktop temp, and click Deploy VM Using
Template.

Figure 2-60 Deploying VMs by Template


Step 2 In the Create VM dialog box, set parameters on the Basic Configuration page as
required. In this experiment, change Name to FullCopy temp and click Next.
HCIA-Cloud Computing V5.5 Lab Guide Page 121

Figure 2-61 Basic Configuration


Step 3 On the Configure VM page, retain the default values. You can also modify the
specifications of the full copy VM specifications as planned (the disk specifications
cannot be adjusted). Click Next.

Figure 2-62 VM Configuration


HCIA-Cloud Computing V5.5 Lab Guide Page 122

Step 4 On the Customize OS page, select Do not customize and deselect Generate initial
Password. Click Next.

Figure 2-63 Customizing the Guest Operating System


Step 5 On the Confirm Info tab page, select Start VM immediately after creation and
click OK.
HCIA-Cloud Computing V5.5 Lab Guide Page 123

Figure 2-64 Confirming information


Step 6 In the navigation tree on the left of the FusionCompute, click the created VM,
choose Configuration > Hardware > CD/DVD-ROM Drive, set Mount CD/DVD-
ROM Drive Type to Mount Local CD/DVD-ROM Drive, and click OK.

Figure 2-65 Mounting the CD-ROM drive


Step 7 In the displayed window, select Image file, click Browse, select the local template
tool image FusionAccess_WindowsDesktop_Installer_8.0.2.iso, deselect Restart the
VM now to install the OS, and click OK.
HCIA-Cloud Computing V5.5 Lab Guide Page 124

Figure 2-66 Selecting an ISO File


Step 8 When the Information dialog box is displayed, click OK.
HCIA-Cloud Computing V5.5 Lab Guide Page 125

Figure 2-67 Mounting the CD-ROM drive


Step 9 On the FullyCopy temp page, click Log In Using VNC to log in to the VM as the
Administrator user.

Figure 2-68 VNC Login


HCIA-Cloud Computing V5.5 Lab Guide Page 126

Step 10 On the VM, right-click CD Drive and select Open.

Figure 2-69 Open the CD drive


Step 11 Double-click run.bat.
HCIA-Cloud Computing V5.5 Lab Guide Page 127

Figure 2-70 Double-click run.bat


Step 12 In the FusionAccess Windows Installer window, click Create Template. The page
for creating a template is displayed.
HCIA-Cloud Computing V5.5 Lab Guide Page 128

Figure 2-71 The page for creating a template is displayed


Step 13 In this experiment, set Select a virtualization environment to
FusionSphere(FusionCompute) in the Environment step and click Next.
HCIA-Cloud Computing V5.5 Lab Guide Page 129

Figure 2-72 Process for Creating a Full Copy Template - 1


Step 14 Select Full Copy and click Next.
HCIA-Cloud Computing V5.5 Lab Guide Page 130

Figure 2-73 Process for Creating a Full Copy Template - 2


Step 15 In the Core Component step, set Select a Huawei Desktop Agent (HDA) Type to
Common and click Next.

Figure 2-74 Process for Creating a Full Copy Template - 3


Step 16 Set Location of the Huawei desktop controller (HDC) to Automatic and click
Next.
HCIA-Cloud Computing V5.5 Lab Guide Page 131

Figure 2-75 Process for Creating a Full Copy Template - 4


Step 17 By default, Optimize function is selected and click Next.
HCIA-Cloud Computing V5.5 Lab Guide Page 132

Figure 2-76 Process for Creating a Full Copy Template - 5


Step 18 You do not need to configure the domain for the full copy. Click Next.

Figure 2-77 Process for Creating a Full Copy Template - 6


Step 19 Set Configure firewall rules to Automatic and click Next.
HCIA-Cloud Computing V5.5 Lab Guide Page 133

Figure 2-78 Process for Creating a Full Copy Template - 7


Step 20 Confirm that the Summary is correct and click Install.
HCIA-Cloud Computing V5.5 Lab Guide Page 134

Figure 2-79 Process for Creating a Full Copy Template - 8


Step 21 In the Installation step. When installing the core component HDA, a dialog box is
displayed. Click OK. The system automatically restarts. After the restart, log in to
the system as the Administrator user.

Figure 2-80 Process for Creating a Full Copy Template - 9


HCIA-Cloud Computing V5.5 Lab Guide Page 135

Figure 2-81 Process for Creating a Full Copy Template - 10


Step 22 After the login is complete, the installation page is displayed. After the installation
is complete, click Next.
HCIA-Cloud Computing V5.5 Lab Guide Page 136

Figure 2-82 Process for Creating a Full Copy Template - 11

Figure 2-83 Process for Creating a Full Copy Template - 12


HCIA-Cloud Computing V5.5 Lab Guide Page 137

Step 23 Click Sysprep. After the encapsulation is complete, click Finish.

Figure 2-84 Process for Creating a Full Copy Template - 13


HCIA-Cloud Computing V5.5 Lab Guide Page 138

Figure 2-85 Process for Creating a Full Copy Template - 14

Figure 2-86 Process for Creating a Full Copy Template - 15


Step 24 Click Unmount the CD/DVD-ROM drive. In the displayed Information dialog box,
click OK.

Figure 2-87 Unmounting the CD-ROM drive - 1


HCIA-Cloud Computing V5.5 Lab Guide Page 139

Figure 2-88 Unmounting the CD drive - 2


Step 25 On the VM page, click Stop. In the displayed Information dialog box, click OK to
stop the VM.

Figure 2-89 Shutting down the VM - 1

Figure 2-90 Shutting down the VM - 2


Step 26 On the FusionCompute, right-click the VM FullCopy temp that has just been
stopped. In the displayed list, choose Template and click Convert to Template. In
the displayed Information dialog box, click OK.
HCIA-Cloud Computing V5.5 Lab Guide Page 140

Figure 2-91 Convert to Template - 1

Figure 2-92 Convert to Template - 2


Step 27 Configure a full copy template. Log in to FusionAccess and choose System >
System Configuration > Virtual Environment. The Virtual Environment page is
displayed.
HCIA-Cloud Computing V5.5 Lab Guide Page 141

Figure 2-93 The Virtual Environment page is display


Step 28 Select FusionCompute, select Operation, and click Template.

Figure 2-94 Configuring a Full Copy Template - 1


Step 29 In the dialog box that is displayed, locate the row that contains the template that is
successfully converted, and select the Service Type and Type based on the actual
application scenario. In this experiment, select the VM template FullCopy temp, set
Service Type to VDI, and set Type to Full Copy, and click OK.

Figure 2-95 Configuring a Full Copy Template - 2


HCIA-Cloud Computing V5.5 Lab Guide Page 142

In the dialog box indicating that the operation is successful, click OK.

Figure 2-96 Configuring a Full Copy Template - 3

2.2.1.5 Creating a Linked Clone VM Template


Step 1 In the navigation pane on the left of the FusionCompute, choose VM Template,
find the created template Win10 desktop temp, and click Deploy VM Using
Template.

Figure 2-97 Deploying VMs by Template


Step 2 On the displayed Create VM page, set parameters on the Basic Information page
as required. In this experiment, change Name to LinkedClone temp and click Next.
HCIA-Cloud Computing V5.5 Lab Guide Page 143

Figure 2-98 Basic Configuration


Step 3 In the Configure VM step, retain the default values. You can also modify the
specifications of the full copy VM as planned (disk specifications cannot be
adjusted), and click Next.

Figure 2-99 VM Configuration


HCIA-Cloud Computing V5.5 Lab Guide Page 144

Step 4 On the Customize OS page, select Do not customize, deselect Generate initial
Password, and click Next.

Figure 2-100 Customizing the Guest Operating System


Step 5 On the Confirm Info page, select Start VM immediately after creation and click
OK.
HCIA-Cloud Computing V5.5 Lab Guide Page 145

Figure 2-101 Confirming information


Step 6 In the navigation tree on the left of the FusionCompute, click the created VM,
choose Configuration > Hardware > CD/DVD-ROM Drive, set Mount CD/DVD-
ROM Drive Type to Mount Local CD/DVD-ROM Drive, and click OK.

Figure 2-102 Mounting the CD-ROM drive


Step 7 In the displayed CD/DVD-ROM Management window, select Image file, click
Browse, select the local template tool image
FusionAccess_WindowsDesktop_Installer_8.0.2.iso, deselect Restart the VM now
to install the OS, and click OK.
HCIA-Cloud Computing V5.5 Lab Guide Page 146

Figure 2-103 Selecting an ISO File


Step 8 When the Information dialog box is displayed, click OK.
HCIA-Cloud Computing V5.5 Lab Guide Page 147

Figure 2-104 Mounting the CD-ROM drive


Step 9 On the LinkedClone temp page, click VNC Login to Log In Using VNC and log in
to the VM as the Administrator user.

Figure 2-105 VNC Login


Step 10 On the VM, right-click CD Drive and choose Open.
HCIA-Cloud Computing V5.5 Lab Guide Page 148

Figure 2-106 Open the CD drive


Step 11 Double-click run.bat.
HCIA-Cloud Computing V5.5 Lab Guide Page 149

Figure 2-107 Double-click run.bat


Step 12 In the FusionAccess Windows Installer window, click Create Template. The page
for template creation is displayed.
HCIA-Cloud Computing V5.5 Lab Guide Page 150

Figure 2-108 The page for creating a template is displayed


Step 13 In this experiment, select FusionSphere(FusionCompute) for the Select a
virtualization environment and click Next.
HCIA-Cloud Computing V5.5 Lab Guide Page 151

Figure 2-109 Process for Creating a Linked Clone Template (1)


Step 14 Select Linked Clone and click Next.
HCIA-Cloud Computing V5.5 Lab Guide Page 152

Figure 2-110 Process for Creating a Linked Clone Template - 2


Step 15 Set Select a Huawei Desktop Agent (HDA) Type to Common and click Next.

Figure 2-111 Process for Creating a Linked Clone Template - 3


Step 16 In the HDC step, set Location of the Huawei desktop controller (HDC) to
Automatic and click Next.
HCIA-Cloud Computing V5.5 Lab Guide Page 153

Figure 2-112 Process for Creating a Linked Clone Template - 4


Step 17 By default, Optimize Function and Configure User Login are selected and click
Next.
HCIA-Cloud Computing V5.5 Lab Guide Page 154

Figure 2-113 Process for Creating a Linked Clone Template - 5


Step 18 On the Domain Configuration page, enter the following information and click
Next.

Description:
⚫ Domain: specifies the domain to which the VM is added, for example,
vdesktop.huawei.com.
⚫ Account: domain account with the permission to add a domain.
⚫ Password: indicates the password of the domain account that has the permission to
add to the domain.
⚫ OU: OU created on the AD server, for example, UserOU.
⚫ Domain User (Group): Domain user (group) created on the AD server. You are
advised to enter the security group name, for example, UserGroup. (The domain
user group must be created in UserOU of the active AD VM in advance.)
⚫ Local user group: VM users can be added to the Users group only when Configure
User Login is selected on the Function page. In addition, users in the Users group do
not have the VM administrator rights and their operations are restricted. For
example, users cannot store files on the system disk.
HCIA-Cloud Computing V5.5 Lab Guide Page 155

Figure 2-114 Process for Creating a Linked Clone Template - 6


Step 19 Set Configure firewall rules to Automatic and click Next.
HCIA-Cloud Computing V5.5 Lab Guide Page 156

Figure 2-115 Process for Creating a Linked Clone Template - 7


Step 20 Confirm the Summary and click Install.

Figure 2-116 Process for Creating a Linked Clone Template - 8


Step 21 In the Installation step. When installing the core component HDA, a dialog box is
displayed. Click OK. The system automatically restarts. After the restart, log in to
the system as the Administrator user.
HCIA-Cloud Computing V5.5 Lab Guide Page 157

Figure 2-117 Process for Creating a Linked Clone Template - 9

Figure 2-118 Process for Creating a Linked Clone Template - 10


HCIA-Cloud Computing V5.5 Lab Guide Page 158

Step 22 After the login is complete, the installation page is displayed. After the installation
is complete, click Next.

Figure 2-119 Process for Creating a Linked Clone Template - 11


HCIA-Cloud Computing V5.5 Lab Guide Page 159

Figure 2-120 Process for Creating a Linked Clone Template - 12


Step 23 On the Install Finish page, click Finish.
HCIA-Cloud Computing V5.5 Lab Guide Page 160

Figure 2-121 Process for Creating a Linked Clone Template - 13


Step 24 Click Unmount the CD/DVD-ROM drive. In the displayed Information dialog box,
click OK.

Figure 2-122 Unmounting the CD-ROM drive - 1


HCIA-Cloud Computing V5.5 Lab Guide Page 161

Figure 2-123 Unmounting the optical drive - 2


Step 25 On the VM page, click Stop. In the displayed Information dialog box, click OK to
stop the VM.

Figure 2-124 Shutting Down the Virtual Machine - 1


HCIA-Cloud Computing V5.5 Lab Guide Page 162

Figure 2-125 Shutting down the VM - 2


Step 26 On the FusionCompute, right-click LinkedClone temp, and choose Template. In
the displayed list, click Convert to Template. In the displayed Information dialog
box, click OK. The VM (linked clone) template is created.

Figure 2-126 Convert to Template - 1


HCIA-Cloud Computing V5.5 Lab Guide Page 163

Figure 2-127 Convert to Template - 2


Step 27 Configure a linked clone template. Log in to FusionAccess and choose System >
System Configuration > Virtual Environment. The Virtual Environment page is
displayed.

Figure 2-128 The hypervisor page is displayed


Step 28 Select FusionCompute, select Operation, and click Template.

Figure 2-129 Configuring a Linked Clone Template (1)


Step 29 In the dialog box that is displayed, locate the row that contains the template that is
successfully converted, and select the Service Type and Type based on the actual
HCIA-Cloud Computing V5.5 Lab Guide Page 164

application scenario. In this experiment, select the VM template LinkedClone temp,


set Service Type to VDI, set Type to Linked Clone, and click OK.

Figure 2-130 Configuring a Linked Clone Template - 2


In the dialog box indicating that the operation is successful, click OK.

Figure 2-131 Configuring a Linked Clone Template - 3


HCIA-Cloud Computing V5.5 Lab Guide Page 165

2.2.2 Provisioning desktops


2.2.2.1 Creating Computer Groups
Step 1 Log in to FusionAccess and choose Resources > Desktops > Computer Groups.

Figure 2-132 Computer Groups page


Step 2 Click Create. The Create Computer Group dialog box is displayed.

Figure 2-133 Creating Computer Groups


Step 3 Set related parameters as required. In this experiment, enter FullCopy-VM-Group
in the Computer Group Name text box, select FusionCompute from the
Computer Source drop-down list box, and select Full Copy from the Computer
Type drop-down list box. indicates that only full copy computers can be added to
the computer group. Click OK.
HCIA-Cloud Computing V5.5 Lab Guide Page 166

Figure 2-134 Creating a Full Copy Computer Group - 1


Step 4 In the displayed dialog box, click OK.
HCIA-Cloud Computing V5.5 Lab Guide Page 167

Figure 2-135 Creating a Full Copy Computer Group - 2


In the displayed dialog box, click OK to return to the computer group list.

Figure 2-136 Creating a Full Copy Computer Group - 3


Step 5 On the Computer Groups page, click Create again.

Figure 2-137 Adding a Computer Group


Step 6 In the displayed Create Computer Group dialog box, set related parameters as
required. In this experiment, enter LinkedClone-VM-Group in the Computer Group
Name text box and select FusionCompute from the Computer Source drop-down
list box. Select Linked Clone from the Computer Type drop-down list and click OK.
HCIA-Cloud Computing V5.5 Lab Guide Page 168

Figure 2-138 Creating Linked Clone Computer Groups - 1


Step 7 In the displayed dialog box, click OK.

Figure 2-139 Creating Linked Clone Computer Groups - 2


In the displayed dialog box, click OK to return to the computer group list.
HCIA-Cloud Computing V5.5 Lab Guide Page 169

Figure 2-140 Creating Linked Clone Computer Groups - 3

2.2.2.2 Creating a Desktop Group


Step 1 On the FusionAccess page, choose Resources > Desktops > Desktop Groups.

Figure 2-141 Creating a Dedicated Desktop Group - 1


Step 2 Click Create. The Create Desktop Group dialog box is displayed.
HCIA-Cloud Computing V5.5 Lab Guide Page 170

Figure 2-142 Creating a Dedicated Desktop Group - 2


Step 3 In the displayed dialog box, set related parameters as required. In this experiment,
select HDC from the HDC drop-down list box. Set Name to FullCopy-Desktop, set
Desktop Group Type to Private, and Computer Type to Full Copy, and click OK.

Figure 2-143 Creating a Dedicated Desktop Group - 3


In the displayed dialog box, click OK.

Figure 2-144 Creating a Dedicated Desktop Group - 4


Step 4 In the displayed dialog box, click OK to return to the desktop group list.
HCIA-Cloud Computing V5.5 Lab Guide Page 171

Figure 2-145 Creating a Dedicated Desktop Group - 5


Step 5 On the Desktop Groups page, click Create.

Figure 2-146 Creating a Dynamic Pool Desktop Group - 1


Step 6 In the dialog box that is displayed, set related parameters as required. In this
experiment, select HDC from the HDC drop-down list. Set Name to LinkClone-
Desktop. Set Desktop Group Type to Dynamic Pool, Computer Type to Linked
Clone, retain the default values for other parameters, and click OK.
HCIA-Cloud Computing V5.5 Lab Guide Page 172

Figure 2-147 Creating a Dynamic Pool Desktop Group - 2


In the displayed dialog box, click OK.

Figure 2-148 Creating a Dynamic Pool Desktop Group - 3


Step 7 In the displayed dialog box, click OK to return to the desktop group list.
HCIA-Cloud Computing V5.5 Lab Guide Page 173

Figure 2-149 Creating a Dynamic Pool Desktop Group - 4

2.2.2.3 Provisioning a Full Copy Desktop


Step 1 On the FusionAccess home page, click Quick Provision.

Figure 2-150 Entering the Quick Provisioning - 1


The Quick Provision window is displayed.
HCIA-Cloud Computing V5.5 Lab Guide Page 174

Figure 2-151 Entering Quick Provisioning - 2


Step 2 Set related parameters as required. In this experiment, set Computer Group to
Existing Computer Group, set Computer Group Name to FullCopy-VM-Group,
and retain the default values for Site, Cluster, and Host. You do not need to set
Host. Select FullCopy temp for Configure Template.
HCIA-Cloud Computing V5.5 Lab Guide Page 175

Figure 2-152 Full copy desktop provisioning - 1


Step 3 After the template is selected, the CPU, Memory, Disk, and NIC information is
automatically displayed. Retain the default values for CPU and Memory, or modify
the values as required.

Figure 2-153 Full copy desktop provisioning - 2


Step 4 In the Data Store area of System Disk, click Add. In the displayed dialog box,
select the required data store. (Select autoDS_CNA01 as required. In this
experiment, select autoDS_CNA01 because the IP SAN storage space is limited.)
and click OK. Select Configuration Mode. The recommended value is Think
provisioning lazy zeroed.

Figure 2-154 Full Copy Desktop Provisioning - 3


HCIA-Cloud Computing V5.5 Lab Guide Page 176

Step 5 In the NIC area, click Select under Port Name. In the displayed dialog box, select a
service plane port group and click OK. Retain the default value for Security Group.
Set How IP Address Obtained to DHCP.

Figure 2-155 Full copy desktop provisioning - 4


Step 6 Retain the default value for Domain Name and set the number of computers to be
provisioned in the Number of Computers text box. In this experiment, retain 1.

Figure 2-156 Full Copy Desktop Quick Provisioning - 5


Step 7 In the Name area, configure the Naming Rules for the computer. Click Configure
Naming Rule. On the page that is displayed, create a naming rule as required and
click OK.

Figure 2-157 Configuring Naming Rules


HCIA-Cloud Computing V5.5 Lab Guide Page 177

Figure 2-158 Adding a naming rule


Set Rule Name to FullCopy, Contain Domain Account to No, Name Prefix to FCopy,
Number of Digits to 3, and Start Value to 1.

Figure 2-159 VM naming rule information


Step 8 In the Name area, select the Naming Rule FullCopy configured in the previous
step.

Figure 2-160 Select Naming Rule


Step 9 Click Advanced. On the displayed page, click Configure OU. On the page that is
displayed, click Add. On the page that is displayed, enter the OU name VMOU. On
the page that is displayed, select VMOU.
HCIA-Cloud Computing V5.5 Lab Guide Page 178

Figure 2-161 Select VMOU


Step 10 Click Next and select HDC from the HDC drop-down list box. HDC is the HDC
information configured by choosing System > System Configuration > Desktop
Components > HDC.

Figure 2-162 Select HDC


Step 11 Configure the desktop group to which the computer to be provisioned belongs.
Select Existing Desktop Group, select the desktop group FullCopy-Desktop that
has been configured on the Resources > Desktops > Desktop Groups page, and
set Desktop Group Type to Private.

Figure 2-163 Select Existing desktop group.


Step 12 Set Assignment Type to Assign a Computer to a User.

Figure 2-164 Select Assignment Type


Step 13 In the Add User (Group) area, click Add. (or manually enter the domain user
created in the AD VM according to the rule. Create a domain user in UserOU of the
active AD VM in advance. In this experiment, vdsuser is used as an example. Add
the domain user to the domain user group UserGroup) Configure the domain user
to which the computer is to be assigned. Select administrators from the Set User
Group drop-down list.
HCIA-Cloud Computing V5.5 Lab Guide Page 179

Figure 2-165 Adding a User or User Group


Step 14 Click Next. Check the configuration data of the computer to be provisioned. If the
configuration data is correct, click OK.

Figure 2-166 Check the configuration data of the computer to be


provisioned
You can click View the Progress to view the actual provisioning progress.
HCIA-Cloud Computing V5.5 Lab Guide Page 180

Figure 2-167 Confirm the release


The System Task Tracing page is displayed to view the real-time quick provisioning
progress.

Figure 2-168 Viewing the Quick Provisioning Progress - 1


It takes about 10 minutes for the full copy desktop to be provisioned.

Figure 2-169 Viewing the Quick Provisioning Progress - 2


HCIA-Cloud Computing V5.5 Lab Guide Page 181

Step 15 After the provisioning is complete, choose Resources > Desktops > Computer. The
provisioned full copy desktop VM is displayed.

Figure 2-170 View the provisioned full copy desktop

2.2.2.4 Provisioning Linked Clone Desktops


Step 1 On the FusionAccess home page, click Quick Provision.

Figure 2-171 Entering Quick Provisioning - 1


The Quick Provision window is displayed.

Figure 2-172 Entering Quick Provisioning - 2


HCIA-Cloud Computing V5.5 Lab Guide Page 182

Step 2 Set related parameters as required. In this experiment, set Computer Group to
Existing Computer Group, set Computer Group Name to LinkedClone-VM-
Group, and retain the default values for Site, Cluster, and Host. You do not need
to set Host. Select LinkedClone temp for Configure Template.

Figure 2-173 Linked Clone Desktop Provisioning - 1


Step 3 After the template is selected, the CPU, Memory, Disk, and NIC information is
automatically displayed. Retain the default values for CPU and Memory, or modify
the values as required.

Figure 2-174 Linked Clone Desktop Provisioning - 2


Step 4 In the Data Store area of System Disk, click Add. In the displayed dialog box,
select the required data store. (IP-SAN is optional in this lab.) and click OK. If you
select Configuration Mode, the value can only be Simplified.
HCIA-Cloud Computing V5.5 Lab Guide Page 183

Figure 2-175 Linked Clone Desktop Provisioning - 3


Step 5 In the NIC area, click Select under Port Name. In the dialog box that is displayed,
select a service plane port group and click OK. Retain the default value for Security
Group. Set How IP Address Obtained to DHCP.

Figure 2-176 Linked Clone Desktop Provisioning - 4


Step 6 Retain the default value for Domain Name and set the number of computers to be
provisioned in the Number of Computers text box. In this experiment, retain 1.

Figure 2-177 Linked Clone Desktop Provisioning - 5


Step 7 In the Name area, configure the Naming Rule for the computer. Click Configure
Naming Rule. On the page that is displayed, add a naming rule as required and
click OK.

Figure 2-178 Configuring Naming Rules


HCIA-Cloud Computing V5.5 Lab Guide Page 184

Figure 2-179 Adding a naming rule


Set Rule Name to LinkedClone, Contain Domain Account to No, Name Prefix to LClone,
and Number of Digits to 3. Set Start Value to 1.
HCIA-Cloud Computing V5.5 Lab Guide Page 185

Figure 2-180 Modifying the naming rule


Select the naming rule configured in the previous step from the Naming Rule drop-down
list.

Figure 2-181 Select Naming Rule


Step 8 Click Advanced. On the page that is displayed, select VMOU.
HCIA-Cloud Computing V5.5 Lab Guide Page 186

Figure 2-182 Select VMOU


Step 9 Click Next and select HDC information from the HDC drop-down list box. HDC is
the HDC information configured by choosing System > System Configuration >
Desktop Components > HDC.

Figure 2-183 Select HDC


Step 10 Configure the desktop group to which the computer to be provisioned belongs.
Select Existing Desktop Group, select the desktop group LinkedClone-Desktop
that has been configured under Resources > Desktops > Desktop Groups, and set
Desktop Group Type to Dynamic Pool.

Figure 2-184 Select Existing desktop group


Step 11 In the Assigment area, click Add and configure the domain user to be assigned to
the computer.

Figure 2-185 Adding a User or User Group


Step 12 Click Next. Check the configuration data of the computer to be provisioned. If the
configuration data is correct, click OK.
HCIA-Cloud Computing V5.5 Lab Guide Page 187

Figure 2-186 Check the configuration data of the computer to be


provisioned
You can click View the Progress to view the actual provisioning progress.

Figure 2-187 Confirm the distribution


The System Task Tracing page is displayed. You can view the real-time quick provisioning
progress.
HCIA-Cloud Computing V5.5 Lab Guide Page 188

Figure 2-188 Viewing the Quick Provisioning Progress - 1


In this lab environment, the linked clone desktop takes about 3 minutes to complete
provisioning.

Figure 2-189 Viewing the Quick Provisioning Progress - 2


Step 13 After the provisioning is complete, choose Resources > Desktops > Computers. The
provisioned linked clone desktop VM is displayed.

Figure 2-190 View the provisioned linked clone desktop


Step 14 (Optional) View the VM creation process on the Task Center page of
FusionCompute.
HCIA-Cloud Computing V5.5 Lab Guide Page 189

Figure 2-191 Check the VM creation process on FusionCompute


Step 15 After the task is executed successfully, you can view the provisioned linked clone
VM on the FusionCompute page.

Figure 2-192 Linked clone VM provisioned

2.2.3 Logging In to the Desktop (by SC)


Step 1 Ping the IP address of the vAG server on the PC. If the ping fails, If the address
cannot be pinged, check the local IP address configuration of the test device (PC).
HCIA-Cloud Computing V5.5 Lab Guide Page 190

Figure 2-193 Test the connectivity between the locked-down server


and the vAG
Step 2 Enter the IP address of the vAG server (192.168.162.10 in this experiment) in the
browser of the PC, and press Enter.

Description:
When you log in to this address for the first time using a browser, the message "Your
connection is not private " will be displayed. Click Advanced > Continue to... The prompt
varies according to the browser. Select a value based on the actual situation.

Figure 2-194 Accept the risk and proceed


Step 3 On the login page, enter the domain user name and password, and click.
HCIA-Cloud Computing V5.5 Lab Guide Page 191

Figure 2-195 Login page (web version)


Step 4 After the login, you can view the cloud desktops owned by the domain user.

Figure 2-196 Virtual Desktop List (Web Edition)


Step 5 Due to the security settings of the browser, the browser blocks the pop-up window
when you directly log in to the web page and click the desktop. You can log out of
the system and click Download the Client at the bottom of the page to download
and install the cloud client.

Figure 2-197 Downloading the client


Step 6 Install the cloud client according to the default software settings, enter the vAG IP
address, and click Save and connect.
HCIA-Cloud Computing V5.5 Lab Guide Page 192

Figure 2-198 Configuring the vAG IP address


On the login page, enter the domain user name and password, and click.

Figure 2-199 Login page (client version)


Step 7 After the login is successful, the virtual desktop is automatically displayed.

Figure 2-200 Virtual desktop list (client edition)


Click Linked Clone-Desktop and wait until the loading is complete.
HCIA-Cloud Computing V5.5 Lab Guide Page 193

Figure 2-201 Logging In to the Linked Clone Workspace

2.3 Thinking questions


When a linked clone desktop is provisioned, can the configuration mode of the desktop
disk be set to common or common lazy zeroed? If not, why?
Reference answer: No. The configuration mode of a linked clone desktop disk must be thin
provisioning. Common part between multiple linked clone desktops (Common from the
source computer template, which is the system base) The storage space must be the same.
HCIA-Cloud Computing V5.5 Lab Guide Page 194

3 FusionAccess Desktop Cloud O&M and


Management Experiment

3.1 Experiment Introduction


3.1.1 About this Lab
This section describes how to perform operations in common desktop cloud O&M scenarios,
including virtual desktop service adjustment, user self-service maintenance, policy control,
system message sending, and user desktop reclaiming.

3.1.2 Objective
⚫ Master the process for modifying virtual desktop specifications.
⚫ Master the operation process of adding a virtual desktop user.
⚫ Master the process of adding virtual desktops.
⚫ Master the process of upgrading a common desktop to a VIP desktop.
⚫ Master the process of unassigning or restoring virtual desktop allocation.
⚫ Master the self-service maintenance process when a fault occurs.
⚫ Understand and master the policy management process of virtual desktops.
HCIA-Cloud Computing V5.5 Lab Guide Page 195

3.1.3 Experiment Procedure

Figure 3-1 Experiment Flowchart

3.2 Experiment Task Configuration


3.2.1 Policy management
3.2.1.1 File redirection
Set a file redirection policy and apply the policy to the vdsuser user. The local drive of the
client SC is redirected to the virtual desktop. The virtual desktop is read-only for the user.
That is, files can only be copied from the client SC disk to the virtual desktop.

Step 1 On the FusionAccess page, choose Resource > Policy > Protocol Policies and click
Create.
HCIA-Cloud Computing V5.5 Lab Guide Page 196

Figure 3-2 Creating a Policy Group


Step 2 On the Create Policy Group page, set Policy Group Name, set Creation Mode to
New Policy Group, and click Next. The page for customizing a policy is displayed.

Figure 3-3 Policy creation page


Step 3 On the Specify Policies page, click File&Clipboard. In the right pane, set File
Redirection to Read-only, enable Client Fixed Drive (such as local disk), and click
Next.
HCIA-Cloud Computing V5.5 Lab Guide Page 197

Figure 3-4 Customizing a Policy Page


Step 4 On the Specify Target page, set Object Type to User and Target Name to a
domain user. In this exercise, enter vdsuser. Click , select the target name in the
target name list, and add it to Already Chosen.
HCIA-Cloud Computing V5.5 Lab Guide Page 198

Figure 3-5 Policy To Settings Page


Step 5 Click Submit for the policy configuration to take effect. In the displayed Create
Policy Group dialog box, click Back.

Figure 3-6 The policy group is created successfully


The published policy group is displayed.
HCIA-Cloud Computing V5.5 Lab Guide Page 199

Figure 3-7 Policy group list page


Step 6 Log in to the cloud desktop as the vdsuser user (log in again). This experiment uses
the linked clone cloud desktop as an example. After logging in to the cloud desktop,
open This PC and check whether the disk drive of the local client is redirected to
the cloud desktop.

Figure 3-8 View Local Client Disk Drives


Step 7 Copy a random file from the client drive and paste it to the drive of the virtual
deskto. Check whether the operation is successful. (In this experiment, copy a small
file from the folder named copy on the client drive to the desktop of the cloud
desktop.)
HCIA-Cloud Computing V5.5 Lab Guide Page 200

Figure 3-9 File Replication - 1


After the copy is complete, you can view the target file on the cloud desktop.
HCIA-Cloud Computing V5.5 Lab Guide Page 201

Figure 3-10 File Replication - 2

Description:
Destination path of the file to be pasted:
⚫ If the desktop VM has only one system disk, select the folder named after domain
user or Public in the User folder of the system disk as the destination path.

Figure 3-11 Destination File Path


⚫ If the VM has at least two disks, you are advised to select a non-system disk as the
destination path.

Step 8 Copy a file from the cloud desktop to the client drive and check whether the
operation is disabled. (This experiment uses the file copied from the client drive to
the cloud desktop as an example.)
HCIA-Cloud Computing V5.5 Lab Guide Page 202

Figure 3-12 Check whether copy redirection is disabled

3.2.1.2 Clipboard redirection


Configure a clipboard redirection policy and apply the policy to the created user vdsuser.
Based on the policy, the client and virtual desktop clipboard content can be copied
bidirectionally. You can directly copy local files or folders on the client and paste the files
or folders on the virtual desktop.

Step 1 On FusionAccess, choose Resource > Policy > Protocol Policy. On the displayed
page, locate the row that contains Policy1, and click Edit in the Operation column.

Figure 3-13 Policy details page


HCIA-Cloud Computing V5.5 Lab Guide Page 203

Step 2 On the Edit Policy Group page, select Edit Existing Policy Group and click Next.

Figure 3-14 Edit Policy Group page


Step 3 On the Specify Policies page, click File&Clipboard. In the right, select the following
settings:
⚫ Set File Redirection to Read-Write.
⚫ Set the Client Fixed Drive (such as local disk) option to Enabled.
⚫ Set the Clipboard Redirection option to Bidirectional.
⚫ Set Clipboard Rich Text Redirection to Enabled.
⚫ Set Clipboard File Redirection to Enabled.
HCIA-Cloud Computing V5.5 Lab Guide Page 204

Figure 3-15 Customizing a Policy Page

Figure 3-16 Setting Clipboard Redirection


Step 4 Click Next. The Specify Target page is displayed. Retain the default settings and
click Submit.
HCIA-Cloud Computing V5.5 Lab Guide Page 205

Figure 3-17 Policy Application Object


In the dialog box that is displayed, click Back to return to the policy group list page.

Figure 3-18 Policy group edited successfully


Step 5 On the client, open a self-created document that contains text and pictures and
copy the document content.
HCIA-Cloud Computing V5.5 Lab Guide Page 206

Figure 3-19 Document that contains text and pictures


Step 6 Log in to the cloud desktop as the vdsuser user (log in again), open the WordPad,
and paste the copied content to the WordPad created on the virtual desktop. Check
whether the operation is successful.
HCIA-Cloud Computing V5.5 Lab Guide Page 207

Figure 3-20 To verify the function of redirecting clipboards

Description:
You can select any content.

Step 7 On the cloud desktop, create a WordPad that contains texts and images.
HCIA-Cloud Computing V5.5 Lab Guide Page 208

Figure 3-21 Wordpad with text and pictures


Step 8 Copy the content on the WordPad on the cloud desktop and paste it to the
WordPad created on the client. Check whether the operation is successful.

Figure 3-22 Verify that the operation is successful


HCIA-Cloud Computing V5.5 Lab Guide Page 209

3.2.1.3 Creating a Session Policy


Step 1 Enable Unified lock screen/unlock. (supported only by Windows and Linux
terminals, and applicable only to the "account+password" authentication mode)

Figure 3-23 Enable unified screen lock/unlock


Step 2 Enable the "Automatic Screen Lock". (Configure related parameters as required. In
this experiment, you can set related parameters to small values. After the policy
group is successfully edited, you can lock the screen for verification.)
HCIA-Cloud Computing V5.5 Lab Guide Page 210

Figure 3-24 Enable automatic screen lock


Step 3 Click Next. The Specify Target is displayed. You can configure the policy as
required. For this lab, click Submit.
HCIA-Cloud Computing V5.5 Lab Guide Page 211

Figure 3-25 Editing the object to which a policy applies


In the dialog box that is displayed, click Back to return to the policy group list page.

Figure 3-26 Policy group edited successfully

3.2.1.4 Set watermark


Step 1 On the FusionAccess page, choose Resource > Policies > Protocol Policies. On the
displayed page, locate the row that contains Policy1, and click Edit in the
Operation column.

Figure 3-27 Policy details page


Step 2 On the Edit Policy Group page, select Edit Existing Policy Group and click Next.
HCIA-Cloud Computing V5.5 Lab Guide Page 212

Figure 3-28 Edit Policy Group page


Step 3 Go to the Specify Policies page, click Watermark, enable Main Switch, and set
related parameters as required. (Only the Display Mode, Color, Opacity(%), Tilt,
and Custom content are set in this lab.)
HCIA-Cloud Computing V5.5 Lab Guide Page 213

Figure 3-29 Editing Watermark Policy Parameters


Step 4 Click Next. On the Specify Target page that is displayed, retain the default settings
and click Submit.
HCIA-Cloud Computing V5.5 Lab Guide Page 214

Figure 3-30 Policy Application Object


In the dialog box that is displayed, click Back to return to the policy group list page.

Figure 3-31 Policy group list page


Step 5 Log in to the cloud desktop as the vdsuser user (log in again). In this experiment,
you can log in to the full copy and linked clone cloud desktops to view the
watermark policy effect.

Figure 3-32 Verify the watermark policy

3.2.2 Service adjustment


3.2.2.1 Modifying Computer Specifications
This section describes how to modify VM information.
HCIA-Cloud Computing V5.5 Lab Guide Page 215

Step 1 On the FusionAccess page, choose Resources > Desktops > Computers.

Figure 3-33 Computer List Page


Step 2 In the computers list, select the computer to be modified and choose Operation >
Change > Modify Computer.

Figure 3-34 The Modify Computer page is displayed


Step 3 Modify the computer parameters as required. In this experiment, only the memory
of the computer is changed to 8192. (In this experiment, the memory hot add
function is enabled by default. If the number of CPUs needs to be changed, you are
advised to change the number of CPUs based on the compatibility of the operating
system installed on the cloud desktop and whether to manually enable the CPU hot
add function. You need to change the number on FusionCompute.) and click OK.

Description:
If the CPU and Memory specifications of a running computer are modified, restart the
computer for the modification to take effect. For computers in other states, the settings
take effect after the computer is started.
HCIA-Cloud Computing V5.5 Lab Guide Page 216

Figure 3-35 Modify Computer


In the displayed dialog box, click OK.
HCIA-Cloud Computing V5.5 Lab Guide Page 217

Figure 3-36 Confirm Modify Computer


Step 4 In the displayed dialog box, click OK to return to the computers list page. Click the
name of the computer to be modified. In the dialog box that is displayed on the
right, locate the specification information and view the result.

Figure 3-37 Computer information details page

3.2.2.2 Appending Computer Domain Users


Add a user to the computer whose Assignment Type is Assign a Computer to Multiple
Users.

Step 1 Provision a computer with Assignment Type set to Assign a Computer to


Multiple Users by referring to Provisioning Full Copy Desktops. (In this experiment,
HCIA-Cloud Computing V5.5 Lab Guide Page 218

only the assignment type needs to be set to Assign a Computer to Multiple Users.
Other configurations are the same as those in section "Provisioning a Full Copy
Desktop.")

Figure 3-38 Assign a Computer to Multiple Users


Step 2 After the provisioning is complete, choose Resources > Desktops > Computers >
Computers list on the FusionAccess page to view the provisioned cloud desktop.

Figure 3-39 Computer List


Step 3 In the computers list, select the computer to which users are to be added and the
Computers list is Assign a Computer to Multiple Users. Select Operation >
Assignment Relationships > Add User. The page for adding a user to computer is
displayed.
HCIA-Cloud Computing V5.5 Lab Guide Page 219

Figure 3-40 Select "Operations" - "Assignment Relationship" - "Add


User"

Description:
When the Assignment Type is Assign a Computer to Multiple Users.:
⚫ If user A has logged in to a VM, user B cannot log in to the VM.
⚫ If user A logs in to a VM and disconnects from the VM but does not log out of the
VM, user B can also log in to the VM, but user A is forcibly logged out during the
login.
⚫ To ensure all users in user group A can log in to the pool desktop that is assigned to
this group, all these users must directly belong to user group A.
⚫ For example, if user A belongs to department A and department A belongs to
department C, user A can directly log in to the pool desktop if it is assigned to
department A, but cannot log in to the pool desktop if it is assigned to department
C.

Step 4 In the Add User dialog box, (Create domain user vdsuser02 in the UserOU of the
active AD VM) enter [email protected] in the Add User dialog
box, select Administrators in the Set User Group drop-down list box, and click OK.
In the displayed dialog box, click OK.
HCIA-Cloud Computing V5.5 Lab Guide Page 220

Figure 3-41 Append User - 1


In the dialog box indicating that the operation is successful, click OK to return to the
computers list page.

Figure 3-42 Append User - 2


You can click the name of the computer to which the user has been added. On the displayed
computer details page, you can view that the user is added in the Assign area.
HCIA-Cloud Computing V5.5 Lab Guide Page 221

Figure 3-43 Append User - 3


Step 5 Enter the domain user name and password in the cloudclient text box and click .

Figure 3-44 Verifying Append Users - 1


Step 6 After the login, you can view that there is only one cloud desktop under the
appended user, and the preceding policies are not applied to the appended user.

Figure 3-45 Verifying Append Users - 2

3.2.2.3 Adding a VM (Full Copy as an Example)


Add a computer to a computer group and assign the computer to the desktop group.
HCIA-Cloud Computing V5.5 Lab Guide Page 222

Step 1 On the FusionAccess page, choose Resources > Desktops > Computer Groups. The
computer group management page is displayed.

Figure 3-46 Computer group management page


Step 2 On the right of the computer group to be added, select Operation and click Add
Computer.

Figure 3-47 Add Computer - 1


The Add Computer page is displayed.

Figure 3-48 Add Computer - 2


Step 3 Retain the default values for Site and Cluster. You do not need to set Host.
HCIA-Cloud Computing V5.5 Lab Guide Page 223

Figure 3-49 Adding a host - 3


Step 4 In the Configure Template area, click Select on the right, select a template, and
click OK. After the template is selected, the CPU and Memory information is
automatically displayed. You can also adjust the information as required. Click Add
and select a data store. The recommended configuration mode for this lab is Thick
provisioning lazy zeroed.

Figure 3-50 Adding a host - 4


Step 5 In the NIC area, click Configure. In the dialog box that is displayed, select the
service plane port group and click OK. Retain the default value for Security Group.
Set How IP Address Obtained to DHCP.

Figure 3-51 Adding a Host - 5


Step 6 Retain the default value for Domain Name and set Number of Computers as
required. In this experiment, retain the default value and click Next.
HCIA-Cloud Computing V5.5 Lab Guide Page 224

Figure 3-52 Adding a Host - 6


Step 7 In the displayed Confirm dialog box, check the configuration data of the computer
to be provisioned. If the configuration data is correct, click OK.

Figure 3-53 Adding a Host - 7


HCIA-Cloud Computing V5.5 Lab Guide Page 225

Figure 3-54 Adding a Host - 8


Step 8 After the VM is added, choose Task Center > Task Tracing to view the progress.

Figure 3-55 Viewing the Progress


Step 9 On the FusionAccess page, choose Resources > Desktops > Desktop Groups. The
desktop group management page is displayed.

Figure 3-56 Desktop group management page


Step 10 Select a desktop group in the list and click Assign Computer. The Assign
Computer page is displayed.
HCIA-Cloud Computing V5.5 Lab Guide Page 226

Figure 3-57 Click Assign VM


Step 11 Set Naming Rule to FullCopy, retain the default values for other parameters,
configure basic information about the desktop group, and click OK.

Figure 3-58 Configuring Basic Desktop Group Information


Step 12 In the displayed windows, click View the Progress to view the progress.
HCIA-Cloud Computing V5.5 Lab Guide Page 227

Figure 3-59 Successful assigning

Figure 3-60 Return to the desktop group list


Step 13 Return to the desktop group. You can see that the number of computers in the
FullCopy Desktop group changes from 2 to 3.

Figure 3-61 Desktop group list

3.2.2.4 Upgrading Common Desktops to VIP Desktops


In a common office scenario, all VMs request resources at the same priority. In specific
scenarios, some virtual desktops have higher priorities for resource supply. In this case, you
can upgrade these common desktops to VIP desktops so that users of these virtual desktops
can enjoy faster CPU and memory resource supply, real-time VM status monitoring, and
better experience. Administrators can flexibly upgrade common desktops to VIP desktops
as required.
HCIA-Cloud Computing V5.5 Lab Guide Page 228

Description:
⚫ Only assigned full copy and linked clone VMs can be upgraded to VIP desktops.
⚫ Retain default values for VIP desktop resource assurance and real-time monitoring
policies for all VIP users.
⚫ During the operation, the user VM will be shut down and restarted. The VM will be
available after it is restarted.

Step 1 On the FusionAccess page, choose Resources > Desktops > Computers. The
computers list page is displayed.

Figure 3-62 Computer Group Management page


Step 2 In the computers list, select one or more computers to be upgraded to VIP desktops,
and choose Operation > Set > Upgrade to VIP Desktop.

Figure 3-63 Upgrade to VIP Desktop


Step 3 In the Confirm dialog box, click OK. In the displayed dialog box, click OK.
HCIA-Cloud Computing V5.5 Lab Guide Page 229

Figure 3-64 Confirm Upgrade

Figure 3-65 Operation succeeded


Step 4 The computer automatically restarts. After the startup, the computer name is
displayed in yellow.

Figure 3-66 View Computer Name Color

3.2.2.5 Unassigning/Restoring Virtual Desktop Allocation


Unassign or restore the binding relationship between a VM and a user or user group. If the
Assignment Type is set to Assign a Computer to a Users or Assign a Computer to
Multiple Users, the VM will be automatically closed after being unassigned.

Description:
HCIA-Cloud Computing V5.5 Lab Guide Page 230

⚫ After a full copy VM with Assignment Type set to Assign a computer to a user is
unassigned, you can choose Operation > Assignment Relationship > Restore
Attachment to reassign the VM. However, only the original user can be assigned and
the user group rights remain unchanged. After the VM is unassigned, restore the VM
assignment. After the VM is started, the VM icon on the WI becomes bright. Wait for
3 minutes and log in to the VM.
⚫ After being unassigned, a full copy VM with Assignment Type set to Assign a
computer to multiple users cannot be reassigned.

Step 1 On the FusionAccess page, choose Resources > Desktops > Computers.

Figure 3-67 Computer Management page


Step 2 In the computers list, select one or more computers to be unassigned, and choose
Operation > Assignment Relationship > Detach. A dialog box is displayed.

Figure 3-68 Detach


Step 3 In the displayed confirmation dialog box, click OK.
HCIA-Cloud Computing V5.5 Lab Guide Page 231

Figure 3-69 Confirming the unassignment


Step 4 In the displayed Unassigned List page, click OK.

Figure 3-70 Deassignment List


Step 5 In the displayed Information dialog box, click OK.

Figure 3-71 Decide on unassignment


Step 6 Set the query conditions in the computers list to query one or more computers to
be unassigned. View the unassignment result in the computers list. If the value of
assignment status of the computer is Unassigned, the computer has been
unassigned.
HCIA-Cloud Computing V5.5 Lab Guide Page 232

Figure 3-72 Query the "Assignment Status" of the computer


Step 7 Select the computer whose assignment is to be restored and choose Operation >
Assignment Relationship > Restore Assignment.

Figure 3-73 Restore Attachment


Step 8 In the displayed confirmation dialog box, click OK.

Figure 3-74 Confirm Restore Assignment


Step 9 On the Restore Allocated List page, click OK.
HCIA-Cloud Computing V5.5 Lab Guide Page 233

Figure 3-75 Restore the allocation list


Step 10 In the displayed Information dialog box, click OK.

Figure 3-76 Determined


Step 11 Set query conditions in the computers list to query one or more computers that
have been Assigned. In the computers list, view the assignment restoration result. If
the assignment status of the computer is Assigned, the computer is restored
successfully.

Figure 3-77 "Assignment Status" of the computer


HCIA-Cloud Computing V5.5 Lab Guide Page 234

3.2.3 Viewing and handling routine alarm information


Step 1 Log in to the FusionAccess management system, choose Monitoring > Alarms >
System Alarms, and view and collect alarm information.

Figure 3-78 Alarm information


Step 2 Log in to the FusionAccess management system, choose Monitoring > Status
Monitoring, and view the current status of each FusionAccess component.

Figure 3-79 Current status of FusionAccess components


Step 3 Log in to the FusionAccess management system, choose Monitoring > VIP Desktop
Alarms, and view the alarm information about VIP desktops in the FusionAccess
system.
HCIA-Cloud Computing V5.5 Lab Guide Page 235

Figure 3-80 Alarm information about the VIP desktop


Step 4 Log in to the FusionAccess management system, choose Home > Computer Status
Statistics, and view the statistics on the computer status in the FusionAccess
system.

Figure 3-81 Statistics on the status of the computer used by the user
Step 5 Log in to the FusionAccess management system, choose Monitoring > Reports >
vAG Information, and view the gateway status in the FusionAccess system.
HCIA-Cloud Computing V5.5 Lab Guide Page 236

Figure 3-82 Status information about the gateway.

3.3 Thinking questions


In the process of adding computer users, what should be noted to ensure the success of
the addition?
Reference answer:
To ensure that the operation of adding a computer user can be successful, the requirements
are as follows:
1. The "assignment type" of the computer must be " Assign a computer to multiple users
";
2. The running status of the computer is Running.

You might also like