Virtual machine deployment method, virtual machine live migration method, VMM upgrading method and server

A virtual machine, an upgraded technology, applied in the computer field, can solve problems such as time-consuming and labor-consuming, complicated implementation process, and difficulty in resource reservation, and achieve the effect of saving time and resource costs

Pending Publication Date: 2021-06-25
ZTE CORP
View PDF0 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

But in reality, computing resources are usually allocated according to actual business, and in cloud computing server virtualization scenarios, some virtual machines for server use have tens or hundreds of GB of me

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Virtual machine deployment method, virtual machine live migration method, VMM upgrading method and server
  • Virtual machine deployment method, virtual machine live migration method, VMM upgrading method and server
  • Virtual machine deployment method, virtual machine live migration method, VMM upgrading method and server

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0132] Embodiment one

[0133] This embodiment runs on an x86 server, the CPU adopts Intel(R) Xeon(R) CPU E5-2640, and the EPT function has been enabled. The operating system runs the 2.6 version of the LINUX kernel, uses QEMU-KVM as the virtualized VMM (Hypervisor), and runs the Window 7 system virtual machine that business users are using on it.

[0134] The user's virtual machine runs normally on the QEMU before the upgrade. The GPA space used by the operating system (windows7) in the virtual machine before the upgrade and the HVA space of the QEMU process before the upgrade establish a mapping relationship through the kvm_memory_slot data structure maintained by the kernel KVM module, and The HVA space is mapped to the physical memory page of the GPA space through the multi-level page table maintained by the server LINUX kernel, including PTE.

[0135] Create an upgraded virtual machine through KVM on the upgraded QEMU, but do not allocate actual physical memory to the up...

Example Embodiment

[0157] Embodiment two

[0158] The purpose of this embodiment is to minimize the VCPU pause time during page table switching of the virtual machine, and the operating software and hardware environment and the state of the host machine and the virtual machine before the QEMU upgrade are the same as in the first embodiment. Only the steps of demapping the HPA space of the pre-upgrade virtual machine to the HVA space of the upgraded virtual machine are different.

[0159] Step S112e in the deployment method provided by the first aspect of the present disclosure is specifically executed as the following steps:

[0160] Put the VCPU of the upgraded virtual machine in the running state. Since no actual physical memory is allocated to the HVA space of the upgraded virtual machine, when a certain HVA address in the HVA space of the upgraded virtual machine is accessed, the kernel will generate a page fault. Break (no_page_fault).

[0161] In the deployment method provided by the fir...

Example Embodiment

[0173] Embodiment Three

[0174] In this embodiment, XEN is used as virtualization VMM (Hypervisor) software.

[0175] Create an upgraded virtual machine on the upgraded XEN hypervisor without applying for actual HVA memory, and the VCPU of the upgraded virtual machine will be in the suspended state.

[0176] Pause the execution of the VCPU of the virtual machine before the upgrade.

[0177] In the deployment method provided by the first aspect of the present disclosure, step S111 is specifically executed as the following steps:

[0178] Obtain the HVA space entry address of the virtual machine before the upgrade, and pass it into the server LINUX operating system kernel;

[0179] According to the starting address of the HVA and the VMA red-black tree, use the memory walk (page table traversal) mechanism provided by the kernel to traverse the multi-level page table corresponding to the old virtual machine HVA step by step. Taking the Linux kernel of the x86_64 architecture a...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a virtual machine deployment method, a virtual machine live migration method, a VMM upgrading method, a server and a computer readable storage medium. The deployment method comprises the following steps: according to a mapping relationship between a host machine virtual address HVA space of a virtual machine before upgrading and a host machine physical address HPA space of the virtual machine before upgrading, establishing mapping between the HVA space of the virtual machine after upgrading and the HPA space of the virtual machine before upgrading, deploying the upgraded virtual machine on an upgraded virtual machine monitor (VMM), wherein the memory configuration of the upgraded virtual machine is the same as the memory configuration of the pre-upgraded virtual machine running on the pre-upgraded VMM. On-line thermal migration from the virtual machine before upgrading to the virtual machine after upgrading can be achieved under the condition that a large number of computing resources do not need to be reserved, and then thermal replacement of the new version and the old version of the VMM software is completed. The deployment method and the live migration method are also suitable for virtual machine batch live migration.

Description

technical field [0001] The present disclosure relates to the field of computer technology, and in particular, to a virtual machine deployment method, a virtual machine live migration method, a VMM upgrade method, a server, and a computer-readable storage medium. Background technique [0002] A Virtual Machine Monitor (Virtual Machine Monitor, VMM) is a program that carries and monitors a virtual machine. In order to upgrade it to increase functions or repair program defects, it is necessary to migrate the virtual machine running on the VMM. In order not to affect or interrupt the operation of the business virtual machine during the migration, the prior art mainly implements online migration of the virtual machine combined with software cold patching. Specifically, it can be divided into two types: 1. Off-site migration, that is, first online live migration of the virtual machine of the server to be upgraded to another server, then upgrade the VMM by cold patching, and finall...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F9/455G06F8/65
CPCG06F9/45558G06F8/65G06F2009/4557G06F2009/45583G06F8/656G06F12/10
Inventor 张敏刘熠李翌
Owner ZTE CORP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products