The content of the invention
In view of the foregoing, it is necessary to which a kind of data center is provided, including a database and multiple virtual machines, for for
Client provides Virtual Service, and the client is communicated to connect by gateway with the data center.The data center also includes virtual
Resource description unit, NE, user's detecting unit, virtual machine start unit and Virtual Service activation unit, wherein:
The virtual resource describes unit for when user registers Virtual Service by client to data center, obtaining
The setting data of the Virtual Service for describing registration that the user of client is set, generates the Virtual Service of the user's registration
Virtual resource description information, and the virtual broadcast numeric field data that the virtual resource description information is integrated into the user is stored in database
In, wherein, the setting data includes logining information and represents the identifier of the Virtual Service that user is registered;
The NE is used to detect the operation that user logins data center by gateway;
User's detecting unit is used for when user logins data center, and obtain user logins information, and according to obtaining
What is taken logins information, and inquiry database obtains the virtual broadcast numeric field data of user, and is transferred to virtual machine start unit;
The virtual machine start unit is used for the virtual broadcast numeric field data according to user, obtains the virtual clothes of the user's registration
The virtual resource description information of business, and start corresponding virtual machine;And
The Virtual Service activation unit is used to notify that data center activates respective virtual for receiving the one of gateway transmission
The announcement information of service, and the Virtual Service registered according to user in the announcement information virtual machine that has been turned on of activation.
There is a need to a kind of method that above-mentioned data center provides Virtual Service for client that provides, the method includes:
User by client to data center register Virtual Service when, obtain client user set for retouching
The setting data of the Virtual Service of registration is stated, the virtual resource description information of the Virtual Service of the user's registration is generated, and should
The virtual broadcast numeric field data that virtual resource description information is integrated into the user is stored in database, wherein, the setting data includes
Login information and represent the identifier of the Virtual Service that user is registered;
Detecting user logins the operation of data center by gateway;
When user logins data center, the information of logining of user is obtained, and according to the information of logining for obtaining, inquire about data
Storehouse obtains the virtual broadcast numeric field data of user;
Virtual broadcast numeric field data according to user, obtains the virtual resource description information of the Virtual Service of the user's registration,
And start corresponding virtual machine;And
The announcement information for notifying data center's activation respective virtual to service that gateway sends is received, and it is logical according to this
Know the Virtual Service that user is registered in the virtual machine that information activation has been turned on.
Compared to prior art, data center of the invention and its method that Virtual Service is provided for client, in user
When registering Virtual Service to data center by client, the virtual clothes for describing registration that the user of client is set are obtained
The setting data of business, the setting data includes representing the identifier of the Virtual Service that user is registered.Phase is needed to use in user
During the Virtual Service answered, the data center starts corresponding virtual machine according to the identifier and activates corresponding virtual clothes
Business, the information such as the network address of numerous virtual resources are write down without user, can be user-friendly.
Specific embodiment
As shown in figure 1, being a data center in the embodiment of the present invention(Data Center)100 provide for a client 300
The Organization Chart of Virtual Service.Data center 100 describes unit 101, NE 102, user's detecting unit including virtual resource
103, virtual machine start unit 104, Virtual Service activation unit 105, database 110 and multiple virtual machines(Virtual
Machine, VM)120.Virtual machine 120 is used to provide a variety of Virtual Services for the user of client 300.Client 300
Data center 100 is accessed by a gateway 200, and the Virtual Service for needing is used in the registration of data center 100.
In the present embodiment, each function element in data center 100 can be realized by hardware components, also can be by software module reality
Existing, each function element can directly or indirectly carry out data transmission and exchange each other.Data center 100 can be, but not limit
In server.Client 300 may be, but not limited to, PC, portable set, smart mobile phone etc..The gateway 200
May be, but not limited to, router.
As shown in Fig. 2 being the flow chart that the data center 100 provides the method for Virtual Service for client 300.This hair
Bright data center 100 is not limited to the order of following step, and the method for the method for the offer Virtual Service of client 300
A portion of step as described below can also be only included, namely part steps therein can be omitted.With reference to Fig. 2
In each process step, to Fig. 1 in each function element describe in detail.
Step S1, the virtual resource describes unit 101 and registers void to data center 100 by client 300 in user
Intend service(Virtual Service)When, obtain the setting data of the Virtual Service for describing registration that user is set, generation
The virtual resource description of the Virtual Service of the user's registration(Virtual Resource Description, VRD)Information, and will
The VRD information integrations are the virtual broadcast domain of the user(Virtual Broadcast Domain, VBD)Data are stored in database
110。
The setting data logins data center 100 and logins information with using the Virtual Service including user(As used
Name in an account book, password etc.)And represent the identifier of the Virtual Service that user is registered(Tag).For example, identifier can be
" Notes ", " Virtual Desktop " etc., are that mail service or virtual desktop take for representing the Virtual Service of user's registration
Business etc..The Virtual Service of user's registration is provided by virtual machine 120.In the present embodiment, virtual resource describes unit 101 and provides one
User Page(Such as webpage)For user, above-mentioned setting data is set.
Step S2, the detecting user of NE 102 logins the operation of data center 100 by gateway 200, such as by use
Name in an account book and password login data center 100.
Step S3, when NE 102 detects the operation at user accesses data center 100, user's detecting unit 103
Obtain user logins information(User name and password including above-mentioned setting), and according to the information of logining for obtaining, inquire about data
Storehouse 110 obtains the VBD data of user, and is transferred to virtual machine start unit 104.
Step S4, virtual machine start unit 104 obtains the Virtual Service of the user's registration according to the VBD data of user
VRD information, and start corresponding virtual machine 120.Further, the virtual machine start unit 104 can be by correspondence virtual machine 120
The feedback of status being activated to gateway 200, to notify that client 300 is currently starting corresponding virtual machine 120.The startup
Corresponding virtual machine 120 refer to for providing the virtual machine 120 of the Virtual Service of user's registration in data center 100.
Step S5, gateway 200 obtains the VBD data of the user from database 110, and the VBD data are stored in into gateway
200 flash memory(It is not shown)In.
Step S6, gateway 200 is received user and is explored by the Virtual Service that client 300 sends(discover)Package,
And the VBD data of the user are taken out from flash memory according to the exploration package.Specifically, it is described to explore identification of the package comprising user
Information(User ID), such as the user name of the user.The identification information that the gateway 200 can be included according to exploration package takes out the use
The corresponding VBD data in family.
Step S7, gateway 200 sends one and notifies letter according to the Virtual Service of the VBD data acquisition user's registrations of user
Breath notifies that data center 100 activates corresponding Virtual Service to data center 100.In this implementation, the Virtual Service that user needs
Can be by the identifier in the above-mentioned setting data that is included in the VBD data(Tag)It is determined that.
Step S8, Virtual Service activation unit 105 receives the announcement information, and is had been turned on according to announcement information activation
Virtual machine 120 in the Virtual Service registered of user, a feedback information to client 300 is then sent by gateway 200, with
Just user uses corresponding Virtual Service according to the feedback information line.
Step S9, after corresponding Virtual Service is activated, the NE 102 is that the Virtual Service for having activated carries out net
Network is configured.For example, being the parameter such as virtual resource setting network bandwidth of activation, it is beneficial to data center 100 and is matched somebody with somebody according to the network
The user for being set to client 300 provides corresponding Virtual Service.
After activating Virtual Service and carrying out network configuration, NE 102 transmittable includes the Virtual Service of activation
And the feedback information of corresponding network configuration is to client 300, so that client 300 uses phase according to the feedback information line
The Virtual Service answered.
In sum, data center of the invention 100 can according to user's registration Virtual Service when the Virtual Service mark that sets
Know symbol to start corresponding virtual machine and activate corresponding Virtual Service, the network ground of numerous virtual resources is write down without user
The information such as location, can be user-friendly.
The above embodiments are merely illustrative of the technical solutions of the present invention and it is unrestricted, although with reference to preferred embodiment to this hair
It is bright to be described in detail, it will be understood by those within the art that, technical scheme can be modified
Or equivalent, without deviating from the spirit and scope of technical solution of the present invention.