CN104144182A - Virtual machine identification method and device - Google Patents

Virtual machine identification method and device Download PDF

Info

Publication number
CN104144182A
CN104144182A CN201310166654.7A CN201310166654A CN104144182A CN 104144182 A CN104144182 A CN 104144182A CN 201310166654 A CN201310166654 A CN 201310166654A CN 104144182 A CN104144182 A CN 104144182A
Authority
CN
China
Prior art keywords
virtual machine
time
identifier
real
coding
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.)
Pending
Application number
CN201310166654.7A
Other languages
Chinese (zh)
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.)
Xian University of Posts and Telecommunications
Original Assignee
Xian University of Posts and Telecommunications
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 Xian University of Posts and Telecommunications filed Critical Xian University of Posts and Telecommunications
Priority to CN201310166654.7A priority Critical patent/CN104144182A/en
Publication of CN104144182A publication Critical patent/CN104144182A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a virtual machine identification method and device and relates to the field of network communication. An identifier of a virtual machine can be updated accurately in time according to the real-time state of the virtual machine. The method includes the detailed steps that the creating time and real-time attribute information of the virtual machine are obtained; according to the creating time sequence of the corresponding virtual machine within a whole cloud calculation platform management system, a sequence code of the corresponding virtual machine is obtained, wherein after being generated, the sequence code will not change; the real-time attribute information and a preset attribute code standard list are compared to obtain an attribute code of the corresponding virtual machine; after the attribute code is generated, corresponding real-time updating is performed according to the real-time attribute of the corresponding virtual machine; the sequence code and the attribute code are combined to obtain a corresponding virtual machine identifier. The virtual machine identification method and device are mainly used for virtual machine identification.

Description

A kind of virtual machine identification method and device
Technical field
The present invention relates to network communication field, relate in particular to a kind of virtual machine identification method and device.
Background technology
Intel Virtualization Technology (Virtualization Technology, VT) is the most basic technology of cloud computing platform, changes manageable resource in logic into by physical resource, breaks the barrier between physical structure with this.Virtual machine is that Intel Virtualization Technology can be presented on user's the most direct form of expression in front, but virtual machine has brought very large difficulty in the uncertainty in time and space to Virtual Machine Manager, for example: in the time that certain virtual machine breaks down, cloud computing platform management system cannot be traced to the source and safeguard virtual machine.Therefore, virtual machine is continuously and effectively followed the tracks of, administered and maintained, becoming cloud computing provider provides the guarantee of high-quality and high-reliability service for user.
Usually, follow the tracks of, administer and maintain by the virtual machine in cloud computing platform is identified to realize continuously and effectively.Existing identification method has two kinds: the first identification method adopts general unique identifier (Universally Unique Identifier, UUID) virtual machine in cloud computing platform range of management is identified, wherein UUID is the unique identifier that cloud computing platform management system generates in the time creating for each virtual machine, comprising: virtual machine creating date and time, clock sequence and the unique IEEE-USA's machine recognition number of the overall situation; The second identification method adopts 128 random binary number to identify the virtual machine in cloud computing platform, random generation when 128 bits are virtual machine creating in 128 random binary number marks, the concrete form of this mark is determined by the 16 system character strings that convert to of 128 bits.The virtual machine identifier that two kinds of identification methods produce is all irrelevant with state after corresponding virtual machine creating, and when after virtual machine creating, execution operation and the virtual machine such as opens, closes when being moved, deleting, and the identifier of this virtual machine can not change.
Inventor finds above-mentioned two kinds of virtual machine identification methods, and at least there are the following problems: in the whole life cycle of a virtual machine, by the switch of virtual machine, migration, clone, Hot Spare and deletion etc. all can cause the change of virtual machine identifier, but adopting UUID and 128 random binary number to carry out virtual machine mark is to identify in the time of virtual machine creating, irrelevant with state after virtual machine creating, no matter which kind of change there is in state after virtual machine creating, as virtual machine switch, migration, clone, Hot Spare and deletion, the identifier of this virtual machine can not change, when the virtual machine changing when state after certain establishment breaks down, cloud computing platform management system cannot accurately be traced to the source and associated maintenance to this virtual machine.
Summary of the invention
The invention provides a kind of virtual machine identification method and device, can this virtual machine identifier be carried out in time, be upgraded exactly according to virtual machine real-time status.
For achieving the above object, embodiments of the invention adopt following technical scheme:
First aspect present invention provides a kind of virtual machine identification method, for each virtual machine, comprising:
Obtain virtual machine creating time and real-time property information;
According to corresponding virtual machine creation-time order within the scope of whole cloud computing platform management system, obtain corresponding virtual machine sequential encoding; Described sequential encoding no longer changes after generating; Described real-time property information is contrasted with the attribute coding's standard scale pre-seting, obtain corresponding virtual machine attribute coding; Described attribute coding, after generation, carries out corresponding real-time update according to corresponding virtual machine real-time property;
Described sequential encoding and described attribute coding are combined, obtain corresponding virtual machine identifier.
In conjunction with first aspect, the present invention is in a kind of possible enforcement scene, and described virtual machine identification method, comprising:
The corresponding virtual machine sequential encoding of random generation; Within the scope of whole cloud computing platform management system, corresponding sequential encoding is not identical separately for every two virtual machines.
In conjunction with first aspect, the present invention is in the possible enforcement scene of another kind, and described virtual machine identification method, is combining described sequential encoding and described attribute coding, and after obtaining corresponding virtual machine identifier, described method also comprises:
Store the identifier of each virtual machine in current cloud computing platform management system scope into virtual machine identifier database; Every two identifier differences in described identifier database; And described in each, identifier is only corresponding with a virtual machine;
In conjunction with first aspect, the present invention in the possible enforcement scene of another kind, described virtual machine identification method, in the whole life cycle of virtual machine, the method also comprises:
In the time that a certain virtual machine attribute changes, corresponding identifier carries out corresponding real-time update according to virtual machine real-time property;
In the time that a certain virtual machine breaks down, inquire about described virtual machine identifier database, obtain fault virtual machine identifier, to described fault virtual machine is traced to the source and safeguarded.
In the time that a certain virtual machine is deleted, corresponding identifier is deleted from current cloud computing platform management system virtual machine identifier database, to carry out database update.
Second aspect present invention provides a kind of virtual machine identity device, comprising:
Acquiring unit, for obtaining virtual machine creating time and real-time property information;
The first coding unit, for according to corresponding virtual machine creation-time order within the scope of whole cloud computing platform management system, obtains corresponding virtual machine sequential encoding; Described sequential encoding no longer changes after generating; Described real-time property information is contrasted with the attribute coding's standard scale pre-seting, obtain corresponding virtual machine attribute coding; Described attribute coding, after generation, carries out corresponding real-time update according to corresponding virtual machine real-time property;
Assembled unit, for described sequential encoding and described attribute coding are combined, obtains corresponding virtual machine identifier.
In conjunction with second aspect, the present invention is in a kind of possible enforcement scene, and described virtual machine identity device, comprising:
The second coding unit, for the corresponding virtual machine sequential encoding of random generation; Within the scope of whole cloud computing platform management system, corresponding sequential encoding is not identical separately for every two virtual machines.
In conjunction with second aspect, the present invention in the possible enforcement scene of another kind, described virtual machine identity device, after assembled unit, described device also comprises:
Memory cell, for storing the identifier of each virtual machine in current cloud computing platform management system scope into virtual machine identifier database; Every two identifier differences in described identifier database; And described in each, identifier is only corresponding with a virtual machine;
In conjunction with second aspect, the present invention in the possible enforcement scene of another kind, described virtual machine identity device, in the whole life cycle of virtual machine, this device also comprises:
Updating block, in the time that a certain virtual machine attribute changes, corresponding identifier carries out corresponding real-time update according to virtual machine real-time property;
Query unit, in the time that a certain virtual machine breaks down, inquires about described virtual machine identifier database, obtains fault virtual machine identifier, to described fault virtual machine is traced to the source and safeguarded.
Delete cells, for handle, in the time that a certain virtual machine is deleted, corresponding identifier is deleted from current cloud computing platform management system virtual machine identifier database, to carry out database update.
A kind of virtual machine identification method and device that the embodiment of the present invention provides, by obtaining virtual machine creating time and real-time property information; According to corresponding virtual machine creation-time order within the scope of whole cloud computing platform management system, obtain corresponding virtual machine sequential encoding; Described sequential encoding no longer changes after generating; Described real-time property information is contrasted with the attribute coding's standard scale pre-seting, obtain corresponding virtual machine attribute coding; Described attribute coding, after generation, carries out corresponding real-time update according to corresponding virtual machine real-time property; Described sequential encoding and described attribute coding are combined, obtain corresponding virtual machine identifier, than prior art: no matter after virtual machine creating, which kind of change occurs state, as virtual machine switch, migration, clone, Hot Spare and deletion, the identifier of this virtual machine can not change, and the present invention can carry out in time, upgrade exactly this virtual machine identifier according to virtual machine real-time status.
Brief description of the drawings
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is a kind of virtual machine identification method flow chart in the embodiment of the present invention 1;
Fig. 2 is a kind of virtual machine identification method flow chart in the embodiment of the present invention 2;
Fig. 3 is a kind of virtual machine identity device composition schematic diagram in the embodiment of the present invention 3.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
embodiment 1
The embodiment of the present invention provides a kind of virtual machine identification method, as shown in Figure 1, for each virtual machine, comprising:
101, obtain virtual machine creating time and real-time property information.
Wherein, inquire about virtual machine actual conditions to be identified, obtain this virtual machine creating time and real-time property information.The virtual machine creating time to be identified of obtaining is accurate to second, for example: obtaining a certain virtual machine A creation-time is: 2013 04 month 12: 32: 50 on the 03rd; The virtual machine real-time property information to be identified of obtaining can determine according to user's actual needs and the attribute coding who pre-sets standard scale, for example: obtain a certain virtual machine A real-time property as shown in Table 1:
Table one virtual machine A real-time property table
102, according to corresponding virtual machine creation-time order within the scope of whole cloud computing platform management system, obtain corresponding virtual machine sequential encoding; Described sequential encoding no longer changes after generating; Described real-time property information is contrasted with the attribute coding's standard scale pre-seting, obtain corresponding virtual machine attribute coding; Described attribute coding, after generation, carries out corresponding real-time update according to corresponding virtual machine real-time property.
It should be noted that: sequential encoding and attribute coding can be binary system, octal system, hexadecimal etc., and/or, between above-mentioned multiple system number, be mutually converted to, the present invention does not do any restriction to this, user can arrange according to actual needs, below is only briefly described as an example of binary system example.
It should be noted that: the field length of the present invention to sequential encoding and attribute coding, be that the figure place of sequential encoding binary numeral and the figure place of attribute coding's binary numeral do not limit, be that the present invention does not do any restriction to the field length of virtual machine identifier, user can arrange according to actual needs, below only taking virtual machine identifier field length as 128 bit values, wherein sequential encoding is 29 bit values, attribute coding for bit value be that example is briefly described.
Sequential encoding:
Wherein, in cloud computing platform management system, generate this virtual machine sequential encoding according to virtual machine creating time sequencing.There to be 5 virtual machines to be identified (comprising virtual machine A to be identified) in a certain cloud computing platform management system, and the creation-time that has identified virtual machine is 00000000000000000000000000010 to carry out the generative process of simple declaration sequential encoding for example apart from the corresponding virtual machine sequential encoding of this mark moment shortest time.
The virtual machine creating timetable of not encoding in current cloud computing platform management system is as follows:
Virtual machine title Creation-time
1 2013 03 month 09: 25: 30 on the 05th
2 2013 03 month 14: 50: 09 on the 18th
3 2013 03 month 14: 50: 09 on the 18th
A 2013 04 month 12: 32: 50 on the 03rd
4 2013 04 month 09: 18: 43 on the 10th
Virtual machine creating timetable to be identified in a certain cloud computing platform management system of table two
According to 5 virtual machine creating time sequencings to be identified in table, can obtain successively sequential encoding that 5 virtual machines are corresponding as following table:
Virtual machine title Sequential encoding
1 00000000000000000000000000011
2 00000000000000000000000000100
3 00000000000000000000000000101
4 00000000000000000000000000110
5 00000000000000000000000000111
The corresponding sequential encoding of virtual machine to be identified in a certain cloud computing platform management system of table three
It should be noted that: in the time that the two or more virtual machine creating time is identical, two or more virtual machine sequential encodings generate at random, and corresponding sequential encoding is not identical separately for every two virtual machines, for example: virtual machine 2 is identical with virtual machine 3 creation-times, in the time encoding according to virtual machine creating time genesis sequence, the sequential encoding numerical values recited of the sequential encoding to virtual machine 2 correspondences and virtual machine 3 correspondences is not done any restriction, can obtain as the sequential encoding in table three, also can obtain the sequential encoding result as table four:
Virtual machine title Sequential encoding
1 00000000000000000000000000011
2 00000000000000000000000000101
3 00000000000000000000000000100
4 00000000000000000000000000110
5 00000000000000000000000000111
The corresponding sequential encoding of virtual machine to be identified in a certain cloud computing platform management system of table four
Wherein, sequential encoding is except generating according to virtual machine creating time sequencing, sequential encoding can generate at random, and corresponding sequential encoding is not identical separately for every two virtual machines within the scope of whole cloud computing platform management system, for example: in a certain cloud computing platform management system, have 5 virtual machines to be identified, and the creation-time that has identified virtual machine is 00000000000000000000000000010 apart from the corresponding virtual machine sequential encoding of this mark moment shortest time, virtual machine (1 to 5) repeats corresponding one by one with sequential encoding (00000000000000000000000000011 to 00000000000000000000000000111) at random and not.
Wherein, after sequential encoding generates, sequential encoding is unique in the whole life cycle of this virtual machine to be determined, i.e. sequential encoding in this virtual machine identifier can be with the attribute change of this virtual machine, as: when virtual machine moves, the attribute such as clone or Hot Spare is while changing, the sequential encoding of this virtual machine does not change.
Attribute coding:
Wherein, attribute coding is determined by corresponding virtual machine real-time property; Constituent content, constituent number and the constituent of the present invention to attribute coding puts in order and do not do any restriction, and attribute coding's composition concrete form can be determined according to user's actual needs and the attribute coding who pre-sets standard scale.Below only simple as example taking a kind of attribute coding's possible composition form.
For example: obtain a certain virtual machine real-time property as shown in Table 1, according to user's actual needs and attribute coding's standard scale of pre-seting, determine that attribute coding can be encoded by system property, security attribute coding and service attribute coding form.
The corresponding virtual machine time encoding of system property coding, physical attribute coding and operating system attribute coding composition; Time encoding is 46 bits; Time encoding represents the corresponding virtual machine creating time; Physical attribute coding physical location attribute coding and computer node coding composition; Physical location attribute coding is 8 bits; Physical attribute coding represents the physics machine room scope at the current place of corresponding virtual machine; Computer node is encoded to 20 bits; Computer node coding represents the computing node of corresponding virtual machine in the physics machine room of current place; Operating system attribute coding is 4 bits; Operating system attribute coding represents corresponding virtual machine current operation system type.Security attribute coding security domain attribute coding and migration attribute coding composition; Security domain attribute coding is 8 bits; Security domain attribute coding represents the current place of corresponding virtual machine security domain; Migration attribute coding is 4 bits; Migration attribute coding represents the migration grade of corresponding virtual machine.Service attribute coding type of service coding and service application scope coding composition; Type of service is encoded to 4 bits; Type of service coding represents the type of service of the current carrying of corresponding virtual machine; Service application scope is encoded to 5 bit compositions; Service application scope coding represents the range of application of the current bearer service of corresponding virtual machine.
Wherein, carry out virtual machine attribute coding according to the each attribute coding's standard scale pre-seting, usually, a cloud computing platform arranges a set of each attribute coding's standard scale, the standard that arranges of attribute coding's standard scale is definite according to active user's actual needs, and the present invention only may illustrate with one.
Wherein, time encoding computational methods be by current time taking millisecond as interval, be converted into start 0: 0: 0 on the 1st January in 2000, according to the binary system timestamp of millisecond counting.The for example creation-time of virtual machine A is 12: 32: 50 on the 3rd April in 2013, calculates the current distance initial time time difference to be: 13 years 3 months 2 days 12 hours 32 minutes 50 seconds; Time difference is converted into millisecond number: (3*,365,*24,*60,*60,+3*,30*,24*,60*,60+,2*2,4*6,0*6,0+1,2*6,0*6,0+2,4*6,0+5 0) * 1000=102,601,490,000; Millisecond number is converted into 46 bits and is: 0000000001011111100011100001100111111001010000, and the time encoding in virtual machine attribute coding is: 0000000001011111100011100001100111111001010000.
Unique computing node in physics Host equipment room of computing node code identification.For example the computing node of virtual machine A is 1024, converts 20 bits to be: 00000000010000000000, and the computing node of virtual machine A is encoded to 00000000010000000000.
Physics machine room coding, OS Type coding, security domain coding, migration grade coding, type of service coding and the service application scope coding physics machine room coding standard table (table five) that contrast pre-sets respectively, OS Type coding standard table (table six), security domain coding standard table (table seven), migration grade coding standard table (table eight), type of service coding standard table (table nine) and service application scope coding standard table (table ten), obtain the each attribute coding of table one virtual machine:
Sequence number Physical location encoded In-line coding
1 No. 1 machine room 00000000
2 No. 2 machine rooms 00000001
3 No. 3 machine rooms 00000010
Retain Retain Other is worth reservation
Table five physics machine room coding standard table
Sequence number OS Type Operating system coding
1 DOS 0000
2 Windows 0001
3 UNIX 0010
4 LINUX 0011
Retain Retain Other is worth reservation
Table six OS Type coding standard table
Sequence number Security domain title Security domain coding
1 Core switching domain 00000000
2 Platform interworking domain 00000001
3 Government affairs tenant's input field 00000010
4 Business datum service-domain 00000011
5 Public data service-domain 00000100
6 Platform application service-domain 00000101
7 Business datum storage territory 00000110
8 Public data storage territory 00000111
9 Key storage territory 00001000
10 Service management service-domain 00001001
11 Security infrastructure territory 00001010
12 Territory, encryption and decryption engine pond 00001011
13 KMC territory 00001100
14 Authentication management central field 00001101
15 Territory, stand-by computational resource pond 00001110
16 Safety and business monitoring district 00001111
17 Safety management district 00010000
18 Exchanges data territory 00010001
19 Business trustship territory) 00010010
20 Hosting territory 00010011
21 Internet, applications service-domain 00010100
22 Trustship territory, machine room space 00010101
23 The Internet input field 00010110
24 Security audit central field 00010111
25 Development and testing territory 00011000
26 More neofield of systems soft ware patch 00011001
27 Application software upgrade territory 00011010
28 Core machine room input field 00011011
29 Concerning security matters machine room district 00011100
30 Broadband mobile government affairs input field 00011101
Retain Retain Other is worth reservation
Table seven security domain coding standard table
Sequence number Virtual machine type In-line coding
1 The 0th grade 0000
2 The 1st grade 0001
3 The 2nd grade 0010
4 The 3rd grade 0011
5 4 grades of nodes 0100
Retain Retain Other is worth reservation
Table eight moves grade coding standard table
Sequence number Application type Type coding In-line coding
1 Database DB 0000
2 Platform BP 0001
3 Application AP 0010
4 Safety SC 0011
5 The Internet IN 0100
6 Operation management OC 0101
Retain Retain Retain Other is worth reservation
Table nine type of service coding standard table
Sequence number Service application scope Service application level In-line coding
1 Provincial application Single-stage 00000
2 City-level application Single-stage 00001
3 Application at county level Single-stage 00010
4 Small towns (street) application Single-stage 00011
5 Administrative village (community) application Single-stage 00100
6 Provincial, and municipal level application Two-stage 00101
7 City's application at county level Two-stage 00110
8 County's township level application Two-stage 00111
9 The at village level application in small towns Two-stage 01000
10 Provinces and cities' application at county level Three grades 01001
11 Cities and counties' township level application Three grades 01010
12 The at village level application in counties and townships town Three grades 01011
13 Provinces and cities' county's township level application Level Four 01100
14 The at village level application in small towns, cities and counties Level Four 01101
15 The at village level application in counties and townships of provinces and cities town Pyatyi 01110
16-32 Retain Retain Other are worth reservation
Table ten type of service coding standard table
Contrast above-mentioned each attribute table, obtain virtual machine A each attribute coding as following table:
? Attribute when establishment Corresponding attribute coding
Physics machine room coding No. 2 machine rooms 00000001
OS Type coding Windows 0001
Security domain coding Development and testing territory 00011000
Migration grade is compiled The 1st grade 0001
Type of service is compiled Application 0010
Service application scope coding Provincial application 00000
Each attribute coding's table in table ten table one
To sum up, the sequential encoding of acquisition virtual machine A is:
00000000000000000000000000110
Attribute coding is:
000000000101111110001110000110011111100101000000000001000000000100000000000001000110000001001000000
Virtual machine identifier stores in the current cloud computing platform management system of virtual machine identifier database after generating, and when a certain virtual machine breaks down within the scope of convenient cloud computing platform management system, fault virtual machine is traced to the source and is safeguarded.
103, described sequential encoding and described attribute coding are combined, obtain corresponding virtual machine identifier.
Wherein, the combining form of the embodiment of the present invention to sequential encoding and attribute coding, built-up sequence is not done any restriction, only as an example of virtual machine A example, explanation identifier obtains process to the embodiment of the present invention: the sequential encoding that obtains virtual machine A is 00000000000000000000000000110, attribute coding is 00,000,000,010,111,111,000,111,000,011,001,111,110,010,100,000,000,000,100 0000000100000000000001000110000001001000000, sequential encoding and attribute coding are combined, the identifier of the virtual machine A obtaining is: 00,000,000,000,000,000,000,000,000,110,000,000,000,101,111,110,001,110,000 11,001,111,110,010,100,000,000,000,100,000,000,010,000,000,000,000,100,011 0000001001000000.
Virtual machine identifier stores in the current cloud computing platform management system of virtual machine identifier database after generating, and when a certain virtual machine breaks down within the scope of convenient cloud computing platform management system, fault virtual machine is traced to the source and is safeguarded.
A kind of virtual machine identification method that the embodiment of the present invention provides, by obtaining virtual machine creating time and real-time property information; According to corresponding virtual machine creation-time order within the scope of whole cloud computing platform management system, obtain corresponding virtual machine sequential encoding; Described sequential encoding no longer changes after generating; Described real-time property information is contrasted with the attribute coding's standard scale pre-seting, obtain corresponding virtual machine attribute coding; Described attribute coding, after generation, carries out corresponding real-time update according to corresponding virtual machine real-time property; Described sequential encoding and described attribute coding are combined, obtain corresponding virtual machine identifier, than prior art: no matter after virtual machine creating, which kind of change occurs state, as virtual machine switch, migration, clone, Hot Spare and deletion, the identifier of this virtual machine can not change, and the present invention can carry out in time, upgrade exactly this virtual machine identifier according to virtual machine real-time status.
embodiment 2
The embodiment of the present invention provides a kind of virtual machine identification method, as shown in Figure 2, comprising:
201, obtain virtual machine creating time and real-time property information.
202, according to corresponding virtual machine creation-time order within the scope of whole cloud computing platform management system, obtain corresponding virtual machine sequential encoding; Described sequential encoding no longer changes after generating; Described real-time property information is contrasted with the attribute coding's standard scale pre-seting, obtain corresponding virtual machine attribute coding; Described attribute coding, after generation, carries out corresponding real-time update according to corresponding virtual machine real-time property.
203, described sequential encoding and described attribute coding are combined, obtain corresponding virtual machine identifier.
204, store the identifier of each virtual machine in current cloud computing platform management system scope into virtual machine identifier database; Every two identifier differences in described identifier database; And described in each, identifier is only corresponding with a virtual machine.
205, in the time that a certain virtual machine attribute changes, corresponding identifier carries out corresponding real-time update according to virtual machine real-time property.
Wherein, after virtual machine identifier stores current cloud computing platform management system identifier database into, in virtual machine identifier, sequential encoding does not change with the change of attribute after virtual machine creating, and in virtual machine identifier, attribute coding can carry out real-time update with the change of real-time property after virtual machine creating.For example: virtual machine A " service application range attribute " after establishment changes into " city-level application " by original " provincial application ", the identifier of virtual machine A is updated to " 00,000,000,000,000,000,000,000,000,110,000,000,000,101,111,110,001,110,000 11,001,111,110,010,100,000,000,000,100,000,000,010,000,000,000,000,100,011 0000001001000001 " by original " 00,000,000,000,000,000,000,000,000,110,000,000,000,101,111,110,001,110,000 11,001,111,110,010,100,000,000,000,100,000,000,010,000,000,000,000,100,011 0000001001000000 ", so that when a certain the virtual machine that after creating within the scope of current cloud computing platform management system, attribute changes breaks down, fault virtual machine is traced to the source and safeguarded.
206, in the time that a certain virtual machine breaks down, inquire about described virtual machine identifier database, obtain fault virtual machine identifier, to described fault virtual machine is traced to the source and safeguarded.
207,, in the time that a certain virtual machine is deleted, corresponding identifier is deleted from current cloud computing platform management system virtual machine identifier database, to carry out database update.
It should be noted that: in the embodiment of the present invention detailed description of part steps can reference example 1 in corresponding content, repeat no more herein.
A kind of virtual machine identification method that the embodiment of the present invention provides, by obtaining virtual machine creating time and real-time property information; According to corresponding virtual machine creation-time order within the scope of whole cloud computing platform management system, obtain corresponding virtual machine sequential encoding; Described sequential encoding no longer changes after generating; Described real-time property information is contrasted with the attribute coding's standard scale pre-seting, obtain corresponding virtual machine attribute coding; Described attribute coding, after generation, carries out corresponding real-time update according to corresponding virtual machine real-time property; Described sequential encoding and described attribute coding are combined, obtain corresponding virtual machine identifier, than prior art: no matter after virtual machine creating, which kind of change occurs state, as virtual machine switch, migration, clone, Hot Spare and deletion, the identifier of this virtual machine can not change, and the present invention can carry out in time, upgrade exactly this virtual machine identifier according to virtual machine real-time status.
embodiment 3
The embodiment of the present invention provides a kind of virtual machine identity device, as shown in Figure 3, comprising:
Acquiring unit 31, for obtaining virtual machine creating time and real-time property information.
The first coding unit 32, for according to corresponding virtual machine creation-time order within the scope of whole cloud computing platform management system, obtains corresponding virtual machine sequential encoding; Described sequential encoding no longer changes after generating; Described real-time property information is contrasted with the attribute coding's standard scale pre-seting, obtain corresponding virtual machine attribute coding; Described attribute coding, after generation, carries out corresponding real-time update according to corresponding virtual machine real-time property.
Assembled unit 33, for described sequential encoding and described attribute coding are combined, obtains corresponding virtual machine identifier.
The second coding unit 34, for the corresponding virtual machine sequential encoding of random generation; Within the scope of whole cloud computing platform management system, corresponding sequential encoding is not identical separately for every two virtual machines.
Memory cell 35, for storing the identifier of each virtual machine in current cloud computing platform management system scope into virtual machine identifier database; Every two identifier differences in described identifier database; And described in each, identifier is only corresponding with a virtual machine.
Updating block 36, in the time that a certain virtual machine attribute changes, corresponding identifier carries out corresponding real-time update according to virtual machine real-time property.
Query unit 37, in the time that a certain virtual machine breaks down, inquires about described virtual machine identifier database, obtains fault virtual machine identifier, to described fault virtual machine is traced to the source and safeguarded.
Delete cells 38, for handle, in the time that a certain virtual machine is deleted, corresponding identifier is deleted from current cloud computing platform management system virtual machine identifier database, to carry out database update.
It should be noted that: in the embodiment of the present invention detailed description of partial devices can reference example 1 or embodiment 2 in corresponding content, repeat no more herein.
A kind of virtual machine identity device that the embodiment of the present invention provides, by obtaining virtual machine creating time and real-time property information; According to corresponding virtual machine creation-time order within the scope of whole cloud computing platform management system, obtain corresponding virtual machine sequential encoding; Described sequential encoding no longer changes after generating; Described real-time property information is contrasted with the attribute coding's standard scale pre-seting, obtain corresponding virtual machine attribute coding; Described attribute coding, after generation, carries out corresponding real-time update according to corresponding virtual machine real-time property; Described sequential encoding and described attribute coding are combined, obtain corresponding virtual machine identifier, than prior art: no matter after virtual machine creating, which kind of change occurs state, as virtual machine switch, migration, clone, Hot Spare and deletion, the identifier of this virtual machine can not change, and the present invention can carry out in time, upgrade exactly this virtual machine identifier according to virtual machine real-time status.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that the present invention can add essential common hardware by software and realize, and can certainly pass through hardware, but in a lot of situation, the former is better execution mode.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product is stored in the storage medium can read, as the floppy disk of computer, hard disk or CD etc., comprise that some instructions are in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) carry out the method described in each embodiment of the present invention.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited to this, any be familiar with those skilled in the art the present invention disclose technical scope in; the variation that can expect easily or replacement, within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of described claim.
  

Claims (8)

1. a virtual machine identification method, is characterized in that, for each virtual machine, comprising:
Obtain virtual machine creating time and real-time property information;
According to corresponding virtual machine creation-time order within the scope of whole cloud computing platform management system, obtain corresponding virtual machine sequential encoding; Described sequential encoding no longer changes after generating; Described real-time property information is contrasted with the attribute coding's standard scale pre-seting, obtain corresponding virtual machine attribute coding; Described attribute coding, after generation, carries out corresponding real-time update according to corresponding virtual machine real-time property;
Described sequential encoding and described attribute coding are combined, obtain corresponding virtual machine identifier.
2. virtual machine identification method according to claim 1, is characterized in that, comprising:
The corresponding virtual machine sequential encoding of random generation; Within the scope of whole cloud computing platform management system, corresponding sequential encoding is not identical separately for every two virtual machines.
3. virtual machine identification method according to claim 1 and 2, is characterized in that, described sequential encoding and described attribute coding are being combined, and after obtaining corresponding virtual machine identifier, described method also comprises:
Store the identifier of each virtual machine in current cloud computing platform management system scope into virtual machine identifier database; Every two identifier differences in described identifier database; And described in each, identifier is only corresponding with a virtual machine.
4. virtual machine identification method according to claim 1 and 2, is characterized in that, in the whole life cycle of virtual machine, the method also comprises:
In the time that a certain virtual machine attribute changes, corresponding identifier carries out corresponding real-time update according to virtual machine real-time property;
In the time that a certain virtual machine breaks down, inquire about described virtual machine identifier database, obtain fault virtual machine identifier, to described fault virtual machine is traced to the source and safeguarded;
In the time that a certain virtual machine is deleted, corresponding identifier is deleted from current cloud computing platform management system virtual machine identifier database, to carry out database update.
5. a virtual machine identity device, is characterized in that, comprising:
Acquiring unit, for obtaining virtual machine creating time and real-time property information;
The first coding unit, for according to corresponding virtual machine creation-time order within the scope of whole cloud computing platform management system, obtains corresponding virtual machine sequential encoding; Described sequential encoding no longer changes after generating; Described real-time property information is contrasted with the attribute coding's standard scale pre-seting, obtain corresponding virtual machine attribute coding; Described attribute coding, after generation, carries out corresponding real-time update according to corresponding virtual machine real-time property;
Assembled unit, for described sequential encoding and described attribute coding are combined, obtains corresponding virtual machine identifier.
6. virtual machine identity device according to claim 5, is characterized in that, comprising:
The second coding unit, for the corresponding virtual machine sequential encoding of random generation; Within the scope of whole cloud computing platform management system, corresponding sequential encoding is not identical separately for every two virtual machines.
7. according to the virtual machine identity device described in claim 5 or 6, it is characterized in that, after assembled unit, described device also comprises:
Memory cell, for storing the identifier of each virtual machine in current cloud computing platform management system scope into virtual machine identifier database; Every two identifier differences in described identifier database; And described in each, identifier is only corresponding with a virtual machine.
8. according to the virtual machine identity device described in claim 5 or 6, it is characterized in that, in the whole life cycle of virtual machine, this device also comprises:
Updating block, in the time that a certain virtual machine attribute changes, corresponding identifier carries out corresponding real-time update according to virtual machine real-time property;
Query unit, in the time that a certain virtual machine breaks down, inquires about described virtual machine identifier database, obtains fault virtual machine identifier, to described fault virtual machine is traced to the source and safeguarded;
Delete cells, for handle, in the time that a certain virtual machine is deleted, corresponding identifier is deleted from current cloud computing platform management system virtual machine identifier database, to carry out database update.
CN201310166654.7A 2013-05-08 2013-05-08 Virtual machine identification method and device Pending CN104144182A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310166654.7A CN104144182A (en) 2013-05-08 2013-05-08 Virtual machine identification method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310166654.7A CN104144182A (en) 2013-05-08 2013-05-08 Virtual machine identification method and device

Publications (1)

Publication Number Publication Date
CN104144182A true CN104144182A (en) 2014-11-12

Family

ID=51853250

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310166654.7A Pending CN104144182A (en) 2013-05-08 2013-05-08 Virtual machine identification method and device

Country Status (1)

Country Link
CN (1) CN104144182A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109508226A (en) * 2018-11-20 2019-03-22 郑州云海信息技术有限公司 A kind of management method of the virtual machine life cycle based on openstack
CN109697109A (en) * 2018-12-27 2019-04-30 深信服科技股份有限公司 A kind of method, system, device and the storage medium of Division identification conflict virtual machine
CN113722338A (en) * 2020-05-25 2021-11-30 中移(苏州)软件技术有限公司 Data synchronization method, data synchronization device, electronic equipment and storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109508226A (en) * 2018-11-20 2019-03-22 郑州云海信息技术有限公司 A kind of management method of the virtual machine life cycle based on openstack
CN109508226B (en) * 2018-11-20 2021-10-29 郑州云海信息技术有限公司 Openstack-based virtual machine life cycle management method
CN109697109A (en) * 2018-12-27 2019-04-30 深信服科技股份有限公司 A kind of method, system, device and the storage medium of Division identification conflict virtual machine
CN109697109B (en) * 2018-12-27 2023-09-05 深信服科技股份有限公司 Method, system, device and storage medium for distinguishing and identifying conflict virtual machines
CN113722338A (en) * 2020-05-25 2021-11-30 中移(苏州)软件技术有限公司 Data synchronization method, data synchronization device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN105243067B (en) A kind of method and device for realizing real-time incremental synchrodata
CN1894930B (en) Apparatus, system, and method for grid based data storage
CN105337941B (en) A kind of device identification providing method and device
CN105760781B (en) The storage method, restoration methods and operating method of large data files can be deduced in order
CN103218574A (en) Hash tree-based data dynamic operation verifiability method
CN108923932A (en) A kind of decentralization co-verification model and verification algorithm
TWI742586B (en) Methods and devices for providing traversable key-value data storage on blockchain
US20170177652A1 (en) Copying garbage collector for b+ trees under multi-version concurrency control
CN111639080B (en) Data processing method and device, node equipment and storage medium
CN110022315A (en) Weight management method, device and equipment in a kind of piece of chain type account book
CN102916811A (en) Multielement entity identity certificate information storage method
CN109447820A (en) Data processing method, device, computer equipment and storage medium
CN104142848A (en) Virtual machine identifier and use method thereof
CN108268614A (en) A kind of distribution management method of forest reserves spatial data
CN104144182A (en) Virtual machine identification method and device
CN103606032B (en) A kind of method in two dimension power grid GIS data set
CN104714957A (en) List structure changing method and device
CN106506613A (en) The data storage location encryption method of distributed key value storage systems
CN115145938A (en) Method, device, equipment and medium for establishing enterprise user identity system
CN109698814A (en) Botnet finds that method and Botnet find device
EP3682390B1 (en) Techniques for coordinating codes for infrastructure modeling
CN109714652A (en) Date storage method, system, storage medium and the equipment of ODN management system
TW201810162A (en) Method for realizing tax calculation in trading process by using block chain
CN104077374B (en) A kind of method and device for realizing the storage of IP disk files
CN103514412B (en) Build the method and Cloud Server of access control based roles system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20141112