CN110928557A - Method, device and system for realizing migration of operating system - Google Patents

Method, device and system for realizing migration of operating system Download PDF

Info

Publication number
CN110928557A
CN110928557A CN201811099005.9A CN201811099005A CN110928557A CN 110928557 A CN110928557 A CN 110928557A CN 201811099005 A CN201811099005 A CN 201811099005A CN 110928557 A CN110928557 A CN 110928557A
Authority
CN
China
Prior art keywords
operating system
migrated
request
information
migration
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.)
Granted
Application number
CN201811099005.9A
Other languages
Chinese (zh)
Other versions
CN110928557B (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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201811099005.9A priority Critical patent/CN110928557B/en
Publication of CN110928557A publication Critical patent/CN110928557A/en
Application granted granted Critical
Publication of CN110928557B publication Critical patent/CN110928557B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/63Image based installation; Cloning; Build to order
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/76Adapting program code to run in a different environment; Porting
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

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

Abstract

The application discloses a method, a device and a system for realizing migration of an operating system. The implementation method of the operating system migration comprises the following steps: acquiring system information of an operating system to be migrated; according to the system information, a first request for starting a transfer server is constructed, and the first request is sent to a cloud platform; uploading the data information of the operating system to be migrated to the transfer server; and sending a second request for creating the image file, wherein the second request is used for requesting the cloud platform to create the image file of the operating system to be migrated according to the data information received by the transit server. By adopting the method for realizing the migration of the operating system, the problem of high migration cost of the local operating system to the cloud is solved.

Description

Method, device and system for realizing migration of operating system
Technical Field
The application relates to the field of cloud computing, in particular to a method, a device and a system for realizing migration of an operating system.
Background
With the widespread application of cloud computing, more and more users want to migrate their own deployed local operating systems to cloud computing platforms.
In the prior art, a conventional operating system P2V (physical Virtual) migration tool is a way to export an operating system image to local and upload the image.
The method for implementing the migration of the operating system has the advantages of high implementation cost and complex implementation conditions, and cannot meet the requirements of simple use and low migration cost provided by users.
Disclosure of Invention
The application provides a method, a device and a system for realizing migration of an operating system, which aim to solve the problem that in the prior art, the migration cost of a local operating system to a cloud is high.
The method for implementing the migration of the operating system comprises the following steps: acquiring system information of an operating system to be migrated; according to the system information, a first request for starting a transfer server is constructed, and the first request is sent to a cloud platform; uploading the data information of the operating system to be migrated to the transfer server; and sending a second request for creating the image file, wherein the second request is used for requesting the cloud platform to create the image file of the operating system to be migrated according to the data information received by the transit server.
Optionally, the constructing a first request for starting the transit server according to the system information, and sending the first request to the cloud platform includes:
judging whether the operating system to be migrated meets the migration condition or not according to the system information;
and if so, constructing a first request for starting the transit server, and sending the first request to the cloud platform.
Optionally, the constructing a first request for starting the transit server according to the system information includes:
determining second data disk information of the transfer server according to first data disk information of an operating system to be migrated;
and constructing a first request for starting the transit server according to the second data disk information.
Optionally, the method further includes:
and after the second request for creating the image file is sent, sending a third request for releasing the resources of the transit server.
Optionally, the system information includes at least one of the following information:
system version information;
platform architecture information;
and the disk information is to be migrated.
Optionally, the uploading the data information of the operating system to be migrated to the transfer server includes:
establishing network connection with the transit server according to the public network Internet address of the transit server returned by the cloud platform;
and uploading the data information of the operating system to be migrated to the transfer server through the network connection.
Optionally, the uploading the data information of the operating system to be migrated to the transfer server includes:
uploading the system disk data of the operating system to be migrated to a first data disk of the transfer server;
and uploading the data of the data disk of the operating system to be migrated to a second data disk of the transit server.
Optionally, the uploading the data of the data disk of the operating system to be migrated to the second data disk of the transit server includes: and uploading the data of each data disk of the operating system to be migrated to a data disk of the transfer server corresponding to each data disk of the operating system to be migrated.
Optionally, the sending the second request for creating the image file includes:
and sending a second request for creating the mirror image file according to the uploading completion confirmation information of the data information of the operating system to be migrated, which is returned by the transfer server.
The application provides a device for realizing operating system migration, comprising:
the system comprises an acquisition unit, a migration unit and a migration unit, wherein the acquisition unit is used for acquiring system information of an operating system to be migrated;
the construction unit is used for constructing a first request for starting the transfer server according to the system information and sending the first request to the cloud platform;
the uploading unit is used for uploading the data information of the operating system to be migrated to the transfer server;
and the sending unit is used for sending a second request for creating the image file, and the second request is used for requesting the cloud platform to create the image file of the operating system to be migrated according to the data information received by the transit server.
Optionally, the building unit is specifically configured to:
judging whether the operating system to be migrated meets the migration condition or not according to the system information;
and if so, constructing a first request for starting the transit server, and sending the first request to the cloud platform.
Optionally, the building unit is specifically configured to:
determining second data disk information of the transfer server according to first data disk information of an operating system to be migrated;
and constructing a first request for starting the transit server according to the second data disk information.
Optionally, the system further includes a releasing unit, where the releasing unit is configured to send a third request for releasing the resources of the transit server after the sending of the second request for creating the image file.
Optionally, the system information includes at least one of the following information:
system version information;
platform architecture information;
and the disk information is to be migrated.
Optionally, the uploading unit is specifically configured to:
establishing network connection with the transit server according to the public network Internet address of the transit server returned by the cloud platform;
and uploading the data information of the operating system to be migrated to the transfer server through the network connection.
Optionally, the uploading unit is specifically configured to:
uploading the system disk data of the operating system to be migrated to a first data disk of the transit server:
and uploading the data of the data disk of the operating system to be migrated to a second data disk of the transit server.
Optionally, the uploading unit is further configured to:
and uploading the data of each data disk of the operating system to be migrated to a data disk of the transfer server corresponding to each data disk of the operating system to be migrated.
Optionally, the sending unit is specifically configured to:
and sending a second request for creating the mirror image file according to the completion confirmation information of the data information uploading of the operating system to be migrated, which is returned by the transfer server.
The application provides an electronic device, the electronic device includes:
a processor;
a memory for storing a program that, when read and executed by the processor, performs the following:
acquiring system information of an operating system to be migrated;
according to the system information, a first request for starting a transfer server is constructed, and the first request is sent to a cloud platform;
uploading the data information of the operating system to be migrated to the transfer server;
and sending a second request for creating the image file, wherein the second request is used for requesting the cloud platform to create the image file of the operating system to be migrated according to the data information received by the transit server.
The present application provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of:
acquiring system information of an operating system to be migrated;
according to the system information, a first request for starting a transfer server is constructed, and the first request is sent to a cloud platform;
uploading the data information of the operating system to be migrated to the transfer server;
and sending a second request for creating the image file, wherein the second request is used for requesting the cloud platform to create the image file of the operating system to be migrated according to the data information received by the transit server.
The application provides a method for realizing migration of an operating system, which comprises the following steps:
acquiring a first request for starting a transfer server;
starting the transfer server according to the first request;
acquiring a second request for creating an operating system image to be migrated;
and according to the second request, creating an image file of the operating system to be migrated by using the data information of the operating system to be migrated, which is received by the transit server.
Optionally, the method further includes:
acquiring a third request for releasing resources of the transit server;
and releasing the transit server resources according to the third request.
The application provides a device for realizing operating system migration, comprising:
a first obtaining unit, configured to obtain a first request for starting the transfer server;
a starting unit, configured to start the transit server according to the first request;
the second acquisition unit is used for acquiring a second request for creating the mirror image of the operating system to be migrated;
and the creating unit is used for creating the mirror image file of the operating system to be migrated by using the data information of the operating system to be migrated, which is received by the transit server, according to the second request.
Optionally, the method further includes:
a third obtaining unit, configured to obtain a third request for releasing the resources of the transit server;
and a releasing unit, configured to release the transit server resource according to the third request.
The application provides a method for realizing migration of an operating system, which comprises the following steps:
acquiring data information of an operating system to be migrated;
according to the data information, rebuilding the system guide of the operating system to be migrated, and configuring the virtualization drive of the operating system to be migrated;
and providing the system bootstrap program and the virtualization driver program for a cloud platform for creating an image file of the operating system to be migrated.
The application provides a device for realizing operating system migration, comprising:
the acquisition unit is used for acquiring data information of the operating system to be migrated;
the rebuilding unit is used for rebuilding the system boot of the operating system to be migrated according to the data information and configuring the virtualization drive of the operating system to be migrated;
and the providing unit is used for providing the system boot and the virtualization drive to a cloud platform and creating an image file of the operating system to be migrated.
The application provides a system for implementing operating system migration, which comprises: the system comprises a migration client, a transfer server and a cloud platform;
the migration client is used for acquiring system information of the operating system to be migrated; according to the system information, a first request for starting a transfer server is constructed, and the first request is sent to the cloud platform; uploading the data information of the operating system to be migrated to the transfer server; sending a second request for creating the image file to the cloud platform, wherein the second request is used for indicating the cloud platform to create the image file of the operating system to be migrated according to the data information received by the transit server;
the transfer server is used for receiving the data information of the operating system to be migrated, which is uploaded by the migration client; rebuilding a system bootstrap program of the operating system to be migrated according to the received data information, and configuring a virtualization driver of the operating system to be migrated; providing the system bootstrap program and the virtualization driving program to a cloud platform for creating an image file of the operating system to be migrated;
the cloud platform is used for receiving the first request sent by the migration client; creating the transit server according to the first request; and receiving the second request sent by the migration client, and creating the mirror image file of the operating system to be migrated by using the data information received by the transfer server according to the second request.
By adopting the method for realizing the migration of the operating system, the data of the operating system to be migrated is transmitted to the transfer server of the target cloud platform through the network, so that the use of a local storage space as a transfer is avoided, and the local resource cost in the migration process is effectively reduced; meanwhile, the process of creating the operating system image is carried out at the transfer server, so that the operation of importing and uploading the local image file is omitted, the migration efficiency is improved, the time cost of migration is shortened, and the problem of high migration cost of migration of the local operating system to the cloud is solved.
Drawings
FIG. 1 is a flowchart of a method for implementing operating system migration according to a first embodiment of the present application;
FIG. 2 is a schematic diagram of an operating system migration system according to a first embodiment of the present application;
FIG. 3 is a flowchart of an apparatus for implementing operating system migration according to a second embodiment of the present application;
FIG. 4 is a flowchart of a method for implementing operating system migration according to a fifth embodiment of the present application;
FIG. 5 is a flowchart of an apparatus for implementing operating system migration according to a sixth embodiment of the present application;
FIG. 6 is a flowchart of a method for implementing operating system migration according to a seventh embodiment of the present application;
fig. 7 is a flowchart of an apparatus for implementing os migration according to an eighth embodiment of the present application;
fig. 8 is a system structure diagram of an implementation system for operating system migration according to a ninth embodiment of the present application.
Detailed Description
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application. This application is capable of implementation in many different ways than those herein set forth and of similar import by those skilled in the art without departing from the spirit of this application and is therefore not limited to the specific implementations disclosed below.
The first embodiment of the present application provides a method for implementing operating system migration. Please refer to fig. 1, which is a flowchart illustrating a first embodiment of the present application. The following describes in detail an implementation method for operating system migration according to a first embodiment of the present application with reference to fig. 1. The method comprises the following steps:
step S101, system information of the operating system to be migrated is acquired.
The step is used for obtaining the system information of the operating system to be migrated.
The operating system migration refers to migrating operating system data of a physical machine, a virtual machine and a cloud host of a cloud platform to other platform environments.
Cloud platforms, also known as cloud computing platforms. Cloud platforms can be divided into 3 classes: the cloud computing platform comprises a storage type cloud platform taking data storage as a main part, a computing type cloud platform taking data processing as a main part and a comprehensive cloud computing platform taking computing and data storage processing into consideration.
The system information includes at least one of the following information:
system version information;
platform architecture information;
and the disk information is to be migrated.
In this embodiment, the system version information includes types of operating systems, such as windows and linux; version numbers of operating systems, such as win10, linux ubuntu15, etc., are also included.
The platform architecture information includes CPU information used by the operating system, such as Intel X86.
The information of the disk to be migrated includes information of a data disk and information of a system disk of the operating system to be migrated.
In this embodiment, the migration client running in the operating system to be migrated may be used to obtain the system information of the operating system to be migrated.
Step S102, according to the system information, a first request for starting the transfer server is constructed, and the first request is sent to the cloud platform.
The step is used for constructing a first request for starting the transit server according to the system information and sending the first request to the cloud platform.
In this embodiment, the transit server refers to an intermediate server capable of storing and processing data, and may be dynamically created or recycled on the cloud computing platform.
If there is no available intermediate server in the cloud platform, an intermediate server needs to be created first, and then the intermediate server is started. And if the available intermediate server exists in the cloud platform, starting the available intermediate server.
In the prior art, a cloud platform provides standard interfaces of an OpenAPI to a user, and the user may construct a first request for starting a transit server according to definitions of the standard interfaces and send the first request to the cloud platform.
The constructing a first request for starting a transit server according to the system information and sending the first request to a cloud platform comprise:
judging whether the operating system to be migrated meets the migration condition or not according to the system information;
and if so, constructing a first request for starting the transit server, and sending the first request to the cloud platform.
In general, a cloud platform sets a migration condition for an operating system to be migrated. For example, there are certain requirements for the version of the operating system.
The constructing a first request for starting the transit server according to the system information includes:
determining second data disk information of the transfer server according to first data disk information of an operating system to be migrated;
and constructing a first request for starting the transit server according to the second data disk information.
The first data disc information and the second data disc information include the number of data discs and capacity information.
And determining second data disk information of the transfer server according to the first data disk information of the operating system to be migrated, namely determining the number and the capacity of the data disks of the transfer server according to the number and the capacity information of the operating system to be migrated.
And constructing a first request for starting the transit server according to the second data disk information, namely including the data disk information required by the transit server to be created in the first request.
Step S103, uploading the data information of the operating system to be migrated to the transit server.
The step is used for uploading the data information of the operating system to be migrated to the transfer server.
In this embodiment, the data information of the operating system to be migrated may be uploaded to the transfer server at a file level.
rsync is a data mirror backup tool under linux system. In this embodiment, the rsync may be used to upload the data information of the operating system to be migrated to the transit server. Since rsync is a common open source software, the detailed implementation steps are not described here.
The uploading the data information of the operating system to be migrated to the transfer server includes:
establishing network connection with the transit server according to the public network Internet address of the transit server returned by the cloud platform;
and uploading the data information of the operating system to be migrated to the transfer server through the network connection.
The public network internet address is an IP address. In this embodiment, the transfer server may use a public network IP address, so that the operating system to be migrated may conveniently establish a network connection with the transfer server.
Of course, the transit server may also use a local area network IP.
The uploading the data information of the operating system to be migrated to the transfer server includes:
uploading the system disk data of the operating system to be migrated to a first data disk of the transfer server;
and uploading the data of the data disk of the operating system to be migrated to a second data disk of the transit server.
In this embodiment, the first data disk of the transit server may be the first data disk of the transit server.
In this embodiment, the uploading of the data disk of the operating system to be migrated to the second data disk of the relay server refers to sequentially uploading the data of the data disk of the operating system to be migrated to the data disks of the relay server from the second data disk.
For example, the data of the first data disk of the operating system to be migrated is uploaded to the second data disk of the relay server, the data of the second data disk of the operating system to be migrated is uploaded to the third data disk of the relay server, and so on.
The uploading the data of the data disk of the operating system to be migrated to the second data disk of the transit server includes: and uploading the data of each data disk of the operating system to be migrated to a data disk of the transfer server corresponding to each data disk of the operating system to be migrated.
Step S104, sending a second request for creating the image file, wherein the second request is used for requesting the cloud platform to create the image file of the operating system to be migrated according to the data information received by the transit server.
The step is used for sending a second request for creating the image file, and the second request is used for requesting the cloud platform to create the image file of the operating system to be migrated according to the data information received by the transit server.
The sending may be implemented by a migration tool running in the migration operating system calling an OpenAPI provided by the cloud platform.
The sending of the second request for creating the image file comprises:
and sending a second request for creating the mirror image file according to the uploading completion confirmation information of the data information of the operating system to be migrated, which is returned by the transfer server.
Before sending the second request, it is first confirmed whether the transit server completely accepts the data information of the operating system to be migrated. Only if this information is confirmed can a second request to create an image file be sent.
The method for implementing migration of an operating system provided by this embodiment further includes:
and after the second request for creating the image file is sent, sending a third request for releasing the resources of the transit server.
The method comprises the steps that a mirror image file with a migration operating system is created on a cloud platform, and after cloud migration of the operating system is completed, resources of a transfer server need to be released, wherein the resources of the transfer server comprise the transfer server, corresponding data disk resources and the like.
Fig. 2 is a schematic system diagram of an operating system migration implementation method provided in the present application.
In the foregoing embodiment, an implementation method of operating system migration is provided, and correspondingly, the present application further provides an implementation apparatus of operating system migration. Please refer to fig. 3, which is a flowchart of an embodiment of an apparatus for implementing os migration according to the present application. Since this embodiment, i.e., the second embodiment, is substantially similar to the method embodiment, it is relatively simple to describe, and reference may be made to some descriptions of the method embodiment for relevant points. The device embodiments described below are merely illustrative.
The application provides a device for realizing operating system migration, comprising:
an obtaining unit 301, configured to obtain system information of an operating system to be migrated;
a constructing unit 302, configured to construct a first request for starting a transit server according to the system information, and send the first request to a cloud platform;
an uploading unit 303, configured to upload the data information of the operating system to be migrated to the transfer server;
a sending unit 304, configured to send a second request for creating an image file, where the second request is used to request the cloud platform to create the image file of the operating system to be migrated according to the data information received by the transit server.
In this embodiment, the building unit is specifically configured to:
judging whether the operating system to be migrated meets the migration condition or not according to the system information;
and if so, constructing a first request for starting the transit server, and sending the first request to the cloud platform.
In this embodiment, the building unit is specifically configured to:
determining second data disk information of the transfer server according to first data disk information of an operating system to be migrated;
and constructing a first request for starting the transit server according to the second data disk information.
In this embodiment, the implementation apparatus further includes a releasing unit, where the releasing unit is configured to send a third request for releasing the resources of the transit server after the sending of the second request for creating the image file.
In this embodiment, the system information includes at least one of the following information:
system version information;
platform architecture information;
and the disk information is to be migrated.
In this embodiment, the uploading unit is specifically configured to:
establishing network connection with the transit server according to the public network Internet address of the transit server returned by the cloud platform;
and uploading the data information of the operating system to be migrated to the transfer server through the network connection.
In this embodiment, the uploading unit is specifically configured to:
uploading the system disk data of the operating system to be migrated to a first data disk of the transfer server;
and uploading the data of the data disk of the operating system to be migrated to a second data disk of the transit server.
In this embodiment, the uploading unit is further configured to:
and uploading the data of each data disk of the operating system to be migrated to a data disk of the transfer server corresponding to each data disk of the operating system to be migrated.
In this embodiment, the sending unit is specifically configured to:
and sending a second request for creating the mirror image file according to the completion confirmation information of the data information uploading of the operating system to be migrated, which is returned by the transfer server.
A third embodiment of the present application provides an electronic apparatus, including:
a processor;
a memory for storing a program that, when read and executed by the processor, performs the following:
acquiring system information of an operating system to be migrated;
according to the system information, a first request for starting a transfer server is constructed, and the first request is sent to a cloud platform;
uploading the data information of the operating system to be migrated to the transfer server;
and sending a second request for creating the image file, wherein the second request is used for requesting the cloud platform to create the image file of the operating system to be migrated according to the data information received by the transit server.
A fourth embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor, implements the steps of:
acquiring system information of an operating system to be migrated;
according to the system information, a first request for starting a transfer server is constructed, and the first request is sent to a cloud platform;
uploading the data information of the operating system to be migrated to the transfer server;
and sending a second request for creating the image file, wherein the second request is used for requesting the cloud platform to create the image file of the operating system to be migrated according to the data information received by the transit server.
A fifth embodiment of the present application provides a method for implementing operating system migration, where the method includes the following steps:
a fifth embodiment of the present application provides a method for implementing operating system migration. Please refer to fig. 4, which is a flowchart of a fifth embodiment of the present application. A method for implementing operating system migration according to a fifth embodiment of the present application is described in detail below with reference to fig. 4. The method comprises the following steps:
step S401: a first request for starting a transit server is obtained.
In the step, a cloud platform is used for acquiring a first request for starting the transit server.
In this embodiment, the transit server refers to an intermediate server capable of storing and processing data, and may be dynamically created or recycled on the cloud computing platform.
If there is no available intermediate server in the cloud platform, an intermediate server needs to be created first, and then the intermediate server is started. And if the available intermediate server exists in the cloud platform, starting the available intermediate server.
In the prior art, a cloud platform provides standard interfaces of an OpenAPI to a user, and the user may construct a first request for starting a transit server according to definitions of the standard interfaces and send the first request to the cloud platform. The cloud platform acquires a first request for starting the transfer server according to the information received by the standard interface of the OpenAPI.
Step S402: and starting the transit server according to the first request.
This step is used for starting the transit server according to the first request.
In this embodiment, the first request includes information such as a data disk of the relay server, and the relay server is started based on the information.
Step S403: and acquiring a second request for creating the image file of the operating system to be migrated.
The method is used for the cloud platform to obtain a second request for creating the mirror image of the operating system to be migrated.
The second request includes information on how to create the operating system image to be migrated, for example, creating a snapshot on the data disk received by the relay server, and assembling 1 or more snapshots on the data disk into an image file.
Step S404: and obtaining the data information of the operating system to be migrated from the transit server.
The step is used for the cloud platform to obtain the data information of the operating system to be migrated from the transit server.
Step S405: and according to the second request, creating an image file of the operating system to be migrated by utilizing the data information of the operating system to be migrated.
And the step is used for creating the mirror image file of the operating system to be migrated by utilizing the data information of the operating system to be migrated, which is received by the transit server, according to the second request.
In this embodiment, the method for implementing migration of an operating system further includes:
acquiring a third request for releasing resources of the transit server;
and releasing the transit server resources according to the third request.
In the foregoing embodiment, an implementation method of operating system migration is provided, and correspondingly, the present application further provides an implementation apparatus of operating system migration. Please refer to fig. 5, which is a flowchart of an embodiment of an apparatus for implementing os migration according to the present application. Since this embodiment, i.e., the sixth embodiment, is substantially similar to the method embodiment, it is relatively simple to describe, and reference may be made to some descriptions of the method embodiment for relevant points. The device embodiments described below are merely illustrative.
A first obtaining unit 501, configured to obtain a first request for starting the transit server.
A starting unit 502, configured to start the transit server according to the first request. (ii) a
A second obtaining unit 503, configured to obtain a second request for creating an operating system image to be migrated.
An obtaining unit 504, configured to obtain data information of the operating system to be migrated from the transit server.
A second creating unit 505, configured to create an image file of the operating system to be migrated according to the second request and by using the data information of the operating system to be migrated.
Optionally, the method further includes:
a third obtaining unit, configured to obtain a third request for releasing the resources of the transit server;
and a releasing unit, configured to release the transit server resource according to the third request.
A seventh embodiment of the present application provides a method for implementing operating system migration. Please refer to fig. 6, which is a flowchart of a seventh embodiment of the present application. The method for implementing os migration according to the seventh embodiment of the present application is described in detail below with reference to fig. 6. The method comprises the following steps:
step S601: and acquiring data information of the operating system to be migrated.
The step is used for the transfer server to obtain the data information of the operating system to be migrated.
In this embodiment, the data information of the operating system to be migrated may be uploaded to the transfer server at a file level.
rsync is a data mirror backup tool under linux system. In this embodiment, the rsync may be used to upload the data information of the operating system to be migrated to the transit server. Since rsync is a common open source software, the detailed implementation steps are not described here.
Step S602: and according to the data information, rebuilding the system guide of the operating system to be migrated, and configuring the virtualization drive of the operating system to be migrated.
The step is used for the transfer server to rebuild the system guidance of the operating system to be migrated according to the data information and configure the virtualization drive of the operating system to be migrated.
Step S603: and providing the system bootstrap program and the virtualization driver program for a cloud platform for creating an image file of the operating system to be migrated.
The step is that the transfer server provides the system bootstrap program and the virtualization driver program to a cloud platform for creating the mirror image file of the operating system to be migrated.
In the foregoing embodiment, an implementation method of operating system migration is provided, and correspondingly, the present application further provides an implementation apparatus of operating system migration. Please refer to fig. 7, which is a flowchart of an embodiment of an apparatus for implementing os migration according to the present application. Since this embodiment, i.e., the eighth embodiment, is substantially similar to the method embodiment, it is relatively simple to describe, and reference may be made to some descriptions of the method embodiment for relevant points. The device embodiments described below are merely illustrative.
An eighth embodiment of the present application provides an apparatus for implementing operating system migration, including:
an obtaining unit 701, configured to obtain data information of an operating system to be migrated;
a rebuilding unit 702, configured to rebuild the system boot of the operating system to be migrated according to the data information, and configure a virtualization driver of the operating system to be migrated;
a providing unit 703 is configured to provide the system boot program and the virtualization driver to a cloud platform, and is configured to create an image file of the operating system to be migrated.
A ninth embodiment of the present application provides a system for implementing operating system migration, please refer to fig. 8. The implementation system provided by the embodiment comprises: a migration client 801, a transit server 802, and a cloud platform 803;
the migration client is used for acquiring system information of the operating system to be migrated; according to the system information, a first request for starting a transfer server is constructed, and the first request is sent to the cloud platform; uploading the data information of the operating system to be migrated to the transfer server; sending a second request for creating the image file to the cloud platform, wherein the second request is used for indicating the cloud platform to create the image file of the operating system to be migrated according to the data information received by the transit server;
the transfer server is used for receiving the data information of the operating system to be migrated, which is uploaded by the migration client; according to the received data information, rebuilding system guidance of the operating system to be migrated, and configuring a virtualization drive of the operating system to be migrated; providing the system bootstrap program and the virtualization driving program to a cloud platform for creating an image file of the operating system to be migrated;
the cloud platform is used for receiving the first request sent by the migration client; creating the transit server according to the first request; and receiving the second request sent by the migration client, and creating the mirror image file of the operating system to be migrated by using the data information received by the transfer server according to the second request.
Although the present application has been described with reference to the preferred embodiments, it is not intended to limit the present application, and those skilled in the art can make variations and modifications without departing from the spirit and scope of the present application, therefore, the scope of the present application should be determined by the claims that follow.
In a typical configuration, a computing device includes one or more operators (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
1. Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include non-transitory computer readable media (transient media), such as modulated data signals and carrier waves.
2. As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.

Claims (19)

1. An implementation method for migration of an operating system is characterized by comprising the following steps:
acquiring system information of an operating system to be migrated;
according to the system information, a first request for starting a transfer server is constructed, and the first request is sent to a cloud platform;
uploading the data information of the operating system to be migrated to the transfer server;
and sending a second request for creating the image file, wherein the second request is used for requesting the cloud platform to create the image file of the operating system to be migrated according to the data information received by the transit server.
2. The method according to claim 1, wherein the constructing a first request for starting a transit server according to the system information and sending the first request to a cloud platform includes:
judging whether the operating system to be migrated meets the migration condition or not according to the system information;
and if so, constructing a first request for starting the transit server, and sending the first request to the cloud platform.
3. The method for implementing os migration according to claim 1, wherein the constructing a first request for starting a transit server according to the system information includes:
determining second data disk information of the transfer server according to first data disk information of an operating system to be migrated;
and constructing a first request for starting the transit server according to the second data disk information.
4. The method for implementing operating system migration according to claim 1, further comprising:
and after the second request for creating the image file is sent, sending a third request for releasing the resources of the transit server.
5. The method for implementing os migration according to claim 1, wherein the system information includes at least one of the following information:
system version information;
platform architecture information;
and the disk information is to be migrated.
6. The method for implementing os migration according to claim 1, wherein the uploading the data information of the os to be migrated to the transfer server includes:
establishing network connection with the transit server according to the public network Internet address of the transit server returned by the cloud platform;
and uploading the data information of the operating system to be migrated to the transfer server through the network connection.
7. The method for implementing os migration according to claim 1, wherein the uploading the data information of the os to be migrated to the transfer server includes:
uploading the system disk data of the operating system to be migrated to a first data disk of the transfer server;
and uploading the data of the data disk of the operating system to be migrated to a second data disk of the transit server.
8. The method for implementing os migration according to claim 7, wherein the uploading data of the data disk of the os to be migrated to the second data disk of the transit server includes: and uploading the data of each data disk of the operating system to be migrated to different second data disks of the transfer server respectively.
9. The method for implementing os migration according to claim 1, wherein the sending the second request for creating the image file comprises:
and sending a second request for creating the mirror image file according to the uploading completion confirmation information of the data information of the operating system to be migrated, which is returned by the transfer server.
10. An apparatus for implementing operating system migration, comprising:
the system comprises an acquisition unit, a migration unit and a migration unit, wherein the acquisition unit is used for acquiring system information of an operating system to be migrated;
the construction unit is used for constructing a first request for starting the transfer server according to the system information and sending the first request to the cloud platform;
the uploading unit is used for uploading the data information of the operating system to be migrated to the transfer server;
and the sending unit is used for sending a second request for creating the image file, and the second request is used for requesting the cloud platform to create the image file of the operating system to be migrated according to the data information received by the transit server.
11. An electronic device, characterized in that the electronic device comprises:
a processor;
a memory for storing a program that, when read and executed by the processor, performs the following:
acquiring system information of an operating system to be migrated;
according to the system information, a first request for starting a transfer server is constructed, and the first request is sent to a cloud platform;
uploading the data information of the operating system to be migrated to the transfer server;
and sending a second request for creating the image file, wherein the second request is used for requesting the cloud platform to create the image file of the operating system to be migrated according to the data information received by the transit server.
12. A computer-readable storage medium having a computer program stored thereon, the program, when executed by a processor, performing the steps of:
acquiring system information of an operating system to be migrated:
according to the system information, a first request for starting a transfer server is constructed, and the first request is sent to a cloud platform;
uploading the data information of the operating system to be migrated to the transfer server;
and sending a second request for creating the image file, wherein the second request is used for requesting the cloud platform to create the image file of the operating system to be migrated according to the data information received by the transit server.
13. An implementation method for migration of an operating system is characterized by comprising the following steps:
acquiring a first request for starting a transfer server;
starting the transfer server according to the first request;
acquiring a second request for creating the mirror image file of the operating system to be migrated;
obtaining data information of the operating system to be migrated from the transit server;
and according to the second request, creating an image file of the operating system to be migrated by utilizing the data information of the operating system to be migrated.
14. The method for implementing operating system migration according to claim 13, further comprising:
acquiring a third request for releasing the resources of the transit server;
and releasing the resources of the transit server according to the third request.
15. An apparatus for implementing operating system migration, comprising:
a first obtaining unit, configured to obtain a first request for starting the transfer server;
a starting unit, configured to create the transit server according to the first request;
the second acquisition unit is used for acquiring a second request for creating the mirror image of the operating system to be migrated;
an obtaining unit, configured to obtain data information of an operating system to be migrated from the transit server;
and the creating unit is used for creating the image file of the operating system to be migrated by utilizing the data information of the operating system to be migrated according to the second request.
16. The apparatus for implementing os migration according to claim 15, further comprising:
a third obtaining unit, configured to obtain a third request for releasing the resource of the transit server;
and a releasing unit, configured to release the resource of the transit server according to the third request.
17. An implementation method for migration of an operating system is characterized by comprising the following steps:
acquiring data information of an operating system to be migrated;
according to the data information, rebuilding a system bootstrap program of the operating system to be migrated, and configuring a virtualization driver of the operating system to be migrated;
and providing the system bootstrap program and the virtualization driving program for a cloud platform, and using the cloud platform to create an image file of the operating system to be migrated.
18. An apparatus for implementing operating system migration, comprising:
the acquisition unit is used for acquiring data information of the operating system to be migrated;
the rebuilding unit is used for rebuilding a system bootstrap program of the operating system to be migrated according to the data information and configuring a virtualization driver program of the operating system to be migrated;
and the providing unit is used for providing the system bootstrap program and the virtualization driving program to a cloud platform and creating the image file of the operating system to be migrated by the cloud platform.
19. An implementation system for migration of an operating system, comprising: the system comprises a migration client, a transfer server and a cloud platform;
the migration client is used for acquiring system information of the operating system to be migrated; according to the system information, a first request for starting a transfer server is constructed, and the first request is sent to the cloud platform; uploading the data information of the operating system to be migrated to the transfer server; sending a second request for creating the image file to the cloud platform, wherein the second request is used for indicating the cloud platform to create the image file of the operating system to be migrated according to the data information received by the transit server;
the transfer server is used for receiving the data information of the operating system to be migrated, which is uploaded by the migration client; rebuilding a system bootstrap program of the operating system to be migrated according to the received data information, and configuring a virtualization driver of the operating system to be migrated; providing the system bootstrap program and the virtualization driving program to a cloud platform for creating an image file of the operating system to be migrated;
the cloud platform is used for receiving the first request sent by the migration client; creating the transit server according to the first request; and receiving the second request sent by the migration client, and creating the mirror image file of the operating system to be migrated by using the data information received by the transfer server according to the second request.
CN201811099005.9A 2018-09-19 2018-09-19 Method, device and system for realizing migration of operating system Active CN110928557B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811099005.9A CN110928557B (en) 2018-09-19 2018-09-19 Method, device and system for realizing migration of operating system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811099005.9A CN110928557B (en) 2018-09-19 2018-09-19 Method, device and system for realizing migration of operating system

Publications (2)

Publication Number Publication Date
CN110928557A true CN110928557A (en) 2020-03-27
CN110928557B CN110928557B (en) 2023-05-09

Family

ID=69856227

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811099005.9A Active CN110928557B (en) 2018-09-19 2018-09-19 Method, device and system for realizing migration of operating system

Country Status (1)

Country Link
CN (1) CN110928557B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111459644A (en) * 2020-04-15 2020-07-28 上海安畅网络科技股份有限公司 Host migration system
CN111459643A (en) * 2020-04-15 2020-07-28 上海安畅网络科技股份有限公司 Host migration method
CN111913753A (en) * 2020-07-10 2020-11-10 江苏安超云软件有限公司 Method and system for changing starting mode in cloud migration of windows system
CN112394881A (en) * 2020-11-04 2021-02-23 华云数据控股集团有限公司 Cloud host migration method and electronic equipment
CN112612417A (en) * 2020-12-24 2021-04-06 深圳市科力锐科技有限公司 Data migration method, device, equipment and storage medium
CN113067881A (en) * 2021-03-29 2021-07-02 北京百度网讯科技有限公司 Data interaction method and device, electronic equipment and computer readable storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102821158A (en) * 2012-08-20 2012-12-12 广州杰赛科技股份有限公司 Method and cloud system for realizing virtual machine migration
US20140089393A1 (en) * 2012-09-25 2014-03-27 International Business Machines Corporation Near Live-Migration of Operating System and Application
US20150020059A1 (en) * 2013-07-09 2015-01-15 Oracle International Corporation Migration services for systems
CN104572274A (en) * 2013-10-18 2015-04-29 宇宙互联有限公司 Cross-cloud-node migration system and cross-cloud-node migration method
CN105159760A (en) * 2014-05-27 2015-12-16 中国电信股份有限公司 Cloud resource migration method and unified cross-platform cloud resource migration capability open interface
CN105260226A (en) * 2015-09-23 2016-01-20 浙江网新恒天软件有限公司 Method for automatically migrating virtual machine on the basis of cloud platform
CN106201702A (en) * 2016-07-19 2016-12-07 浪潮(北京)电子信息产业有限公司 The method of virtual machine (vm) migration, system and cloud computing management platform
CN106293879A (en) * 2016-08-05 2017-01-04 浪潮(北京)电子信息产业有限公司 A kind of P2V moving method for Linux physical server and system thereof
CN106385449A (en) * 2016-09-13 2017-02-08 哈尔滨工程大学 Heterogeneous cluster service migration transfer system and transfer method based on container
CN106933517A (en) * 2017-03-17 2017-07-07 深信服科技股份有限公司 A kind of data migration method and device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102821158A (en) * 2012-08-20 2012-12-12 广州杰赛科技股份有限公司 Method and cloud system for realizing virtual machine migration
US20140089393A1 (en) * 2012-09-25 2014-03-27 International Business Machines Corporation Near Live-Migration of Operating System and Application
US20150020059A1 (en) * 2013-07-09 2015-01-15 Oracle International Corporation Migration services for systems
CN104572274A (en) * 2013-10-18 2015-04-29 宇宙互联有限公司 Cross-cloud-node migration system and cross-cloud-node migration method
CN105159760A (en) * 2014-05-27 2015-12-16 中国电信股份有限公司 Cloud resource migration method and unified cross-platform cloud resource migration capability open interface
CN105260226A (en) * 2015-09-23 2016-01-20 浙江网新恒天软件有限公司 Method for automatically migrating virtual machine on the basis of cloud platform
CN106201702A (en) * 2016-07-19 2016-12-07 浪潮(北京)电子信息产业有限公司 The method of virtual machine (vm) migration, system and cloud computing management platform
CN106293879A (en) * 2016-08-05 2017-01-04 浪潮(北京)电子信息产业有限公司 A kind of P2V moving method for Linux physical server and system thereof
CN106385449A (en) * 2016-09-13 2017-02-08 哈尔滨工程大学 Heterogeneous cluster service migration transfer system and transfer method based on container
CN106933517A (en) * 2017-03-17 2017-07-07 深信服科技股份有限公司 A kind of data migration method and device

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111459644A (en) * 2020-04-15 2020-07-28 上海安畅网络科技股份有限公司 Host migration system
CN111459643A (en) * 2020-04-15 2020-07-28 上海安畅网络科技股份有限公司 Host migration method
CN111913753A (en) * 2020-07-10 2020-11-10 江苏安超云软件有限公司 Method and system for changing starting mode in cloud migration of windows system
CN112394881A (en) * 2020-11-04 2021-02-23 华云数据控股集团有限公司 Cloud host migration method and electronic equipment
CN112394881B (en) * 2020-11-04 2024-03-19 华云数据控股集团有限公司 Cloud host migration method and electronic equipment
CN112612417A (en) * 2020-12-24 2021-04-06 深圳市科力锐科技有限公司 Data migration method, device, equipment and storage medium
CN112612417B (en) * 2020-12-24 2023-08-08 深圳市科力锐科技有限公司 Data migration method, device, equipment and storage medium
CN113067881A (en) * 2021-03-29 2021-07-02 北京百度网讯科技有限公司 Data interaction method and device, electronic equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN110928557B (en) 2023-05-09

Similar Documents

Publication Publication Date Title
CN110928557B (en) Method, device and system for realizing migration of operating system
US10812566B2 (en) Distributed steam processing
JP6132323B2 (en) Live migration protocol and cluster server failover protocol
US11042450B2 (en) Mechanism for managing container runtime state
US9292319B2 (en) Global computing interface
US10754741B1 (en) Event-driven replication for migrating computing resources
CN110198329B (en) Database deployment method, device and system, electronic equipment and readable medium
US11418566B2 (en) Adding and removing virtual disks remotely to a streaming machine
US10705763B2 (en) Scale and performance for persistent containers using SCSI second level addressing to map storage volume to host of container environment, wherein said storage volume is scanned at said SCSI second level addressing without rescanning at OS level virtualization
US11159367B2 (en) Apparatuses and methods for zero touch computing node initialization
US9965303B2 (en) Systems and methods for accessing remote resources for emulation
US10452502B2 (en) Handling node failure in multi-node data storage systems
US9104339B1 (en) Support track aligned partitions inside virtual machines
US20200099745A1 (en) Storage segment server covered cache
CN104601666A (en) Log service method and cloud platform
US20230115261A1 (en) Migrating stateful workloads between container clusters with different storage backends
US10628055B2 (en) Management of storage replication consistency groups using automatic replication group identifiers
CN103713952A (en) Virtual disk distributed-memory method based on UFS (Universal Flash Storage)
CN107340974B (en) Virtual disk migration method and virtual disk migration device
CN114116655A (en) Parallel file storage method, device, equipment and storage medium based on virtual machine
CN106681771B (en) System reinstallation method and device
US9880904B2 (en) Supporting multiple backup applications using a single change tracker
RU2813491C1 (en) Method and device for transferring virtual machine over cloud platform, as well as data medium and electronic device
US11372665B2 (en) System and method for native and non-native replication for virtual volume based machines
US9298597B2 (en) Automated testing of websites based on mode

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
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40026852

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant