CN103150202B - 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
CN103150202B
CN103150202B CN201310082762.6A CN201310082762A CN103150202B CN 103150202 B CN103150202 B CN 103150202B CN 201310082762 A CN201310082762 A CN 201310082762A CN 103150202 B CN103150202 B CN 103150202B
Authority
CN
China
Prior art keywords
virtual machine
cloudstack
vcenter
sql statement
existing
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.)
Expired - Fee Related
Application number
CN201310082762.6A
Other languages
Chinese (zh)
Other versions
CN103150202A (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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

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 machines of CloudStack compatibilities vCenter
Technical field
The present invention relates to virtual machine management platform compatibility management technique field, more particularly to CloudStack compatible The method of the existing virtual machines of vCenter.
Background technology
CloudStack is a cloud computing platform with high availability and autgmentability increased income, using the teaching of the invention it is possible to provide cloud of increasing income The solution of calculating, can accelerate the deployment of the public cloud and private clound of high scalability, management, configuration.Use Based on CloudStack, data center operator quickly and easily can create cloud service by existing infrastructure. CloudStack user can make full use of cloud computing to provide higher efficiency, unlimited scale and quickly deployment of new services with The end user of system.CloudStack can pass through the virtual resources of tissue and coordinates user, build a harmonious ring Border, can also allow user that the cloud service of oneself is rapidly and easily set up on existing framework.CloudStack can be helped User preferably coordination service device, storage, Internet resources, so as to build an IaaS(Infrastructure as a Service, i.e. infrastructure are serviced)Platform.As CloudStack is issued by apache2.0 permission agreements, thus it is right Business application is very friendly, it is also possible to change code to meet needs and issue/sale as commercial product when needing.
VCenter refers to VMware vCenter Server, there is provided a scalable, extendible platform, is virtual Change management to lay a good foundation, be management VMware vSphere most simple, most efficient methods.By VMware vCenter Server can be managed collectively the All hosts and virtual machine of data center from single control station, and the control station has been polymerized cluster, master The performance monitoring function of machine and virtual machine.VMware vCenter Server enable an administrator to from a position understand in depth All information such as the cluster of Virtual base framework, main frame, virtual machine, storage, client operating system and other key components.By VMware vCenter Server, virtualized environment become easier to management, and a manager can just manage more than 100 Live load, the work efficiency in terms of management physical basis framework are doubled than normal conditions, but as vCenter is Commercial solution, cost are very high.
With cloud virtualize open source community prosperity and progress, CloudStack won it is increasing accreditation with Deployment.VCenter has different degrees of application in many companies.Some companies think reduces cost to embrace open source community CloudStack, but be limited to deploy the old environment of vCenter.If CloudStack environment new in deployment, Just having two set of environments needs management, has undoubtedly increased the work of system manager, has been also easy to cause confusion.
Suffer from the drawback that during CloudStack platforms connection vCenter:
First, CloudStack can only be managed actively initiates the virtual machine set up by CloudStack, and can not manage by VCenter initiates the virtual machine set up, i.e., cannot use CloudStack platform management vCenter virtual machines.
Second, CloudStack and vCenter cannot be made compatible, all of virtual machine is managed in a management platform, Worked in two platforms in also needing to manager's daily management back and forth.
The content of the invention
(One)Technical problem to be solved
For drawbacks described above, the technical problem to be solved in the present invention is how to make the compatible management of CloudStack The virtual machine of vCenter, solves the problems, such as the existing virtual machines of CloudStack platforms connection vCenter management vCenter, with Realize that the existing virtual machine (vm) migrations of vCenter are managed to CloudStack platforms.
(Two)Technical scheme
To solve the above problems, the invention provides the method for the existing virtual machines of CloudStack compatibilities vCenter, described Method specifically includes following steps:
S1:Count the virtual machine information of existing virtual machine on the vCenter;
S2:SQL statement is produced according to the virtual machine information;
S3:The SQL statement is performed in the CloudStack data bases, is imported on the CloudStack platforms Existing virtual machine on the vCenter.
Further, step S1 is specifically included:Add the collection of the vCenter on the CloudStack platforms Group, and count the virtual machine information of virtual machine under the clustered control.
Further, the virtual machine information includes:The master that MAC Address, IP address, virtual machine title, virtual machine are located The title of machine ID and virtual machine place memorizer.
Further, when the SQL statement is produced in step S2, on the CloudStack platforms search and add Plus new service plan, new disk scheme and new template ID.
Further, when producing the SQL statement in step S2, each database table produces corresponding general unique Identification code.
Further, the SQL statement is inserted in the CloudStack data bases in step S3, according to Order performs the SQL statement.
(Three)Beneficial effect
The invention provides the method for the existing virtual machines of CloudStack compatibilities vCenter, by counting the vCenter The upper virtual machine information for having virtual machine, produces SQL statement according to the virtual machine information, in the CloudStack data bases It is middle to perform the SQL statement, existing virtual machine on the vCenter is imported on the CloudStack platforms, is realized Existing virtual machine on CloudStack platforms compatibility vCenter, realizes the symbiosis of CloudStac environment and vCenter environment, The daily management operation of streamlining management person.
Description of the drawings
The step of Fig. 1 has the method for virtual machine for the CloudStack compatibilities vCenter in embodiment of the present invention flow process Figure.
Specific embodiment
With reference to the accompanying drawings and examples, the specific embodiment of the present invention is described in further detail.Hereinafter implement Example is for illustrating the present invention, but is not limited to the scope of the present invention.
The method that the existing virtual machines of kind of CloudStack compatibilities vCenter are provided in the embodiment of the present invention, steps flow chart As shown in figure 1, specifically including following steps:
Step S1:The virtual machine information of existing virtual machine on statistics vCenter.
Specifically, add the cluster of vCenter on CloudStack platforms, to chain Center.Add After vCenter clusters, the virtual machine information of virtual machine under vCenter clustered controls is counted.
Wherein, virtual machine information includes:Host id and void that MAC Address, IP address, virtual machine title, virtual machine are located The title of plan machine place memorizer, these virtual machine informations can be inquired about on CloudStack administration interfaces and be obtained.
Step S2:SQL statement is produced according to virtual machine information.
Produce SQL statement when, search on CloudStack platforms 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 imported from vCenter.And CloudStack platforms add virtual machine template ID based on vCenter, when resetting virtual machine for deleting later Use.
The SQL statement of generation includes the database table for inserting sentence:vm_instance、user_vm、security_ Group_vm_map, nics, volumes, SQL statement are 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 include the database table of modification sentence:User_ip_address, sentence are 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, each database table randomly generates corresponding general unique identifier (Universally Unique Identifier, abbreviation UUID).
Step S3:SQL statement is performed in CloudStack data bases, vCenter is imported on CloudStack platforms It is upper to have virtual machine, to realize that CloudStack is compatible with vCenter.
SQL statement is inserted in CloudStack data bases, SQL statement is being performed in order.Wherein vm_ The insertion sentence of instance tables must be first carried out.
By said method, the virtual machine information of existing virtual machine on the vCenter is counted, is believed according to the virtual machine Breath produces SQL statement, performs the SQL statement, on the CloudStack platforms in the CloudStack data bases Existing virtual machine on the vCenter is imported, existing virtual machine on CloudStack platforms compatibility vCenter is realized, is realized The symbiosis of CloudStac environment and vCenter environment, the daily management operation of streamlining management person.
Embodiment of above is merely to illustrate the present invention, and not limitation of the present invention, about the common of technical field Technical staff, without departing from the spirit and scope of the present invention, can also make a variety of changes and modification, therefore all The technical scheme of equivalent falls within scope of the invention, and the scope of patent protection of the present invention should be defined by the claims.

Claims (5)

  1. The method of the existing virtual machines of 1.CloudStack compatibilities vCenter, it is characterised in that methods described is specifically included:
    S1:Count the virtual machine information of existing virtual machine on the vCenter;
    S2:SQL statement is produced according to the virtual machine information of existing virtual machine on the vCenter, the SQL statement includes insertion The database table of sentence;
    S3:The SQL statement is performed in the data base of the CloudStack, is imported on the platform of the CloudStack Existing virtual machine on the vCenter,
    Wherein, the virtual machine information includes:Host id and void that MAC Address, IP address, virtual machine title, virtual machine are located The title of plan machine place memorizer.
  2. 2. the method for claim 1, it is characterised in that step S1 is specifically included:The CloudStack's Add the cluster of the vCenter on platform, and count the virtual machine information of virtual machine under the clustered control.
  3. 3. the method for claim 1, it is characterised in that when producing the SQL statement in step S2, described New service plan, new disk scheme and new template ID are searched and are added on the platform of CloudStack,
    Wherein, add new service plan and new disk scheme to adapt to the virtual machine imported from vCenter, add new Template ID, uses when resetting virtual machine for deleting.
  4. 4. the method for claim 1, it is characterised in that when producing the SQL statement in step S2, each data Storehouse table produces corresponding general unique identifier.
  5. 5. the method for claim 1, it is characterised in that the SQL statement is inserted in step S3 described In the data base of CloudStack, the SQL statement is performed in order.
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 CN103150202A (en) 2013-06-12
CN103150202B true 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)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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
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
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
CN109995816B (en) * 2017-12-29 2022-04-08 中移(苏州)软件技术有限公司 Information importing method and device based on cloud computing platform and communication equipment

Citations (2)

* 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
CN102855271A (en) * 2012-07-05 2013-01-02 中国电力科学研究院 Storage and traceable management method for multi-version power grid model

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7350194B1 (en) * 2001-09-24 2008-03-25 Oracle Corporation Techniques for debugging computer programs involving multiple computing machines

Patent Citations (2)

* 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
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
面向互联网应用的云操作系统的架构设计;支小莉 廖文昭 蔡立志 童维勤;《上海大学学报》;20130228;第19卷(第1期);第45页第2栏第4段-第46页第1栏第5段、第47页第1栏最后一段及图1 *

Also Published As

Publication number Publication date
CN103150202A (en) 2013-06-12

Similar Documents

Publication Publication Date Title
CN103150202B (en) Method for allowing CloudStack to be compatible with virtual machine existing in vCenter
CN107181808B (en) Private cloud system and operation method
CN106375176B (en) A kind of method of physical machine access cloud platform
US20220247640A1 (en) Stateless resource management
US9634983B2 (en) IP address and domain name automation of virtual infrastructure
JP5837206B2 (en) Method and apparatus for providing isolated virtual space
ES2764442T3 (en) Network service life cycle management method and device
CN111159134B (en) Multi-tenant oriented distributed file system security access control method and system
US9973439B2 (en) Internet protocol address management (IPAM) integration with a plurality of virtualization tiers in the virtual cloud using infrastructure metadata
CN105429806B (en) A kind of device and method of the network function virtualization based on data-driven
CN105190545B (en) Virtual method and device and computer equipment
US10296384B2 (en) Dynamic workload deployment for data integration services
TW200935305A (en) Method, apparatus and computer program product implementing multi-tenancy for network monitoring tools using virtualization technology
CN104317639B (en) The method of the existing virtual machines of computer cloud platform adapter vCenter
CN110678845A (en) Multi-tenant data services in a distributed file system for big data analytics
CN103544319A (en) Multi-tenant database sharing method and multi-tenant database as-a-service system
WO2016183799A1 (en) Hardware acceleration method and relevant device
CN104283970A (en) Cloud computing service device and system and cloud computing method
CN112600903B (en) Elastic virtual network card migration method
CN103118030A (en) Desktop cloud based identity authentication method
CN103581325A (en) Cloud computing resource pool system and implement method thereof
CN104363306A (en) Private cloud management control method for enterprise
CN104484221A (en) Method for taking over existing vCenter cluster by CloudStack
Yan et al. A model-based proxy for unified IaaS management
CN109729071A (en) A kind of vmware multi-tenant management method suitable for cloudy management

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