CN107656796B - Virtual machine cold migration method, system and equipment - Google Patents

Virtual machine cold migration method, system and equipment Download PDF

Info

Publication number
CN107656796B
CN107656796B CN201710785465.6A CN201710785465A CN107656796B CN 107656796 B CN107656796 B CN 107656796B CN 201710785465 A CN201710785465 A CN 201710785465A CN 107656796 B CN107656796 B CN 107656796B
Authority
CN
China
Prior art keywords
virtual machine
machine
physical
information
physical machine
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
CN201710785465.6A
Other languages
Chinese (zh)
Other versions
CN107656796A (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.)
SF Technology Co Ltd
Original Assignee
SF Technology 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 SF Technology Co Ltd filed Critical SF Technology Co Ltd
Priority to CN201710785465.6A priority Critical patent/CN107656796B/en
Publication of CN107656796A publication Critical patent/CN107656796A/en
Application granted granted Critical
Publication of CN107656796B publication Critical patent/CN107656796B/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/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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Stored Programmes (AREA)

Abstract

The invention relates to a method, a system and equipment for cold migration of a virtual machine. The virtual machine cold migration method comprises the following steps: s1, acquiring attribute information of the source physical machine and other physical machines in the cluster; s2, screening the physical machines in the same cluster based on the attribute information of other physical machines and the configuration information of the migrated virtual machine to obtain a target physical machine which accords with the configuration information of the migrated virtual machine; and S3, copying the xml file and the disk file of the migrated virtual machine to the created storage pool of the target physical machine. The method supports the use of the local disk virtual machine for the cross-physical machine migration, obviously improves the efficiency of migrating the virtual machine by a system administrator, reduces human errors, and particularly has obvious practical significance on private clouds.

Description

Virtual machine cold migration method, system and equipment
Technical Field
The present invention relates to virtual machine migration, and in particular, to a method, system, and device for cold migration of a virtual machine.
Background
With the continuous popularization of cloud technology, the application of cloud is a trend, the loss of physical machines is accelerated by the increase of the number of virtual machines, the shutdown maintenance of the physical machines is also a normal state, and at the moment, the virtual machines on the physical machines are often migrated to other physical machines in the same cluster. Meanwhile, when a certain physical machine is high in utilization rate, the upper part of the virtual machine needs to be migrated, and the migration technology is also needed.
At present, libvirt open source virtual machine management tools do not support the use of a local disk virtual machine for cross-physical machine migration. In order to solve the problem of migrating the virtual machine by relying on the open source software through one key, the open source software for the shutdown migration of the virtual machine is provided, such as virt manager, openstack and the like. However, these software all need to depend on the client and various components, and need to consume a certain time for configuration and construction work.
Moreover, the common practice for virtual machine migration is to execute migration manually according to specified steps, so that the steps are multiple, the efficiency is low, errors may be caused manually, it is necessary to manually determine which physical machines meet the migration conditions, and the manual estimation method has a deviation.
Disclosure of Invention
In order to solve the above technical problems, an object of the present invention is to provide a method, a system, and a device for cold migration of a virtual machine.
According to one aspect of the invention, a method for cold migration of a virtual machine is provided, which comprises the following steps:
s1, acquiring attribute information of the source physical machine and other physical machines in the cluster;
s2, screening the physical machines in the same cluster based on the attribute information of other physical machines and the configuration information of the migrated virtual machine to obtain a target physical machine which accords with the configuration information of the migrated virtual machine;
and S3, copying the xml file and the disk file of the migrated virtual machine to the created storage pool of the target physical machine.
Before step S1, the migrated virtual machine state of the source physical machine needs to be detected, and if the state is a shutdown state, step S1 is executed.
Further, the attribute information of the physical machine includes one or more of cpu information, memory information, disk information, hard disk information, network card information, and libvirtual management process state information of the physical machine.
Further, the configuration information includes CPU information, memory information, and disk information.
Further, screening the physical machines in the same cluster based on the configuration information of the virtual machine group to be created includes:
s21, performing primary screening on the physical machines in the same cluster based on the threshold values of the CPU utilization rate, the memory utilization rate and the disk utilization rate;
and S22, performing secondary screening on the physical machines in the same cluster based on the number of CPUs, the size of the memory and the threshold value of the size of the disk.
Further, if the target physical machine is not screened out when the physical machines of the same cluster are screened for the second time, returning to the physical machine without migratability.
Further, if the target physical machine is not screened when the physical machines of the same cluster are screened for the second time, the steps are executed after returning to the physical machine without migratable, and the steps include:
s23, adding a new same cluster physical machine;
and S24, repeating the steps S21 and S22, finishing the operation if the target physical machine is screened in the round, otherwise, repeating the steps S23 and S24 until the target physical machine is screened.
Further, the creating of the storage pool in the target physical machine comprises:
acquiring a directory of a target disk storing a migrated virtual machine in a target physical machine;
and creating a storage pool in the target disk directory through the identity identification code of the migrated virtual machine.
Further, copying the xml file and the disk file of the migrated virtual machine to the created storage pool of the target physical machine, further comprising:
acquiring a network speed threshold value of a transmission copy file according to the network card information of the target physical machine;
and transmitting the copied file under the condition that the network speed threshold value is not exceeded.
Further, copying the xml file and the disk file of the migrated virtual machine to the created storage pool of the target physical machine, and detecting whether the difference between the virtual machine memories of the source physical machine and the target physical machine reaches a set standard, if so, finishing the copying operation.
Further, detecting whether the difference between the virtual machine memories of the source physical machine and the target physical machine meets a set standard includes:
acquiring md5 codes of the xml file and the disk file of the migrated virtual machine;
acquiring md5 codes of a virtual machine of a target physical machine;
and comparing the two md5 codes, and if the two md5 codes are consistent, finishing the copy operation.
Further, after the copy operation in step S5 is completed, the method includes:
bringing the virtual machine of the target physical machine into libvirtual management;
removing libvirtual management from the migrated virtual machine in the source physical machine, and deleting the storage pool corresponding to the migrated virtual machine.
Further, after removing libvirtual management from the migrated virtual machine in the source physical machine and deleting the storage pool corresponding to the migrated virtual machine, the method includes:
and modifying the name of the storage directory where the migrated virtual machine is located on the source physical machine, and stamping a time stamp.
Further, the method for cold migration of a virtual machine further includes: and canceling the speed limit of transferring the copied file, and finishing the migration.
According to another aspect of the present invention, there is provided a virtual machine cold migration system, including:
the acquisition unit is used for acquiring the attribute information of the source physical machine and other physical machines in the cluster when the migrated virtual machine is in a shutdown state;
the screening unit is used for screening the physical machines in the same cluster based on the attribute information of other physical machines and the configuration information of the migrated virtual machine to obtain a target physical machine which accords with the configuration information of the migrated virtual machine;
and the cold migration unit copies the xml file and the disk file of the migrated virtual machine to the created storage pool of the target physical machine.
The system is based on any one of the above virtual machine cold migration methods, and detects the migrated virtual machine state of a source physical machine, and acquires attribute information of the source physical machine and other physical machines in a cluster; screening the physical machines in the same cluster based on the attribute information of other physical machines and the configuration information of the migrated virtual machine to obtain a target physical machine which accords with the configuration information of the migrated virtual machine; copying the xml file and the disk file of the migrated virtual machine to a storage pool created by the target physical machine, and performing cold migration operation and other specific steps as described in the virtual machine cold migration method section.
According to another aspect of the present invention, there is provided a virtual machine cold migration apparatus, comprising a computer readable medium storing a computer program, the program being executed to perform:
s1, acquiring attribute information of the source physical machine and other physical machines in the cluster;
s2, screening the physical machines in the same cluster based on the attribute information of other physical machines and the configuration information of the migrated virtual machine to obtain a target physical machine which accords with the configuration information of the migrated virtual machine;
and S3, copying the xml file and the disk file of the migrated virtual machine to the created storage pool of the target physical machine.
The device is based on any one of the above virtual machine cold migration methods, and detects the migrated virtual machine state of the source physical machine, and obtains attribute information of the source physical machine and other physical machines in the cluster; screening the physical machines in the same cluster based on the attribute information of other physical machines and the configuration information of the migrated virtual machine to obtain a target physical machine which accords with the configuration information of the migrated virtual machine; copying the xml file and the disk file of the migrated virtual machine to a storage pool created by the target physical machine, and performing cold migration operation and other specific steps as described in the virtual machine cold migration method section.
Compared with the prior art, the invention has the following beneficial effects:
1. the virtual machine cold migration method solves the problem that the virtual machine is migrated by relying on open source software in the prior art, overcomes the defects that the virtual machine is migrated by relying on a client and various components, configuration and construction work needs to be performed within a certain time, can complete the virtual machine cold migration by relying on a database, linux native functions and libvirt, supports the use of a local disk virtual machine for cross-physical machine migration, remarkably improves the virtual machine migration efficiency of a system administrator, reduces human errors, and particularly has remarkable practical significance on private cloud. Furthermore, the migration speed can be limited, so the influence of migration on a service network is greatly avoided by limiting the migration speed.
2. According to the virtual machine cold migration system disclosed by the invention, through the acquisition unit, when the state of the migrated virtual machine is shutdown, the attribute information of the source physical machine and other physical machines in the cluster is acquired; screening the physical machines in the same cluster based on the attribute information of other physical machines and the configuration information of the migrated virtual machine through a screening unit to obtain a target physical machine; the space distribution unit is used for distributing the space required by the virtual machine to be migrated to the screened target physical machine; and copying the xml file and the disk file of the migrated virtual machine to a storage pool created by the target physical machine through a cold migration unit, and performing cold migration operation. The units cooperate with each other to realize cold migration of the virtual machine together, and support the use of the local disk virtual machine for cross-physical machine migration, thereby remarkably improving the efficiency and accuracy of the system administrator for virtual machine migration.
3. The virtual machine cold migration equipment comprises a computer readable medium for storing a computer program, wherein the program is run and used for screening physical machines in the same cluster based on attribute information of other physical machines and configuration information of a migrated virtual machine; the screened target physical machine distributes a space required for accommodating the migrated virtual machine; copying the xml file and the disk file of the migrated virtual machine to a storage pool created by the target physical machine, and performing cold migration operation. Manual operation is reduced as much as possible, so that not only is the migration accuracy improved, but also the migration efficiency is greatly improved.
Drawings
FIG. 1 is a flow chart of the present invention.
Detailed Description
In order to better understand the technical scheme of the invention, the invention is further explained by combining the specific embodiment and the attached drawings of the specification.
The first embodiment is as follows:
as shown in fig. 1, the present embodiment provides a method for cold migration of a virtual machine, including the following steps:
1. detecting the state of the virtual machine to be migrated specifically as follows:
s1, detecting the state of the migrated virtual machine of the source physical machine, if the state is a shutdown state, executing the step S2.
Checking whether the virtual machine exists or not, and not executing the following operation; and checking the state of the virtual machine, wherein cold migration can be executed only in a shutdown state, and the non-shutdown state returns to the user that the virtual machine cannot execute migration operation.
2. The screening of physical machines in the same cluster (the same network area in the same machine room) specifically comprises the following steps:
s2, acquiring attribute information of the source physical machine and other physical machines in the cluster, specifically:
firstly, finding a list of other physical machines in the same cluster and taking out performance data information, namely attribute information, of each physical machine in the list from a database, wherein the attribute information comprises cpu information, memory information, disk information, hard disk information, network card information and libvirtd management process state information of the physical machine, and further comprises the following steps: the system comprises the physical machine CPU, the memory, the disk size information, the physical machine CPU utilization rate, the memory utilization rate, the hard disk utilization rate, the network card utilization rate and the physical machine libvirtual management process state.
And S3, screening the physical machines in the same cluster based on the attribute information of other physical machines and the configuration information of the migrated virtual machine to obtain a target physical machine which accords with the configuration information of the migrated virtual machine. The configuration information includes CPU information, memory information, and disk information.
Screening physical machines of the same cluster based on configuration information of a virtual machine group to be created, wherein the screening comprises the following steps:
(1) and performing primary screening on the physical machines in the same cluster based on the threshold values of the CPU utilization rate, the memory utilization rate and the disk utilization rate. The physical machine performance filter (the CPU utilization rate is not more than 80%, the memory utilization rate is not more than 95%, and the disk utilization rate is not more than 70%) is set to filter the physical machine meeting the condition, the data timeliness needs to be considered in the filtering, and the data are considered to be effective within 1 minute.
(2) And performing secondary screening on the physical machines in the same cluster based on the threshold values of the number of CPUs, the size of the memory and the size of the disk. And pre-allocating resources (CPU number, memory size and disk size) required by the virtual machine to be migrated from the filtered physical machine, and filtering the over-divided target physical machine by using a filter.
And if the target physical machine is not screened out when the physical machines in the same cluster are screened for the second time, returning that the user has no physical machine which can be migrated.
If the target physical machine is not screened out when the physical machines of the same cluster are screened for the second time, returning to the physical machine without migratability, and then executing the steps, wherein the steps comprise:
s33, adding a new same cluster physical machine;
and S34, repeating the steps S31 and S32, finishing the operation if the target physical machine is screened in the round, otherwise, repeating the steps S33 and S34 until the target physical machine is screened.
The physical machine distributed in the first screening step is selected, the physical machine information of the virtual machine is modified into the migrated physical machine in the database in advance, and therefore the data acquisition is accurate when other tasks need to use a physical machine filtering algorithm.
3. Initiating execution of a migration operation
And S4, calculating the xml file and the md5 code of the migrated virtual machine by using an md5sum tool before starting migration, wherein the md5 code is used for judging whether the configuration file depended by the running of the virtual machine is successfully copied to the target physical machine.
S5, acquiring a directory of a target disk of the migrated virtual machine stored in the target physical machine; and creating a storage pool in the target disk directory through the identity identification code of the migrated virtual machine.
The method specifically comprises the following steps: and (4) using a virtual machine uuid (virtual machine unique identification code) to newly create a storage pool in the disk directory of the virtual machine stored in the target physical machine.
S6, acquiring a transmission copy file network speed threshold according to the network card information of the target physical machine; and transmitting the copied file under the condition that the network speed threshold value is not exceeded. The method specifically comprises the following steps: and calculating the network speed which can be used by the copy file according to the utilization rate information of the network card of the physical machine acquired in the step S2. And limiting the sending network packet speed of the target physical machine ip to the calculated usable network speed by using a linux self-contained tool tc.
S7, copying the migrated virtual machine xml and the disk file to the created storage pool of the target physical machine by using the nc transfer tool S5.
S8, detecting whether the difference of the virtual machine memory of the source physical machine and the target physical machine reaches the set standard, if yes, finishing the copy operation. The method specifically comprises the following steps: and acquiring the md5 code of the copied file in the S7 by using an md5sum tool on the target physical machine, comparing the md5 code with the md5 code corresponding to the S4 step, and executing the following steps until the md5 code is consistent.
S9, the virtual machine is brought into libvirtual management of the target physical machine through the virtual machine xml file define at the target host end, the undefined virtual machine xml file on the source physical machine is removed and managed by the migration virtual machine, and meanwhile, the storage pool (storage pool) corresponding to the migrated virtual machine on the delete source physical machine.
S10, after the above steps are successful, the storage directory on the source physical machine where the migrated virtual machine is located modifies the name, and the directory is stamped with a time stamp, so that if the virtual machine is unavailable due to migration, the virtual machine can be quickly rolled back.
And S11, canceling the speed limit made in the step S6 and finishing the migration.
The embodiment provides a virtual machine cold migration system, including:
the acquisition unit is used for acquiring the attribute information of the source physical machine and other physical machines in the cluster when the migrated virtual machine is in a shutdown state;
the screening unit is used for screening the physical machines in the same cluster based on the attribute information of other physical machines and the configuration information of the migrated virtual machine to obtain a target physical machine which accords with the configuration information of the migrated virtual machine;
and the cold migration unit copies the xml file and the disk file of the migrated virtual machine to the created storage pool of the target physical machine.
The system is based on any one of the above virtual machine cold migration methods, and detects the migrated virtual machine state of a source physical machine, and acquires attribute information of the source physical machine and other physical machines in a cluster; screening the physical machines in the same cluster based on the attribute information of other physical machines and the configuration information of the migrated virtual machine to obtain a target physical machine which accords with the configuration information of the migrated virtual machine; copying the xml file and the disk file of the migrated virtual machine to a storage pool created by the target physical machine, and performing cold migration operation and other specific steps as described in the virtual machine cold migration method section.
According to another aspect of the present invention, there is provided a virtual machine cold migration apparatus, comprising a computer readable medium storing a computer program, the program being executed to perform:
s1, acquiring attribute information of the source physical machine and other physical machines in the cluster;
s2, screening the physical machines in the same cluster based on the attribute information of other physical machines and the configuration information of the migrated virtual machine to obtain a target physical machine which accords with the configuration information of the migrated virtual machine;
and S3, copying the xml file and the disk file of the migrated virtual machine to the created storage pool of the target physical machine.
The device is based on any one of the above virtual machine cold migration methods, and detects the migrated virtual machine state of the source physical machine, and obtains attribute information of the source physical machine and other physical machines in the cluster; screening the physical machines in the same cluster based on the attribute information of other physical machines and the configuration information of the migrated virtual machine to obtain a target physical machine which accords with the configuration information of the migrated virtual machine; copying the xml file and the disk file of the migrated virtual machine to a storage pool created by the target physical machine, and performing cold migration operation and other specific steps as described in the virtual machine cold migration method section.
Example two
The same features of this embodiment and the first embodiment are not described again, and the different features of this embodiment and the first embodiment are:
screening physical machines of the same cluster based on configuration information of a virtual machine group to be created, wherein the screening comprises the following steps:
(1) and performing primary screening on the physical machines in the same cluster based on the threshold values of the CPU utilization rate, the memory utilization rate and the disk utilization rate. The physical machine performance filter (CPU utilization rate is not more than 78%, memory utilization rate is not more than 95%, and disk utilization rate is not more than 65%) is set to filter the physical machine meeting the conditions, the data timeliness needs to be considered in the filtering, and the data are considered to be effective within 1 minute.
EXAMPLE III
The same features of this embodiment and the first embodiment are not described again, and the different features of this embodiment and the first embodiment are:
the virtual machine cold migration method is used for a private cloud.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by a person skilled in the art that the scope of the invention as referred to in the present application is not limited to the embodiments with a specific combination of the above-mentioned features, but also covers other embodiments with any combination of the above-mentioned features or their equivalents without departing from the inventive concept. For example, the features described above have similar functions to (but are not limited to) those disclosed in this application.

Claims (11)

1. A cold migration method of a virtual machine is characterized by comprising the following steps:
s1, acquiring attribute information of the source physical machine and other physical machines in the cluster;
s2, screening the physical machines in the same cluster based on the attribute information of other physical machines and the configuration information of the migrated virtual machine to obtain a target physical machine which accords with the configuration information of the migrated virtual machine;
s3, copying the xml file and the disk file of the migrated virtual machine to a storage pool created by the target physical machine;
the attribute information of the other physical machines comprises one or more of physical machine CPU information, memory information, disk information, hard disk information, network card information and physical machine libvirtual management process state information; screening physical machines of the same cluster based on configuration information of a virtual machine group to be created, wherein the screening comprises the following steps:
s21, performing primary screening on the physical machines in the same cluster based on the threshold values of the CPU utilization rate, the memory utilization rate and the disk utilization rate;
s22, performing secondary screening on the physical machines in the same cluster based on the number of CPUs, the size of the memory and the threshold value of the size of the disk;
the creation of the storage pool in the target physical machine comprises: acquiring a directory of a target disk storing a migrated virtual machine in a target physical machine; and creating a storage pool in the target disk directory through the identity identification code of the migrated virtual machine.
2. The method for cold migration of a virtual machine according to claim 1, wherein the configuration information of the migrated virtual machine includes CPU information, memory information, and disk information.
3. The method according to claim 1, wherein if the target physical machine is not screened during the second screening of the physical machine in the same cluster, returning the physical machine which is not migratable.
4. The method for cold migration of a virtual machine according to claim 3, wherein if the target physical machine is not screened during the second screening of the physical machine in the same cluster, the step is executed after returning to the physical machine without migratable state, and includes:
s23, adding a new same cluster physical machine;
and S24, repeating the steps S21 and S22, finishing the operation if the target physical machine is screened in the round, otherwise, repeating the steps S23 and S24 until the target physical machine is screened.
5. The method for cold migration of a virtual machine according to any one of claims 1 to 4, wherein copying the xml file and the disk file of the migrated virtual machine to the created storage pool of the target physical machine comprises:
acquiring a network speed threshold value of a transmission copy file according to the network card information of the target physical machine;
and transmitting the copied file under the condition that the network speed threshold value is not exceeded.
6. The method for cold migration of a virtual machine according to any one of claims 1 to 4, wherein the xml file and the disk file of the migrated virtual machine are copied to the created storage pool of the target physical machine, and further comprising detecting whether the difference between the memory of the source physical machine and the memory of the target physical machine reaches a set standard, and if so, completing the copying operation.
7. The method for cold migration of a virtual machine according to claim 6, wherein detecting whether the difference between the memory of the virtual machine of the source physical machine and the memory of the virtual machine of the target physical machine meets a set criterion comprises:
acquiring md5 codes of the xml file and the disk file of the migrated virtual machine;
acquiring md5 codes of a virtual machine of a target physical machine;
and comparing the two md5 codes, and if the two md5 codes are consistent, finishing the copy operation.
8. The method for cold migration of a virtual machine according to any one of claims 1 to 4, wherein after the copy operation in step S4 is completed, the method includes:
bringing the virtual machine of the target physical machine into libvirtual management of the target physical machine;
removing libvirtual management from the migrated virtual machine in the source physical machine, and deleting the storage pool corresponding to the migrated virtual machine.
9. The method for cold migration of a virtual machine according to claim 8, wherein after removing libvirtual management from a migrated virtual machine in a source physical machine and deleting a storage pool corresponding to the migrated virtual machine, the method further comprises:
and modifying the name of the storage directory where the migrated virtual machine is located on the source physical machine, and stamping a time stamp.
10. A virtual machine cold migration system, comprising:
the acquisition unit is used for acquiring the attribute information of the source physical machine and other physical machines in the cluster when the migrated virtual machine is in a shutdown state;
the screening unit is used for screening the physical machines in the same cluster based on the attribute information of other physical machines and the configuration information of the migrated virtual machine to obtain a target physical machine which accords with the configuration information of the migrated virtual machine;
the cold migration unit copies the xml file and the disk file of the migrated virtual machine to a storage pool created by the target physical machine, and performs cold migration operation;
the attribute information of the other physical machines comprises one or more of physical machine CPU information, memory information, disk information, hard disk information, network card information and physical machine libvirtual management process state information; screening physical machines of the same cluster based on configuration information of a virtual machine group to be created, wherein the screening comprises the following steps:
s21, performing primary screening on the physical machines in the same cluster based on the threshold values of the CPU utilization rate, the memory utilization rate and the disk utilization rate;
s22, performing secondary screening on the physical machines in the same cluster based on the number of CPUs, the size of the memory and the threshold value of the size of the disk;
the creation of the storage pool in the target physical machine comprises: acquiring a directory of a target disk storing a migrated virtual machine in a target physical machine; and creating a storage pool in the target disk directory through the identity identification code of the migrated virtual machine.
11. A virtual machine cold migration apparatus comprising a computer readable medium having a computer program stored thereon, said program being operative to perform:
s1, acquiring attribute information of the source physical machine and other physical machines in the cluster;
s2, screening the physical machines in the same cluster based on the attribute information of other physical machines and the configuration information of the migrated virtual machine to obtain a target physical machine which accords with the configuration information of the migrated virtual machine;
s3, copying the xml file and the disk file of the migrated virtual machine to a storage pool created by the target physical machine;
the attribute information of the other physical machines comprises one or more of physical machine CPU information, memory information, disk information, hard disk information, network card information and physical machine libvirtual management process state information; screening physical machines of the same cluster based on configuration information of a virtual machine group to be created, wherein the screening comprises the following steps:
s21, performing primary screening on the physical machines in the same cluster based on the threshold values of the CPU utilization rate, the memory utilization rate and the disk utilization rate;
s22, performing secondary screening on the physical machines in the same cluster based on the number of CPUs, the size of the memory and the threshold value of the size of the disk;
the creation of the storage pool in the target physical machine comprises: acquiring a directory of a target disk storing a migrated virtual machine in a target physical machine; and creating a storage pool in the target disk directory through the identity identification code of the migrated virtual machine.
CN201710785465.6A 2017-09-04 2017-09-04 Virtual machine cold migration method, system and equipment Active CN107656796B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710785465.6A CN107656796B (en) 2017-09-04 2017-09-04 Virtual machine cold migration method, system and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710785465.6A CN107656796B (en) 2017-09-04 2017-09-04 Virtual machine cold migration method, system and equipment

Publications (2)

Publication Number Publication Date
CN107656796A CN107656796A (en) 2018-02-02
CN107656796B true CN107656796B (en) 2021-02-12

Family

ID=61129403

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710785465.6A Active CN107656796B (en) 2017-09-04 2017-09-04 Virtual machine cold migration method, system and equipment

Country Status (1)

Country Link
CN (1) CN107656796B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109783196B (en) * 2019-01-17 2021-03-12 新华三信息安全技术有限公司 Virtual machine migration method and device
CN112306373B (en) * 2019-07-31 2024-05-31 深信服科技股份有限公司 Cluster capacity expansion method and system, electronic equipment and storage medium
CN112711562B (en) * 2020-12-31 2024-03-26 珠海豹趣科技有限公司 File migration method and device, electronic equipment and storage medium
CN114185641B (en) * 2021-11-11 2024-02-27 北京百度网讯科技有限公司 Virtual machine cold migration method and device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102185928A (en) * 2011-06-01 2011-09-14 广州杰赛科技股份有限公司 Method for creating virtual machine in cloud computing system and cloud computing system
CN102929701A (en) * 2012-10-17 2013-02-13 北京搜狐新媒体信息技术有限公司 Scheduling method and device for batched virtual machines
CN103617077A (en) * 2013-06-24 2014-03-05 中华电信股份有限公司 Intelligent cloud migration method and system
CN104008002A (en) * 2014-06-17 2014-08-27 电子科技大学 Target host selection method for deploying virtual machine under cloud platform environment
CN105335214A (en) * 2015-11-12 2016-02-17 国云科技股份有限公司 Virtual machine failure detection and recovery method
US20170147405A1 (en) * 2015-08-24 2017-05-25 International Business Machines Corporation Virtual machine placement in a cloud computing environment based on factors including optimized processor-memory affinity

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102185928A (en) * 2011-06-01 2011-09-14 广州杰赛科技股份有限公司 Method for creating virtual machine in cloud computing system and cloud computing system
CN102929701A (en) * 2012-10-17 2013-02-13 北京搜狐新媒体信息技术有限公司 Scheduling method and device for batched virtual machines
CN103617077A (en) * 2013-06-24 2014-03-05 中华电信股份有限公司 Intelligent cloud migration method and system
CN104008002A (en) * 2014-06-17 2014-08-27 电子科技大学 Target host selection method for deploying virtual machine under cloud platform environment
US20170147405A1 (en) * 2015-08-24 2017-05-25 International Business Machines Corporation Virtual machine placement in a cloud computing environment based on factors including optimized processor-memory affinity
CN105335214A (en) * 2015-11-12 2016-02-17 国云科技股份有限公司 Virtual machine failure detection and recovery method

Also Published As

Publication number Publication date
CN107656796A (en) 2018-02-02

Similar Documents

Publication Publication Date Title
US10929244B2 (en) Optimized backup of clusters with multiple proxy servers
CN107656796B (en) Virtual machine cold migration method, system and equipment
CN108549580B (en) Method for automatically deploying Kubernets slave nodes and terminal equipment
US10700947B2 (en) Life cycle management method and device for network service
US8978032B2 (en) Host naming application programming interface
KR101403416B1 (en) Method system for managing virtual machine storage space and physical host
EP3185516A1 (en) Address processing method, related device and system
CN104461744A (en) Resource allocation method and device
CN101351772A (en) Method and system for sharing files among different virtual machine images
US20130283267A1 (en) Virtual machine construction
EP3786802A1 (en) Method and device for failover in hbase system
EP3879875A1 (en) Resource change method and device, apparatus, and storage medium
CN104793981B (en) A kind of online snapshot management method and device of cluster virtual machine
WO2014142217A1 (en) Information processing system and method for relocating application
CN107329802B (en) Virtual machine creating method and electronic equipment
CN107566470B (en) Method and device for managing virtual machine in cloud data system
WO2016107219A1 (en) Data recovery method and apparatus
CN103984621B (en) log separation method and system
CN110134489A (en) Using moving method and device, system, storage medium, using upper cloud tool
CN107783826B (en) Virtual machine migration method, device and system
CN110290172B (en) Container application cloning method and device, computer equipment and storage medium
CN109711193B (en) Storage space sharing method and device
CN111722909A (en) Virtual machine migration method, system, equipment and storage medium
CN114221971B (en) Data synchronization method, device, server, storage medium and product
CN112162964B (en) Self-adaptive data synchronization method, device, computer equipment and storage medium

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