CN103150202A - Method for allowing CloudStack to be compatible with virtual machine existing in vCenter - Google Patents

Method for allowing CloudStack to be compatible with virtual machine existing in vCenter Download PDF

Info

Publication number
CN103150202A
CN103150202A CN2013100827626A CN201310082762A CN103150202A CN 103150202 A CN103150202 A CN 103150202A CN 2013100827626 A CN2013100827626 A CN 2013100827626A CN 201310082762 A CN201310082762 A CN 201310082762A CN 103150202 A CN103150202 A CN 103150202A
Authority
CN
China
Prior art keywords
virtual machine
cloudstack
vcenter
sql statement
platform
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
CN2013100827626A
Other languages
Chinese (zh)
Other versions
CN103150202B (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.)
Opzoon Technology Co Ltd
Original Assignee
Opzoon 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 Opzoon Technology Co Ltd filed Critical Opzoon Technology Co Ltd
Priority to CN201310082762.6A priority Critical patent/CN103150202B/en
Publication of CN103150202A publication Critical patent/CN103150202A/en
Application granted granted Critical
Publication of CN103150202B publication Critical patent/CN103150202B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/40Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks using virtualisation of network functions or resources, e.g. SDN or NFV entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/022Multivendor or multi-standard integration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/20Arrangements for monitoring or testing data switching networks the monitoring system or the monitored elements being virtualised, abstracted or software-defined entities, e.g. SDN or NFV
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Abstract

The invention discloses a method for allowing a CloudStack to be compatible with a virtual machine existing in a vCenter. The method particularly comprises the steps that virtual machine information of the virtual machine existing in the vCenter is counted; an SQL (Structured Query Language) statement is generated according to the virtual machine information; the SQL statement is executed in a CloudStack database; and the virtual machine existing in the vCenter is imported into a CloudStack platform. With the adoption of the method, the CloudStack platform can be compatible with the virtual machine existing in the vCenter, a CloudStack environment and a vCenter environment can coexist, and daily management operation of an administrator is simplified.

Description

The method of the existing virtual machine of the compatible vCenter of CloudStack
Technical field
The present invention relates to the compatible administrative skill of Virtual Machine Manager platform field, relate in particular to the method for the existing virtual machine of the compatible vCenter of CloudStack.
Background technology
CloudStack is a cloud computing platform with high availability and extendability of increasing income, and the solution of the cloud computing of increasing income can be provided, and can accelerate the public cloud of high scalability and deployment, management, the configuration of privately owned cloud.Use CloudStack as the basis, the operator of data center can create cloud service by existing architecture quickly and easily.CloudStack user can take full advantage of cloud computing higher efficient is provided, unlimited scale and the final user of deployment of new services and system quickly.CloudStack can build the environment of a harmony by the virtual resources of tissue and coordinates user, can also allow the user fast and set up easily the cloud service of oneself on existing framework.CloudStack can help user coordination server, storage, Internet resources better, thereby builds an IaaS(Infrastructure as a Service, and namely infrastructure is namely served) platform.By apache2.0 permission agreement issue, thereby business is used very friendly due to CloudStack, can be revised in needs also that code is satisfied the demand and as commercial product issue/sale.
VCenter refers to VMware vCenter Server, and scalable, an extendible platform is provided, and lays a good foundation for virtual management, is the simplest, the effective method of management VMware vSphere.Can be from All hosts and the virtual machine of single control desk unified management data center by VMware vCenter Server, this control desk polymerization the performance monitoring function of cluster, main frame and virtual machine.VMware vCenter Server makes the keeper can understand from a position all information such as cluster, main frame, virtual machine, storage, client operating system and other key components of virtual architecture in depth.By VMware vCenter Server, virtualized environment becomes and is easier to management, keeper just can manage the operating load more than 100, be doubled than normal conditions in the work efficiency aspect the managing physical architecture, but because vCenter is the commercialization solution, cost is very high.
Increase income along with cloud is virtual prosperity and the progress of community, CloudStack has won increasing approval and deployment.VCenter has in various degree application in many companies.Some company wants to be lowered into the CloudStack that originally embraced the community that increases income, but is subject to the old environment of having disposed vCenter.If new CloudStack environment in deployment, just having two set of environments needs management, has increased the weight of undoubtedly system manager's work, also easily causes confusion.
Connect at the CloudStack platform and have following shortcoming in the vCenter process:
One, CloudStack can only be managed by CloudStack and initiatively initiate the virtual machine set up, initiate by vCenter the virtual machine set up and can not manage, and namely can't use CloudStack platform management vCenter virtual machine.
Its two, can't make CloudStack and vCenter compatible, all virtual machines of management, also need to work in two platforms back and forth in keeper's daily management on a management platform.
Summary of the invention
The technical matters that (one) will solve
For defects, the technical problem to be solved in the present invention is the virtual machine that how can make the compatible management of CloudStack vCenter, solve the problem that the CloudStack platform connects the existing virtual machine of vCenter management vCenter, manage to the CloudStack platform to realize the existing virtual machine (vm) migration of vCenter.
(2) technical scheme
For addressing the above problem, the invention provides the method for the existing virtual machine of the compatible vCenter of CloudStack, described method specifically comprises the following steps:
S1: the virtual machine information of adding up the upper existing virtual machine of described vCenter;
S2: produce SQL statement according to described virtual machine information;
S3: carry out described SQL statement in described CloudStack database, importing existing virtual machine on described vCenter on described CloudStack platform.
Further, described step S1 specifically comprises: add the cluster of described vCenter on described CloudStack platform, and add up the virtual machine information that described cluster is controlled lower virtual machine.
Further, described virtual machine information comprises: the title of the host id at MAC Address, IP address, virtual machine title, virtual machine place and virtual machine place storer.
Further, when producing described SQL statement in described step S2, search on described CloudStack platform and add new service plan, new disk scheme and new template ID.
Further, when producing described SQL statement in described step S2, each database table produces corresponding general unique identifier.
Further, described SQL statement is inserted in described CloudStack database in described step S3, is carrying out in order described SQL statement.
(3) beneficial effect
The invention provides the method for the existing virtual machine of the compatible vCenter of CloudStack, by adding up the virtual machine information of the upper existing virtual machine of described vCenter, produce SQL statement according to described virtual machine information, carry out described SQL statement in described CloudStack database, importing existing virtual machine on described vCenter on described CloudStack platform, realize the upper existing virtual machine of the compatible vCenter of CloudStack platform, realize the symbiosis of CloudStac environment and vCenter environment, streamlining management person's daily management operation.
Description of drawings
Fig. 1 is the flow chart of steps of the method for the existing virtual machine of the compatible vCenter of the CloudStack in the embodiment of the present invention.
Embodiment
Below in conjunction with drawings and Examples, the specific embodiment of the present invention is described in further detail.Following examples are used for explanation the present invention, but are not used for limiting the scope of the invention.
The method of planting the existing virtual machine of the compatible vCenter of CloudStack is provided in the embodiment of the present invention, and steps flow chart specifically comprises the following steps as shown in Figure 1:
Step S1: the virtual machine information of the upper existing virtual machine of statistics vCenter.
Concrete, the cluster of interpolation vCenter on the CloudStack platform is to chain Center.After having added the vCenter cluster, statistics vCenter cluster is controlled the virtual machine information of lower virtual machine.
Wherein, virtual machine information comprises: the title of the host id at MAC Address, IP address, virtual machine title, virtual machine place and virtual machine place storer, these virtual machine informations can be inquired about on the CloudStack administration interface and obtain.
Step S2: produce SQL statement according to virtual machine information.
When producing SQL statement, search on the CloudStack platform and add new service plan, new disk scheme and new template ID.
Add new service plan, new disk scheme to adapt to the virtual machine that imports from vCenter.And add the virtual machine template ID based on vCenter at the CloudStack platform, use in the time of for the virtual machine of deletion replacement later on.
The SQL statement that generates comprises the database table that inserts statement: vm_instance, user_vm, security_group_vm_map, nics, volumes, and SQL statement is as follows:
INSERT?INTO`vm_instance`VALUES(134,′vdizhengwei′,′3fed543b-b45e-42a7-a71a-40f571fd1aa2′,′vdizhengwei′,′Running′,201,49,′00:50:56:95:69:b4′,′192.168.111.86′,1,1,1,1,NULL,NULL,′6WS1lh1prPtazvwIkg9Bseun3gYtJtAZz2eZUou2Dv4=′,0,0,3,′2012-12-07
04:44:43′,′2012-12-07
04:34:32′,NULL,′User′,′User′,2,1,10,′e6d5486c-d60d-4a4f-9f78-2d803a6e2ccd′,′VMware′);
INSERT?INTO`user_vm`VALUES(134,NULL,′vdizhengwei′,NULL);
INSERT?INTO`security_group_vm_map`(security_group_id,instance_id)VALUES(1,134);
INSERT?INTO`volumes`VALUES(69,2,1,201,NULL,134,0,′ROOT-134′,′15e6fee1-7d50-4c57-987a-5fdac2050634′,21474836480,′datastore-9441′,′ROOT-134′,1,1,NULL,NULL,′ROOT,′′LVM′,10,201,NULL,0,′2012-12-0704:34:32′,NULL,′2012-12-0704:44:35′,NULL,′Ready′,NULL,3);
INSERT?INTO`volumes`VALUES(70,2,1,201,NULL,134,1,′DATA-134′,′e6fec749-046e-4bec-8242-37542a0b6f3e′,21474836480,′datastore-9441′,′Data-134′,1,1,NULL,NULL,′DATADISK′,′LVM′,11,201,NULL,0,′2012-12-0704:34:32′,NULL,′2012-12-0704:44:35′,NULL,′Ready′,NULL,3);
INSERT?INTO`nics`VALUES(35,′d9d8cbf4-728c-4ac2-a517-4a459fd70e17′,134,′00:50:56:95:69:b4′,′192.168.111.86′,′255.255.255.0,′′192.168.100.254′,′Ip4′,′vlan://untagged′,204,′Dhcp′,′Reserved′,′Start′,′DirectPodBasedNetworkGuru′,′e6d5486c-d60d-4a4f-9f78-2d803a6e2ccd′,0,′2012-12-07
04:34:32′,′ec2://untagged′,NULL,1,′User′,′2012-12-0704:34:32′,NULL);
Also comprise the database table of revising statement: user_ip_address, statement is as follows.
update?user_ip_address?set?allocated=′2012-12-0704:34:32′,state=′Allocated′,network_id=204,source_network_id=204where?public_ip_address=′192.168.111.86′;
update?sequence?set?value=(select?max(id)+1from?vm_instance)where?name=′vm_instance_seq′。
When producing SQL statement, the random corresponding general unique identifier (Universally Unique Identifier is called for short UUID) that produces of each database table.
Step S3: carry out SQL statement in the CloudStack database, importing existing virtual machine on vCenter on the CloudStack platform, to realize the compatibility of CloudStack and vCenter.
SQL statement is inserted in the CloudStack database, is carrying out in order SQL statement.Wherein the insertion statement of vm_instance table must first be carried out.
Pass through said method, add up the virtual machine information of the upper existing virtual machine of described vCenter, produce SQL statement according to described virtual machine information, carry out described SQL statement in described CloudStack database, importing existing virtual machine on described vCenter on described CloudStack platform, realize the upper existing virtual machine of the compatible vCenter of CloudStack platform, realize the symbiosis of CloudStac environment and vCenter environment, streamlining management person's daily management operation.
Above embodiment only is used for explanation the present invention; and be not limitation of the present invention; the those of ordinary skill in relevant technologies field; without departing from the spirit and scope of the present invention; can also make a variety of changes and modification; therefore all technical schemes that are equal to also belong to category of the present invention, and scope of patent protection of the present invention should be defined by the claims.

Claims (6)

1.CloudStack the method for the existing virtual machine of compatible vCenter is characterized in that, described method specifically comprises:
S1: the virtual machine information of adding up the upper existing virtual machine of described vCenter;
S2: produce SQL statement according to described virtual machine information;
S3: carry out described SQL statement in described CloudStack database, importing existing virtual machine on described vCenter on described CloudStack platform.
2. the method for claim 1, is characterized in that, described step S1 specifically comprises: add the cluster of described vCenter on described CloudStack platform, and add up the virtual machine information that described cluster is controlled lower virtual machine.
3. method as claimed in claim 1 or 2, is characterized in that, described virtual machine information comprises: the title of the host id at MAC Address, IP address, virtual machine title, virtual machine place and virtual machine place storer.
4. the method for claim 1, is characterized in that, when producing described SQL statement in described step S2, searches on described CloudStack platform and add new service plan, new disk scheme and new template ID.
5. the method for claim 1, is characterized in that, when producing described SQL statement in described step S2, each database table produces corresponding general unique identifier.
6. the method for claim 1, is characterized in that, described SQL statement is inserted in described CloudStack database in described step S3, carrying out in order described SQL statement.
CN201310082762.6A 2013-03-15 2013-03-15 Method for allowing CloudStack to be compatible with virtual machine existing in vCenter Expired - Fee Related CN103150202B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310082762.6A CN103150202B (en) 2013-03-15 2013-03-15 Method for allowing CloudStack to be compatible with virtual machine existing in vCenter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310082762.6A CN103150202B (en) 2013-03-15 2013-03-15 Method for allowing CloudStack to be compatible with virtual machine existing in vCenter

Publications (2)

Publication Number Publication Date
CN103150202A true CN103150202A (en) 2013-06-12
CN103150202B CN103150202B (en) 2017-04-19

Family

ID=48548301

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310082762.6A Expired - Fee Related CN103150202B (en) 2013-03-15 2013-03-15 Method for allowing CloudStack to be compatible with virtual machine existing in vCenter

Country Status (1)

Country Link
CN (1) CN103150202B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104317639A (en) * 2014-10-17 2015-01-28 中国电子科技集团公司第二十八研究所 Method for taking over existing virtual machines of vCenter by computer cloud platform
CN104484221A (en) * 2014-12-30 2015-04-01 北京天云融创软件技术有限公司 Method for taking over existing vCenter cluster by CloudStack
CN104636183A (en) * 2014-12-30 2015-05-20 北京天云融创软件技术有限公司 Method for taking over Xen Server virtual machine on Cloud Stack
CN105094964A (en) * 2014-05-20 2015-11-25 苏宁云商集团股份有限公司 Virtual machine migration method and system
CN105577442A (en) * 2015-12-28 2016-05-11 中电科华云信息技术有限公司 Method for receiving and managing stock virtual machine based on cloud platform
CN105930506A (en) * 2016-05-10 2016-09-07 乐视控股(北京)有限公司 Object retrieval method and object storage system
CN107682184A (en) * 2017-09-25 2018-02-09 平安科技(深圳)有限公司 Cloud service platform region resource extended method, device, equipment and storage medium
WO2019080012A1 (en) * 2017-10-25 2019-05-02 深圳市互盟科技股份有限公司 Method for cloudstack to take over original vcenter cluster
CN109995816A (en) * 2017-12-29 2019-07-09 中移(苏州)软件技术有限公司 Information introduction method, device and communication equipment based on cloud computing platform

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102254021A (en) * 2011-07-26 2011-11-23 北京市计算中心 Method for constructing database based on virtual machine management system
US20120192154A1 (en) * 2001-09-24 2012-07-26 Oracle Internationalcorporation Techniques for debugging computer programs involving multiple computing machines
CN102855271A (en) * 2012-07-05 2013-01-02 中国电力科学研究院 Storage and traceable management method for multi-version power grid model

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120192154A1 (en) * 2001-09-24 2012-07-26 Oracle Internationalcorporation Techniques for debugging computer programs involving multiple computing machines
CN102254021A (en) * 2011-07-26 2011-11-23 北京市计算中心 Method for constructing database based on virtual machine management system
CN102855271A (en) * 2012-07-05 2013-01-02 中国电力科学研究院 Storage and traceable management method for multi-version power grid model

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
支小莉 廖文昭 蔡立志 童维勤: "面向互联网应用的云操作系统的架构设计", 《上海大学学报》 *

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105094964A (en) * 2014-05-20 2015-11-25 苏宁云商集团股份有限公司 Virtual machine migration method and system
CN105094964B (en) * 2014-05-20 2018-12-28 苏宁易购集团股份有限公司 Virtual machine migration method and system
CN104317639B (en) * 2014-10-17 2017-08-22 中国电子科技集团公司第二十八研究所 The method of the existing virtual machines of computer cloud platform adapter vCenter
CN104317639A (en) * 2014-10-17 2015-01-28 中国电子科技集团公司第二十八研究所 Method for taking over existing virtual machines of vCenter by computer cloud platform
CN104636183A (en) * 2014-12-30 2015-05-20 北京天云融创软件技术有限公司 Method for taking over Xen Server virtual machine on Cloud Stack
CN104484221A (en) * 2014-12-30 2015-04-01 北京天云融创软件技术有限公司 Method for taking over existing vCenter cluster by CloudStack
CN105577442A (en) * 2015-12-28 2016-05-11 中电科华云信息技术有限公司 Method for receiving and managing stock virtual machine based on cloud platform
CN105577442B (en) * 2015-12-28 2019-02-05 中电科华云信息技术有限公司 Storage virtual machine based on cloud platform receives pipe method
CN105930506A (en) * 2016-05-10 2016-09-07 乐视控股(北京)有限公司 Object retrieval method and object storage system
CN107682184A (en) * 2017-09-25 2018-02-09 平安科技(深圳)有限公司 Cloud service platform region resource extended method, device, equipment and storage medium
CN107682184B (en) * 2017-09-25 2019-10-11 平安科技(深圳)有限公司 Cloud service platform region resource extended method, device, equipment and storage medium
WO2019080012A1 (en) * 2017-10-25 2019-05-02 深圳市互盟科技股份有限公司 Method for cloudstack to take over original vcenter cluster
CN109995816A (en) * 2017-12-29 2019-07-09 中移(苏州)软件技术有限公司 Information introduction method, device and communication equipment based on cloud computing platform
CN109995816B (en) * 2017-12-29 2022-04-08 中移(苏州)软件技术有限公司 Information importing method and device based on cloud computing platform and communication equipment

Also Published As

Publication number Publication date
CN103150202B (en) 2017-04-19

Similar Documents

Publication Publication Date Title
CN103150202A (en) Method for allowing CloudStack to be compatible with virtual machine existing in vCenter
US11128600B2 (en) Global object definition and management for distributed firewalls
CN107181808B (en) Private cloud system and operation method
US9634983B2 (en) IP address and domain name automation of virtual infrastructure
US10250512B2 (en) System and method for traffic director support in a multitenant application server environment
CN106375176B (en) A kind of method of physical machine access cloud platform
EP2344953B1 (en) Provisioning virtual resources using name resolution
US20220247640A1 (en) Stateless resource management
US9712534B2 (en) Modifying permission trees in a virtualization environment
US9973439B2 (en) Internet protocol address management (IPAM) integration with a plurality of virtualization tiers in the virtual cloud using infrastructure metadata
CN102917025B (en) Method for business migration based on cloud computing platform
US20130086585A1 (en) Managing the Persistent Data of a Pre-Installed Application in an Elastic Virtual Machine Instance
US10528528B2 (en) Supporting multi-tenant applications on a shared database using pre-defined attributes
CN104272702A (en) Method and apparatus for supporting access control lists in a multi-tenant environment
TW201331763A (en) Method and apparatus for providing isolated virtual space
CN104317639B (en) The method of the existing virtual machines of computer cloud platform adapter vCenter
US20160283273A1 (en) Dynamic workload deployment for data integration services
CN108089912A (en) A kind of virtual machine surpasses emerging system construction method and device with container
CN110516076B (en) Knowledge graph-based cloud computing management method and system
CN105404542A (en) Cloud computing system and method for running high-performance computation in same
CN104283970A (en) Cloud computing service device and system and cloud computing method
CN105141702A (en) Model-based mixed cloud construction method
CN111835820A (en) System and method for realizing cloud management
JP2016206952A (en) Migration support device and migration support method
CN107562521B (en) Resource management method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
PP01 Preservation of patent right

Effective date of registration: 20180823

Granted publication date: 20170419

PP01 Preservation of patent right
PD01 Discharge of preservation of patent

Date of cancellation: 20210823

Granted publication date: 20170419

PD01 Discharge of preservation of patent
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20170419

Termination date: 20190315

CF01 Termination of patent right due to non-payment of annual fee