RU2813491C1 - Method and device for transferring virtual machine over cloud platform, as well as data medium and electronic device - Google Patents

Method and device for transferring virtual machine over cloud platform, as well as data medium and electronic device Download PDF

Info

Publication number
RU2813491C1
RU2813491C1 RU2023101298A RU2023101298A RU2813491C1 RU 2813491 C1 RU2813491 C1 RU 2813491C1 RU 2023101298 A RU2023101298 A RU 2023101298A RU 2023101298 A RU2023101298 A RU 2023101298A RU 2813491 C1 RU2813491 C1 RU 2813491C1
Authority
RU
Russia
Prior art keywords
virtual machine
cloud platform
target
disk
source
Prior art date
Application number
RU2023101298A
Other languages
Russian (ru)
Inventor
И Чжан
Гуанкунь СУНЬ
Мэйфэн ПАНЬ
Ифан ЮЙ
Original Assignee
Зте Корпорейшн
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 Зте Корпорейшн filed Critical Зте Корпорейшн
Application granted granted Critical
Publication of RU2813491C1 publication Critical patent/RU2813491C1/en

Links

Abstract

FIELD: data processing.
SUBSTANCE: invention relates to the technical field of transferring virtual machines, in particular to a method and a device for cross-cloud transfer of a virtual machine, as well as to a data carrier and an electronic device. Technical result is achieved due to creation on target cloud platform of target virtual machine for transfer, wherein the configuration information of the target virtual machine is matched with the configuration information of the source virtual machine on the source cloud platform, group of network ports of a target virtual machine is configured as a group of network ports of a target cloud platform, and the disk repository of the target virtual machine is configured as the disk repository of the target cloud platform; and alternately transferring file nodes in accordance with the structure of the disk file chain of the source virtual machine on the source cloud platform to the disk repository of the target virtual machine on the target cloud platform through network copying.
EFFECT: enabling transfer of a virtual machine from one cloud platform to another without changing the structure of the chain of disk files of the virtual machine itself.
8 cl, 10 dwg

Description

Ссылка на родственную заявкуLink to related application

Данная заявка основана на заявке на патент Китая №202010582905.X, поданной 23 июня 2020 года, и испрашивает приоритет по указанной заявке, содержание которой полностью включено в настоящий документ посредством ссылки.This application is based on Chinese Patent Application No. 202010582905.X, filed on June 23, 2020, and claims priority to the said application, the contents of which are incorporated herein by reference in their entirety.

Область техники, к которой относится настоящее изобретениеField of technology to which the present invention relates

Варианты осуществления настоящего изобретения относятся к технической области переноса виртуальных машин, в частности, к способу и устройству для кросс-облачного переноса виртуальной машины, а также к носителю данных и электронному устройству.Embodiments of the present invention relate to the technical field of virtual machine migration, in particular to a method and apparatus for cross-cloud migration of a virtual machine, as well as a storage medium and an electronic device.

Предшествующий уровень техники настоящего изобретенияBACKGROUND OF THE INVENTION

Многие предприятия часто имеют свои собственные дата-центры на базе облачных платформ, распределенные по разным местам, обеспечивая возможность работы на облачных компьютерах для работников в различных регионах мира. Иногда бывает так, что рабочее место находится в точке А, а облачный компьютер находится на облачной платформе в точке В. В результате пользователи не могут воспользоваться ближайшим облачным компьютером, а это может привести к образованию узкого места в пропускной способности сети, обеспечивая хороший пользовательский опыт.Many businesses often have their own cloud-based data centers distributed across multiple locations, providing cloud computing capabilities to workers in different regions of the world. Sometimes it happens that the desktop is located at point A, and the cloud computer is located on the cloud platform at point B. As a result, users cannot use the nearest cloud computer, and this may lead to a bottleneck in network bandwidth, providing a good user experience .

Вместе с тем, когда в ресурсах дата-центра образуется узкое место, необходимо осуществить календарное планирование ресурсов и перенести виртуальные машины в дата-центры, обладающие избыточными ресурсами. Существующие схемы переноса могут выполнять общий перенос виртуальных машин только в пределах одного и того же дата-центра, а если требуется перенос по разным местам, то этот перенос может быть осуществлен только путем экспорта виртуальной машины из дата-центра А с ее последующим импортированием на облачную платформу дата-центра В.However, when a bottleneck occurs in data center resources, it is necessary to schedule resources and move virtual machines to data centers that have redundant resources. Existing transfer schemes can perform a general transfer of virtual machines only within the same data center, and if transfer is required to different locations, then this transfer can only be carried out by exporting a virtual machine from data center A and then importing it to the cloud data center platform V.

Многие учебные заведения строят свои собственные облачные компьютеры и часто внедряют схему развертывания с использованием одной машины «все в одном» на платформе виртуализации в каждой классной комнате, которая характеризуется легкостью развертывания и обслуживания. Указанная стандартная схема имеет следующие недостатки: (1) перенос внутри дата-центра не в состоянии обеспечить перенос по разным местам, а может лишь спланировать распределение ресурсов по различным пулам ресурсов на облачной платформе; (2) операция импорта-экспорта требует экспорта виртуальной машины из исходного дата-центра с последующим импортированием образа диска и конфигурационного файла экспортированной виртуальной машины в целевую виртуальную машину, что - в свою очередь - требует вмешательства оператора в процесс на всем протяжении его выполнения и сложно в реализации; и (3) операция импорта-экспорта изменяет структуру цепочки дисковых файлов виртуальной машины, что делает невозможным сохранение логической последовательности структуры цепочки дисковых файлов.Many schools build their own cloud computing and often implement a deployment scheme using a single all-in-one machine on a virtualization platform in each classroom, which is easy to deploy and maintain. This standard scheme has the following disadvantages: (1) intra-data center transfer is not able to ensure transfer to different locations, but can only plan the distribution of resources among different resource pools on the cloud platform; (2) the import-export operation requires exporting a virtual machine from the source data center and then importing the disk image and configuration file of the exported virtual machine into the target virtual machine, which - in turn - requires operator intervention in the process throughout its execution and is complex in implementation; and (3) the import-export operation changes the structure of the virtual machine's disk file chain, making it impossible to maintain the logical consistency of the disk file chain structure.

Ввиду вышеизложенного существует насущная потребность в устойчивом к сбоям варианте реализации с резервированием, который может облегчить кросс-облачный перенос по разным местам без изменения структуры цепочки дисковых файлов самой виртуальной машины.In view of the above, there is a pressing need for a fault-tolerant redundant implementation that can facilitate cross-cloud migration across multiple locations without changing the disk file chain structure of the virtual machine itself.

Краткое раскрытие настоящего изобретенияBrief Disclosure of the Present Invention

Вариантами осуществления настоящего изобретения предложен способ и устройство для кросс-облачного переноса виртуальной машины, носитель данных и электронное устройство для устранения, по меньшей мере, до определенной степени одной из технических проблем, в том числе проблем, обусловленных тем, что перенос данных внутри дата-центров не в состоянии реализовать перенос данных по разным местам, а также тем, что импорт и экспорт данных требует вмешательства оператора в процесс на всем протяжении его выполнения, и при этом не может быть сохранена логическая последовательность структуры цепочки дисковых файлов.Embodiments of the present invention provide a method and apparatus for cross-cloud transfer of a virtual machine, storage medium, and electronic device to eliminate, at least to a certain extent, one of the technical problems, including problems caused by the fact that data transfer within the data centers are not able to implement the transfer of data to different places, and also because importing and exporting data requires operator intervention in the process throughout its execution, and the logical sequence of the structure of the chain of disk files cannot be maintained.

Согласно одному из вариантов осуществления настоящего изобретения предложен способ кросс-облачного переноса виртуальной машины, предусматривающий следующие стадии: создание на целевой облачной платформе целевой виртуальной машины для переноса, причем информация о конфигурации целевой виртуальной машины согласуется с информацией о конфигурации исходной виртуальной машины на исходной облачной платформе, группа сетевых портов целевой виртуальной машины сконфигурирована как группа сетевых портов целевой облачной платформы, а дисковый репозиторий целевой виртуальной машины сконфигурирован как дисковый репозиторий целевой облачной платформы; и поочередный перенос файловых узлов в соответствии со структурой цепочки дисковых файлов исходной виртуальной машины на исходной облачной платформе - в дисковый репозиторий целевой виртуальной машины на целевой облачной платформе посредством сетевого копирования.According to one embodiment of the present invention, a method for cross-cloud migration of a virtual machine is provided, which includes the following steps: creating a target virtual machine for migration on a target cloud platform, wherein the configuration information of the target virtual machine is consistent with the configuration information of the source virtual machine on the source cloud platform , the network port group of the target virtual machine is configured as the network port group of the target cloud platform, and the disk repository of the target virtual machine is configured as the disk repository of the target cloud platform; and sequentially transferring file nodes in accordance with the disk file chain structure of the source virtual machine on the source cloud platform to the disk repository of the target virtual machine on the target cloud platform through network copying.

Согласно другому варианту осуществления настоящего изобретения предложено устройство для кросс-облачного переноса виртуальной машины, содержащее: создающий модуль, выполненный с возможностью создания на целевой облачной платформе целевой виртуальной машины для переноса, причем информация о конфигурации целевой виртуальной машины согласуется с информацией о конфигурации исходной виртуальной машины на исходной облачной платформе, группа сетевых портов целевой виртуальной машины сконфигурирована как группа сетевых портов целевой облачной платформы, а дисковый репозиторий целевой виртуальной машины сконфигурирован как дисковый репозиторий целевой облачной платформы; и модуль переноса, выполненный с возможностью поочередного переноса файловых узлов - в соответствии со структурой цепочки дисковых файлов исходной виртуальной машины на исходной облачной платформе в дисковый репозиторий целевой виртуальной машины на целевой облачной платформе посредством сетевого копирования.According to another embodiment of the present invention, an apparatus for cross-cloud migration of a virtual machine is provided, comprising: a creation module configured to create on a target cloud platform a target virtual machine for migration, wherein the configuration information of the target virtual machine is consistent with the configuration information of the source virtual machine on the source cloud platform, the network port group of the target virtual machine is configured as the network port group of the target cloud platform, and the disk repository of the target virtual machine is configured as the disk repository of the target cloud platform; and a transfer module configured to sequentially transfer file nodes - in accordance with the structure of the chain of disk files of the source virtual machine on the source cloud platform to the disk repository of the target virtual machine on the target cloud platform through network copying.

Согласно еще одному варианту осуществления настоящего изобретения также предложен машиночитаемый носитель данных для хранения компьютерной программы, причем эта компьютерная программа выполнена с возможностью инициирования реализации стадий любого из вариантов осуществления указанного способа после приведения ее в исполнение.According to yet another embodiment of the present invention, there is also provided a computer-readable storage medium for storing a computer program, the computer program being configured to initiate the implementation of steps of any of the embodiments of the method after being executed.

Согласно еще одному варианту осуществления настоящего изобретения также предложено электронное устройство, содержащее память и процессор, причем в памяти хранится компьютерная программа, а процессор выполнен с возможностью выполнения этой компьютерной программы с целью реализации стадий любого из вариантов осуществления указанного способа.Another embodiment of the present invention also provides an electronic device comprising a memory and a processor, wherein the memory stores a computer program and the processor is configured to execute the computer program to implement steps of any of the embodiments of the method.

Краткое описание чертежейBrief description of drawings

На фиг. 1 представлена блок-схема, иллюстрирующая алгоритм реализации способа кросс-облачного переноса виртуальной машины согласно одному из вариантов осуществления настоящего изобретения;In fig. 1 is a flowchart illustrating an implementation algorithm of a method for cross-cloud transfer of a virtual machine according to one embodiment of the present invention;

На фиг. 2 показана схема устройства для кросс-облачного переноса виртуальной машины согласно одному из вариантов осуществления настоящего изобретения;In fig. 2 shows a diagram of a device for cross-cloud transfer of a virtual machine according to one embodiment of the present invention;

На фиг. 3 показана схема устройства для кросс-облачного переноса виртуальной машины с модулем управления согласно одному из вариантов осуществления настоящего изобретения;In fig. 3 shows a diagram of a device for cross-cloud transfer of a virtual machine with a management module according to one of the embodiments of the present invention;

На фиг. 4 показана схема устройства для кросс-облачного переноса виртуальной машины с исполнительным блоком согласно одному из вариантов осуществления настоящего изобретения;In fig. 4 shows a diagram of a device for cross-cloud transfer of a virtual machine with an execution unit according to one of the embodiments of the present invention;

На фиг. 5 представлено схематическое изображение, иллюстрирующее схему переноса виртуальной машины на облачную платформу в другом месте путем экспорта и импорта в зависимости от конкретной ситуации;In fig. 5 is a schematic diagram illustrating the flow of transferring a virtual machine to a cloud platform in another location by exporting and importing depending on the specific situation;

На фиг. 6 представлено схематическое изображение, иллюстрирующее выполнение общего переноса виртуальной машины путем кросс-облачного переноса согласно одному из вариантов осуществления настоящего изобретения;In fig. 6 is a schematic diagram illustrating the implementation of a shared transfer of a virtual machine by cross-cloud transfer according to one embodiment of the present invention;

На фиг. 7 представлено схематическое изображение, иллюстрирующее схему внутриоблачного общего переноса согласно одному из вариантов осуществления настоящего изобретения;In fig. 7 is a schematic diagram illustrating an intra-cloud shared transport scheme according to one embodiment of the present invention;

На фиг. 8 представлена блок-схема, иллюстрирующая алгоритм реализации способа внутриоблачного общего переноса согласно одному из вариантов осуществления настоящего изобретения;In fig. 8 is a flowchart illustrating an implementation algorithm of an intra-cloud shared transfer method according to one embodiment of the present invention;

На фиг. 9 показана схема сравнения условий сетевого взаимодействия, на которых основан внутриоблачный перенос и кросс-облачный перенос согласно одному из вариантов осуществления настоящего изобретения; иIn fig. 9 is a diagram showing a comparison of network conditions on which intra-cloud transfer and cross-cloud transfer are based according to one embodiment of the present invention; And

На фиг. 10 представлена блок-схема, иллюстрирующая алгоритм реализации способа кросс-облачного переноса виртуальной машины по разным местам согласно одному из вариантов осуществления настоящего изобретения.In fig. 10 is a flowchart illustrating a flowchart for implementing a method for cross-cloud transfer of a virtual machine to different locations according to one embodiment of the present invention.

Подробное раскрытие настоящего изобретенияDetailed Disclosure of the Present Invention

Варианты осуществления настоящего изобретения будут подробно описаны ниже в привязке к прилагаемым чертежам и на конкретных примерах своей реализации.Embodiments of the present invention will be described in detail below in connection with the accompanying drawings and specific examples of their implementation.

Следует отметить, что термины «первый», «второй» и тому подобные, встречающиеся в описании настоящего изобретения и на указанных чертежах, служат исключительно для проведения различия между аналогичными объектами и не обязательно указывают на конкретный порядок следования или последовательность.It should be noted that the terms “first”, “second” and the like appearing in the description of the present invention and in said drawings are intended solely to distinguish between like objects and do not necessarily indicate a particular order or sequence.

Этим вариантом осуществления настоящего изобретения предложен способ кросс-облачного переноса виртуальной машины. На фиг. 1 представлена блок-схема, иллюстрирующая способ кросс-облачного переноса виртуальной машины согласно этому варианту осуществления настоящего изобретения. Как показано на фиг. 1, этот способ предусматривает выполнение стадий, описанных ниже.This embodiment of the present invention provides a method for cross-cloud migration of a virtual machine. In fig. 1 is a flowchart illustrating a method for cross-cloud migration of a virtual machine according to this embodiment of the present invention. As shown in FIG. 1, this method involves performing the steps described below.

На стадии S101 на целевой облачной платформе создается целевая виртуальная машина для переноса, причем информация о конфигурации целевой виртуальной машины согласуется с информацией о конфигурации исходной виртуальной машины на исходной облачной платформе, группа сетевых портов целевой виртуальной машины сконфигурирована как группа сетевых портов целевой облачной платформы, а дисковый репозиторий целевой виртуальной машины сконфигурирован как дисковый репозиторий целевой облачной платформы; иIn step S101, a migration target virtual machine is created on the target cloud platform, the configuration information of the target virtual machine is matched with the configuration information of the source virtual machine on the source cloud platform, the network port group of the target virtual machine is configured as the network port group of the target cloud platform, and the disk repository of the target virtual machine is configured as a disk repository of the target cloud platform; And

На стадии S102 осуществляется поочередный перенос файловых узлов - в соответствии со структурой цепочки дисковых файлов исходной виртуальной машины на исходной облачной платформе в дисковый репозиторий целевой виртуальной машины на целевой облачной платформе посредством сетевого копирования.At step S102, file nodes are sequentially transferred in accordance with the disk file chain structure of the source virtual machine on the source cloud platform to the disk repository of the target virtual machine on the target cloud platform through network copying.

Перед выполнением стадии S101 этого варианта осуществления настоящего изобретения предложенный способ может предусматривать следующее: добавление исходной виртуальной машины, которая должна быть перенесена, в список переноса через интерфейс управления.Before executing step S101 of this embodiment of the present invention, the proposed method may include the following: adding the source virtual machine to be migrated to the migration list through the management interface.

В этом варианте осуществления настоящего изобретения предусмотрено, что после добавления исходной виртуальной машины, которая должна быть перенесена, в список переноса через интерфейс управления предложенный способ может дополнительно предусматривать следующее: задание времени начала переноса исходной виртуальной машины; и запуск операции переноса исходной виртуальной машины по достижении времени начала переноса.In this embodiment of the present invention, it is provided that after adding the source virtual machine to be migrated to the migration list through the management interface, the proposed method may further include the following: setting a start time for the migration of the source virtual machine; and starting a migration operation of the source virtual machine when the migration start time is reached.

В этом варианте осуществления настоящего изобретения стадия S102 может предусматривать следующее: построение списка подлежащих переносу дисков исходной виртуальной машины и построение списка подлежащих переносу файлов каждого диска; и выбор хост-узла в исходной облачной платформе или целевой облачной платформе для выполнения операции копирования дисковых файлов исходной виртуальной машины в дисковый репозиторий целевой виртуальной машины.In this embodiment of the present invention, step S102 may include the following: constructing a list of disks of the source virtual machine to be migrated, and constructing a list of files of each disk to be migrated; and selecting a host node in the source cloud platform or the target cloud platform to perform an operation of copying the disk files of the source virtual machine to the disk repository of the target virtual machine.

В этом варианте осуществления настоящего изобретения выбор хост-узла в исходной облачной платформе для выполнения операции копирования дисковых файлов исходной виртуальной машины в дисковый репозиторий целевой виртуальной машины может предусматривать следующее: выбор хост-узла исходной облачной платформы для выполнения операции копирования дисковых файлов; передачу сообщения на целевую облачную платформу для определения того, появился ли уже скопированный общий узел в целевой виртуальной машине; ожидание хост-узлом исходной облачной платформы завершения копирования общего узла после определения факта осуществления его копирования; и невыполнение хост-узлом исходной облачной платформы операции копирования общего узла по факту определения того, что копирование общего узла завершено; и осуществление копирования файлового узла следующего диска.In this embodiment of the present invention, selecting a host node in the source cloud platform to perform an operation of copying the disk files of the source virtual machine to a disk repository of the target virtual machine may include the following: selecting a host node of the source cloud platform to perform the copying operation of the disk files; transmitting a message to the target cloud platform to determine whether the copied shared node has already appeared in the target virtual machine; waiting for the host node of the source cloud platform to complete the copying of the common node after determining the fact of its copying; and failure of the host node of the source cloud platform to perform the copy operation of the shared node upon determining that the copy of the shared node is completed; and performing a copy of the file node of the next disk.

В этом варианте осуществления настоящего изобретения предусмотрено, что после передачи сообщения на целевую облачную платформу для определения того, появился ли уже скопированный общий узел в целевой виртуальной машине, предложенный способ может дополнительно предусматривать следующее: передачу, по факту того, что общий узел должен быть скопирован в первый раз, сообщения на хост-узел целевой облачной платформы для инициации выполнения хост-узлом целевой облачной платформы сетевого копирования общего узла.In this embodiment of the present invention, it is provided that after transmitting a message to the target cloud platform to determine whether the copied shared node has already appeared in the target virtual machine, the proposed method may further include the following: transmitting, upon the fact that the shared node should be copied for the first time, messages to the target cloud platform host node to initiate the target cloud platform host node to perform a network copy of the shared node.

Посредством выполнения описанных выше стадий осуществляется создание целевой виртуальной машины без дисковых объектов в другом месте дата-центра, активируется канал сообщений для передачи компонентов сообщений между облачными платформами в разных местах, после чего осуществляется абсолютно симметричное копирование цепочки дисковых файлов путем сетевого копирования через сеть управления, что устраняет проблемы, обусловленные тем, что перенос внутри дата-центра не может обеспечить перенос по разным местам, что импорт и экспорт требуют вмешательства оператора в процесс на всем протяжении его выполнения, и что в некоторых ситуациях невозможно сохранить постоянство структуры цепочки дисковых файлов, благодаря чему достигается эффект кросс-облачного переноса виртуальной машины по разным местам и сохраняется постоянство структуры цепочки дисковых файлов.By performing the steps described above, a target virtual machine without disk objects is created in another location in the data center, a message channel is activated to transfer message components between cloud platforms in different locations, and then a completely symmetric copy of the chain of disk files is carried out by network copying through the management network, which eliminates the problems that intra-data center migration cannot support cross-location migration, that importing and exporting require operator intervention throughout the process, and that in some situations it is impossible to maintain a consistent disk file chain structure, thanks to which achieves the effect of cross-cloud transfer of a virtual machine to different places and maintains the constancy of the structure of the chain of disk files.

После всестороннего ознакомления с описанием указанных вариантов осуществления настоящего изобретения специалисты в данной области техники могут четко понять, что способ согласно раскрытым выше вариантам его осуществления может быть реализован программными средствами в дополнение к необходимым универсальным аппаратным платформам; и, разумеется, он может быть также реализован аппаратными средствами, но во многих случаях первый вариант более предпочтителен. Исходя их этого понимания, объекты или части, которые дополняют собой существующую технологию технических схем настоящего изобретения, могут быть реализованы в виде программных продуктов, которые хранятся в носителе данных (таком как ROM/RAM (постоянное запоминающее устройство/оперативное запоминающее устройство), магнитный диск и оптический диск) и содержат несколько команд для инициирования выполнения терминалом (таким как мобильный телефон, компьютер, сервер или сетевое устройство) способов согласно различным вариантам осуществления настоящего изобретения.After thoroughly reading the description of these embodiments of the present invention, those skilled in the art can clearly understand that the method according to the embodiments disclosed above can be implemented in software in addition to the necessary general-purpose hardware platforms; and, of course, it can also be implemented in hardware, but in many cases the first option is more preferable. Based on this understanding, objects or parts that complement the existing technology of the technical circuits of the present invention can be implemented as software products that are stored in a storage medium (such as ROM/RAM (read-only memory/random access memory), magnetic disk and an optical disk) and contain several commands for causing a terminal (such as a mobile phone, a computer, a server, or a network device) to perform methods according to various embodiments of the present invention.

Этим вариантом осуществления настоящего изобретения дополнительно предложено устройство для кросс-облачного переноса виртуальной машины, выполненное с возможностью реализации указанных и прочих вариантов осуществления заявленного изобретения, которые были раскрыты выше, и которые далее по тексту не будут описываться повторно. Термины «модуль» и «блок», используемые ниже по тексту, могут обозначать комбинацию программных и/или аппаратных средств, которые выполняют заданную функцию. Хотя устройство, описанное в последующих вариантах осуществления настоящего изобретения, предпочтительно может быть реализовано в виде программных средств, также возможны и предусмотрены варианты его реализации в виде аппаратных средств или комбинации программных и аппаратных средств.This embodiment of the present invention further provides a device for cross-cloud transfer of a virtual machine, configured to implement the above and other embodiments of the claimed invention that have been disclosed above and which will not be described again hereinafter. The terms "module" and "block", as used below, can refer to a combination of software and/or hardware that performs a given function. Although the apparatus described in the following embodiments of the present invention may preferably be implemented in software, embodiments in hardware or a combination of software and hardware are also possible and contemplated.

На фиг. 2 показана схема устройства для кросс-облачного переноса виртуальной машины согласно одному из вариантов осуществления настоящего изобретения. Как показано на фиг. 2, предложенное устройство включает в себя создающий модуль 10 и модуль 20 переноса.In fig. 2 shows a diagram of an apparatus for cross-cloud transfer of a virtual machine according to one embodiment of the present invention. As shown in FIG. 2, the proposed device includes a creation module 10 and a transfer module 20.

Создающий модуль 10 выполнен с возможностью создания на целевой облачной платформе целевой виртуальной машины для переноса, причем информация о конфигурации целевой виртуальной машины согласуется с информацией о конфигурации исходной виртуальной машины на исходной облачной платформе, группа сетевых портов целевой виртуальной машины сконфигурирована как группа сетевых портов целевой облачной платформы, а дисковый репозиторий целевой виртуальной машины сконфигурирован как дисковый репозиторий целевой облачной платформы.The creation module 10 is configured to create a target virtual machine on the target cloud platform for migration, wherein the configuration information of the target virtual machine is consistent with the configuration information of the source virtual machine on the source cloud platform, the network port group of the target virtual machine is configured as the network port group of the target cloud platform, and the disk repository of the target virtual machine is configured as the disk repository of the target cloud platform.

Модуль 20 переноса выполнен с возможностью поочередного переноса файловых узлов - в соответствии со структурой цепочки дисковых файлов исходной виртуальной машины на исходной облачной платформе в дисковый репозиторий целевой виртуальной машины на целевой облачной платформе путем сетевого копирования.The transfer module 20 is configured to sequentially transfer file nodes - in accordance with the structure of the chain of disk files of the source virtual machine on the source cloud platform to the disk repository of the target virtual machine on the target cloud platform by network copying.

На фиг. 3 показана схема устройства для кросс-облачного переноса виртуальной машины с модулем управления согласно одному из вариантов осуществления настоящего изобретения. Как показано на фиг. 3, предложенное устройство может дополнительно включать в себя модуль 30 управления и задающий модуль 40 в дополнение ко всем модулям, показанным на фиг. 2.In fig. 3 shows a diagram of a device for cross-cloud transfer of a virtual machine with a management module according to one of the embodiments of the present invention. As shown in FIG. 3, the proposed apparatus may further include a control module 30 and a driver module 40 in addition to all modules shown in FIG. 2.

Модуль 30 управления выполнен с возможностью добавления исходной виртуальной машины, которая должна быть перенесена, в список переноса через интерфейс управления перед созданием целевой виртуальной машины.The management module 30 is configured to add the source virtual machine to be migrated to the migration list through the management interface before creating the target virtual machine.

Задающий модуль 40 выполнен с возможностью задания времени начала переноса исходной виртуальной машины с тем, чтобы можно было запустить выполнение операции по переносу исходной виртуальной машины по достижении времени начала переноса.The master module 40 is configured to set a start time for the migration of the source virtual machine, so that the migration operation of the source virtual machine can be started when the migration start time is reached.

На фиг. 4 показана схема устройства для кросс-облачного переноса виртуальной машины с исполнительным блоком согласно одному из вариантов осуществления настоящего изобретения. Как показано на фиг. 4, предложенное устройство включает в себя все модули, показанные на фиг. 2; но, кроме того, модуль 20 переноса может дополнительно включать в себя блок 21 построения списков и исполнительный блок 22.In fig. 4 shows a diagram of a device for cross-cloud transfer of a virtual machine with an execution unit according to one of the embodiments of the present invention. As shown in FIG. 4, the proposed device includes all the modules shown in FIG. 2; but, in addition, the transfer module 20 may further include a list building unit 21 and an execution unit 22.

Блок 21 построения списков выполнен с возможностью построения списка подлежащих переносу дисков исходной виртуальной машины и построения списка подлежащих переносу файлов каждого диска.The list building block 21 is configured to build a list of disks of the source virtual machine to be transferred and to build a list of files of each disk to be transferred.

Исполнительный блок 22 выполнен с возможностью выбора хост-узла в исходной облачной платформе или целевой облачной платформе для выполнения операции копирования дисковых файлов исходной виртуальной машины в дисковый репозиторий целевой виртуальной машины.The execution unit 22 is configured to select a host node in the source cloud platform or the target cloud platform to perform an operation of copying the disk files of the source virtual machine to the disk repository of the target virtual machine.

В этом варианте осуществления настоящего изобретения исполнительный блок 22 может быть также выполнен с возможностью: выбора хост-узла исходной облачной платформы для выполнения операции копирования дисковых файлов; передачи сообщения на целевую облачную платформу для определения того, появился ли уже скопированный общий узел в целевой виртуальной машине; ожидания завершения копирования по факту определения того, что общий узел находится в процесс копирования; невыполнения операции копирования общего узла по факту завершения копирования общего узла; и выполнения копирования файлового узла следующего диска.In this embodiment of the present invention, the execution unit 22 may also be configured to: select a source cloud platform host to perform a disk file copy operation; transmitting a message to the target cloud platform to determine whether the copied shared node has already appeared in the target virtual machine; waiting for the copy to complete upon determining that the shared node is in the process of copying; failure to perform the copying operation of the shared node upon completion of copying of the shared node; and performing a copy of the file node of the next disk.

В этом варианте осуществления настоящего изобретения исполнительный блок 22 может быть также выполнен с возможностью передачи сообщения на хост-узел целевой облачной платформы по факту того, что копирование общего узла должно быть выполнено в первый раз, для инициирования выполнения хост-узлом целевой облачной платформы сетевого копирования общего узла.In this embodiment of the present invention, the execution unit 22 may also be configured to transmit a message to the target cloud platform host upon the fact that a shared node copy is to be performed for the first time, to trigger the target cloud platform host to perform a network copy. common node.

Следует отметить, что описанные выше модули могут быть реализованы в виде программных или аппаратных средств, причем последние могут быть реализованы, помимо прочего, следующим образом: все указанные выше модули располагаются на одном и том же процессоре; или указанные выше модули располагаются по отдельности на разных процессорах в любой комбинации.It should be noted that the modules described above may be implemented in software or hardware, the latter may be implemented, among other things, as follows: all of the above modules are located on the same processor; or the above modules are located separately on different processors in any combination.

Одним из вариантов осуществления настоящего изобретения дополнительно предложен машиночитаемый носитель данных для хранения компьютерной программы, причем эта компьютерная программа выполнена с возможностью инициирования реализации стадий любого из вариантов осуществления указанного способа после приведения ее в исполнение.One embodiment of the present invention further provides a computer-readable storage medium for storing a computer program, the computer program being configured to initiate steps of any of the embodiments of the method upon execution.

В одном из примеров своего осуществления указанный машиночитаемый носитель данных может включать в себя, помимо прочего, различные носители, на которых могут храниться компьютерные программы, например, такие носители, как флеш-память, ROM (постоянное запоминающее устройство), RAM (оперативное запоминающее устройство), съемный жесткий диск, магнитный диск и оптический диск.In one embodiment, said computer-readable storage medium may include, but is not limited to, various media on which computer programs can be stored, for example, media such as flash memory, ROM (read-only memory), RAM (random access memory). ), removable hard disk, magnetic disk and optical disk.

Одним из вариантов осуществления настоящего изобретения дополнительно предложено электронное устройство, содержащее память и процессор, причем в памяти хранится компьютерная программа, а процессор выполнен с возможностью приведения в исполнение компьютерной программы для реализации стадий любого из описанных выше вариантов осуществления способа согласно настоящему изобретению.One embodiment of the present invention further provides an electronic device comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the computer program to implement steps of any of the above-described embodiments of the method of the present invention.

В одном из примеров своего осуществления указанное электронное устройство может дополнительно содержать передающее устройство и устройство ввода/вывода, причем передающее устройство соединено с процессором, и устройство ввода/вывода также соединено с процессором.In one example of its implementation, the specified electronic device may further comprise a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is also connected to the processor.

К конкретным примерам реализации настоящего изобретения относятся примеры, описанные в рамках раскрытых выше вариантов осуществления настоящего изобретения, которые в рамках раскрытия этого варианта осуществления настоящего изобретения далее по тексту повторно не описываются.Specific embodiments of the present invention include those described in terms of the above-disclosed embodiments of the present invention, which will not be described again within the scope of the disclosure of this embodiment of the present invention.

Для облегчения понимания технических схем согласно заявленному изобретению ниже по тексту настоящего документа будет представлено подробное разъяснение на примере вариантов осуществления заявленного изобретения для конкретных сценариев.To facilitate understanding of the technical diagrams according to the claimed invention, a detailed explanation will be provided below in the text of this document using the example of embodiments of the claimed invention for specific scenarios.

Одним из вариантов осуществления настоящего изобретения предложен способ кросс-облачного переноса виртуальной машины по разным местам. За счет создания целевой виртуальной машины без дисковых объектов в ином месте дата-центра, активации канала сообщений для передачи компонентов сообщений между облачными платформами в разных местах, и абсолютно симметричного копирования цепочки дисковых файлов путем сетевого копирования через сеть управления в итоге обеспечивается кросс-облачный перенос виртуальной машины; при этом благодаря конструкции, в которой общие узлы диска повторно не копируются, повышается эффективность переноса по разным местам.One embodiment of the present invention provides a method for cross-cloud transfer of a virtual machine to different locations. By creating a target virtual machine without disk objects elsewhere in the data center, activating a message channel to transfer message components between cloud platforms in different locations, and completely symmetrically copying a chain of disk files through network copying through the management network, the result is cross-cloud migration. virtual machine; however, the design in which common disk nodes are not repeatedly copied improves the efficiency of transferring across different locations.

Одним из вариантов осуществления настоящего изобретения предложен способ общего переноса виртуальной машины в другое место путем сетевого копирования в сценарии использования облачного компьютера в другом месте. Во-первых, эта схема обеспечивает возможность реализации общего переноса виртуальной машины из облачной платформы дата-центра А на облачную платформу дата-центра В. Во-вторых, эта схема обеспечивает возможность задания времени начала и окончания переноса, что позволяет предотвратить негативное влияние переноса на работу пользователей в обычном режиме, поскольку он осуществляется в нерабочие часы. Кроме того, при использовании этой схемы сбой при переносе не окажет никакого влияния на исходную виртуальную машину, и пользователи смогут по-прежнему пользоваться облачным компьютером в обычном режиме. Более того, эта схема сохраняет структуру цепочки дисковых файлов виртуальной машины, и структуры дисков целевой виртуальной машины и исходной виртуальной машины согласуются друг с другом. И, наконец, эта схема повторно не копирует общие файловые узлы виртуальной машины, которые уже были скопированы, что повышает эффективность переноса.One embodiment of the present invention provides a method for general migration of a virtual machine to another location by network copying in a scenario where a cloud computer is used in another location. Firstly, this scheme provides the ability to implement a general transfer of a virtual machine from the cloud platform of data center A to the cloud platform of data center B. Secondly, this scheme provides the ability to set the start and end time of the transfer, which helps prevent the negative impact of the transfer on work of users as usual, since it is carried out during non-working hours. Additionally, with this design, a migration failure will not have any impact on the source virtual machine, and users can continue to use the cloud computer as normal. Moreover, this scheme preserves the disk file chain structure of the virtual machine, and the disk structures of the target virtual machine and the source virtual machine are consistent with each other. Finally, this scheme does not re-copy virtual machine file shares that have already been copied, making migration more efficient.

Суть одного из вариантов осуществления настоящего изобретения заключается в том, что за счет возможности передачи компонентов сообщений между облачными платформами обеспечивается возможность сообщения между собой платформ управления с целью получения данных по управлению виртуальной машиной; файловые узлы диска виртуальной машины поочередно копируются путем сетевого копирования в ходе абсолютно симметричного процесса копирования, что обеспечивает согласованность структур дисков исходной виртуальной машины и целевой виртуальной машины; и при этом за счет бесповторного копирования общих файловых узлов диска может быть осуществлен общий перенос виртуальной машины в иное место в условиях жестких ограничений.The essence of one of the embodiments of the present invention is that due to the possibility of transmitting message components between cloud platforms, it is possible for management platforms to communicate with each other in order to obtain virtual machine management data; The file nodes of the virtual machine disk are copied one by one through network copying during a completely symmetric copy process, which ensures that the disk structures of the source virtual machine and the target virtual machine are consistent; and at the same time, due to the non-repeated copying of shared file nodes on the disk, a general transfer of the virtual machine to another location can be carried out under strict restrictions.

На фиг. 5 представлено схематическое изображение, иллюстрирующее схему переноса виртуальной машины на облачную платформу в другом месте путем экспорта и импорта в зависимости от конкретной ситуации. Как показано на фиг. 5, виртуальная машина переносится с облачной платформы в месте А в другое место путем выполнения операций экспорта и импорта виртуальной машины. Иначе говоря, сначала виртуальная машина в месте А экспортируется в NFC-хранилище; а затем файл образа диска и информация о конфигурации виртуальной машины в NFC-хранилище импортируются на облачную платформу в месте В путем выполнения операции импорта.In fig. 5 is a schematic diagram illustrating a flowchart for migrating a virtual machine to a cloud platform in another location by exporting and importing depending on the specific situation. As shown in FIG. 5, the virtual machine is transferred from the cloud platform in location A to another location by performing virtual machine export and import operations. In other words, first the virtual machine in location A is exported to NFC storage; and then the disk image file and virtual machine configuration information in the NFC storage are imported into the cloud platform at location B by performing an import operation.

На фиг. 6 представлено схематическое изображение, иллюстрирующее выполнение общего переноса виртуальной машины путем кросс-облачного переноса согласно одному из вариантов осуществления настоящего изобретения. Как показано на фиг. 6, сначала на облачной платформе в месте В создается целевая облачная машина для переноса, причем различные типы базовой информации о конфигурации этой виртуальной машины согласуются с аналогичной информацией по исходной виртуальной машине, виртуальная машина не содержит файлы дисковых объектов, репозиторий, где располагается диск, представляет собой репозиторий файлов дисковых объектов в выбранной облачной платформе В, а сетевая карта виртуальной машины сконфигурирована в виде группы сетевых портов в целевой облачной платформе; а затем - на основании структуры цепочки дисковых файлов осуществляется поочередный перенос файловых узлов в репозиторий облачной платформы в месте В посредством сетевого копирования.In fig. 6 is a schematic diagram illustrating the implementation of a shared virtual machine transfer by cross-cloud transfer according to one embodiment of the present invention. As shown in FIG. 6, first, a target cloud machine for migration is created on the cloud platform at location B, and various types of basic configuration information of this virtual machine are consistent with similar information of the source virtual machine, the virtual machine does not contain disk object files, the repository where the disk is located represents is a repository of disk object files in the selected cloud platform B, and the network card of the virtual machine is configured as a group of network ports in the target cloud platform; and then, based on the structure of the chain of disk files, file nodes are transferred one by one to the cloud platform repository in location B through network copying.

Если сравнить схемы, показанные на фиг. 5 и 6, то можно увидеть, что преимущества схемы переноса между дата-центрами над схемой импорта-экспорта заключаются в следующем: во-первых, процесс переноса полностью автоматизирован и не требует множественных вмешательств человека, что упрощает процесс выполнения операций; и, во-вторых, сохраняется структура цепочки дисковых файлов, благодаря чему может быть сохранена взаимосвязь «родитель-дочерний элемент» между файловыми узлами.If we compare the circuits shown in Fig. 5 and 6, we can see that the advantages of the transfer scheme between data centers over the import-export scheme are as follows: firstly, the transfer process is fully automated and does not require multiple human interventions, which simplifies the process of performing operations; and second, the disk file chain structure is preserved so that the parent-child relationship between file nodes can be preserved.

На фиг. 7 представлено схематическое изображение, иллюстрирующее схему внутриоблачного общего переноса согласно некоторым вариантам осуществления настоящего изобретения; а на фиг. 8 представлена блок-схема, иллюстрирующая алгоритм реализации способа внутриоблачного общего переноса согласно некоторым вариантам осуществления настоящего изобретения. Как показано на фиг. 7 и 8, предложенный способ предусматривает выполнение стадий, описанных ниже.In fig. 7 is a schematic diagram illustrating an intra-cloud shared transport scheme according to some embodiments of the present invention; and in fig. 8 is a flowchart illustrating an implementation algorithm of an intra-cloud shared transfer method according to some embodiments of the present invention. As shown in FIG. 7 and 8, the proposed method involves performing the steps described below.

На стадии S801 осуществляется построение списка подлежащих переносу дисков виртуальной машины.At step S801, a list of virtual machine disks to be transferred is constructed.

На стадии S802 осуществляется построение списка подлежащих переносу файлов каждого диска виртуальной машины.At step S802, a list of files to be transferred on each disk of the virtual machine is constructed.

На стадии S803 в платформе выбирается хост-узел для каждого файлового узла диска с целью копирования данных.In step S803, the platform selects a host node for each disk file node for the purpose of copying data.

На стадии S804 после завершения копирования дисковых файлов виртуальная машина может прогоняться в новом пуле ресурсов и новом репозиторий.At step S804, after copying disk files is completed, the virtual machine can be run in a new resource pool and a new repository.

На фиг. 9 показана схема сравнения условий сетевого взаимодействия, на которых основан внутриоблачный перенос и кросс-облачный перенос согласно одному из вариантов осуществления настоящего изобретения. Как показано на фиг. 9, репозиторий на одной и той же платформе могут быть соединены со всеми хост-узлами, благодаря чему перенос копии данных диска может быть осуществлен непосредственно путем выбора одного хост-узла через сеть хранения данных. Для переноса виртуальной машины между дата-центрами сети хранения данных в двух метах изолированы друг от друга. Следовательно, перенос файловых узлов диска с опорой на сеть управления осуществляется через взаимодействие двух хост-узлов в двух облачных платформах. Следовательно, кросс-облачный перенос может осуществить общий перенос виртуальной машины в экстремальных условиях без опоры на сеть хранения данных.In fig. 9 is a comparison diagram of the network conditions on which intra-cloud transfer and cross-cloud transfer are based according to one embodiment of the present invention. As shown in FIG. 9, the repository on the same platform can be connected to all host nodes, so that transferring a copy of disk data can be accomplished directly by selecting one host node through the storage area network. To transfer a virtual machine between data centers, storage networks in two metas are isolated from each other. Therefore, the migration of disk file nodes based on the management network is carried out through the interaction of two host nodes in two cloud platforms. Therefore, cross-cloud migration can achieve overall virtual machine migration under extreme conditions without relying on SAN.

По результатам сравнения схем импорта-экспорта и кросс-платформенного переноса, проиллюстрированных на фиг. 5 и 6, со схемами внутриплатформенного переноса виртуальной машины и кросс-облачного переноса, которые проиллюстрированы на фиг. 9, преимущества данной схемы могут быть суммированы следующим образом:Based on the results of a comparison of the import-export and cross-platform transfer schemes illustrated in Fig. 5 and 6, with the intra-platform virtual machine migration and cross-cloud migration diagrams illustrated in FIGS. 9, the advantages of this scheme can be summarized as follows:

(1) процесс выполнения операции полностью автоматизирован, и платформа может выполнить операцию переноса виртуальной машины просто путем добавления виртуальной машины, которая должна быть перенесена, в подлежащей переносу список и задания времени начала и окончания переноса;(1) the operation process is fully automated, and the platform can perform the virtual machine migration operation simply by adding the virtual machine to be migrated to the list to be migrated and setting the start and end time of the migration;

(2) перенос не изменяет структуру цепочки дисковых файлов, благодаря чему обеспечивается возможность сохранения дифференциально-отличительных характеристик, например, функции восстановления виртуальной машины; и(2) the transfer does not change the structure of the disk file chain, which makes it possible to preserve differential characteristics, for example, the virtual machine recovery function; And

(3) общий перенос виртуальной машины может быть осуществлен в разных сценариях без опоры на сеть хранения данных.(3) General migration of a virtual machine can be carried out in different scenarios without relying on a storage network.

Ниже более подробно описаны примеры реализации технической схемы согласно этому варианту осуществления настоящего изобретения в привязке к прилагаемым чертежам.Examples of the implementation of a technical scheme according to this embodiment of the present invention are described in more detail below in connection with the accompanying drawings.

Конкретным сценарием применения одного из вариантов осуществления настоящего изобретения является его использование в облачной среде виртуализации крупного дата-центра.A specific application scenario for one embodiment of the present invention is its use in a cloud virtualization environment of a large data center.

На фиг. 10 представлена блок-схема, иллюстрирующая алгоритм реализации способа кросс-облачного переноса виртуальной машины по разным местам согласно одному из вариантов осуществления настоящего изобретения. Как показано на фиг. 10, предложенный способ предусматривает выполнение стадий, описанных ниже.In fig. 10 is a flowchart illustrating a flowchart for implementing a method for cross-cloud transfer of a virtual machine to different locations according to one embodiment of the present invention. As shown in FIG. 10, the proposed method involves performing the steps described below.

На стадии S1001 в список переноса через интерфейс управления добавляется виртуальная машина, подлежащая переносу.At step S1001, the virtual machine to be migrated is added to the transfer list via the management interface.

На стадии S1002 задается время начала и окончания переноса виртуальной машины.At step S1002, the start and end times of the transfer of the virtual machine are set.

На стадии S1003 запускается операция переноса виртуальной машины по разным местам между дата-центрами по достижении времени начала переноса.At step S1003, the operation of transferring the virtual machine to different locations between data centers is started upon reaching the transfer start time.

На стадии S1004 выполняется передача сообщения на целевую облачную платформу для создания виртуальной машины, причем базовая информация о конфигурации целевой виртуальной машины согласуется с соответствующей информацией о конфигурации исходной виртуальной машины, а сеть и репозиторий на целевой облачной платформе используются в качестве группы портов сетевой карты и дискового репозитория.In step S1004, a message is transmitted to the target cloud platform to create a virtual machine, where the basic configuration information of the target virtual machine is matched with the corresponding configuration information of the source virtual machine, and the network and repository on the target cloud platform are used as a group of network card and disk ports. repository.

На стадии S1005 осуществляется построение списка подлежащих переносу дисковых файлов.At step S1005, a list of disk files to be transferred is constructed.

На стадии S1006 выбирается хост-узел исходной облачной платформы для выполнения операции копирования дисковых файлов.At step S1006, a host node of the source cloud platform is selected to perform the disk file copy operation.

На стадии S1007 на выбранную целевую облачную платформу передается сообщение для определения того, появился ли уже скопированный общий узел на одноранговой стороне.At step S1007, a message is sent to the selected target cloud platform to determine whether the copied shared node has already appeared on the peer side.

На стадии S1008 ожидается завершение копирования, если общий узел находится в процессе копирования, а если имеется общий узел, копирование которого завершено, то его повторное копирование не предусмотрено, и выполняется копирование следующего файлового узла.In step S1008, completion of copying is expected if the shared node is in the process of copying, and if there is a shared node whose copying is completed, it is not copied again and the next file node is copied.

На стадии S1009 предусмотрено, что если общий узел должен быть скопирован в первый раз, то на целевой оконечный хост-узел передается сообщение, инициирующее копирование сетью серверной части.In step S1009, it is provided that if the common node is to be copied for the first time, a message is sent to the target end host node to trigger the network to copy the server part.

На стадии S1010 хост-узел на исходной платформе инициирует копирование сетью клиентской части.In step S1010, the host on the source platform causes the network to copy the client portion.

На стадии S1011 завершается копирование файловых узлов и осуществляется копирование файловых узлов следующего диска.At step S1011, copying of file nodes is completed and copying of file nodes of the next disk is carried out.

На стадии S1012 завершается перенос всех дисков виртуальной машины и, таким образом, завершается общий перенос.At step S1012, the transfer of all disks of the virtual machine is completed and, thus, the overall transfer is completed.

Согласно этому варианту осуществления настоящего изобретения общий перенос виртуальной машины между дата-центрами в другое место может осуществляться в отношении рабочей виртуальной машины для сценария крупного дата-центра, и за счет активации шаблона «Одиночка» для компонентов сообщения и выполнения абсолютно симметричного копирования диска виртуальной машины может быть осуществлен общий перенос виртуальной машины путем сетевого копирования; при этом благодаря отсутствию повторного копирования общих узлов повышается эффективность переноса. Эта схема позволяет облегчить общий перенос виртуальной машины по разным местам, что улучшает пользовательский опыт, снижает затраты на эксплуатацию и техническое обслуживание и обеспечивает разумное распределение ресурсов между разными дата-центрами.According to this embodiment of the present invention, a general transfer of a virtual machine between data centers to another location can be performed on a production virtual machine for a large data center scenario, and by activating the Singleton template for message components and performing a perfectly symmetric disk copy of the virtual machine a general transfer of a virtual machine can be carried out via network copying; At the same time, due to the absence of repeated copies of shared nodes, the efficiency of the transfer increases. This design facilitates the overall migration of a virtual machine across different locations, which improves the user experience, reduces O&M costs, and ensures intelligent resource allocation across different data centers.

Все варианты осуществления настоящего изобретения обеспечивают следующее: поскольку в другом месте дата-центра создается целевая виртуальная машина без дисковых объектов, активируется канал сообщений для передачи компонентов сообщений между облачными платформами в разных местах, осуществляется абсолютно симметричное копирование цепочки дисковых файлов путем сетевого копирования через сеть управления и устраняются проблемы, обусловленные тем, что перенос внутри дата-центра не может обеспечить перенос по разным местам, что импорт и экспорт требуют вмешательства оператора в процесс на всем протяжении его выполнения, и что в некоторых ситуациях невозможно сохранить постоянство структуры цепочки дисковых файлов, благодаря этому достигается эффект кросс-облачного переноса виртуальной машины по разным местам и сохраняется постоянство структуры цепочки дисковых файлов.All embodiments of the present invention provide the following: since a target virtual machine without disk objects is created elsewhere in the data center, a message channel is activated to transfer message components between cloud platforms in different locations, a completely symmetric copy of the disk file chain is performed by network copying through the management network and eliminates the problems that intra-data center migration cannot accommodate cross-location migration, that importing and exporting require operator intervention throughout the process, and that in some situations it is impossible to maintain a consistent disk file chain structure, thanks to This achieves the effect of cross-cloud transfer of a virtual machine to different places and maintains the constancy of the structure of the chain of disk files.

Вышеизложенное представляет собой дополнительное подробное описание инновационной системы и способа, раскрытое на примере конкретных вариантов их осуществления, но конкретные примеры реализации инновационной системы и способа не должны рассматриваться как ограниченные этим описанием. Специалистами в данной области техники, к которой относятся указанные система и способ, могут быть выполнены простые перерасчеты или замены без отступления от идеи настоящего изобретения, которые должны рассматриваться как входящие в объем инновационной системы и способа.The foregoing is an additional detailed description of the innovative system and method, disclosed by the example of specific embodiments thereof, but specific examples of the implementation of the innovative system and method should not be considered as limited by this description. Simple recalculations or substitutions can be made by those skilled in the art to which the said system and method relate without departing from the spirit of the present invention, which should be considered within the scope of the innovative system and method.

Несомненно, специалисты в данной области техники должны понимать, что указанные модули или стадии в рамках настоящего изобретения могут быть реализованы с помощью универсального вычислительного устройства, и они могут располагаться в одном вычислительном устройстве, или же они могут быть распределены по сети, состоящей из множества вычислительных устройств, и могут быть реализованы программными кодами, исполняемыми вычислительным устройством/устройствами. Более того, в некоторых случаях стадии, проиллюстрированные или описанные в настоящем документе, могут выполняться в ином порядке, или же они могут быть реализованы в отдельных интегральных схемах в модульном исполнении, или же множество модулей или стадий может быть сведено в одну единственную интегральную схему в модульном исполнении. Таким образом, настоящее изобретение не ограничено какой-либо конкретной комбинацией аппаратных и программных средств.It will certainly be understood by those skilled in the art that these modules or steps within the scope of the present invention may be implemented by a general-purpose computing device, and they may be located on a single computing device, or they may be distributed over a network of multiple computing devices. devices, and can be implemented by program codes executed by the computing device/devices. Moreover, in some cases, the steps illustrated or described herein may be performed in a different order, or they may be implemented in separate integrated circuits in a modular design, or multiple modules or stages may be combined into a single integrated circuit in modular design. Thus, the present invention is not limited to any particular combination of hardware and software.

Приведенное выше описание раскрывает лишь некоторые варианты осуществления настоящего изобретения и никоим образом не ограничивает его объем. Специалистам в данной области техники должно быть очевидно, что в заявленное изобретение могут быть внесены различные изменения и модификации. Любые модификации, эквивалентные замены, усовершенствования и прочие изменения, внесенные без отступления от принципа настоящего изобретения, должны входить в объем его правовой охраны.The above description discloses only some embodiments of the present invention and in no way limits its scope. It will be apparent to those skilled in the art that various changes and modifications may be made to the claimed invention. Any modifications, equivalent replacements, improvements and other changes made without departing from the principle of the present invention shall be within the scope of its legal protection.

Claims (20)

1. Способ кросс-облачного переноса виртуальной машины, предусматривающий:1. A method for cross-cloud transfer of a virtual machine, providing: создание на целевой облачной платформе целевой виртуальной машины для переноса, причем информация о конфигурации целевой виртуальной машины согласуется с информацией о конфигурации исходной виртуальной машины на исходной облачной платформе, группа сетевых портов целевой виртуальной машины сконфигурирована как группа сетевых портов целевой облачной платформы, а дисковый репозиторий целевой виртуальной машины сконфигурирован как дисковый репозиторий целевой облачной платформы; иcreating on the target cloud platform a target virtual machine for migration, wherein the configuration information of the target virtual machine is consistent with the configuration information of the source virtual machine on the source cloud platform, the network port group of the target virtual machine is configured as the network port group of the target cloud platform, and the disk repository of the target the virtual machine is configured as a disk repository of the target cloud platform; And поочередный перенос файловых узлов - в соответствии со структурой цепочки дисковых файлов исходной виртуальной машины на исходной облачной платформе в дисковый репозиторий целевой виртуальной машины на целевой облачной платформе посредством сетевого копирования.alternate transfer of file nodes - in accordance with the structure of the chain of disk files of the source virtual machine on the source cloud platform to the disk repository of the target virtual machine on the target cloud platform through network copying. 2. Способ по п. 1, в котором перед созданием на целевой облачной платформе целевой виртуальной машины для переноса предложенный способ дополнительно предусматривает:2. The method according to claim 1, in which, before creating a target virtual machine for transfer on the target cloud platform, the proposed method further provides: добавление подлежащей переносу исходной виртуальной машины в список переноса через интерфейс управления.adding the source virtual machine to be migrated to the migration list through the management interface. 3. Способ по п. 2, в котором после добавления подлежащей переносу исходной виртуальной машины в список переноса через интерфейс управления предложенный способ дополнительно предусматривает:3. The method according to claim 2, wherein after adding the source virtual machine to be transferred to the transfer list through the management interface, the proposed method further provides: задание времени начала переноса исходной виртуальной машины; иsetting the start time for the migration of the source virtual machine; And запуск операции переноса исходной виртуальной машины по достижении времени начала переноса.Starting the migration operation of the source virtual machine when the migration start time is reached. 4. Способ по п. 1, в котором поочередный перенос файловых узлов в соответствии со структурой цепочки дисковых файлов исходной виртуальной машины на исходной облачной платформе в дисковый репозиторий целевой виртуальной машины на целевой облачной платформе посредством сетевого копирования дополнительно предусматривает:4. The method according to claim 1, in which the sequential transfer of file nodes in accordance with the structure of the disk file chain of the source virtual machine on the source cloud platform to the disk repository of the target virtual machine on the target cloud platform through network copying further provides: построение списка подлежащих переносу дисков исходной виртуальной машины и построение списка подлежащих переносу файлов каждого диска; иconstructing a list of disks of the source virtual machine to be transferred and constructing a list of files of each disk to be transferred; And выбор хост-узла в исходной облачной платформе или целевой облачной платформе на основании подлежащего копированию файлового узла для выполнения операции копирования дисковых файлов исходной виртуальной машины в дисковый репозиторий целевой виртуальной машины.selecting a host node in the source cloud platform or the target cloud platform based on the file node to be copied to perform an operation of copying the disk files of the source virtual machine to the disk repository of the target virtual machine. 5. Способ по п. 4, в котором выбор хост-узла в исходной облачной платформе или целевой облачной платформе на основании подлежащего копированию файлового узда с целью выполнения операции копирования дисковых файлов исходной виртуальной машины в дисковый репозиторий целевой виртуальной машины предусматривает:5. The method of claim 4, wherein selecting a host node in the source cloud platform or the target cloud platform based on the file node to be copied to perform the operation of copying the disk files of the source virtual machine to the disk repository of the target virtual machine includes: выбор хост-узла исходной облачной платформы для выполнения операции копирования дисковых файлов;selecting the host node of the source cloud platform to perform the disk file copy operation; передачу сообщения на целевую облачную платформу для определения того, появился ли уже скопированный общий узел в целевой виртуальной машине;transmitting a message to the target cloud platform to determine whether the copied shared node has already appeared in the target virtual machine; ожидание хост-узлом исходной облачной платформы завершения копирования общего узла после определения факта осуществления его копирования; иwaiting for the host node of the source cloud platform to complete the copying of the common node after determining the fact of its copying; And невыполнение хост-узлом исходной облачной платформы операции копирования общего узла по факту определения того, что копирование общего узла завершено, и осуществление копирования файлового узла следующего диска.failure of the host node of the source cloud platform to perform the operation of copying the shared node upon determining that the copying of the shared node is completed, and copying the file node of the next disk. 6. Способ по п. 5, в котором после передачи сообщения на целевую облачную платформу для определения того, появился ли уже скопированный общий узел в целевой виртуальной машине, предложенный способ дополнительно предусматривает:6. The method of claim 5, wherein after transmitting a message to the target cloud platform to determine whether the copied shared node has already appeared in the target virtual machine, the proposed method further comprises: передачу сообщения на хост-узел целевой облачной платформы по факту того, что общий узел подлежит копированию в первый раз, с целью инициации сетевого копирования общего узла хост-узлом целевой облачной платформы.transmitting a message to the host node of the target cloud platform upon the fact that the shared node is to be copied for the first time, in order to initiate network copying of the shared node by the host node of the target cloud platform. 7. Машиночитаемый носитель данных для хранения компьютерной программы, причем эта компьютерная программа выполнена с возможностью инициирования реализации способа по любому из предшествующих пп. 1-6 после приведения ее в исполнение.7. A computer-readable storage medium for storing a computer program, wherein the computer program is configured to initiate implementation of the method according to any one of the preceding paragraphs. 1-6 after its execution. 8. Электронное устройство, содержащее память и процессор, причем в памяти хранится компьютерная программа, а процессор выполнен с возможностью выполнения этой компьютерной программы с целью реализации способа по любому из предшествующих пп. 1-6.8. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the computer program for the purpose of implementing the method according to any one of the preceding paragraphs. 1-6.
RU2023101298A 2020-06-23 2021-06-15 Method and device for transferring virtual machine over cloud platform, as well as data medium and electronic device RU2813491C1 (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010582905.X 2020-06-23

Publications (1)

Publication Number Publication Date
RU2813491C1 true RU2813491C1 (en) 2024-02-12

Family

ID=

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103077034A (en) * 2013-01-09 2013-05-01 上海交通大学 JAVA application migration method and system for hybrid virtualization platform
US20140068608A1 (en) * 2012-09-05 2014-03-06 Cisco Technology, Inc. Dynamic Virtual Machine Consolidation
CN108228311A (en) * 2016-12-22 2018-06-29 中兴通讯股份有限公司 A kind of method across storage pool migration virtual machine
WO2018133578A1 (en) * 2017-01-20 2018-07-26 中兴通讯股份有限公司 Method and device for migrating virtual machine, computer storage medium, and electronic apparatus
US10552210B2 (en) * 2017-11-09 2020-02-04 Beijing Baidu Netcom Science And Technology Co., Ltd. Method and apparatus for migrating virtual machine
US10613883B2 (en) * 2014-12-05 2020-04-07 Amazon Technologies, Inc. Managing virtual machine migration

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140068608A1 (en) * 2012-09-05 2014-03-06 Cisco Technology, Inc. Dynamic Virtual Machine Consolidation
CN103077034A (en) * 2013-01-09 2013-05-01 上海交通大学 JAVA application migration method and system for hybrid virtualization platform
US10613883B2 (en) * 2014-12-05 2020-04-07 Amazon Technologies, Inc. Managing virtual machine migration
CN108228311A (en) * 2016-12-22 2018-06-29 中兴通讯股份有限公司 A kind of method across storage pool migration virtual machine
WO2018133578A1 (en) * 2017-01-20 2018-07-26 中兴通讯股份有限公司 Method and device for migrating virtual machine, computer storage medium, and electronic apparatus
US10552210B2 (en) * 2017-11-09 2020-02-04 Beijing Baidu Netcom Science And Technology Co., Ltd. Method and apparatus for migrating virtual machine

Similar Documents

Publication Publication Date Title
US11855904B2 (en) Automated migration of compute instances to isolated virtual networks
RU2714098C1 (en) Data processing method and device
US9661071B2 (en) Apparatus, systems and methods for deployment and management of distributed computing systems and applications
TWI498744B (en) Method, system, and computer readable storage device for bidirectional dynamic offloading of tasks between a host and a mobile device
JP7469524B2 (en) Method, device, storage medium, and electronic device for migrating virtual machines between cloud platforms
CN110928557B (en) Method, device and system for realizing migration of operating system
US10042714B2 (en) Point-in-time copy on write for golden image
US20180276057A1 (en) Enhanced copy-and-paste
US9760449B2 (en) Restoring a point-in-time copy
US11531526B1 (en) Creating portable serverless applications
CN113411363A (en) Uploading method of image file, related equipment and computer storage medium
JP6319770B2 (en) Container migration system and method
US20170331912A1 (en) Multi-account login and communication
US10931750B1 (en) Selection from dedicated source volume pool for accelerated creation of block data volumes
US20220229687A1 (en) Non-disruptive container runtime changes
US11307912B1 (en) Forward message compatibility safety in producer-consumer systems
US11494184B1 (en) Creation of transportability container files for serverless applications
RU2813491C1 (en) Method and device for transferring virtual machine over cloud platform, as well as data medium and electronic device
US10956442B1 (en) Dedicated source volume pool for accelerated creation of block data volumes from object data snapshots
US11571618B1 (en) Multi-region game server fleets
US10642580B1 (en) Simplifying and reusing visual programming graphs
US9880904B2 (en) Supporting multiple backup applications using a single change tracker
US11513782B1 (en) Unrestricted to restricted computing framework
US11868821B2 (en) Surrogate process creation technique for high process-per-server scenarios
US11442943B1 (en) Error-causing record isolation for data stream processing