CN109995814A - Moving method and device, communication equipment, the storage medium of cloud host resource - Google Patents

Moving method and device, communication equipment, the storage medium of cloud host resource Download PDF

Info

Publication number
CN109995814A
CN109995814A CN201711481073.7A CN201711481073A CN109995814A CN 109995814 A CN109995814 A CN 109995814A CN 201711481073 A CN201711481073 A CN 201711481073A CN 109995814 A CN109995814 A CN 109995814A
Authority
CN
China
Prior art keywords
configuration data
platform
target
host
address
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
CN201711481073.7A
Other languages
Chinese (zh)
Other versions
CN109995814B (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.)
China Mobile Communications Group Co Ltd
China Mobile Suzhou Software Technology Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Suzhou Software Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd, China Mobile Suzhou Software Technology Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201711481073.7A priority Critical patent/CN109995814B/en
Publication of CN109995814A publication Critical patent/CN109995814A/en
Application granted granted Critical
Publication of CN109995814B publication Critical patent/CN109995814B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5061Pools of addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/563Data redirection of data network streams

Abstract

The present invention provides the moving methods and device, communication equipment, storage medium of a kind of cross-platform cloud host resource, cloud host resource between cloud platform to realize isomery migrates automation, transport efficiency is improved, the error rate that the configuration data of cloud host is manually entered is reduced.The described method includes: obtaining the corresponding initial mirror file of primitive nebula host from ESXi server;According to the second configuration data, the first configuration data is supplemented;And according to the first configuration data after preset migration rules and supplement, target configuration data is determined;According to preset migration rules and initial mirror file, target image file is determined;Wherein, the first configuration data is the configuration data of the primitive nebula host obtained from vcenter server, and the second configuration data is the configuration data of initial mirror file medium cloud host;Target cloud host is created in target cloud platform, during creating target cloud host, loads target image file and target configuration data.

Description

Moving method and device, communication equipment, the storage medium of cloud host resource
Technical field
The present invention relates to fields of communication technology, more particularly to a kind of moving method and dress of cross-platform cloud host resource It sets, communication equipment, storage medium.
Background technique
Infrastructure cloud (Infrastructure as a Service, IaaS) provides virtual calculating money for user Source, storage resource and Internet resources are provided convenience for the operation of upper layer application.The current solution serviced of providing infrastructures Scheme has VMware cloud platform and Openstack cloud platform Deng Duojia software vendor.Therefore, usually will appear from two differences The case where cloud host data is migrated between the platform of framework.At present in the industry for from VMware cloud platform to the cloud of isomery cloud platform The method of host resource migration, there are mainly two types of:
The mode of one, file migration is manually entered the cloud host with primitive nebula platform VMware in target cloud platform Identical parameter is configured, creates user in target cloud platform to realize, and create virtual machine under the user account, then Resource in primitive nebula host is uploaded in target cloud host.After migration, to guarantee that target cloud host operates normally, also It need to modify to the registration table of target cloud host;
Secondly, the mode of mirror transference, i.e., create cloud host, and the Template Information of cloud host is set in target cloud platform And IP address (Internet Protocol Address, internet protocol address);Cloud master is obtained from primitive nebula platform VMware The image file for the driving file being injected with is imported into newly created cloud host by the image file of machine.
In addition, above-mentioned existing solution is required configuration parameter is manually entered and be configured to cloud host, it is therefore, existing Some certainly exists that transport efficiency is low and error rate is high from VMware cloud platform to the method for isomery cloud platform migration cloud host Problem.
Moreover, the framework of VMware cloud platform (VMware Workstations) includes vsphere client (vsphere Client), vcenter server (Vcenter Server) and ESXi server.Wherein, creation is virtual Machine is created in ESXi server, more virtual machines can be created on an ESXi server, more ESXi servers again can group At a server cluster, all ESXi servers in cluster are managed collectively by vcenter server again.Due to The resource of ESXi server is obtained from vcenter server in the prior art, therefore even if needs to shift in virtual machine There was only 10G in space shared by resource, it is also desirable to all be converted to entire disk shared by the resource for needing transfer in ESXi server The size of image file, the image file may have 100G, so that the transmission channel for occupying vcenter server is led to the clothes The processing pressure of business device is increased sharply.
In conclusion the method for the existing cloud platform migration cloud host from VMware cloud platform to isomery is certainly existed and is moved Shifting low efficiency and the problem that error rate is high, server processing pressure is big.
Summary of the invention
The embodiment of the invention provides a kind of moving method of cross-platform cloud host resource and device, communication equipment, deposit Storage media, the cloud host resource between the cloud platform to realize isomery migrate automation, and it is low to avoid transport efficiency, manually match The error rate for setting data is high, the big problem of the processing pressure of vcenter server.
The embodiment of the invention provides a kind of moving methods of cross-platform cloud host resource, comprising:
The corresponding initial mirror file of primitive nebula host is obtained from ESXi server;
According to the second configuration data, the first configuration data is supplemented;And according to first after preset migration rules and supplement Configuration data determines target configuration data;According to the preset migration rules and the initial mirror file, target mirror is determined As file;Wherein, first configuration data is the configuration data of the primitive nebula host obtained from vcenter server, described Second configuration data is the configuration data of the initial mirror file medium cloud host;
Target cloud host is created in target cloud platform loads the mesh during creating the target cloud host Mark image file and the target configuration data.
Preferably, if being configured at least two disks in the primitive nebula host, according to the second configuration data, supplement first Configuration data, comprising:
According to the second configuration data, determine whether primitive nebula host in a manner of the disk management of logical volume carries out pipe to the disk Reason;If so, the number of the system disk under determining in a manner of the disk management of logical volume and the number of data disks, and according to determination System disk number and data disks number, supplement the first configuration data;Otherwise, it is directly mended according to second configuration data Fill first configuration data.
Preferably, if being configured at least two network interface cards in the primitive nebula host, according to the second configuration data, supplement first Configuration data, comprising:
If there is no the corresponding IP Internet protocol address of the network interface card in the first configuration data, according to the second configuration data Described in the corresponding IP address of network interface card, supplement the corresponding IP address of network interface card described in first configuration data;
According to the first configuration data after preset migration rules and supplement, target configuration data is determined, comprising:
According to preset migration rules, the method for salary distribution of IP address is determined;
If the method for salary distribution of IP address is static allocation mode, corresponding according to the network interface card in first configuration data IP address and the preset migration rules determine the corresponding IP address of target platform medium cloud host network card;If point of IP address It is the DHCP dynamic host configuration protocol method of salary distribution, the then network according to locating for original platform in first configuration data with mode Title and the preset migration rules, determine network locating for target cloud platform, the net locating for the target cloud platform In the corresponding IP address pond of network, the corresponding IP address of network interface card in target configuration data is obtained.
Preferably, before creating target cloud host, this method further include:
The user information of primitive nebula platform is obtained from vcenter server;
Create target cloud host, comprising:
According to the user information of the primitive nebula platform, user is created in target cloud platform, and in the newly-built user Lower creation target cloud host.
Preferably, the user information of the primitive nebula platform includes: user account and the corresponding permission of the user account;
According to the user information of the primitive nebula platform, user is created in target cloud platform, comprising:
According to the user account registered in original cloud platform, used in target cloud platform using the user account is newly-built Family;And according to the corresponding permission of the user account, corresponding permission is set for newly-built user.
The embodiment of the invention provides a kind of moving apparatus of cross-platform cloud host resource, which includes:
Module is obtained, for obtaining the corresponding initial mirror file of primitive nebula host from ESXi server;
Configuration module, for supplementing the first configuration data according to the second configuration data;And according to preset migration rules and The first configuration data after supplement, determines target configuration data;According to the preset migration rules and initial mirror text Part determines target image file;Wherein, first configuration data is the primitive nebula host obtained from vcenter server Configuration data, second configuration data are the configuration data of the initial mirror file medium cloud host;
Loading module, for creating target cloud host in target cloud platform, in the process for creating the target cloud host In, load the target image file and the target configuration data.
Preferably, if being configured at least two disks in the primitive nebula host, according to the second configuration data, supplement first Configuration data, the configuration module are specifically used for:
According to the second configuration data, determine whether primitive nebula host in a manner of the disk management of logical volume carries out pipe to the disk Reason;If so, the number of the system disk under determining in a manner of the disk management of logical volume and the number of data disks, and according to determination System disk number and data disks number, supplement the first configuration data;Otherwise, it is directly mended according to second configuration data Fill first configuration data.
Preferably, if being configured at least two network interface cards in the primitive nebula host, according to the second configuration data, supplement first Configuration data, the configuration module are specifically used for:
If there is no the corresponding IP Internet protocol address of the network interface card in the first configuration data, according to the second configuration data Described in the corresponding IP address of network interface card, supplement the corresponding IP address of network interface card described in first configuration data;
According to the first configuration data after preset migration rules and supplement, target configuration data, the configuration mould are determined Block is specifically used for:
According to preset migration rules, the method for salary distribution of IP Internet protocol address is determined;
If the method for salary distribution of IP address is static allocation mode, corresponding according to the network interface card in first configuration data IP address and the preset migration rules determine the corresponding IP address of target platform medium cloud host network card;If point of IP address It is the DHCP dynamic host configuration protocol method of salary distribution, the then network according to locating for original platform in first configuration data with mode Title and the preset migration rules, determine network locating for target cloud platform, the net locating for the target cloud platform In the corresponding IP address pond of network, the corresponding IP address of network interface card in target configuration data is obtained.
Preferably, the loading module is also used to before creating target cloud host:
The user information of primitive nebula platform is obtained from vcenter server;
Target cloud host is created, the loading module is specifically used for:
According to the user information of the primitive nebula platform of acquisition, user is created in target cloud platform, and in the newly-built use Target cloud host is created under family.
Preferably, the user information of the primitive nebula platform includes: user account and the corresponding permission of the user account;
According to the user information of primitive nebula platform, user is created in target cloud platform, the loading module is specifically used for:
According to the user account registered on primitive nebula platform, user is created using the user account in target cloud platform; And according to the corresponding permission of the user account, corresponding permission is set for newly-built user.
The embodiment of the invention provides a kind of communication equipment, including memory, processor and it is stored in the memory Computer program that is upper and can running on the processor, the processor are realized as above-mentioned when executing described program across flat The moving method of the cloud host resource of platform.
The embodiment of the invention provides a kind of computer readable storage mediums, are stored thereon with computer program, the program The step in the moving method such as above-mentioned cross-platform cloud host resource is realized when being executed by processor.
The embodiment of the invention provides a kind of moving method of cross-platform cloud host resource and device, communication equipment, deposit Storage media so that user can by the migration rules of sets itself cloud host, realize cross-platform cloud host resource from moving It moves, reduces the error rate that configuration data is manually entered, improve the transport efficiency of cloud host resource, alleviate vcenter clothes The processing pressure of business device.Meanwhile by obtaining image file from ESXi server, primitive nebula master is obtained from vcenter server The method of the configuration data of machine realizes multipath and obtains migrating data, the time required to shortening migration.
Detailed description of the invention
Fig. 1 is a kind of process signal of the moving method for cross-platform cloud host resource that the embodiment of the present invention one provides Figure;
Fig. 2 is moving for the cloud host resource provided by Embodiment 2 of the present invention from VMware platform to Openstack platform The flow diagram of shifting method;
Fig. 3 is a kind of structural representation of the moving apparatus for cross-platform cloud host resource that the embodiment of the present invention three provides Figure.
Specific embodiment
The embodiment of the invention provides a kind of moving method of cross-platform cloud host resource and device, communication equipment, deposit Storage media, the cloud host resource between the cloud platform to realize isomery migrate automation, and it is low to avoid transport efficiency, manually match The error rate for setting data is high, the big problem of the processing pressure of vcenter server.
Following will be combined with the drawings in the embodiments of the present invention, is clearly and completely retouched to the technical solution in the present invention It states, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based in the present invention Embodiment, every other embodiment obtained by those of ordinary skill in the art without making creative efforts, all Belong to the scope of protection of the invention.
Embodiment one:
Referring to Fig. 1, the embodiment of the present invention one provides a kind of moving method of cross-platform cloud host resource, comprising:
S110, the corresponding initial mirror file of primitive nebula host is obtained from ESXi server;
S120, according to the second configuration data, supplement the first configuration data;And according to preset migration rules and after supplementing First configuration data determines target configuration data;According to preset migration rules and initial mirror file, target mirror image text is determined Part;Wherein, the first configuration data is the configuration data of the primitive nebula host obtained from vcenter server, the second configuration data For the configuration data of initial mirror file medium cloud host;
S130, target cloud host is created in target cloud platform, during creating the target cloud host, load mesh Mark image file and target configuration data.
The moving method of the cloud host resource provided in one through the embodiment of the present invention, so that user can pass through sets itself The migration rules of cloud host realize the Autonomic Migration Framework of cross-platform cloud host resource, reduce and configuration parameter is manually entered causes Error rate, improve the transport efficiency of cloud host resource.Meanwhile by obtaining image file from ESXi server, from The method that vcenter server obtains the configuration data of primitive nebula host realizes multipath and obtains migrating data, shortens migration Required time.
The first configuration data is supplemented according to disc information in the second configuration data for step S120, comprising:
Firstly, determining the number of system disk and data disks, the specific method is as follows according to the second configuration data:
First judge whether the number of disk is identical as the number of disk in the first configuration data in the second configuration data.Generally In the case of, the number of disk is identical in the first configuration data and the second configuration data;If disk in the first configuration data Number is different from the number of disk in the second configuration data, then prompts error message.
Further according to the disk number in the second configuration data, the number of system disk and data disks is determined.Even second configuration A disk is only configured in data, it is determined that the disk is system disk.If being configured at least two magnetic in the second configuration data Disk determines whether primitive nebula host is managed the disk in a manner of the disk management of logical volume then according to the second configuration data; If so, the number of the system disk under the disk management mode of determining logical volume and the number of data disks;Otherwise, it directly determines and is Overall number is one, and other disks are data disks, and with the number of the number of determining system disk and data disks For standard, the number of the system disk in the first configuration data and the number of data disks are supplemented.
Secondly, determining the corresponding capacity of system disk and data disks pair according to the corresponding capacity of disk in the second configuration data The capacity answered;And with the determining corresponding capacity of system disk and the corresponding capacity of data disks, supplements in the first configuration data and be Overall corresponding capacity and the corresponding capacity of data disks.
Finally, determining the corresponding title of system disk and data disks pair according to the corresponding title of disk in the second configuration data The title answered;And with the determining corresponding title of system disk and the corresponding title of data disks, supplements in the first configuration data and be Overall corresponding title and the corresponding title of data disks.
For step S120, the alteration ruler whether defined in preset migration rules to disc information is determined, if magnetic The alteration ruler of disk information is defined, then is modified to disc information in the first configuration data after supplement, and is determined and mended The disc information in the first configuration data after filling is the disc information in target configuration data;If in preset migration rules not Limit the alteration ruler of disc information, it is determined that the disc information in the first configuration data is the disk letter in target configuration data Breath.Wherein, disc information includes disk number, disk size and Disk name.
It is distinguished by the type to the disk in primitive nebula host, i.e. compartment system disk and data disks, to solve The prior art is aiming at the problem that system disk and data disks cannot be distinguished in the disk management mode of logical volume.
The first configuration data is supplemented according to network interface card information in the second configuration data for step S120, comprising:
First, it is determined that whether the number of network interface card is identical as the number of network interface card in the second configuration data in the second configuration data, If it is different, being then subject to the number of network interface card in the first configuration data;If they are the same, then without changing network interface card in the first configuration data Number.
Secondly, if there is no the network interface card corresponding IP (Internet Protocol, internet protocol in the first configuration data View) address, then the corresponding IP address of the network interface card according to the second configuration data, supplements network interface card pair described in the first configuration data The IP address answered.
It is carried out according to preset migration rules to supplemented with the first configuration data after network interface card information for step S120 Modification, comprising:
If the method for salary distribution only configured with IP address in a network interface card and primitive nebula platform in primitive nebula host is static allocation side Formula, then according in the first configuration data the corresponding IP address of network interface card and preset migration rules, determine in target configuration data The corresponding IP address of network interface card;If determining the net according to preset migration rules configured at least two network interface cards in primitive nebula host Block the method for salary distribution of corresponding IP address;If the method for salary distribution of IP address is static allocation mode, according to the first configuration data In the corresponding IP address of network interface card and preset migration rules, determine the corresponding IP address of target platform medium cloud host network card;If The method of salary distribution of IP address is DHCP (Dynamic Host Configuration Protocol, dynamic host configuration protocol) The method of salary distribution, then the title of the network according to locating for original platform in the first configuration data and preset migration rules, determine target Network locating for cloud platform obtains net in target configuration data from the corresponding IP address pond of network locating for target cloud platform Block corresponding IP address;The above method is performed both by with resetting the corresponding IP of the network interface card to network interface card all in the first configuration data Location.Either which kind of IP address method of salary distribution, all can be first according to the network information of the primitive nebula platform in the first configuration data and pre- If migration rules, generate the network information of target cloud platform, and finally creation and the target cloud are flat in target cloud platform The corresponding network of the network information of platform.
By being reset to the corresponding configuration file of network interface card in image file, so that the net in newly-built target cloud host Card supports the dynamic acquisition IP address of DHCP mode.
Target image file is obtained according to preset migration rules and initial mirror file for step S120, comprising:
It is right according to preset migration rules if defining the modification mode to image file in preset migration rules The IP address method of salary distribution is modified in initial mirror file, and determines that modified image file is target image file.
If not providing the modification mode to image file in preset migration rules, directly determining initial mirror file is Target image file.
By configuring network interface card information according to preset migration rules, when solving through image file migration cloud host, mesh The problem of mark cloud host can not obtain IP address automatically, it is imperfect also to solve the network interface card information stored in vcenter server Or the problem of mistake.
Before determining target image file, this method further include:
If modifying to initial mirror file, the drive of target cloud platform is injected into modified initial mirror file Dynamic file;If not modifying to initial mirror file, the driving file of target cloud platform is injected into initial mirror file.
For step S130, before creating target cloud host, this method further include:
The step S120 target image file determined is uploaded in target cloud platform.
For step S130, the method for creating target cloud host:
The user information of primitive nebula platform is obtained from vcenter server;
According to the user information of primitive nebula platform, user is created in target cloud platform, and create mesh under newly-built user Mark cloud host.
Wherein, the user information of primitive nebula platform includes: user account and the corresponding claim of the user account;
According to the user information of primitive nebula platform, user is created in target cloud platform, comprising:
According to the user account registered in original cloud platform, used in target cloud platform using the user account is newly-built Family;And according to the corresponding permission of the user account, corresponding permission is set for newly-built user.
If the user information of primitive nebula platform further includes the corresponding password of the user account, after newly-built user, the party Method further include: set the corresponding password of the user account as the newly-built corresponding password of user;
If not being stored with the corresponding password of the user account in the user information of primitive nebula platform, newly-built user it Afterwards, this method further include: set the corresponding password of the user account as preset initial password.
By the method for above-mentioned creation target cloud host, so as to avoid the prior art when migrating cloud host resource, only It is that will migrate resource to be integrally packaged, is not distinguished as unit of user, target cloud host is moved to cannot achieve The resource of shifting carries out rights management.
Embodiment two:
Second embodiment of the present invention provides from VMware cloud platform to the migration of the cloud host resource of Openstack cloud platform Method, referring to fig. 2, this method specifically include:
S200, the migration rules according to user preset determine cloud host to be migrated in VMware cloud platform;Due to The part cloud host test created in VMware cloud platform uses, and does not need to migrate, therefore, the migration rules of user preset In define do not need carry out resource migration cloud host condition;
S210, configuration data, user information and the primitive nebula that primitive nebula host to be migrated is obtained from VMware cloud platform The corresponding image file of host;Specifically, the acquisition of information can be realized by following step:
S211, by the api interface of vcenter server, (Application Programming Interface, is answered With Program Interfaces), the configuration data of the primitive nebula host created in VMware cloud platform is obtained, determines that the configuration data is First configuration data;Wherein, the first configuration data includes: the title of primitive nebula host, the memory of primitive nebula host, processor, primitive nebula Cluster and disc information where host, network interface card information.Wherein, disc information includes the number of disk, magnetic in primitive nebula host The title of the corresponding size of disk and disk;Network interface card information includes the corresponding IP address of the number of network interface card, network interface card in primitive nebula host And CIDR (Classless InterDomain Routing, uncategorized inter-domain routing selection).
S212, user information is obtained from vcenter server;Wherein, user information includes user account and the user The corresponding permission of account;Determine whether the user is administrator, if operation can be executed with administrator right;In addition, obtaining The user information taken can also include the corresponding password of the user account.
S213, the corresponding initial mirror file of primitive nebula host is obtained directly from ESXi server by ovftool tool, Due to the image file that is obtained from vcenter server exist it is a large amount of reserved but not by practical the space occupied, from The corresponding image file low efficiency of primitive nebula host is obtained in vcenter server, and is directly acquired from ESXi server initial Image file then can avoid this problem.
S220, libguestfs function is called, the configuration of primitive nebula host is obtained from the image file that step S213 is obtained Data determine that the configuration data is the second configuration data.
Due to the cloud host that primitive nebula host is multiple disks, according to the second configuration data, determine primitive nebula host whether with The disk management mode of logical volume is managed the disk;If so, being under determining in a manner of the disk management of logical volume The number of overall number and data disks;And according to the number of the number of determining system disk and data disks, the first configuration of supplement The number of system disk in data and the number of data disks;
According to the corresponding capacity of disk in the second configuration data, the corresponding capacity of system disk and the corresponding appearance of data disks are determined Amount;And with the determining corresponding capacity of system disk and the corresponding capacity of data disks, the system disk pair in the first configuration data is supplemented The corresponding capacity of capacity and data disks answered;
According to the corresponding title of disk in the second configuration data, the corresponding title of system disk and the corresponding name of data disks are determined Claim;And with the determining corresponding title of system disk and the corresponding title of data disks, the system disk pair in the first configuration data is supplemented The corresponding title of title and data disks answered.
Since primitive nebula host is the cloud host of more network interface cards, judge the number of network interface card and second in the second configuration data Whether the number of network interface card is identical in configuration data, if it is different, being then subject to the number of network interface card in the first configuration data;If they are the same, It is then not necessarily to change the number of network interface card in the first configuration data;
IP address should be had by judging whether the network interface card in the first configuration data is opposite, if not having, according to the second configuration data In the corresponding IP address of the network interface card, supplement the first configuration data in the corresponding IP address of the network interface card.
S230, according to the first configuration data after the migration rules and supplement of user preset, determine target configuration data, and According to the migration rules of user preset, setting the IP address method of salary distribution in initial mirror file is the DHCP method of salary distribution or static state The method of salary distribution, so that it is determined that target image file.Specifically, include in migration rules cloud host title mapping ruler, The mapping ruler of processor, the mapping ruler of the mapping ruler of memory and disk number, the mapping ruler of disk specification, network interface card The mapping ruler of the corresponding IP address of mapping ruler, network interface card of the corresponding network of mapping ruler, network interface card of number.
Wherein, the mapping ruler of the title of the present embodiment medium cloud host is title and the primitive nebula host of target cloud host Title is identical;
The mapping ruler of processor is, the configuration data of processor is matched with processor in primitive nebula host in target cloud host It is identical to set data;
The mapping ruler of memory is the configuration data of the configuration data of memory and memory in primitive nebula host in target cloud host It is identical;
The mapping ruler of the number of disk is the number of the number of disk and the disk in primitive nebula host in target cloud host It is identical;
The mapping ruler of disk specification is the size of the disk in target cloud host and the size of the disk in primitive nebula host It is identical;
The mapping ruler of network interface card number is the number phase of the number of network interface card and the network interface card in primitive nebula host in target cloud host Together;
The mapping ruler of the corresponding network of network interface card is the mapping of the network of primitive nebula host to target cloud host only obtains The network of target cloud platform.
The mapping ruler of the corresponding IP address of network interface card is, if the method for salary distribution of IP address is static allocation mode, basis The corresponding IP address of network interface card and preset migration rules in first configuration data determine that target platform medium cloud host network card is corresponding IP address;If the method for salary distribution of IP address is the DHCP method of salary distribution, according to net locating for original platform in the first configuration data The title of network and preset migration rules, determine network locating for target cloud platform, and the network locating for the target cloud platform is corresponding IP address pond in, obtain target configuration data in the corresponding IP address of network interface card;It is equal to network interface card all in the first configuration data It executes the above method and resets the corresponding IP address of the network interface card.
The user account registered on S240, the primitive nebula platform obtained according to step S212, using in target cloud platform should User account creates user;If having the corresponding password of the user account in the user information obtained, newly-built user is set Password;If the corresponding password of user account has not been obtained in the user information obtained, initial password is set to newly-built user;And According to the corresponding permission of the user account, corresponding permission is set for newly-built user, and create target under newly-built user Cloud host loads target image file and target configuration data during creating target cloud host.Specifically, it is creating When target cloud host, cinder volumes of service processing is used to data disks, multiple system disks of logical volume management are used multiple Block_device mode is handled.
Embodiment three:
Referring to Fig. 3, the embodiment of the present invention three provides a kind of moving apparatus of cross-platform cloud host resource, comprising:
Module 310 is obtained, for obtaining the corresponding initial mirror file of primitive nebula host from ESXi server;
Configuration module 320, for supplementing the first configuration data according to the second configuration data;And it is advised according to preset migration Then with the first configuration data after supplement, target configuration data is determined;According to the preset migration rules and the initial mirror As file, target image file is determined;Wherein, first configuration data is the primitive nebula master obtained from vcenter server The configuration data of machine, second configuration data are the configuration data of the initial mirror file medium cloud host;
Loading module 330, for creating target cloud host in target cloud platform, in the mistake for creating the target cloud host Cheng Zhong loads the target image file and the target configuration data.
Specifically, if being configured at least two disks in the primitive nebula host, according to the second configuration data, supplement first Configuration data, configuration module 320 are specifically used for:
According to the second configuration data, determine whether primitive nebula host in a manner of the disk management of logical volume carries out pipe to the disk Reason;If so, the number of the system disk under determining in a manner of the disk management of logical volume and the number of data disks, and according to determination System disk number and data disks number, supplement the first configuration data;Otherwise, it is directly mended according to second configuration data Fill first configuration data.
Specifically, if being configured at least two network interface cards in the primitive nebula host, according to the second configuration data, supplement first Configuration data, configuration module 320 are specifically used for:
If there is no the corresponding IP Internet protocol address of the network interface card in the first configuration data, according to the second configuration data Described in the corresponding IP address of network interface card, supplement the corresponding IP address of network interface card described in first configuration data;
According to the first configuration data after preset migration rules and supplement, target configuration data, the configuration mould are determined Block 320 is specifically used for:
According to preset migration rules, the method for salary distribution of IP address is determined;
If the method for salary distribution of IP address is static allocation mode, corresponding according to the network interface card in first configuration data IP address and the preset migration rules determine the corresponding IP address of target platform medium cloud host network card;If point of IP address It is the DHCP dynamic host configuration protocol method of salary distribution, the then network according to locating for original platform in first configuration data with mode Title and the preset migration rules, determine network locating for target cloud platform, the net locating for the target cloud platform In the corresponding IP address pond of network, the corresponding IP address of network interface card in target configuration data is obtained.
Specifically, before creating target cloud host, loading module 330 is also used to:
The user information of primitive nebula platform is obtained from vcenter server;
Target cloud host is created, loading module 330 is specifically used for:
According to the user information of the primitive nebula platform of acquisition, user is created in target cloud platform, and in the newly-built use Target cloud host is created under family.
Specifically, the user information of primitive nebula platform includes: user account and the corresponding permission of the user account;
According to the user information of primitive nebula platform, user is created in target cloud platform, loading module 330 is specifically used for:
According to the user account registered in original cloud platform, used in target cloud platform using the user account is newly-built Family;And according to the corresponding permission of the user account, corresponding permission is set for newly-built user.
Example IV:
The embodiment of the present invention four provides a kind of communication equipment, which includes memory, processor and storage On the memory and the computer program that can run on the processor, the processor are realized when executing described program The moving method of cross-platform cloud host resource described in embodiment one.
Wherein, memory may include read-only memory (ROM) and random access memory (RAM), and mention to processor For the program instruction and data stored in memory.
Embodiment five:
The embodiment of the present invention five provides a kind of computer readable storage medium, and computer journey is stored on the storage medium Sequence realizes the step in the moving method of cloud host resource cross-platform described in embodiment one when the program is executed by processor Suddenly.
In conclusion the embodiment of the invention provides a kind of moving method of cross-platform cloud host resource and device, leading to Equipment, storage medium are believed, so that user can realize cross-platform cloud host resource by the migration rules of sets itself cloud host Autonomic Migration Framework, reduce the error rate that configuration data is manually entered, improve the transport efficiency of cloud host resource, alleviate The processing pressure of vcenter server.Meanwhile by obtaining image file from ESXi server, obtained from vcenter server The method for taking the configuration data of primitive nebula host realizes multipath and obtains migrating data, the time required to shortening migration.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more, The shape for the computer program product implemented in usable storage medium (including but not limited to magnetic disk storage and optical memory etc.) Formula.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (12)

1. a kind of moving method of cross-platform cloud host resource, which is characterized in that this method comprises:
The corresponding initial mirror file of primitive nebula host is obtained from ESXi server;
According to the second configuration data, the first configuration data is supplemented;And according to the first configuration after preset migration rules and supplement Data determine target configuration data;According to the preset migration rules and the initial mirror file, target mirror image text is determined Part;Wherein, first configuration data is the configuration data of the primitive nebula host obtained from vcenter server, described second Configuration data is the configuration data of the initial mirror file medium cloud host;
Target cloud host is created in target cloud platform loads the target mirror during creating the target cloud host As file and the target configuration data.
2. moving method according to claim 1, which is characterized in that if being configured at least two magnetic in the primitive nebula host Disk supplements the first configuration data then according to the second configuration data, comprising:
According to the second configuration data, determine whether primitive nebula host is managed the disk in a manner of the disk management of logical volume; If so, the number of the system disk under determining in a manner of the disk management of logical volume and the number of data disks, and according to determining The number of system disk and the number of data disks supplement the first configuration data;Otherwise, it is directly supplemented according to second configuration data First configuration data.
3. moving method according to claim 1, which is characterized in that if being configured at least two nets in the primitive nebula host Card supplements the first configuration data then according to the second configuration data, comprising:
If there is no the corresponding IP Internet protocol address of the network interface card in the first configuration data, according to institute in the second configuration data The corresponding IP address of network interface card is stated, the corresponding IP address of network interface card described in first configuration data is supplemented;
According to the first configuration data after preset migration rules and supplement, target configuration data is determined, comprising:
According to preset migration rules, the method for salary distribution of IP address is determined;
If the method for salary distribution of IP address is static allocation mode, according to the corresponding IP of network interface card in first configuration data Location and the preset migration rules determine the corresponding IP address of target platform medium cloud host network card;If the distribution side of IP address Formula is the DHCP dynamic host configuration protocol method of salary distribution, then the name of the network according to locating for original platform in first configuration data Claim and the preset migration rules, determines network locating for target cloud platform, the network pair locating for the target cloud platform In the IP address pond answered, the corresponding IP address of network interface card in target configuration data is obtained.
4. moving method according to claim 1, which is characterized in that before creating target cloud host, this method is also wrapped It includes:
The user information of primitive nebula platform is obtained from vcenter server;
Create target cloud host, comprising:
According to the user information of the primitive nebula platform, user is created in target cloud platform, and create under the newly-built user Build target cloud host.
5. moving method according to claim 4, which is characterized in that the user information of the primitive nebula platform includes: user Account and the corresponding permission of the user account;
According to the user information of the primitive nebula platform, user is created in target cloud platform, comprising:
According to the user account registered in original cloud platform, user is created using the user account in target cloud platform;And According to the corresponding permission of the user account, corresponding permission is set for newly-built user.
6. a kind of moving apparatus of cross-platform cloud host resource, which is characterized in that the device includes:
Module is obtained, for obtaining the corresponding initial mirror file of primitive nebula host from ESXi server;
Configuration module, for supplementing the first configuration data according to the second configuration data;And according to preset migration rules and supplement The first configuration data afterwards, determines target configuration data;According to the preset migration rules and the initial mirror file, really Set the goal image file;Wherein, first configuration data is the configuration number of the primitive nebula host obtained from vcenter server According to second configuration data is the configuration data of the initial mirror file medium cloud host;
Loading module adds during creating the target cloud host for creating target cloud host in target cloud platform Carry the target image file and the target configuration data.
7. moving apparatus according to claim 6, which is characterized in that if being configured at least two magnetic in the primitive nebula host Disk supplements the first configuration data then according to the second configuration data, and the configuration module is specifically used for:
According to the second configuration data, determine whether primitive nebula host is managed the disk in a manner of the disk management of logical volume; If so, the number of the system disk under determining in a manner of the disk management of logical volume and the number of data disks, and according to determining The number of system disk and the number of data disks supplement the first configuration data;Otherwise, it is directly supplemented according to second configuration data First configuration data.
8. moving apparatus according to claim 6, which is characterized in that if being configured at least two nets in the primitive nebula host Card supplements the first configuration data then according to the second configuration data, and the configuration module is specifically used for:
If there is no the corresponding IP Internet protocol address of the network interface card in the first configuration data, according to institute in the second configuration data The corresponding IP address of network interface card is stated, the corresponding IP address of network interface card described in first configuration data is supplemented;
According to the first configuration data after preset migration rules and supplement, target configuration data, the configuration module tool are determined Body is used for:
According to preset migration rules, the method for salary distribution of IP Internet protocol address is determined;
If the method for salary distribution of IP address is static allocation mode, according to the corresponding IP of network interface card in first configuration data Location and the preset migration rules determine the corresponding IP address of target platform medium cloud host network card;If the distribution side of IP address Formula is the DHCP dynamic host configuration protocol method of salary distribution, then the name of the network according to locating for original platform in first configuration data Claim and the preset migration rules, determines network locating for target cloud platform, the network pair locating for the target cloud platform In the IP address pond answered, the corresponding IP address of network interface card in target configuration data is obtained.
9. moving apparatus according to claim 6, which is characterized in that before creating target cloud host, the load mould Block is also used to:
The user information of primitive nebula platform is obtained from vcenter server;
Target cloud host is created, the loading module is specifically used for:
According to the user information of the primitive nebula platform of acquisition, user is created in target cloud platform, and under the newly-built user Create target cloud host.
10. moving apparatus according to claim 9, which is characterized in that the user information of the primitive nebula platform includes: user Account and the corresponding permission of the user account;
According to the user information of primitive nebula platform, user is created in target cloud platform, the loading module is specifically used for:
According to the user account registered on primitive nebula platform, user is created using the user account in target cloud platform;And root According to the corresponding permission of the user account, corresponding permission is set for newly-built user.
11. a kind of communication equipment, including memory, processor and it is stored on the memory and can be on the processor The computer program of operation, which is characterized in that the processor is realized when executing described program such as any one of claim 1-5 institute The moving method for the cross-platform cloud host resource stated.
12. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor The step in the moving method of cross-platform cloud host resource as described in any one in claim 1-5 is realized when execution.
CN201711481073.7A 2017-12-29 2017-12-29 Cloud host resource migration method and device, communication equipment and storage medium Active CN109995814B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711481073.7A CN109995814B (en) 2017-12-29 2017-12-29 Cloud host resource migration method and device, communication equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711481073.7A CN109995814B (en) 2017-12-29 2017-12-29 Cloud host resource migration method and device, communication equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109995814A true CN109995814A (en) 2019-07-09
CN109995814B CN109995814B (en) 2021-08-13

Family

ID=67109213

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711481073.7A Active CN109995814B (en) 2017-12-29 2017-12-29 Cloud host resource migration method and device, communication equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109995814B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110602174A (en) * 2019-08-21 2019-12-20 浙江大学 Heterogeneous cloud data synchronization method
CN110795182A (en) * 2019-09-18 2020-02-14 平安科技(深圳)有限公司 Cloud host creation method and system
CN111459415A (en) * 2020-04-15 2020-07-28 腾讯科技(深圳)有限公司 Cross-cloud data migration method, device, equipment and storage medium
CN112269759A (en) * 2020-10-23 2021-01-26 北京浪潮数据技术有限公司 Migration method and related device for shared file storage
CN112527193A (en) * 2020-12-04 2021-03-19 北京浪潮数据技术有限公司 Cloud hard disk data migration method, device, equipment and storage medium
CN112596744A (en) * 2020-12-24 2021-04-02 航天信息股份有限公司 Method, device, equipment and medium for generating cloud platform mirror image
CN114253463A (en) * 2020-09-25 2022-03-29 华为云计算技术有限公司 Cloud disk management method and device of cloud host, computer equipment and storage medium

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102035662A (en) * 2009-09-27 2011-04-27 中国移动通信集团公司 Virtual server management system, method and device
CN102821158A (en) * 2012-08-20 2012-12-12 广州杰赛科技股份有限公司 Method and cloud system for realizing virtual machine migration
KR20130004832A (en) * 2011-07-04 2013-01-14 주식회사 케이티 Apparatus of migrating from physical server to virtual server and method thereof
CN103109271A (en) * 2012-08-30 2013-05-15 华为技术有限公司 Inter-platform application migration realization method and system
US8984243B1 (en) * 2013-02-22 2015-03-17 Amazon Technologies, Inc. Managing operational parameters for electronic resources
CN104572274A (en) * 2013-10-18 2015-04-29 宇宙互联有限公司 Cross-cloud-node migration system and cross-cloud-node migration method
CN104965757A (en) * 2015-01-21 2015-10-07 深圳市腾讯计算机系统有限公司 Virtual machine live migration method, virtual machine migration management apparatus, and virtual machine live migration system
CN105094964A (en) * 2014-05-20 2015-11-25 苏宁云商集团股份有限公司 Virtual machine migration method and system
CN106469085A (en) * 2016-08-31 2017-03-01 北京航空航天大学 The online migration method, apparatus and system of virtual machine
CN106528103A (en) * 2016-10-31 2017-03-22 北京深之度科技有限公司 Data migration method and device, and computing device
CN106775928A (en) * 2016-11-25 2017-05-31 国家电网公司 A kind of virtual machine Autonomic Migration Framework system and method between isomery cloud platform
CN106933517A (en) * 2017-03-17 2017-07-07 深信服科技股份有限公司 A kind of data migration method and device

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102035662A (en) * 2009-09-27 2011-04-27 中国移动通信集团公司 Virtual server management system, method and device
KR20130004832A (en) * 2011-07-04 2013-01-14 주식회사 케이티 Apparatus of migrating from physical server to virtual server and method thereof
CN102821158A (en) * 2012-08-20 2012-12-12 广州杰赛科技股份有限公司 Method and cloud system for realizing virtual machine migration
CN103109271A (en) * 2012-08-30 2013-05-15 华为技术有限公司 Inter-platform application migration realization method and system
US8984243B1 (en) * 2013-02-22 2015-03-17 Amazon Technologies, Inc. Managing operational parameters for electronic resources
CN104572274A (en) * 2013-10-18 2015-04-29 宇宙互联有限公司 Cross-cloud-node migration system and cross-cloud-node migration method
CN105094964A (en) * 2014-05-20 2015-11-25 苏宁云商集团股份有限公司 Virtual machine migration method and system
CN104965757A (en) * 2015-01-21 2015-10-07 深圳市腾讯计算机系统有限公司 Virtual machine live migration method, virtual machine migration management apparatus, and virtual machine live migration system
CN106469085A (en) * 2016-08-31 2017-03-01 北京航空航天大学 The online migration method, apparatus and system of virtual machine
CN106528103A (en) * 2016-10-31 2017-03-22 北京深之度科技有限公司 Data migration method and device, and computing device
CN106775928A (en) * 2016-11-25 2017-05-31 国家电网公司 A kind of virtual machine Autonomic Migration Framework system and method between isomery cloud platform
CN106933517A (en) * 2017-03-17 2017-07-07 深信服科技股份有限公司 A kind of data migration method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陈恂: ""OpenStack平台的虚拟机调度关键技术研究"", 《中国优秀硕士学位论文全文数据库》 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110602174A (en) * 2019-08-21 2019-12-20 浙江大学 Heterogeneous cloud data synchronization method
CN110795182A (en) * 2019-09-18 2020-02-14 平安科技(深圳)有限公司 Cloud host creation method and system
CN111459415A (en) * 2020-04-15 2020-07-28 腾讯科技(深圳)有限公司 Cross-cloud data migration method, device, equipment and storage medium
CN114253463A (en) * 2020-09-25 2022-03-29 华为云计算技术有限公司 Cloud disk management method and device of cloud host, computer equipment and storage medium
CN112269759A (en) * 2020-10-23 2021-01-26 北京浪潮数据技术有限公司 Migration method and related device for shared file storage
CN112269759B (en) * 2020-10-23 2023-12-22 北京浪潮数据技术有限公司 Migration method and related device for shared file storage
CN112527193A (en) * 2020-12-04 2021-03-19 北京浪潮数据技术有限公司 Cloud hard disk data migration method, device, equipment and storage medium
CN112527193B (en) * 2020-12-04 2023-12-22 北京浪潮数据技术有限公司 Cloud hard disk data migration method, device, equipment and storage medium
CN112596744A (en) * 2020-12-24 2021-04-02 航天信息股份有限公司 Method, device, equipment and medium for generating cloud platform mirror image

Also Published As

Publication number Publication date
CN109995814B (en) 2021-08-13

Similar Documents

Publication Publication Date Title
CN109995814A (en) Moving method and device, communication equipment, the storage medium of cloud host resource
US10505796B2 (en) Network function virtualization
US10263907B2 (en) Managing virtual network ports
CN102571698B (en) Access authority control method, system and device for virtual machine
US10324754B2 (en) Managing virtual machine patterns
CN109155782A (en) Interprocess communication between container
US10691312B2 (en) Placement of virtual machines on physical hosts based on collocation rules
EP3618352B1 (en) Virtual machine management
CN106209402B (en) A kind of telescopic method and equipment of virtual network function
CN104239122A (en) VM (virtual machine) migration method and device
CN103475704B (en) A kind of method for virtual node configuration of Virtual group of planes application
CN105704188B (en) Using the dispositions method and device with service
US11036535B2 (en) Data storage method and apparatus
CN103970908A (en) Virtual machine template IVF storage method
EP3442201B1 (en) Cloud platform construction method and cloud platform
CN108037977B (en) Virtual computer resource management method, device, computer medium, and system
CN109471725A (en) Resource allocation methods, device and server
CN111026500B (en) Cloud computing simulation platform, and creation method, device and storage medium thereof
CN109995816A (en) Information introduction method, device and communication equipment based on cloud computing platform
CN108804202A (en) A kind of enterprise-level container mirror image management method and system
CN108667750B (en) Virtual resource management method and device
US10102024B2 (en) System and methods to create virtual machines with affinity rules and services asymmetry
CN107656795A (en) A kind of virtual machine of VMware platforms is transformed into the implementation method and device of WinServer platforms
CN113268252A (en) Mirror image manufacturing method and system based on virtual chemical industry control equipment and storage medium
CN105808318B (en) Information processing method and electronic equipment

Legal Events

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