CN113918284B - Method and device for cloud host batch migration, electronic equipment and storage medium - Google Patents

Method and device for cloud host batch migration, electronic equipment and storage medium Download PDF

Info

Publication number
CN113918284B
CN113918284B CN202111200722.8A CN202111200722A CN113918284B CN 113918284 B CN113918284 B CN 113918284B CN 202111200722 A CN202111200722 A CN 202111200722A CN 113918284 B CN113918284 B CN 113918284B
Authority
CN
China
Prior art keywords
cloud
virtual
hard disk
host
disk
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111200722.8A
Other languages
Chinese (zh)
Other versions
CN113918284A (en
Inventor
史顺波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jiangsu Anchao Cloud Software Co Ltd
Original Assignee
Jiangsu Anchao Cloud Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jiangsu Anchao Cloud Software Co Ltd filed Critical Jiangsu Anchao Cloud Software Co Ltd
Priority to CN202111200722.8A priority Critical patent/CN113918284B/en
Publication of CN113918284A publication Critical patent/CN113918284A/en
Application granted granted Critical
Publication of CN113918284B publication Critical patent/CN113918284B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5016Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/4557Distribution of virtual machine instances; Migration and load balancing

Abstract

The invention discloses a method and a device for cloud host batch migration, electronic equipment and a storage medium, wherein the method comprises the following steps: virtualizing essential functions of a source host on the source host through a V2V tool, and setting according to a corresponding system; and copying the data of the source host to a transit server of the cloud platform, and generating the cloud host. According to the method, the virtual essential function of the V2V source opening tool is directly executed on the source host before the data of the source host are copied, so that the virtual operation on the transfer server through the V2V source opening tool is not needed, and the large memory resource consumption caused by the virtual operation of the V2V source opening tool on the transfer server is avoided, so that a large number of cloud host migration tasks can be executed concurrently, and the migration efficiency under a large-batch cloud host migration scene is effectively improved.

Description

Method and device for cloud host batch migration, electronic equipment and storage medium
Technical Field
The present invention relates to the field of system migration, and in particular, to a method and an apparatus for batch migration of cloud hosts, an electronic device, and a storage medium.
Background
Traditional enterprise business IT infrastructure deploys on physical server, and along with the increase of business scale, physical server also can be more and more, and not only resource utilization is low, also is not convenient for maintain. With the development of virtualization platform technology, the trend of digital transformation and enterprise cloud is gradually becoming, and the problem can be solved to a greater extent by deploying the IT system in the virtual machine.
In the cloud-on-enterprise process, the existing system with the IT service application is directly and integrally migrated to the cloud platform, so that the method is a simple and effective mode for users, and the service system does not need to be redeployed.
In the current common technology, a p2V open source tool or a self-contained program is used to copy a system hard disk and a service data hard disk in a source host to a transfer server (a virtual machine on a cloud platform) on a target cloud platform, then a V2V open source tool is used in the transfer server to perform virtualization operation on the copied source host system disk, and finally the copied source host system disk and data disk are created into a virtual machine, so that a cloud host migration task is completed.
A migration task needs to allocate about 3GB of memory for the created secondary virtual machine during the virtualization operation using the V2V open source tool. Therefore, when a large number of source hosts are migrated, a large amount of cloud platform memory is consumed by concurrently executing virtualization operations on a large number of migration tasks, for example, 30GB of memory is required for concurrently executing virtualization operations on 10 source host migration tasks, which may affect normal operation of some cloud platforms with relatively tight memory resources. If the concurrent number of cloud migration is limited, the migration efficiency of the source host is greatly reduced in a scene that a large number of source hosts need to be migrated.
The information disclosed in this background section is only for enhancement of understanding of the general background of the invention and should not be taken as an acknowledgement or any form of suggestion that this information forms the prior art already known to a person skilled in the art.
Disclosure of Invention
The invention aims to provide a method and a device for cloud host batch migration, electronic equipment and a storage medium, which can directly execute a virtual essence function of a V2V source opening tool on a source host before copying data of the source host, and can solve the problem that in a scene that a large number of source hosts need to be migrated to a cloud platform, a large amount of memory is consumed for virtualization by using a V2V source opening tool on a transfer server, so that a large number of source host migration tasks cannot be concurrently executed, and the cloud host migration efficiency is low.
In order to achieve the above object, an embodiment of the present invention provides a method for batch migration of cloud hosts.
In one or more embodiments of the invention, the method comprises: virtualizing essential functions of a source host on the source host through a V2V tool, and setting according to a corresponding system; and copying the data of the source host to a transit server of the cloud platform, and generating the cloud host.
In one or more embodiments of the present invention, virtualizing essential functions of a source host on the source host through a V2V tool includes: and installing virtual drivers of the virtual essential functions of the virtual machines in the cloud platform to the source host according to the system and the kernel version of the source host.
In one or more embodiments of the present invention, the setting according to the corresponding system includes: the windows system registers the virtio driver to a registry; or the linux system writes the virtio driver into a temporary root file system.
In one or more embodiments of the invention, the method further comprises: and creating a corresponding cloud hard disk in a cloud platform according to the disk to be migrated in the source host, and mounting the cloud hard disk to the transfer server.
In one or more embodiments of the present invention, the copying data of the source host to a transit server of a cloud platform and generating a cloud host includes: copying the data of the system disk and the service disk to the corresponding cloud hard disk; and unloading the corresponding cloud hard disk from the transit server, and generating a cloud host according to the cloud hard disk.
In one or more embodiments of the invention, the essential functions of the virtualization of the virtual machine include a virtual CPU, a virtual bus, a virtual hard disk, and a virtual network.
In one or more embodiments of the invention, the method further comprises: and forming a disk array or a copy by a plurality of disks to be migrated in the source host, generating a logical volume, and copying the logical volume to the cloud hard disk.
In another aspect of the present invention, an apparatus for cloud host batch migration is provided, which includes a setup module and a copy module.
And the setting module is used for virtualizing the essential functions of the source host on the source host through the V2V tool and setting according to the corresponding system.
And the copying module is used for copying the data of the source host to a transit server of the cloud platform and generating the cloud host.
In one or more embodiments of the invention, the setting module is further configured to: and installing virtual drivers of the virtual essential functions of the virtual machines in the cloud platform to the source host according to the system and the kernel version of the source host.
In one or more embodiments of the invention, the setting module is further configured to: the windows system registers the virtio driver to a registry; or the linux system writes the virtio driver into a temporary root file system.
In one or more embodiments of the invention, the setting module is further configured to: and creating a corresponding cloud hard disk in a cloud platform according to the disk to be migrated in the source host, and mounting the cloud hard disk to the transfer server.
In one or more embodiments of the invention, the replication module is further configured to: copying the data of the system disk and the service disk to the corresponding cloud hard disk; and unloading the corresponding cloud hard disk from the transit server, and generating a cloud host according to the cloud hard disk.
In one or more embodiments of the invention, the setting module is further configured to: and forming a disk array or a copy by a plurality of disks to be migrated in the source host, generating a logical volume, and copying the logical volume to the cloud hard disk.
In another aspect of the present invention, there is provided an electronic device including: at least one processor; and a memory storing instructions that, when executed by the at least one processor, cause the at least one processor to perform the method of cloud host batch migration as described above.
In another aspect of the present invention, a computer-readable storage medium is provided, on which a computer program is stored, which, when being executed by a processor, implements the steps of the method for cloud host batch migration as described.
Compared with the prior art, according to the cloud host batch migration method and device, the electronic device and the storage medium provided by the embodiment of the invention, the virtual essential function of the V2V source opening tool can be directly executed on the source host before the data of the source host is copied, so that the virtual operation on the transfer server through the V2V source opening tool is not needed, and the large memory resource consumption caused by the virtual operation of the V2V source opening tool on the transfer server is avoided, so that a large number of cloud host migration tasks can be executed concurrently, and the migration efficiency under a large-batch cloud host migration scene is effectively improved.
Drawings
FIG. 1 is a flow diagram of a method of cloud host batch migration according to an embodiment of the invention;
FIG. 2 is a detailed flowchart of a method for batch migration of cloud hosts according to an embodiment of the present invention;
FIG. 3 is a block diagram of a method for batch migration of cloud hosts according to an embodiment of the present invention;
FIG. 4 is an expanded flow diagram of a method of cloud host batch migration according to an embodiment of the invention;
FIG. 5 is an expanded structural diagram of a method for batch migration of cloud hosts according to an embodiment of the present invention;
FIG. 6 is a block diagram of an apparatus for batch migration of cloud hosts according to an embodiment of the present invention;
fig. 7 is a hardware configuration diagram of a computing device for batch migration of cloud hosts according to an embodiment of the present invention.
Detailed Description
The following detailed description of the present invention is provided in conjunction with the accompanying drawings, but it should be understood that the scope of the present invention is not limited to the specific embodiments.
Throughout the specification and claims, unless explicitly stated otherwise, the word "comprise", or variations such as "comprises" or "comprising", will be understood to imply the inclusion of a stated element or component but not the exclusion of any other element or component.
The technical solutions provided by the embodiments of the present invention are described in detail below with reference to the accompanying drawings.
Example 1
Referring to fig. 1, a method for batch migration of cloud hosts in an embodiment of the present invention is described, which includes the following steps.
In step S101, the essential functions of the source host are virtualized on the source host by the V2V tool, and set up according to the corresponding system.
And executing the V2V according to basic configuration information of the source host, wherein the basic configuration information comprises but is not limited to a system and a kernel version of the source host, and installing a virtio driver of the virtual essential function of the virtual machine in the cloud platform to the source host, wherein the process of installing the virtio driver is a process of copying the driver. Essential functions of virtualization include a virtual CPU, a virtual bus, a virtual hard disk, and a virtual network.
V2V migration is moving operating system and data between virtual machines, taking care of physical machine level differences and handling different virtual hardware. Virtual machines migrate from a virtual machine monitor on one physical machine to a virtual machine monitor on another physical machine, which may or may not be the same type. If VM ware migrates to KVM, KVM migrates to KVM. The virtual machine can be moved from one VM Host system to another VM Host system in various ways, and in this embodiment, the virtual machine of the source Host is migrated to the cloud platform.
The V2V migration can enable the virtual machine created on the target cloud platform by the disk to be migrated of the source host to start and work normally. Meanwhile, it is also the essential work of V2V open source tool to virtualize by writing the virtual CPU, virtual bus, virtual hard disk and other related virtio drives commonly used by the virtual machine in the cloud platform into the copied source host system disk.
When system setting is carried out, the linux system writes the virtio driver into the temporary root file system. The method comprises the steps that a windows system registers a virtio driver to a registry, the virtio driver of the windows mainly comprises a network card and a disk driver, and the drivers are mainly in three modes, wherein the first mode is an existing windows operating system and needs to be updated; the second is loading virtio driver during installation; the third is to directly make a virtio-driven iso system image.
In step S102, the data of the source host is copied to a transit server of the cloud platform, and a cloud host is generated.
Cloud platforms, also known as cloud computing platforms. Cloud platforms can be divided into 3 classes: the cloud computing platform comprises a storage type cloud platform taking data storage as a main part, a computing type cloud platform taking data processing as a main part and a comprehensive cloud computing platform taking computing and data storage processing into consideration.
And copying the data of the disk to be migrated of the source host to the corresponding cloud hard disk of the transfer server, unloading the corresponding cloud hard disk from the transfer server, and generating the cloud host according to the cloud hard disk. Because the transit server can be dynamically created or recycled on the cloud platform, after the data of the source host is copied to the cloud hard disk, the transit server is not needed to continuously provide services, the cloud hard disk is unloaded from the transit server, the transit server is recycled, the cloud host is generated by the cloud hard disk containing the data of the source host, and the migration of the host is completed.
Example 2
As shown in fig. 2 to 3, a method for batch migration of cloud hosts in an embodiment of the present invention is described, which includes the following steps.
In step S201, the essential functions of the source host are virtualized on the source host by the V2V tool, and set according to the corresponding system.
According to the system and kernel version of the source host, executing the essential function of V2V virtualization, namely installing virtual drives such as a virtual CPU, a virtual bus, a virtual hard disk, a virtual network and the like of the cloud platform virtual machine on the source host, wherein the process of installing the virtual drives is the process of copying the drives, and performing system setting, for a windows system, the relevant virtual drives need to be registered in a registry, and for a linux system, the relevant virtual drives need to be written in a temporary root file system.
In step S202, a corresponding cloud hard disk is created in the cloud platform according to the disk to be migrated in the source host, and the cloud hard disk is mounted to the transit server.
The transit server refers to a transit server capable of storing and processing data, and can be dynamically created or recycled on a cloud platform. If there is no transit server available in the cloud platform, a transit server needs to be created first, and then the transit server is started. And if the available transit server exists in the cloud platform, starting the available transit server.
In this embodiment, there is a transfer server available in the cloud platform, the disk to be migrated includes a system disk and a service disk of the operating system to be migrated, the migration control system creates a corresponding cloud hard disk in the cloud platform according to the system disk and the service disk in the source host, and the cloud hard disk is used to store data information of the operating system to be migrated (the source host) in the cloud platform and mount the cloud hard disk in the cloud platform to the transfer server.
Mounting is to connect a disk to an existing directory, and after the disk is mounted, any operation on the directory is equivalent to performing an operation on the disk. Because the transfer server has the functions of storing and processing data, the cloud hard disk is mounted to the transfer server, and the information of the disk to be migrated in the source host can be conveniently copied to the cloud platform.
In step S203, the data of the source host is copied to the transit server of the cloud platform, and the cloud host is generated.
And copying the data of the disk to be migrated of the source host to the corresponding cloud hard disk of the transfer server, unloading the corresponding cloud hard disk from the transfer server, and generating the cloud host according to the cloud hard disk. Because the transit server can be dynamically created or recycled on the cloud platform, after the data of the source host is copied to the cloud hard disk, the transit server is not needed to continuously provide services, the cloud hard disk is unloaded from the transit server, the transit server is recycled, the cloud host is generated by the cloud hard disk containing the data of the source host, and the migration of the host is completed.
Example 3
As shown in fig. 4 to 5, a method for batch migration of cloud hosts in an embodiment of the present invention is described, which includes the following steps.
In step S301, the essential functions of the source host are virtualized on the source host by the V2V tool, and set according to the corresponding system.
According to the system and kernel version of the source host, executing the essential function of V2V virtualization, namely installing virtual drives such as a virtual CPU, a virtual bus, a virtual hard disk, a virtual network and the like of the cloud platform virtual machine on the source host, wherein the process of installing the virtual drives is the process of copying the drives, and performing system setting, for a windows system, the relevant virtual drives need to be registered in a registry, and for a linux system, the relevant virtual drives need to be written in a temporary root file system.
In step S302, a plurality of disks to be migrated in the source host form a disk array or a copy, generate a logical volume, and copy the logical volume to the cloud hard disk.
As shown in fig. 5, when there are multiple disks to be migrated in the source host, a plurality of hard disks (hard disk 1, hard disk 2, and hard disk 3) may be combined into one disk array or copy by using a soft RAID technology, a logical volume 1 is generated, and data in the logical volume 1 is copied to the cloud hard disk 1 of the cloud platform. The advantage is that a plurality of relatively cheap hard disks are combined to form a hard disk array group, so that the performance reaches or even exceeds that of one hard disk with high price and huge capacity.
In step S303, a corresponding cloud hard disk is created in the cloud platform according to the disk to be migrated in the source host, and the cloud hard disk is mounted to the transit server.
The cloud platform is provided with a usable transfer server, the disk to be migrated comprises a system disk and a service disk of an operating system to be migrated, the migration control system creates a corresponding cloud hard disk in the cloud platform according to the system disk and the service disk in the source host, and the cloud hard disk is used for storing data information of the operating system to be migrated (the source host) in the cloud platform and mounting the cloud hard disk in the cloud platform to the transfer server.
In step S304, the data of the source host is copied to the transit server of the cloud platform, and the cloud host is generated.
And copying the data of the disk to be migrated of the source host to the corresponding cloud hard disk of the transfer server, unloading the corresponding cloud hard disk from the transfer server, and generating the cloud host according to the cloud hard disk. Because the transit server can be dynamically created or recycled on the cloud platform, after the data of the source host is copied to the cloud hard disk, the transit server is not needed to continuously provide services, the cloud hard disk is unloaded from the transit server, the transit server is recycled, the cloud host is generated by the cloud hard disk containing the data of the source host, and the migration of the host is completed.
Fig. 6 is a block diagram illustrating an apparatus for batch migration of cloud hosts according to an embodiment of the present invention.
In the embodiment of the invention, the device for cloud host batch migration comprises a setting module 601 and a copying module 602.
The setting module 601 is configured to virtualize essential functions of the source host on the source host through the V2V tool, and perform setting according to a corresponding system.
The replication module 602 is configured to replicate data of the source host to a transit server of the cloud platform, and generate a cloud host.
The setup module 601 is further configured to: and installing virtual drivers of the virtual essential functions of the virtual machines in the cloud platform to the source host according to the system and kernel versions of the source host.
The setup module 601 is further configured to: the windows system registers virtio drivers in a registry; or, the linux system writes the virtio driver to the temporary root file system.
The setup module 601 is further configured to: and creating a corresponding cloud hard disk in the cloud platform according to the disk to be migrated in the source host, and mounting the cloud hard disk to the transfer server.
The copy module 602 is further configured to: copying the data of the disk to be migrated to a corresponding cloud hard disk; and unloading the corresponding cloud hard disk from the transfer server, and generating a cloud host according to the cloud hard disk.
The setup module 601 is further configured to: and forming a disk array or a copy by a plurality of disks to be migrated in the source host, generating a logical volume, and copying the logical volume to the cloud hard disk.
In this embodiment, the essential functions of virtualization of the virtual machine include a virtual CPU, a virtual bus, a virtual hard disk, and a virtual network.
Fig. 7 illustrates a hardware block diagram of a computing device 70 for cloud host batch migration according to an embodiment of the present description. As shown in fig. 7, computing device 70 may include at least one processor 701, storage 702 (e.g., non-volatile storage), memory 703, and communication interface 704, and the at least one processor 701, storage 702, memory 703, and communication interface 704 are connected together via a bus 705. The at least one processor 701 executes at least one computer readable instruction stored or encoded in the memory 702.
It should be appreciated that the computer-executable instructions stored in the memory 702, when executed, cause the at least one processor 701 to perform the various operations and functions described above in connection with fig. 1-7 in the various embodiments of the present description.
In embodiments of the present description, computing device 70 may include, but is not limited to: personal computers, server computers, workstations, desktop computers, laptop computers, notebook computers, mobile computing devices, smart phones, tablet computers, cellular phones, Personal Digital Assistants (PDAs), handheld devices, messaging devices, wearable computing devices, consumer electronics, and so forth.
According to one embodiment, a program product, such as a machine-readable medium, is provided. A machine-readable medium may have instructions (i.e., elements described above as being implemented in software) that, when executed by a machine, cause the machine to perform various operations and functions described above in connection with fig. 1-7 in the various embodiments of the present specification. Specifically, a system or apparatus may be provided which is provided with a readable storage medium on which software program code implementing the functions of any of the above embodiments is stored, and causes a computer or processor of the system or apparatus to read out and execute instructions stored in the readable storage medium.
According to the cloud host batch migration method and device, the electronic equipment and the storage medium, the virtual essential function of the V2V source opening tool is directly executed on the source host before the data of the source host is copied, so that the virtual operation on the transfer server through the V2V source opening tool is not needed, and a large amount of memory resource consumption caused by the virtual operation of the V2V source opening tool on the transfer server is avoided, so that a large amount of cloud host migration tasks can be executed concurrently, and the migration efficiency under a large-batch cloud host migration scene is effectively improved.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The foregoing descriptions of specific exemplary embodiments of the present invention have been presented for purposes of illustration and description. It is not intended to limit the invention to the precise form disclosed, and obviously many modifications and variations are possible in light of the above teaching. The exemplary embodiments were chosen and described in order to explain certain principles of the invention and its practical application to enable one skilled in the art to make and use various exemplary embodiments of the invention and various alternatives and modifications as are suited to the particular use contemplated. It is intended that the scope of the invention be defined by the claims and their equivalents.

Claims (5)

1. A method for batch migration of cloud hosts is characterized by comprising the following steps:
installing a virtual driver of virtual essential functions of a virtual machine in a cloud platform to a source host according to a system and a kernel version of the source host, and registering the virtual driver to a registry according to a windows system, or writing the virtual driver to a temporary root file system according to a linux system, wherein the virtual essential functions comprise: the system comprises a virtual CPU, a virtual bus, a virtual hard disk and a virtual network;
creating a corresponding cloud hard disk in a cloud platform according to a disk to be migrated in the source host, and mounting the cloud hard disk to a transfer server;
copying data of a system disk and data of a service disk to the corresponding cloud hard disk; and
and unloading the corresponding cloud hard disk from the transit server, and generating a cloud host according to the cloud hard disk.
2. The method of cloud host batch migration of claim 1, wherein the method further comprises: and forming a disk array or a copy by a plurality of disks to be migrated in the source host, generating a logical volume, and copying the logical volume to the cloud hard disk.
3. An apparatus for batch migration of cloud hosts, the apparatus comprising:
the virtual machine management method comprises a setting module, a setting module and a processing module, wherein the setting module is used for installing a virtio driver of virtual essential functions of a virtual machine in a cloud platform to a source host according to a system and a kernel version of the source host, registering the virtio driver to a registry according to a windows system, or writing the virtio driver into a temporary root file system according to a linux system, and the virtual essential functions comprise: the system comprises a virtual CPU, a virtual bus, a virtual hard disk and a virtual network; and
the replication module is used for creating a corresponding cloud hard disk in a cloud platform according to the disk to be migrated in the source host and mounting the cloud hard disk to a transfer server; copying data of a system disk and data of a service disk to the corresponding cloud hard disk; and unloading the corresponding cloud hard disk from the transit server, and generating a cloud host according to the cloud hard disk.
4. An electronic device, comprising:
at least one processor; and
a memory storing instructions that, when executed by the at least one processor, cause the at least one processor to perform the method of cloud host batch migration of any of claims 1-2.
5. A computer-readable storage medium, characterized in that a computer program is stored thereon, which, when being executed by a processor, implements the steps of the method of cloud host batch migration according to any one of claims 1 to 2.
CN202111200722.8A 2021-10-13 2021-10-13 Method and device for cloud host batch migration, electronic equipment and storage medium Active CN113918284B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111200722.8A CN113918284B (en) 2021-10-13 2021-10-13 Method and device for cloud host batch migration, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111200722.8A CN113918284B (en) 2021-10-13 2021-10-13 Method and device for cloud host batch migration, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113918284A CN113918284A (en) 2022-01-11
CN113918284B true CN113918284B (en) 2022-08-02

Family

ID=79240992

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111200722.8A Active CN113918284B (en) 2021-10-13 2021-10-13 Method and device for cloud host batch migration, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113918284B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109240803A (en) * 2018-09-25 2019-01-18 郑州云海信息技术有限公司 A kind of virtual machine migration method, device, server and storage medium
CN109522088A (en) * 2018-09-30 2019-03-26 华为技术有限公司 A kind of virtual machine migration method and device
CN111797059A (en) * 2020-07-07 2020-10-20 优刻得科技股份有限公司 Method for online cloud host migration across clouds, migration controller and cloud server
CN111966463A (en) * 2020-08-18 2020-11-20 江苏安超云软件有限公司 Container mirror image construction method and device, storage medium and electronic equipment
CN112394881A (en) * 2020-11-04 2021-02-23 华云数据控股集团有限公司 Cloud host migration method and electronic equipment

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8489699B2 (en) * 2010-08-13 2013-07-16 Vmware, Inc. Live migration of virtual machine during direct access to storage over SR IOV adapter
US10635474B2 (en) * 2016-05-09 2020-04-28 Marvell Asia Pte, Ltd. Systems and methods for virtio based optimization of data packet paths between a virtual machine and a network device for live virtual machine migration
CN106708603B (en) * 2016-12-28 2019-04-26 平安科技(深圳)有限公司 Virtual machine quick recovery method and device
CN111796903A (en) * 2019-04-08 2020-10-20 中移(苏州)软件技术有限公司 Virtual machine migration method, server and computer storage medium
CN113127133B (en) * 2019-12-30 2023-09-05 中国移动通信集团山西有限公司 Cross-platform virtual machine hot migration method, device, equipment and medium
CN112099916B (en) * 2020-09-07 2022-06-24 平安科技(深圳)有限公司 Virtual machine data migration method and device, computer equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109240803A (en) * 2018-09-25 2019-01-18 郑州云海信息技术有限公司 A kind of virtual machine migration method, device, server and storage medium
CN109522088A (en) * 2018-09-30 2019-03-26 华为技术有限公司 A kind of virtual machine migration method and device
CN111797059A (en) * 2020-07-07 2020-10-20 优刻得科技股份有限公司 Method for online cloud host migration across clouds, migration controller and cloud server
CN111966463A (en) * 2020-08-18 2020-11-20 江苏安超云软件有限公司 Container mirror image construction method and device, storage medium and electronic equipment
CN112394881A (en) * 2020-11-04 2021-02-23 华云数据控股集团有限公司 Cloud host migration method and electronic equipment

Also Published As

Publication number Publication date
CN113918284A (en) 2022-01-11

Similar Documents

Publication Publication Date Title
US9600369B2 (en) Operating system recovery method and apparatus, and terminal device
US8881144B1 (en) Systems and methods for reclaiming storage space from virtual machine disk images
EP2905700B1 (en) Operating system recovery method, apparatus and terminal device
KR20170057237A (en) Supporting multiple operating system environments in computing device without contents conversion
CN106777394B (en) Cluster file system
US9558028B2 (en) Systems and methods for migration of virtual machines across virtual storage resources
CN114286983A (en) System and method for marking application consistent points in time
CN110704161B (en) Virtual machine creation method and device and computer equipment
US9841985B2 (en) Storage block deallocation in virtual environments
US11875145B2 (en) Virtual machine update while keeping devices attached to the virtual machine
US9557980B2 (en) Seamless application integration apparatus and method
CN114691300A (en) Hot migration method of virtual machine instance
CN111679889B (en) Conversion migration method and system of virtual machine
WO2021018267A1 (en) Live migration method for virtual machine and communication device
US10467078B2 (en) Crash dump extraction of guest failure
US20160224358A1 (en) Method and system for performing on-demand data write through based on virtual machine types
US9405709B1 (en) Systems and methods for performing copy-on-write operations
US9177177B1 (en) Systems and methods for securing storage space
US9158554B2 (en) System and method for expediting virtual I/O server (VIOS) boot time in a virtual computing environment
US10831684B1 (en) Kernal driver extension system and method
US11205019B2 (en) Multiple computing environments on a computer system
CN113918284B (en) Method and device for cloud host batch migration, electronic equipment and storage medium
CN116841799A (en) Virtual machine backup method, system, equipment and readable storage medium
US11301156B2 (en) Virtual disk container and NVMe storage management system and method
US20210279092A1 (en) System and Method for Virtualizing Hot-Swappable PCIe Devices for Virtual Machines

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant