0% found this document useful (0 votes)
42 views34 pages

Lifecycle Management of VM

Uploaded by

enrico rampazzo
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)
42 views34 pages

Lifecycle Management of VM

Uploaded by

enrico rampazzo
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/ 34

Lifecycle Management of VM

Confidential 保密 www.h3c.com 1
01 Introduction to VM

02 Creation of VM

1
03 Lifecycle management of VM

Confidential 保密 www.h3c.com 2
Lifecycle Management of VM
• Virtual machine (VM) is a complete system, it has CPU, memory, network equipment,
storage device and BIOS, so the operating system and application program running in the
virtual machine has no difference from running on the physical server.

VM1 VM2
MyVM.xml
……
…… Virtual Resources Virtual Resources
<name>MyVM</name>
<uuid>b94d9d04-4f automem>db-4702-
90fc-2da07c656137</uuid>
Cloud Virtualization kernel(CVK)
<domain type='kvm'>
<title>Y2VudG9zLTY3</title>
<osha>0</osha>
Physical server
<timesync>0</timesync>
<automem>0</
……

3 3
Lifecycle Management of VM

VM VM VM

DB web APP
DB
OS OS OS

OS

Hypervisor(VMM:Virtual Machine Monitor)

Physical Server Physical Server

Physical Server VM
• Hard to copy • Easy to move and copy
• Limited to a specific set of hardware components • Independent of physical hardware
• Low resource utilization • Easy to manage
• Need manual operation to upgrade the hardware • Isolated from other virtual machines

44 4
Lifecycle Management of VM

Template Modificat
ion

Cloning Deletion Creation Start

H3C
Migration
CAS Pause

CVM
Snapshot Power Reboot
Sleep
off
Shut
Backup
down

5 5
01 Introduction of VM

02 Creation of VM

1
03 Lifecycle management of VM

Confidential 保密 www.h3c.com 6
Creation of VM

7 7
Console of VM
 Released ports:
 8081,5900+
 Configure VNC proxy
Open the System > Parameters > System Parameters
console  Configure VNC password

Console interface

8 8
Setup of Operation System

9 9
01 Introduction of VM

02 Creation of VM

1
03 Lifecycle management of VM

Confidential 保密 10
www.h3c.com
Basic Operation of VM
Power-off operations may cause
the virtual machine operating Running
memory
system and application data to be
lost, use carefully
start sleep

Start Shut Paused


down disk

Power
off Resume

Sleep

Start

The data in the


memory remains
in the memory
Power
Sleep
off

shutdown paused

11 11
Deletion of VM
 After the VM is moved to the recycle bin, it can
be manually restored during the preservation
period, and will be automatically deleted after
the preservation period
 The image file (data storage file) of the VM can
be retained or deleted
 When data is completely destroyed, zero write
operation will be performed on the data storage
file
H3C CAS CVK
Configur Configur Configur
ation File ation File ation File
Image Image Image
File File File

Recycle Bin

12 12
Modification of VM
 Modify the configuration in
the Modify VM dialog box,
including:
 VM setting
 Add and delete hardware
 CPU, memory, disk,
network and other virtual
hardware modification,
boot device modification

13 13
Modification of CPU/Memory
 Addition vCPU online depends on
operating system type
 vCPUs number is limited to
physical CPUs
 Working mode includes
compatible mode, host matching
mode and straight-through mode

14 14
Modification of Disk
 Disk modification restrictions
 No snapshot
 Thin provision
 No multi-level image files
 Unable to reduce disk size
 Only supports online
addition and online
expansion of Virtio disks
 Type of provision includes
thin, eager zeroed, lazy
zeroed
 Can be modified offline

15 15
Modification of Network

 Support to change vswitch,


network profile, virtual firewall,
IP address
 Device Model:
 Common NIC
 High-Speed NIC
 Intel e1000 NIC

16 16
Add Hardware

Type of Hardware Adding Disk

Adding NIC

17 17
Add Storage
 Multiple bus type: IDE Hard Disk, USB Hard
Disk, High-Speed Hard Disk, IDE CD-ROM,
Floppy Disk, and High-Speed SCSI Hard Disk.
 Storage type: file or block device
 Following operations need to be done in the
operating system after adding a disk
 View usage of disk
 Partition the disk
 Format disk pratition
 Create disk partition directory mount point
 Mount the formatted disk partition

18 18
Add USB Hardware

 Copy data inside the OS of VM


 The dongle usually uses USB1.0

19 19
VM Template

 VM template is a copy of a VM, which is used to easily create and configure


multiple new VMs.
 It is composed of two parts: VM operating system image file and
configuration file

VM Template

Image File

Configuration
File

20 20
VM Template

Template
Convert to  Disconnect the optical drive,
Template
Image File
delete the floppy drive, etc.
Configuration  Install CAS Tools
File
Shutdown  Configure remote
connection and IP address,
install application software,
Original VM
retained
etc. according to business
Clone as
Template needs

Template
Shutdown
Running Image File

Configuration
File

21 21
Template of VM
Import Template

Modify CPU memory


storage information

22 22
Clone VM
 VM clone is an exact copy of the original VM, it’s another way to deploy VM
 It has the same operating system, application system and data as the original virtual
machine
 It will generate a new virtual network MAC and UUID
 The cloned VM and the original VM have the same IP address, and need to pay attention
to the problem of IP address conflicts
 The cloned VM can be in a running state or in a closed state

The original VM remains

running/shutdown Cloned VM

23 23
Migration of VM
 VM migration is to manually migrate the specified VM
to a different host and data storage
 Offline migration and online migration
 Online migration refers to the migration of VM in the
running state
 Offline migration refers to the migration of VM in the
closed state
 The migration includes changes to the host and storage
 Changing the host refers to migrating the VM to
another host Local
H3C CAS CVK
 Changing storage refers to migrating VM image files Storage

to other storage
 Changing the host and storage refers to migrating
the VM to another host, and at the same time Shared
Storage
migrating the VM image file to other storage on the
host

24 24
Migration of VM --Offline
VM #1 Changing Changing VM #1
host Storage

Shutdown Shutdown
Configuration File Configuration File
VM #1 VM #1
H3C CAS CVK#1 H3C CAS CVK#2 H3C CAS CVK
Image File
VM #1

Image File
VM #1

Shared Storage Shared Storage


The image file must be
stored in shared storage

25 25
Migration of VM --Online
VM #1 Changing host Changing VM #1
Storage

Running Running
Configuration File Configuration File
VM #1 VM #1
H3C CAS CVK#1 H3C CAS CVK#2 H3C CAS CVK
Memory Data Image File
VM #1 VM #1

Image
File
VM #1
Shared Storage Shared Storage
The image file must be
stored in shared storage

26 26
Online Migration
VM #1

Running
Configuration File
VM #1
H3C CAS CVK#1 H3C CAS CVK#2
Memory Data
VM #1
Management Network

Business Network
Storage Network

Image File
VM #1

Shared Storage#1

27 27
Online Migration
VM #1 VM #1

Running Paused
Configuration File
VM #1
H3C CAS CVK#1 H3C CAS CVK#2
Memory Data
VM #1
Management Network

Business Network
Storage Network

Image File
VM #1

Shared #1

28 28
Online Migration
VM #1

Running

Configuration File
VM #1
H3C CAS CVK#1 H3C CAS CVK#2
Memory Data
VM #1
Management Network

Business Network
Storage Network

Image File
VM #1

Shared Storage#1

29 29
Migration Host and Storage
VM #2 VM #1

Running Shutdown
Configuration File Configuration File
VM #2 VM #1
H3C CAS CVK#1 H3C CAS CVK#2
Memory data
VM #2

Image File Image File


VM #2 VM #1

Shared Storage#1 Shared Stortage#2

30 30
Migration Parameter
 Migration timeout period for online virtual machines need to be set. When the migration is not
completed within the migration timeout period, the system will suspend the original virtual
machine so that it can quickly complete the migration. After the migration is completed, the
virtual machine will be restored to the "running" state
 When the VM migrates to the host online, you can check the compression button to compress
the memory data that needs to be transferred, reducing the total amount of data transfer

31 31
Migration History

Migration history of VM

32 32
Summary

 Introduction to VM
 Creation of VM
 Lifecycle management of VM
Thanks!

H3C Technologies Co. Limited


www.h3c.com/en/

34 34

You might also like