CN110928557B - 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
CN110928557B
CN110928557B CN201811099005.9A CN201811099005A CN110928557B CN 110928557 B CN110928557 B CN 110928557B CN 201811099005 A CN201811099005 A CN 201811099005A CN 110928557 B CN110928557 B CN 110928557B
Authority
CN
China
Prior art keywords
operating system
migrated
request
server
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811099005.9A
Other languages
Chinese (zh)
Other versions
CN110928557A (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

Abstract

The application discloses a method, a device and a system for realizing migration of an operating system. The method for realizing 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 transfer server. By adopting the method for realizing 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 present application relates to the field of cloud computing, and in particular, to a method, an apparatus, and a system for implementing migration of an operating system.
Background
With the widespread use of cloud computing, more and more users want to migrate their own deployed local operating systems into a cloud computing platform.
In the prior art, a conventional migration tool for operating system P2V (Physicalto Virtual) uses export of an operating system image to local and then upload.
The method for realizing the migration of the operating system has higher realization cost and complex realization conditions, and can not meet the requirements of simple use and low migration cost, which are proposed by users.
Disclosure of Invention
The application provides a method, a device and a system for realizing migration of an operating system, which are used for solving the problem of high migration cost of a local operating system to cloud migration in the prior art.
The method for realizing 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 transfer 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 migration conditions or not according to the system information;
if yes, a first request for starting the transfer server is constructed, and the first request is sent 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 the first data disk information of the operating system to be migrated;
and constructing a first request for starting the transfer server according to the second data disk information.
Optionally, the method further comprises:
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 (5) disk information to be migrated.
Optionally, the uploading the data information of the operating system to be migrated to the transit 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 transit server through the network connection.
Optionally, the uploading the data information of the operating system to be migrated to the transit 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 disc data of the operating system to be migrated to the second data disc of the transit server includes: and uploading the data of each data disk of the operating system to be migrated to the data disk of the transfer server, which corresponds 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 image file according to the confirmation information of the completion of uploading the data information of the operating system to be migrated, which is returned by the transfer server.
The application provides an implementation device for operating system migration, which comprises:
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 transit server;
and the sending unit is used for 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 transfer server.
Optionally, the construction unit is specifically configured to:
judging whether the operating system to be migrated meets migration conditions or not according to the system information;
if yes, a first request for starting the transfer server is constructed, and the first request is sent to the cloud platform.
Optionally, the construction unit is specifically configured to:
determining second data disk information of the transfer server according to the first data disk information of the operating system to be migrated;
and constructing a first request for starting the transfer server according to the second data disk information.
Optionally, the system further comprises a release unit, wherein the release unit is configured to send a third request for releasing the resources of the transit server after the second request for creating the image file is sent.
Optionally, the system information includes at least one of the following information:
System version information;
platform architecture information;
and (5) disk information 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 transit 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 the data disk of the transfer server, which corresponds 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 image file according to the completion confirmation information of uploading the data information 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 which, when read for execution by the processor, performs the following operations:
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 transfer 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 transfer 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 transit server;
starting the transit server according to the first request;
acquiring a second request for creating an operating system image to be migrated;
and creating an 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.
Optionally, the method further comprises:
acquiring a third request for releasing the resources of the transit server;
and releasing the transit server resource according to the third request.
The application provides an implementation device for operating system migration, which comprises:
the first acquisition unit is used for acquiring a first request for starting the transfer server;
the starting unit is used for starting the transfer server according to the first request;
the second acquisition unit is used for acquiring a second request for creating the operating system image to be migrated;
and the creation unit is used for creating an image file of the operating system to be migrated by utilizing the data information of the operating system to be migrated received by the transfer server according to the second request.
Optionally, the method further comprises:
A third obtaining unit, configured to obtain a third request for releasing the resource of the transit server;
and the releasing unit is used for releasing the transit server resources 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;
reconstructing system guidance of the operating system to be migrated according to the data information, and configuring a virtualization drive of the operating system to be migrated;
and providing the system boot program and the virtualization driver for a cloud platform for creating an image file of the operating system to be migrated.
The application provides an implementation device for operating system migration, which comprises:
the acquisition unit is used for acquiring data information of the operating system to be migrated;
the reconstruction unit is used for reconstructing system guidance of the operating system to be migrated according to the data information and configuring a virtualization drive of the operating system to be migrated;
and the providing unit is used for providing the system boot and the virtualization drive for the cloud platform and creating an image file of the operating system to be migrated.
The application provides an implementation system for operating system migration, which comprises: migration clients, transfer servers and cloud platforms;
The migration client is used for 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 the cloud platform; uploading the data information of the operating system to be migrated to the transfer server; sending a second request for creating an 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 transfer 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; reconstructing 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 boot program and the virtualized driver 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 an image file of the operating system to be migrated according to the second request by utilizing the data information received by the transfer server.
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 transfer is avoided, and the cost of local resources in the migration process is effectively reduced; meanwhile, the process of creating the operating system image is carried out at the transfer server side, so that the operation of importing and uploading the local image file is omitted, the migration efficiency is improved, the migration time cost is shortened, and the problem of high migration cost 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 implementation apparatus for 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 implementation apparatus for 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 implementation apparatus for operating system migration according to an eighth embodiment of the present application;
fig. 8 is a system configuration 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, however, susceptible of embodiment in many other ways than those herein described and similar generalizations can be made by those skilled in the art without departing from the spirit of the application and the application is therefore not limited to the specific embodiments disclosed below.
The first embodiment of the application provides a method for realizing migration of an operating system. Referring to fig. 1, a flowchart of a first embodiment of the present application is shown. The following describes in detail an implementation method of 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 an operating system to be migrated is obtained.
The step is used for acquiring the system information of the operating system to be migrated.
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: a storage type cloud platform mainly used for data storage, a computing type cloud platform mainly used for data processing and a comprehensive cloud computing platform taking both 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 (5) disk information to be migrated.
In this embodiment, the system version information includes the type of the operating system, such as windows, linux; version numbers of the operating system, 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 disk information to be migrated comprises data disk information and system disk information of an operating system to be migrated.
In this embodiment, the migration client running in the operating system to be migrated may be used to obtain system information of the operating system to be migrated.
Step S102, a first request for starting a transit server is constructed according to the system information, and the first request is sent to a cloud platform.
The method comprises the steps of constructing a first request for starting a transfer server according to system information, and sending the first request to a 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 recovered on the cloud computing platform.
If there is no intermediate server available in the cloud platform, it is necessary to first create an intermediate server and then start this intermediate server. If there is an available intermediate server in the cloud platform, starting the available intermediate server.
In the prior art, a cloud platform provides a standard interface of an OpenAPI for a user, and the user can 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.
Constructing a first request for starting a transit server according to the system information, and sending the first request to a cloud platform, wherein the first request comprises the following steps:
judging whether the operating system to be migrated meets migration conditions or not according to the system information;
if yes, a first request for starting the transfer server is constructed, and the first request is sent to the cloud platform.
Generally, a cloud platform sets migration conditions for an operating system to be migrated. For example, specific requirements are placed on the version of the operating system.
The constructing a first request for starting the transit server according to the system information comprises the following steps:
determining second data disk information of the transfer server according to the first data disk information of the operating system to be migrated;
and constructing a first request for starting the transfer 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 transferred, 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 transferred.
And constructing a first request for starting the transfer server according to the second data disk information, namely, including the data disk information required by the transfer 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 transit server.
In this embodiment, the data information of the operating system to be migrated may be uploaded to the relay server at a file level.
rsync is a data mirror backup tool under the linux system. The embodiment can upload the data information of the operating system to be migrated to the transit server by using rsync. Since rsync is common open source software, specific implementation steps thereof are not described herein.
The uploading the data information of the operating system to be migrated to the transit 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 transit server through the network connection.
The public network internet address is an IP address. In this embodiment, the transit server may use a public IP address, so that the operating system to be migrated may conveniently establish network connection with the transit server.
Of course, the transit server may also employ a local area network IP.
The uploading the data information of the operating system to be migrated to the transit 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 relay server may be the first data disk of the relay server.
In this embodiment, uploading the data 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 disk of the relay server from the second data disk.
For example, the first data disk data of the operating system to be migrated is uploaded to the second data disk of the transit server, the second data disk data of the operating system to be migrated is uploaded to the third data disk of the transit 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 comprises the following steps: and uploading the data of each data disk of the operating system to be migrated to the data disk of the transfer server, which corresponds to each data disk of the operating system to be migrated.
Step S104, a second request for creating the image file is sent, 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 transfer server.
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 transfer server.
The sending may be implemented by a migration tool running on a migration operating system, calling an OpenAPI provided by the cloud platform.
The sending a second request to create an image file includes:
and sending a second request for creating the image file according to the confirmation information of the completion of uploading 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 transfer 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 the operating system provided in 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.
After the cloud platform creates an image file with the migration operating system and completes cloud migration of the operating system, the transfer server resources including the transfer server, the corresponding data disk resources and the like are required to be released.
Fig. 2 is a system schematic diagram of an operating system migration implementation method provided by the application.
In the foregoing embodiment, an implementation method for operating system migration is provided, and correspondingly, the application further provides an implementation device for operating system migration. Refer to FIG. 3, which is a flowchart illustrating an embodiment of an apparatus for implementing operating system migration according to the present application. Since this embodiment, i.e. the second embodiment, is substantially similar to the method embodiment, the description is relatively simple, and reference should be made to the description of the method embodiment for relevant points. The device embodiments described below are merely illustrative.
The application provides an implementation device for operating system migration, which comprises:
an acquiring unit 301, configured to acquire system information of an operating system to be migrated;
a construction 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 transit server;
and the sending unit 304 is 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 transfer server.
In this embodiment, the construction unit is specifically configured to:
judging whether the operating system to be migrated meets migration conditions or not according to the system information;
if yes, a first request for starting the transfer server is constructed, and the first request is sent to the cloud platform.
In this embodiment, the construction unit is specifically configured to:
determining second data disk information of the transfer server according to the first data disk information of the operating system to be migrated;
and constructing a first request for starting the transfer server according to the second data disk information.
In this embodiment, the implementation apparatus further includes a release unit, where the release unit is configured to send a third request for releasing the relay server resource after the second request for creating the image file is sent.
In this embodiment, the system information includes at least one of the following information:
system version information;
platform architecture information;
and (5) disk information 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 transit 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 the data disk of the transfer server, which corresponds 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 image file according to the completion confirmation information of uploading the data information of the operating system to be migrated, which is returned by the transfer server.
A third embodiment of the present application provides an electronic device, including:
a processor;
a memory for storing a program which, when read for execution by the processor, performs the following operations:
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 transfer server.
A fourth embodiment of 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 transfer server.
A fifth embodiment of the present application provides a method for implementing migration of an operating system, where the method includes the following steps:
a fifth embodiment of the present application provides a method for implementing migration of an operating system. Referring to fig. 4, a flowchart of a fifth embodiment of the present application is shown. A method for implementing migration of an operating system 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 to start a transit server is obtained.
The first request for starting the transfer server is obtained by 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 recovered on the cloud computing platform.
If there is no intermediate server available in the cloud platform, it is necessary to first create an intermediate server and then start this intermediate server. If there is an available intermediate server in the cloud platform, starting the available intermediate server.
In the prior art, a cloud platform provides a standard interface of an OpenAPI for a user, and the user can 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. And 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.
The step is used for starting the transfer server according to the first request.
In this embodiment, the first request includes information such as a data disc of the relay server, and the relay server is started according to the information.
Step S403: a second request to create an image file of the operating system to be migrated is obtained.
The method comprises the step of obtaining a second request for creating the operating system image to be migrated by the cloud platform.
The second request includes information about how to create an image of the operating system to be migrated, for example, a snapshot is created on a data disk received by the relay server, and 1 or more snapshots of the data disk are assembled into an image file.
Step S404: and obtaining the data information of the operating system to be migrated from the transit server.
The cloud platform is used for obtaining data information of the operating system to be migrated from the transit server.
Step S405: and creating an image file of the operating system to be migrated according to the second request by utilizing the data information of the operating system to be migrated.
The step is used for creating an image file of the operating system to be migrated by utilizing the data information of the operating system to be migrated received by the transfer 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 the resources of the transit server;
and releasing the transit server resource according to the third request.
In the foregoing embodiment, an implementation method for operating system migration is provided, and correspondingly, the application further provides an implementation device for operating system migration. Refer to FIG. 5, which is a flowchart illustrating an embodiment of an apparatus for implementing operating system migration according to the present application. Since this embodiment, i.e., the sixth embodiment, is substantially similar to the method embodiment, the description is relatively simple, and reference will be made to the description 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 a relay server.
And the starting unit 502 is configured to start the transit server according to the first request. The method comprises the steps of carrying out a first treatment on the surface of the
A second obtaining unit 503, configured to obtain a second request for creating an operating system image to be migrated.
And an obtaining unit 504, configured to obtain data information of the operating system to be migrated from the relay server.
And the second creating unit 505 is configured to create, according to the second request, an image file of the operating system to be migrated using the data information of the operating system to be migrated.
Optionally, the method further comprises:
a third obtaining unit, configured to obtain a third request for releasing the resource of the transit server;
And the releasing unit is used for releasing the transit server resources according to the third request.
The seventh embodiment of the application provides a method for implementing migration of an operating system. Referring to fig. 6, a flowchart of a seventh embodiment of the present application is shown. A method for implementing migration of an operating system according to a 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 acquire 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 relay server at a file level.
rsync is a data mirror backup tool under the linux system. The embodiment can upload the data information of the operating system to be migrated to the transit server by using rsync. Since rsync is common open source software, specific implementation steps thereof are not described herein.
Step S602: and reconstructing system guidance of the operating system to be migrated according to the data information, and configuring a virtualized drive of the operating system to be migrated.
The step is used for reconstructing the system guide of the operating system to be migrated according to the data information by the transfer server and configuring the virtualized drive of the operating system to be migrated.
Step S603: and providing the system boot program and the virtualization driver for a cloud platform for creating an image file of the operating system to be migrated.
The step is used for providing the system guide program and the virtualized driver program for the cloud platform by the transfer server and creating the image file of the operating system to be migrated.
In the foregoing embodiment, an implementation method for operating system migration is provided, and correspondingly, the application further provides an implementation device for operating system migration. Refer to FIG. 7, which is a flowchart illustrating an embodiment of an apparatus for implementing operating system migration according to the present application. Since this embodiment, the eighth embodiment, is substantially similar to the method embodiment, the description is relatively simple, and the relevant points are referred to in the description of the method embodiment. The device embodiments described below are merely illustrative.
An eighth embodiment of the present application provides an implementation apparatus for 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 a 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;
And the providing unit 703 is configured to provide the system boot program and the virtualization driver to a cloud platform, and create an image file of the operating system to be migrated.
A ninth embodiment of the present application provides a system for implementing migration of an operating system, and please refer to fig. 8. The implementation system provided in this embodiment includes: a migration client 801, a relay server 802, and a cloud platform 803;
the migration client is used for 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 the cloud platform; uploading the data information of the operating system to be migrated to the transfer server; sending a second request for creating an 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 transfer 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; reconstructing system guidance 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 boot program and the virtualized driver 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 an image file of the operating system to be migrated according to the second request by utilizing the data information received by the transfer server.
While the preferred embodiment has been described, it is not intended to limit the invention thereto, and any person skilled in the art may make variations and modifications without departing from the spirit and scope of the present invention, so that the scope of the present invention shall be defined by the claims of the present application.
In one typical configuration, a computing device includes one or more operators (CPUs), an input/output interface, a network interface, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, etc., such as Read Only Memory (ROM) or flash memory (flashRAM). Memory is an example of computer-readable media.
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 storage media for a computer 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 Disks (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer readable media, as defined herein, does not include non-transitory computer readable media (transmission media), such as modulated data signals and carrier waves.
2. It will be appreciated by those skilled in the art that 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. A method for implementing operating system migration, comprising:
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;
sending a second request for creating an 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 transfer server;
the transit server is an intermediate server capable of storing and processing data, and can be dynamically created or recycled in the cloud platform.
2. The method for implementing operating system migration according to claim 1, wherein constructing, according to the system information, a first request for starting a transit server, and sending the first request to a cloud platform, includes:
judging whether the operating system to be migrated meets migration conditions or not according to the system information;
if yes, a first request for starting the transfer server is constructed, and the first request is sent to the cloud platform.
3. The method for implementing operating system migration according to claim 1, wherein 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 the first data disk information of the operating system to be migrated;
and constructing a first request for starting the transfer 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 operating system migration according to claim 1, wherein the system information includes at least one of the following information:
System version information;
platform architecture information;
and (5) disk information to be migrated.
6. The method for implementing operating system migration according to claim 1, wherein uploading the data information of the operating system to be migrated to the relay 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 transit server through the network connection.
7. The method for implementing operating system migration according to claim 1, wherein uploading the data information of the operating system to be migrated to the relay 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 operating system migration according to claim 7, wherein uploading the data disc data of the operating system to be migrated to the second data disc of the relay server includes: and uploading the data of each data disk of the operating system to be migrated to a different second data disk of the transit server respectively.
9. The method for implementing operating system migration according to claim 1, wherein the sending the second request for creating the image file includes:
and sending a second request for creating the image file according to the confirmation information of the completion of uploading the data information of the operating system to be migrated, which is returned by the transfer server.
10. An apparatus for implementing migration of an operating system, 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 transit server;
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 transfer server;
the transit server is an intermediate server capable of storing and processing data, and can be dynamically created or recycled in the cloud platform.
11. An electronic device, the electronic device comprising:
A processor;
a memory for storing a program which, when read for execution by the processor, performs the following operations:
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;
sending a second request for creating an 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 transfer server;
the transit server is an intermediate server capable of storing and processing data, and can be dynamically created or recycled in the cloud platform.
12. A computer readable storage medium having stored thereon a computer program, characterized in that the program, when executed by a processor, realizes 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;
sending a second request for creating an 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 transfer server;
the transit server is an intermediate server capable of storing and processing data, and can be dynamically created or recycled in the cloud platform.
13. A method for implementing operating system migration, comprising:
acquiring a first request for starting a transit server;
starting the transit server according to the first request;
acquiring a second request for creating an image file of the operating system to be migrated;
obtaining data information of an operating system to be migrated from the transit server;
creating an 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;
the transfer server is an intermediate server capable of storing and processing data, and can be dynamically created or recycled in the cloud platform.
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 migration of an operating system, comprising:
the first acquisition unit is used for acquiring a first request for starting the transfer server;
the starting unit is used for creating the transfer server according to the first request;
the second acquisition unit is used for acquiring a second request for creating the operating system image to be migrated;
the obtaining unit is used for obtaining the data information of the operating system to be migrated from the transit server;
the creation unit is used for creating an 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;
the transfer server is an intermediate server capable of storing and processing data, and can be dynamically created or recycled in the cloud platform.
16. The apparatus for implementing operating system migration according to claim 15, further comprising:
A third acquiring unit configured to acquire a third request for releasing the resource of the relay server;
and the releasing unit is used for releasing the resources of the transit server according to the third request.
17. A method for implementing operating system migration, comprising:
acquiring data information of an operating system to be migrated;
reconstructing a system bootstrap program of the operating system to be migrated according to the data information, and configuring a virtualized driver of the operating system to be migrated;
providing the system boot program and the virtualization driver for a cloud platform, wherein the cloud platform is used for creating an image file of the operating system to be migrated;
wherein, the cloud platform can be dynamically created or recycled with a transit server, which is an intermediate server capable of storing and processing data.
18. An apparatus for implementing migration of an operating system, comprising:
the acquisition unit is used for acquiring data information of the operating system to be migrated;
the reconstruction unit is used for reconstructing a system boot program of the operating system to be migrated according to the data information and configuring a virtualization driver of the operating system to be migrated;
The system comprises a providing unit, a cloud platform and a migration unit, wherein the providing unit is used for providing the system boot program and the virtualization driver for the cloud platform and creating an image file of the operating system to be migrated by the cloud platform;
wherein, the cloud platform can be dynamically created or recycled with a transit server, which is an intermediate server capable of storing and processing data.
19. A system for implementing operating system migration, comprising: migration clients, transfer servers and cloud platforms;
the migration client is used for 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 the cloud platform; uploading the data information of the operating system to be migrated to the transfer server; sending a second request for creating an 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 transfer 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; reconstructing 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 boot program and the virtualized driver 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; receiving the second request sent by the migration client, and creating an image file of the operating system to be migrated according to the second request by utilizing the data information received by the transfer server;
the transit server is an intermediate server capable of storing and processing data, and can be dynamically created or recycled in the cloud platform.
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 CN110928557A (en) 2020-03-27
CN110928557B true 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)

Families Citing this family (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
CN112394881B (en) * 2020-11-04 2024-03-19 华云数据控股集团有限公司 Cloud host migration method and electronic equipment
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

Citations (8)

* 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
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

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2506177A (en) * 2012-09-25 2014-03-26 Ibm Method of migrating an operating system executing an application
US9098364B2 (en) * 2013-07-09 2015-08-04 Oracle International Corporation Migration services for systems

Patent Citations (8)

* 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
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

Also Published As

Publication number Publication date
CN110928557A (en) 2020-03-27

Similar Documents

Publication Publication Date Title
CN110928557B (en) Method, device and system for realizing migration of operating system
US10216587B2 (en) Scalable fault tolerant support in a containerized environment
US11042450B2 (en) Mechanism for managing container runtime state
US8892945B2 (en) Efficient application management in a cloud with failures
US11093148B1 (en) Accelerated volumes
JP5760088B2 (en) System and method for providing flexible storage and retrieval of snapshot archives
CN106797388B (en) Cross-system multimedia data encoding and decoding method and device, electronic equipment and computer program product
US10754741B1 (en) Event-driven replication for migrating computing resources
CN110198329B (en) Database deployment method, device and system, electronic equipment and readable medium
US10185575B2 (en) Computing device for operating a machine session with persistent read cache and non-persistent write cache and related methods
JP2015515690A (en) Live migration protocol and cluster server failover protocol
US9501296B2 (en) Hypervisor automation manager for starting an operation system with customization data from a disk image
US11418566B2 (en) Adding and removing virtual disks remotely to a streaming machine
US10452502B2 (en) Handling node failure in multi-node data storage systems
US10747458B2 (en) Methods and systems for improving efficiency in cloud-as-backup tier
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
US20210132957A1 (en) Configuration after cluster migration
US10628055B2 (en) Management of storage replication consistency groups using automatic replication group identifiers
US9485308B2 (en) Zero copy volume reconstruction
CN113301004A (en) Data processing method and device, communication method and single-network-card virtual machine
CN114679442A (en) Cloud desktop based user data synchronization method, device, equipment and storage medium
US20170147382A1 (en) Provisioning based on workload displacement
US11144408B2 (en) System and method for improving asynchronous replication performance in dual controller storage systems

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