CN103618767A - Virtual machine configuration method and related equipment - Google Patents

Virtual machine configuration method and related equipment Download PDF

Info

Publication number
CN103618767A
CN103618767A CN201310570990.8A CN201310570990A CN103618767A CN 103618767 A CN103618767 A CN 103618767A CN 201310570990 A CN201310570990 A CN 201310570990A CN 103618767 A CN103618767 A CN 103618767A
Authority
CN
China
Prior art keywords
virtual machine
server
quota
value
redundant configuration
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
CN201310570990.8A
Other languages
Chinese (zh)
Other versions
CN103618767B (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201310570990.8A priority Critical patent/CN103618767B/en
Publication of CN103618767A publication Critical patent/CN103618767A/en
Application granted granted Critical
Publication of CN103618767B publication Critical patent/CN103618767B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Abstract

The embodiment of the invention discloses a virtual machine configuration method and related equipment. The virtual machine configuration method comprises the following steps: when sharing connection is conducted with a virtual machine server, an authentication request carrying user information sent by the virtual machine server is received, and the authentication request is forwarded to an authentication server; when the authentication server verifies authentication of the user information, preset redundancy configuration information corresponding to the user information sent by the authentication server is received; when a file creation request initiated by the virtual machine server is received, redundancy configuration is conducted on a created file according to the redundancy configuration information. By the adoption of the virtual machine configuration method and the related equipment, corresponding redundancy ratios are configured to virtual machine operating disks of different users.

Description

A kind of method and relevant device of virtual machine configuration
Technical field
The present invention relates to communication technical field, relate in particular to a kind of method and relevant device of virtual machine configuration.
Background technology
At current distributed NAS(Network Attached Storage; network attached storage) in storage; in order to guarantee the reliability of data in distributed NAS storage; conventionally can carry out redundant configuration to stored data; redundant configuration method of the prior art is the rule based on fixing; for example, to certain catalogue in storage system or certain file system, set fixing redundant fashion and redundancy proportioning value.
For the virtual machine scratch diskette creating in virtual machine server, different users has different purposes, and the data of storage also can be different, so different users is also different to the requirement of redundancy protecting.Yet in the prior art,, distributed NAS storage can only be set fixing redundancy protecting mode to virtual machine file, cannot distinguish according to user type.For example, financial system is when being used virtual machine, they can require the virtual machine scratch diskette of oneself to have higher redundancy proportioning value, and for domestic consumer, adopt lower redundancy proportioning value, but existing redundancy proportioning mode cannot be respectively the virtual machine scratch diskette that financial system and domestic consumer use, configure different redundancy proportioning values.
Summary of the invention
Embodiment of the present invention technical problem to be solved is, a kind of method and relevant device of virtual machine configuration is provided, and the virtual machine scratch diskette that can be different from different user configures corresponding redundancy proportioning.
First aspect present invention provides a kind of method of virtual machine configuration, comprising:
When carrying out Share interlinkage with virtual machine server, the authentication request that carries user profile that sink virtual machine server sends, and described authentication request is forwarded to certificate server;
When described certificate server is when to the authentication of described user profile, receive the preset redundant configuration information corresponding with described user profile that described certificate server sends;
When receiving the document creation request of described virtual machine server initiation, according to described redundant configuration information, created file is carried out to redundant configuration.
In the possible implementation of the first, describedly when receiving the document creation request that described virtual machine server initiates, according to described redundant configuration information, created file is carried out to redundant configuration, comprising:
When receiving the document creation request of described virtual machine server initiation, from described redundant configuration information, extract redundant fashion and redundancy proportioning value;
Described redundant fashion, redundancy proportioning value and the file that creates are sent to local distributed file system, by described distributed file system, created file is carried out to redundant configuration according to described redundant fashion and redundancy proportioning value.
In conjunction with the possible implementation of the first of first aspect or first aspect, in the possible implementation of the second, when receiving the document creation request of described virtual machine server initiation, before created file being carried out to redundant configuration according to described redundant configuration information, also comprise:
Receive the preset quota Quota value corresponding with described subscriber equipment that described certificate server sends;
Described quota Quota value is sent to described virtual machine server, so that described virtual machine server is distributed the capability value of virtual machine scratch diskette according to described quota Quota value.
In conjunction with the possible implementation of the second of first aspect, in the third possible implementation, also comprise:
Whether the total capacity that detects the file creating is greater than described quota Quota value;
When the total capacity of created file being detected and be greater than described quota Quota value, send miscue information to the subscriber equipment that uses described virtual machine server so that described subscriber equipment send dilatation request to described certificate server to upgrade described quota Quota value;
When described virtual machine server being detected and reload virtual machine scratch diskette, receive described certificate server and send the quota Quota value after upgrading, and the quota Quota value after described renewal is sent to described virtual machine server, so that described virtual machine server is redistributed the capability value of virtual machine scratch diskette according to the quota Quota value after described renewal.
In conjunction with first aspect, or the possible implementation of the first of first aspect, or the possible implementation of the second of first aspect, or the third possible implementation of first aspect, in the 4th kind of possible implementation, described when carrying out Share interlinkage with virtual machine server, the authentication request that carries user profile that sink virtual machine server sends, and before described authentication request is forwarded to certificate server, also comprise:
Share directory corresponding to preset and described virtual machine server;
Wherein, the virtual machine scratch diskette in described share directory and described virtual machine server is for sharing mapping relations.
In conjunction with first aspect, or the possible implementation of the first of first aspect, or the possible implementation of the second of first aspect, or the third possible implementation of first aspect, or the 4th kind of possible implementation of first aspect, in the 5th kind of possible implementation, described when carrying out Share interlinkage with virtual machine server, the authentication request that carries user profile that sink virtual machine server sends, and described authentication request is forwarded to certificate server, comprising:
When carrying out Share interlinkage with virtual machine server, the authentication request that carries user profile that sink virtual machine server sends, and detect the storage protocol that described authentication request that described virtual machine server sends is used;
By the described storage protocol detecting, described authentication request is forwarded to the certificate server corresponding with described storage protocol.
In conjunction with the 5th kind of possible implementation of first aspect, in the 6th kind of possible implementation, describedly by the described storage protocol detecting, described authentication request is forwarded to the certificate server corresponding with described storage protocol, comprising:
When used storage protocol being detected for SMB SMB agreement, by described SMB SMB agreement, described authentication request is forwarded to active directory server; Or,
When used storage protocol being detected for NFS NFS agreement, by described NFS NFS agreement, described authentication request is forwarded to Light Directory Access Protocol ldap server.
Second aspect present invention provides a kind of method of virtual machine configuration, comprising:
Receive the authentication request that storage server forwards, described authentication request is the authentication request that carries user profile being sent by virtual machine server;
According to described authentication request, described user profile is authenticated;
When to the authentication of described user profile, the preset redundant configuration information corresponding with described user profile is sent to described storage server, so that the file that described storage server creates described virtual machine server according to described redundant configuration information carries out redundant configuration.
In the possible implementation of the first, before the authentication request forwarding at described reception storage server, also comprise:
Preset user account information, and be redundant configuration information and the quota Quota value of the preset correspondence of described user account information;
Wherein, described redundant configuration information comprises redundant fashion and redundancy proportioning value.
In conjunction with the possible implementation of the first of second aspect or second aspect, in the possible implementation of the second, described when when to the authentication of described user profile, the preset redundant configuration information corresponding with described user profile is sent to described storage server, so that the file that described storage server creates described virtual machine server according to described redundant configuration information carries out redundant configuration, comprising:
When to the authentication of described subscriber equipment, the preset quota Quota value corresponding with described subscriber equipment sent to described storage server, so that described storage server sends to described virtual machine server to distribute the capability value of the virtual machine scratch diskette corresponding with described quota Quota value by described quota Quota value;
And the preset redundant configuration information corresponding with described user profile is sent to described storage server, so that the file that described storage server creates described virtual machine server according to described redundant configuration information carries out redundant configuration.
In conjunction with the possible implementation of the first of second aspect, or the possible implementation of the second of second aspect, in the third possible implementation, also comprise:
The dilatation request that reception is used the subscriber equipment of described virtual machine server to send, and upgrade described quota Quota value according to described dilatation request;
When described virtual machine server being detected and reload virtual machine scratch diskette, by the quota Quota value after send upgrading to described storage server, so that described storage server sends to described virtual machine server to redistribute the capability value of the virtual machine scratch diskette corresponding with quota Quota value after described renewal by the quota Quota value after described renewal.
Third aspect present invention provides a kind of storage server, comprising:
Receive forwarding module, for when carrying out Share interlinkage with virtual machine server, the authentication request that carries user profile that sink virtual machine server sends, and described authentication request is forwarded to certificate server;
First information receiver module, for when described certificate server is when to the authentication of described user profile, receives the preset redundant configuration information corresponding with described user profile that described certificate server sends;
Configuration module, for when receiving the document creation request of described virtual machine server initiation, carries out redundant configuration according to described redundant configuration information to created file.
In the possible implementation of the first, described configuration module comprises:
Extraction unit for when receiving the document creation request of described virtual machine server initiation, extracts redundant fashion and redundancy proportioning value from described redundant configuration information;
Redundant configuration unit, for described redundant fashion, redundancy proportioning value and the file that creates are sent to local distributed file system, by described distributed file system, created file is carried out to redundant configuration according to described redundant fashion and redundancy proportioning value.
In conjunction with the possible implementation of the first of the third aspect or the third aspect, in the possible implementation of the second, also comprise:
The second information receiving module, the preset quota Quota value corresponding with described subscriber equipment sending for receiving described certificate server;
Quota value sending module, for described quota Quota value is sent to described virtual machine server, so that described virtual machine server is distributed the capability value of virtual machine scratch diskette according to described quota Quota value.
In conjunction with the possible implementation of the second of the third aspect, in the third possible implementation, also comprise:
Whether capacity check module, be greater than described quota Quota value for detection of the total capacity of created file;
Prompting sending module, for when the total capacity of created file being detected and be greater than described quota Quota value, send miscue information to the subscriber equipment that uses described virtual machine server so that described subscriber equipment send dilatation request to described certificate server to upgrade described quota Quota value;
Upgrade acquisition module, for when described virtual machine server being detected and reload virtual machine scratch diskette, receive described certificate server and send the quota Quota value after upgrading, and the quota Quota value after described renewal is sent to described virtual machine server, so that described virtual machine server is redistributed the capability value of virtual machine scratch diskette according to the quota Quota value after described renewal.
In conjunction with the third aspect, or the possible implementation of the first of the third aspect, or the possible implementation of the second of the third aspect, or the third possible implementation of the third aspect, in the 4th kind of possible implementation, also comprise:
Catalogue preset module, for share directory corresponding to preset and described virtual machine server;
Wherein, the virtual machine scratch diskette in described share directory and described virtual machine server is for sharing mapping relations.
In conjunction with the third aspect, or the possible implementation of the first of the third aspect, or the possible implementation of the second of the third aspect, or the third possible implementation of the third aspect, or the 4th kind of possible implementation of the third aspect, in the 5th kind of possible implementation, described reception forwarding module comprises:
Protocol detection unit, for when carrying out Share interlinkage with virtual machine server, the authentication request that carries user profile that sink virtual machine server sends, and detect the storage protocol that described authentication request that described virtual machine server sends is used;
Protocol forward unit, is forwarded to the certificate server corresponding with described storage protocol for the described storage protocol by detecting by described authentication request.
In conjunction with the 5th kind of possible implementation of the third aspect, in the 6th kind of possible implementation, described protocol forward unit comprises:
First forwards subelement, for when used storage protocol being detected for SMB SMB agreement, by described SMB SMB agreement, described authentication request is forwarded to active directory server;
Second forwards subelement, for when used storage protocol being detected for NFS NFS agreement, by described NFS NFS agreement, described authentication request is forwarded to Light Directory Access Protocol ldap server.
Fourth aspect present invention provides a kind of certificate server, comprising:
Request receiving module, the authentication request forwarding for receiving storage server, described authentication request is the authentication request that carries user profile being sent by virtual machine server;
Authentication module, for authenticating described user profile according to described authentication request;
Information sending module, during for authentication when passing through described user profile, the preset redundant configuration information corresponding with described user profile is sent to described storage server, so that the file that described storage server creates described virtual machine server according to described redundant configuration information carries out redundant configuration.
In the possible implementation of the first, also comprise:
Information preset module for preset user account information, and is redundant configuration information and the quota Quota value of the preset correspondence of described user account information;
Wherein, described redundant configuration information comprises redundant fashion and redundancy proportioning value.
In conjunction with the possible implementation of the first of fourth aspect or fourth aspect, in the possible implementation of the second, described information sending module, also for when when to the authentication of described subscriber equipment, the preset quota Quota value corresponding with described subscriber equipment sent to described storage server, so that described storage server sends to described virtual machine server to distribute the capability value of the virtual machine scratch diskette corresponding with described quota Quota value by described quota Quota value.
In conjunction with the possible implementation of the first of fourth aspect, or the possible implementation of the second of fourth aspect, in the third possible implementation, also comprise:
Receive update module, the dilatation request sending for receiving the subscriber equipment of the described virtual machine server of use, and upgrade described quota Quota value according to described dilatation request;
Upgrade sending module, for when described virtual machine server being detected and reload virtual machine scratch diskette, by the quota Quota value after send upgrading to described storage server, so that described storage server sends to described virtual machine server to redistribute the capability value of the virtual machine scratch diskette corresponding with quota Quota value after described renewal by the quota Quota value after described renewal.
The redundant configuration information corresponding with user profile that the embodiment of the present invention sends by receiving certificate server, can be according to described redundant configuration information, the file that the virtual machine corresponding with described user profile created carries out redundant configuration, make distributed NAS storage to configure different redundancy proportionings to the virtual machine scratch diskette of different user, to meet the desired redundancy proportioning of each user.
Accompanying drawing explanation
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 skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
The schematic flow sheet of the method that a kind of virtual machine that Fig. 1 provides for the embodiment of the present invention configures;
The schematic flow sheet of the method that the another kind of virtual machine that Fig. 2 provides for the embodiment of the present invention configures;
The schematic flow sheet of the method for wherein a kind of dilatation that Fig. 3 provides for the embodiment of the present invention;
The schematic flow sheet of the method that another virtual machine that Fig. 4 provides for the embodiment of the present invention configures;
The schematic flow sheet of the method that another virtual machine that Fig. 5 provides for the embodiment of the present invention configures;
The structural representation of the system that a kind of virtual machine that Fig. 6 provides for the embodiment of the present invention configures;
The structural representation of a kind of storage server that Fig. 7 provides for the embodiment of the present invention;
The structural representation of the another kind of storage server that Fig. 8 provides for the embodiment of the present invention;
The structural representation of a kind of configuration module that Fig. 9 provides for the embodiment of the present invention;
A kind of structural representation that receives forwarding module that Figure 10 provides for the embodiment of the present invention;
The structural representation of a kind of certificate server that Figure 11 provides for the embodiment of the present invention;
The structural representation of the another kind of certificate server that Figure 12 provides for the embodiment of the present invention.
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, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
Refer to Fig. 1, the schematic flow sheet of the method that a kind of virtual machine providing for the embodiment of the present invention configures, described method comprises:
S101, when carrying out Share interlinkage with virtual machine server, the authentication request that carries user profile that sink virtual machine server sends, and described authentication request is forwarded to certificate server;
Concrete, before storage server and described virtual machine server Share interlinkage, described virtual machine server first installs user's virtual machine, entering described virtual machine is mapped to virtual machine scratch diskette under certain catalogue of storage server by sharing again, now, user can use described virtual machine by subscriber equipment.Because virtual machine scratch diskette is mapped on storage server by sharing, so when loading described virtual machine scratch diskette, described virtual machine server will be initiated to the Share interlinkage of described storage server, and send authentication request, the authentication request that carries user profile that described storage server can sink virtual machine server be sent, and described authentication request is forwarded to certificate server.Wherein, described storage server can be distributed NAS storage server, and described user profile can comprise network address of user account, password and virtual machine server etc.
S102, when described certificate server is when to the authentication of described user profile, receives the preset redundant configuration information corresponding with described user profile that described certificate server sends;
Concrete, after described storage server is forwarded to described certificate server by described authentication request, whether storage server can detect described certificate server by the authentication to described user profile, or described certificate server can send authentication result to described storage server, when described certificate server is when to the authentication of described user profile, described storage server can receive the preset redundant configuration information corresponding with described user profile that described certificate server sends.Wherein, described redundant configuration information is in described certificate server, to be the preset redundant configuration information of the corresponding user of each user profile by IT keeper, and described redundant configuration information comprises redundant fashion and redundancy proportioning value.
S103, when receiving the document creation request of described virtual machine server initiation, carries out redundant configuration according to described redundant configuration information to created file;
Concrete, after certificate server passes through the authentication of described user profile, user can initiate document creation request by virtual machine, be that described storage server can receive the document creation request that described virtual machine server is initiated, now, described storage server can carry out redundant configuration to created file according to the described redundant configuration information corresponding with described user profile getting, to created file, adopt corresponding redundant fashion and redundancy proportioning value to carry out redundant configuration, to realize, the file in each user's virtual machine scratch diskette is carried out to frequency converter.
The redundant configuration information corresponding with user profile that the embodiment of the present invention sends by receiving certificate server, can be according to described redundant configuration information, the file that the virtual machine corresponding with described user profile created carries out redundant configuration, make distributed NAS storage to configure different redundancy proportionings to the virtual machine scratch diskette of different user, to meet the desired redundancy proportioning of each user, simultaneously because virtual machine scratch diskette can be shared and is mapped to storage server, so virtual machine server only need to have the virtual machine image file of installing operating system, thereby the migration and the clone that are conducive to virtual machine.
Refer to again Fig. 2, the schematic flow sheet of the method that the another kind of virtual machine providing for the embodiment of the present invention configures, described method comprises:
S201, share directory corresponding to preset and described virtual machine server;
Wherein, the virtual machine scratch diskette in described share directory and described virtual machine server is for sharing mapping relations.Before storage server and described virtual machine server Share interlinkage, described storage server can share directory corresponding to preset and described virtual machine server, described virtual machine server first installs user's virtual machine simultaneously, entering described virtual machine is mapped to virtual machine scratch diskette under share directory preset in storage server by sharing again, now, user can use described virtual machine by subscriber equipment.
S202, when carrying out Share interlinkage with virtual machine server, the authentication request that carries user profile that sink virtual machine server sends, and detect the storage protocol that described authentication request that described virtual machine server sends is used;
Because virtual machine scratch diskette is mapped on storage server by sharing, so when loading described virtual machine scratch diskette, described virtual machine server will be initiated to the Share interlinkage of described storage server, and send authentication request, the authentication request that carries user profile that described storage server can sink virtual machine server be sent, now, described storage server can also detect the storage protocol that described authentication request that described virtual machine server sends is used.
S203, is forwarded to the certificate server corresponding with described storage protocol by the described storage protocol detecting by described authentication request;
Described storage server can be forwarded to the certificate server corresponding with described storage protocol by described authentication request by the described storage protocol detecting.Further, when used storage protocol being detected for SMB SMB agreement, by described SMB SMB agreement, described authentication request is forwarded to active directory (Active Directory, Active Directory) server, and in follow-up flow process, described storage server all carries out use SMB agreement and described certificate server and described virtual machine server alternately; Or, when used storage protocol being detected for NFS NFS(Network File System, NFS) during agreement, by described NFS NFS agreement, described authentication request is forwarded to Light Directory Access Protocol LDAP(Lightweight Directory Access Protocol, Light Directory Access Protocol) server, and in follow-up flow process, described storage server all carries out use NFS agreement and described certificate server and described virtual machine server alternately.
S204, when described certificate server is when to the authentication of described user profile, receives the preset redundant configuration information corresponding with described user profile that described certificate server sends;
Concrete, after described storage server is forwarded to described certificate server by described authentication request, whether storage server can detect described certificate server by the authentication to described user profile, or described certificate server can send authentication result to described storage server, when described certificate server is when to the authentication of described user profile, described storage server can receive the preset redundant configuration information corresponding with described user profile that described certificate server sends.Wherein, described redundant configuration information is in described certificate server, to be the preset redundant configuration information of the corresponding user of each user profile by IT keeper, and described redundant configuration information comprises redundant fashion and redundancy proportioning value.
S205, receives the preset quota Quota value corresponding with described subscriber equipment that described certificate server sends;
At described storage server, described certificate server detected when to the authentication of described user profile, described storage server can also receive the preset quota Quota value corresponding with described subscriber equipment that described certificate server sends, described quota Quota value refers to the capability value of virtual machine scratch diskette, and described quota Quota value is also by IT keeper, in described certificate server, to be the preset quota Quota value of the corresponding user of each user profile.
S206, sends to described virtual machine server by described quota Quota value, so that described virtual machine server is distributed the capability value of virtual machine scratch diskette according to described quota Quota value;
At described storage server, get after described quota Quota value, described storage server can send to described virtual machine server by described quota Quota value, so that described virtual machine server is distributed the capability value of virtual machine scratch diskette according to described quota Quota value.
S207 when receiving the document creation request of described virtual machine server initiation, extracts redundant fashion and redundancy proportioning value from described redundant configuration information;
After described virtual machine server distributes the capability value of virtual machine scratch diskette, user can initiate document creation request by described virtual machine server.When described storage server receives the document creation request of described virtual machine server initiation, described storage server can extract redundant fashion and redundancy proportioning value from described redundant configuration information.
S208, sends to local distributed file system by described redundant fashion, redundancy proportioning value and the file that creates, by described distributed file system, created file is carried out to redundant configuration according to described redundant fashion and redundancy proportioning value;
After described storage server has extracted described redundant fashion and redundancy proportioning value, described storage server is by described redundant fashion, redundancy proportioning value and the file creating send to local distributed file system, by described distributed file system, created file is carried out to redundant configuration according to described redundant fashion and redundancy proportioning value, for example, the redundant fashion extracting is Erasure Code, redundancy proportioning value is 9:3, described distributed file system will split into 12 parts created file data, wherein 9 parts is valid data, 3 parts is checking data.
The redundant configuration information corresponding with user profile and quota Quota value that the embodiment of the present invention sends by receiving certificate server, can be according to described redundant configuration information, the file that the virtual machine corresponding with described user profile created carries out redundant configuration, and control by described quota Quota value the capability value that virtual machine server is distributed corresponding virtual machine scratch diskette, make distributed NAS storage to configure different redundancy proportionings to the virtual machine scratch diskette of different user, and be the virtual machine scratch diskette of different user assignment different capabilities value, to meet the desired redundancy proportioning of each user and quota Quota value, simultaneously because virtual machine scratch diskette can be shared and is mapped to storage server, so virtual machine server only need to have the virtual machine image file of installing operating system, thereby the migration and the clone that are conducive to virtual machine.
Further, then refer to Fig. 3, the schematic flow sheet of the method for the wherein a kind of dilatation providing for the embodiment of the present invention, described method comprises:
S301, whether the total capacity that detects the file creating is greater than described quota Quota value;
Concrete, the step of S301 can be carried out or the execution afterwards of the S204 in embodiment corresponding to above-mentioned Fig. 2 after the S102 in embodiment corresponding to above-mentioned Fig. 1, at described storage server, described certificate server detected by after to the authentication of described user profile, whether the total capacity that described storage server can detect created file is in real time greater than described quota Quota value, if detect, be less than described quota Quota value, described storage server can continue to receive the document creation request that described virtual machine server is initiated, and according to described redundant configuration information, created file is carried out to redundant configuration, if detect, be greater than described quota Quota value, illustrate that the capacity of virtual machine scratch diskette is full, now will carry out the step of S302.
S302, when the total capacity of created file being detected and be greater than described quota Quota value, send miscue information to the subscriber equipment that uses described virtual machine server so that described subscriber equipment send dilatation request to described certificate server to upgrade described quota Quota value;
When the total capacity of created file being detected and be greater than described quota Quota value, send miscue information to the subscriber equipment that uses described virtual machine server, to notify described in user the capacity of virtual machine scratch diskette full, now, described subscriber equipment can send dilatation request to described certificate server to upgrade described quota Quota value.
S303, when described virtual machine server being detected and reload virtual machine scratch diskette, receive described certificate server and send the quota Quota value after upgrading, and the quota Quota value after described renewal is sent to described virtual machine server, so that described virtual machine server is redistributed the capability value of virtual machine scratch diskette according to the quota Quota value after described renewal;
Concrete, when described storage server detects described virtual machine server and reloads virtual machine scratch diskette, virtual machine server will be initiated Share interlinkage and authentication request again, after described certificate server passes through the authentication of described user profile again, described storage server can receive the described redundant configuration information of described certificate server transmission and the quota Quota value after renewal, described storage server can send to described virtual machine server by the quota Quota value after described renewal, so that described virtual machine server is redistributed the capability value of virtual machine scratch diskette according to the quota Quota value after described renewal, make to increase the capacity of user's virtual machine scratch diskette, thereby user can continue to use virtual machine.
The embodiment of the present invention is by upgrading quota Quota value, make virtual machine server when reloading virtual machine scratch diskette, can redistribute according to the quota Quota value after upgrading the capability value of virtual machine scratch diskette, thereby can realize simply the dilatation to virtual machine scratch diskette, solve the problem of virtual machine scratch diskette dilatation difficulty.
Refer to Fig. 4, the schematic flow sheet of the method that another virtual machine providing for the embodiment of the present invention configures, described method comprises:
S401, receives the authentication request that storage server forwards, and described authentication request is the authentication request that carries user profile being sent by virtual machine server;
Concrete, certificate server can receive the authentication request that storage server forwards, and described authentication request is the authentication request that carries user profile being sent by virtual machine server.Wherein, described storage server can be distributed NAS storage server, and described user profile can comprise network address of user account, password and virtual machine server etc.
S402, authenticates described user profile according to described authentication request;
In described certificate server, preserve preset user account information and other information, whether the user profile that described certificate server can detect in described authentication request is present in described preset user account information, if do not exist, authentification failure, described virtual machine server cannot be connected to storage server; When the user profile in described authentication request being detected is present in described preset user account information, according to preset user account information, detect the legitimacy of the user profile in described authentication request, when described user profile being detected when legal, passed through the authentication to described user profile, otherwise, the authentification failure to described user profile.
S403, when when to the authentication of described user profile, the preset redundant configuration information corresponding with described user profile is sent to described storage server, so that the file that described storage server creates described virtual machine server according to described redundant configuration information carries out redundant configuration;
Concrete, when described certificate server is when to the authentication of described user profile, described certificate server can send to described storage server by the preset redundant configuration information corresponding with described user profile, so that the file that described storage server creates described virtual machine server according to described redundant configuration information carries out redundant configuration.Wherein, described storage server can receive the document creation request that described virtual machine server sends, now, the file that described storage server can create described virtual machine server according to the redundant configuration information getting from certificate server carries out redundant configuration.
The redundant configuration information corresponding with user profile that the embodiment of the present invention sends by receiving certificate server, storage server can be according to described redundant configuration information, the file that the virtual machine corresponding with described user profile created carries out redundant configuration, make distributed NAS storage to configure different redundancy proportionings to the virtual machine scratch diskette of different user, to meet the desired redundancy proportioning of each user.
Refer to again Fig. 5, the schematic flow sheet of the method that another virtual machine providing for the embodiment of the present invention configures, described method comprises:
S501, preset user account information, and be redundant configuration information and the quota Quota value of the preset correspondence of described user account information;
Certificate server can be according to the user account information of the preset correspondence of each user, and is redundant configuration information and the quota Quota value of the preset correspondence of described user account information.Wherein, described redundant configuration information comprises redundant fashion and redundancy proportioning value, and described quota Quota value refers to the capability value of virtual machine scratch diskette.
S502, receives the authentication request that storage server forwards, and described authentication request is the authentication request that carries user profile being sent by virtual machine server;
Concrete, described certificate server can receive the authentication request that storage server forwards, and described authentication request is the authentication request that carries user profile being sent by virtual machine server.Wherein, described virtual machine server is shared virtual machine scratch diskette to be mapped on described storage server, makes virtual machine server can initiate Share interlinkage and authentication request when loading described virtual machine scratch diskette.Described storage server can be distributed NAS storage server, and described user profile can comprise network address of user account, password and virtual machine server etc.
S503, authenticates described user profile according to described authentication request;
In described certificate server, preserve preset user account information and other information, whether the user profile that described certificate server can detect in described authentication request is present in described preset user account information, if do not exist, authentification failure, described virtual machine server cannot be connected to storage server; When the user profile in described authentication request being detected is present in described preset user account information, according to preset user account information, detect the legitimacy of the user profile in described authentication request, when described user profile being detected when legal, passed through the authentication to described user profile, otherwise, the authentification failure to described user profile.
S504, when when to the authentication of described subscriber equipment, sends to described storage server by the preset quota Quota value corresponding with described subscriber equipment;
When to the authentication of described subscriber equipment, described certificate server sends to described storage server by the preset quota Quota value corresponding with described subscriber equipment, so that described storage server sends to described virtual machine server to distribute the capability value of the virtual machine scratch diskette corresponding with described quota Quota value by described quota Quota value.
S505, and the preset redundant configuration information corresponding with described user profile is sent to described storage server;
Described certificate server also sends to described storage server by the preset redundant configuration information corresponding with described user profile, so that the file that described storage server creates described virtual machine server according to described redundant configuration information carries out redundant configuration.
S506, the dilatation request that reception is used the subscriber equipment of described virtual machine server to send, and upgrade described quota Quota value according to described dilatation request;
Concrete, when the capacity of virtual machine scratch diskette has been expired, use the subscriber equipment of described virtual machine server will initiate dilatation request, now, described certificate server can receive the dilatation request of using the subscriber equipment of described virtual machine server to send, and upgrades described quota Quota value according to described dilatation request.
S507, when described virtual machine server being detected and reload virtual machine scratch diskette, will send quota Quota value after upgrading to described storage server;
When certificate server is detected described virtual machine server and is reloaded virtual machine scratch diskette by storage server, described virtual machine server will be initiated Share interlinkage and authentication request again, after described certificate server passes through the authentication of described user profile again, certificate server can send quota Quota value after renewal to described storage server, so that described storage server sends to described virtual machine server to redistribute the capability value of the virtual machine scratch diskette corresponding with quota Quota value after described renewal by the quota Quota value after described renewal, simultaneously, described certificate server also can send to described redundant configuration information on described storage server again, so that the file that described storage server still can create described virtual machine server according to described redundant configuration information carries out redundant configuration.
The redundant configuration information corresponding with user profile and quota Quota value that the embodiment of the present invention sends by receiving certificate server, storage server can be according to described redundant configuration information, the file that the virtual machine corresponding with described user profile created carries out redundant configuration, and control by described quota Quota value the capability value that virtual machine server is distributed corresponding virtual machine scratch diskette, make distributed NAS storage to configure different redundancy proportionings to the virtual machine scratch diskette of different user, and be the virtual machine scratch diskette of different user assignment different capabilities value, to meet the desired redundancy proportioning of each user and quota Quota value, simultaneously by upgrading quota Quota value, make virtual machine server when reloading virtual machine scratch diskette, can redistribute according to the quota Quota value after upgrading the capability value of virtual machine scratch diskette, thereby can realize simply the dilatation to virtual machine scratch diskette, in addition, because virtual machine scratch diskette can be shared and is mapped to storage server, so virtual machine server only need to have the virtual machine image file of installing operating system, thereby be conducive to migration and the clone of virtual machine.
Refer to Fig. 6, the structural representation of the system that a kind of virtual machine providing for the embodiment of the present invention configures, described system comprises: storage server 1, certificate server 2, virtual machine server 3;
Described storage server 1, for when carrying out Share interlinkage with virtual machine server 3, the authentication request that carries user profile that sink virtual machine server 3 sends, and described authentication request is forwarded to certificate server 2, when the authentication of described certificate server 2 by described user profile, receive the preset redundant configuration information corresponding with described user profile that described certificate server 2 sends, and when receiving the document creation request of described virtual machine server 3 initiations, according to described redundant configuration information, created file is carried out to redundant configuration;
Described certificate server 2, the authentication request forwarding for receiving storage server 1, described authentication request is the authentication request that carries user profile being sent by virtual machine server 3, and according to described authentication request, described user profile is authenticated, when when to the authentication of described user profile, the preset redundant configuration information corresponding with described user profile is sent to described storage server 1;
Described virtual machine server 3, for when carrying out Share interlinkage with described storage server 1, transmission carries the authentication request of user profile to described storage server 1, also for Transmit message request to create, arrives described storage server 1.
Concrete, before storage server 1 and described virtual machine server 3 Share interlinkages, described virtual machine server 3 first installs user's virtual machine, entering described virtual machine is mapped to virtual machine scratch diskette under certain catalogue of storage server 1 by sharing again, now, user can use described virtual machine by subscriber equipment.Because virtual machine scratch diskette is mapped on storage server 1 by sharing, so when loading described virtual machine scratch diskette, described virtual machine server 3 will be initiated to the Share interlinkage of described storage server 1, and send authentication request, make described storage server 1 can sink virtual machine server 3 authentication request that carry user profile that send, and described authentication request is forwarded to certificate server 2.Wherein, described storage server 1 can be distributed NAS storage server 1, and described user profile can comprise network address of user account, password and virtual machine server 3 etc.
After described storage server 1 is forwarded to described certificate server 2 by described authentication request, whether storage server 1 can detect described certificate server 2 by the authentication to described user profile, or described certificate server 2 can send authentication result to described storage server 1, when the authentication of described certificate server 2 by described user profile, described storage server 1 can receive the preset redundant configuration information corresponding with described user profile that described certificate server 2 sends.Wherein, described redundant configuration information is in described certificate server 2, to be the preset redundant configuration information of the corresponding user of each user profile by IT keeper, and described redundant configuration information comprises redundant fashion and redundancy proportioning value.
After certificate server 2 passes through the authentication of described user profile, user can initiate document creation request by virtual machine, be that described storage server 1 can receive the document creation request that described virtual machine server 3 is initiated, now, described storage server 1 can carry out redundant configuration to created file according to the described redundant configuration information corresponding with described user profile getting, to created file, adopt corresponding redundant fashion and redundancy proportioning value to carry out redundant configuration, to realize, the file in each user's virtual machine scratch diskette is carried out to frequency converter.
Wherein, described storage server 1 specifically for when receiving the document creation request of described virtual machine server 3 initiations, extracts redundant fashion and redundancy proportioning value from described redundant configuration information;
Described redundant fashion, redundancy proportioning value and the file that creates are sent to local distributed file system, by described distributed file system, created file is carried out to redundant configuration according to described redundant fashion and redundancy proportioning value.
Wherein, described storage server 1, the preset quota Quota value corresponding with described subscriber equipment also sending for receiving described certificate server 2, and described quota Quota value is sent to described virtual machine server 3;
Described virtual machine server 3, the described quota Quota value also sending for receiving described storage server 1, and according to the capability value of described quota Quota value distribution virtual machine scratch diskette.
In addition, described storage server 1, also whether the total capacity for detection of created file is greater than described quota Quota value, and when the total capacity of created file being detected and be greater than described quota Quota value, send miscue information to the subscriber equipment that uses described virtual machine server 3, so that described subscriber equipment send dilatation request to described certificate server 2 to upgrade described quota Quota value, and when described virtual machine server 3 being detected and reload virtual machine scratch diskette, receive the quota Quota value that described certificate server 2 sends after upgrading, and the quota Quota value after described renewal is sent to described virtual machine server 3,
Described certificate server 2, the dilatation request also sending for receiving the subscriber equipment of the described virtual machine server 3 of use, and upgrade described quota Quota value according to described dilatation request, when described virtual machine server 3 being detected and reload virtual machine scratch diskette, will send quota Quota value after upgrading to described storage server 1;
Described virtual machine server 3, also for receiving the quota Quota value after the renewal that described storage server 1 sends, and redistributes the capability value of virtual machine scratch diskette according to the quota Quota value after described renewal.
Concrete, at described storage server 1, described certificate server 2 detected by after to the authentication of described user profile, whether the total capacity that described storage server 1 can detect created file is in real time greater than described quota Quota value, if detect, be less than described quota Quota value, described storage server 1 can continue to receive the document creation request that described virtual machine server 3 is initiated, and according to described redundant configuration information, created file is carried out to redundant configuration; If detect, be greater than described quota Quota value, illustrate that the capacity of virtual machine scratch diskette is full.
When the total capacity of created file being detected and be greater than described quota Quota value, send miscue information to the subscriber equipment that uses described virtual machine server 3, to notify described in user the capacity of virtual machine scratch diskette full, now, described subscriber equipment can send dilatation request to described certificate server 2 to upgrade described quota Quota value.
When described storage server 1 detects described virtual machine server 3 and reloads virtual machine scratch diskette, virtual machine server 3 will be initiated Share interlinkage and authentication request again, after described certificate server 2 passes through the authentication of described user profile again, described storage server 1 can receive the described redundant configuration information of described certificate server 2 transmissions and the quota Quota value after renewal, described storage server 1 can send to described virtual machine server 3 by the quota Quota value after described renewal, so that described virtual machine server 3 is redistributed the capability value of virtual machine scratch diskette according to the quota Quota value after described renewal, make to increase the capacity of user's virtual machine scratch diskette, thereby user can continue to use virtual machine.
Wherein, described certificate server 2, the dilatation request also sending for receiving the subscriber equipment of the described virtual machine server 3 of use, and upgrade described quota Quota value according to described dilatation request;
When described virtual machine server 3 being detected and reload virtual machine scratch diskette, by the quota Quota value after send upgrading to described storage server 1, so that described storage server 1 sends to described virtual machine server 3 to redistribute the capability value of the virtual machine scratch diskette corresponding with quota Quota value after described renewal by the quota Quota value after described renewal.
Concrete, when the capacity of virtual machine scratch diskette has been expired, use the subscriber equipment of described virtual machine server 3 will initiate dilatation request, now, described certificate server 2 can receive the dilatation request of using the subscriber equipment of described virtual machine server 3 to send, and upgrades described quota Quota value according to described dilatation request.
When certificate server 2 is detected described virtual machine server 3 and is reloaded virtual machine scratch diskette by storage server 1, described virtual machine server 3 will be initiated Share interlinkage and authentication request again, after described certificate server 2 passes through the authentication of described user profile again, certificate server 2 can send quota Quota value after renewal to described storage server 1, so that described storage server 1 sends to described virtual machine server 3 to redistribute the capability value of the virtual machine scratch diskette corresponding with quota Quota value after described renewal by the quota Quota value after described renewal, simultaneously, described certificate server 2 also can send to described redundant configuration information on described storage server 1 again, so that the file that described storage server 1 still can create described virtual machine server 3 according to described redundant configuration information carries out redundant configuration.
Wherein, described storage server 1, specifically for when carrying out Share interlinkage with virtual machine server 3, the authentication request that carries user profile that sink virtual machine server 3 sends, and detect the storage protocol that described authentication request that described virtual machine server 3 sends is used;
By the described storage protocol detecting, described authentication request is forwarded to the certificate server corresponding with described storage protocol 2.
Concrete, because virtual machine scratch diskette is mapped on storage server 1 by sharing, so when loading described virtual machine scratch diskette, described virtual machine server 3 will be initiated to the Share interlinkage of described storage server 1, and send authentication request, make described storage server 1 can sink virtual machine server 3 authentication request that carry user profile that send, now, described storage server 1 can also detect the storage protocol that described authentication request that described virtual machine server 3 sends is used.
Described storage server 1 can be forwarded to the certificate server corresponding with described storage protocol 2 by described authentication request by the described storage protocol detecting.Further, when used storage protocol being detected for SMB SMB agreement, by described SMB SMB agreement, described authentication request is forwarded to active directory server, and in follow-up flow process, described storage server 1 all carries out use SMB agreement and described certificate server 2 and described virtual machine server 3 alternately; Or, when used storage protocol being detected for NFS NFS agreement, by described NFS NFS agreement, described authentication request is forwarded to Light Directory Access Protocol ldap server, and in follow-up flow process, described storage server 1 all carries out use NFS agreement and described certificate server 2 and described virtual machine server 3 alternately.
Wherein, the virtual machine scratch diskette in described virtual machine server 3 is mapped in described storage server 1 by sharing, and makes 3 virtual machine image file that need to have installing operating system of described virtual machine server.
The redundant configuration information corresponding with user profile and quota Quota value that the embodiment of the present invention sends by receiving certificate server 2, storage server 1 can be according to described redundant configuration information, the file that the virtual machine corresponding with described user profile created carries out redundant configuration, and control by described quota Quota value the capability value that virtual machine server 3 is distributed corresponding virtual machine scratch diskette, make distributed NAS storage to configure different redundancy proportionings to the virtual machine scratch diskette of different user, and be the virtual machine scratch diskette of different user assignment different capabilities value, to meet the desired redundancy proportioning of each user and quota Quota value, simultaneously by upgrading quota Quota value, make virtual machine server 3 when reloading virtual machine scratch diskette, can redistribute according to the quota Quota value after upgrading the capability value of virtual machine scratch diskette, thereby can realize simply the dilatation to virtual machine scratch diskette.
Below the storage server 1 in Fig. 6 and certificate server 2 are elaborated.
Concrete, refer to Fig. 7, the structural representation of a kind of storage server 1 providing for the embodiment of the present invention, described storage server 1 comprises: receive forwarding module 11, first information receiver module 12, configuration module 13;
Described reception forwarding module 11, for when carrying out Share interlinkage with virtual machine server 3, the authentication request that carries user profile that sink virtual machine server 3 sends, and described authentication request is forwarded to certificate server 2;
Concrete, when carrying out Share interlinkage with virtual machine server 3, the authentication request that carries user profile that described reception forwarding module 11 can send sink virtual machine server 3, and described authentication request is forwarded to certificate server 2.In addition, before storage server 1 and described virtual machine server 3 Share interlinkages, described virtual machine server 3 first installs user's virtual machine, entering described virtual machine is mapped to virtual machine scratch diskette under certain catalogue of storage server 1 by sharing again, now, user can use described virtual machine by subscriber equipment.Because virtual machine scratch diskette is mapped on storage server 1 by sharing, so when loading described virtual machine scratch diskette, described virtual machine server 3 will be initiated to the Share interlinkage of described storage server 1, and send authentication request, make described reception forwarding module 11 can sink virtual machine server 3 authentication request that carry user profile that send, and described authentication request is forwarded to certificate server 2.Wherein, described storage server 1 can be distributed NAS storage server, and described user profile can comprise network address of user account, password and virtual machine server 3 etc.
Described first information receiver module 12, for when the authentication of described certificate server 2 by described user profile, receives the preset redundant configuration information corresponding with described user profile that described certificate server 2 sends;
Concrete, after described reception forwarding module 11 is forwarded to described certificate server 2 by described authentication request, whether described first information receiver module 12 can detect described certificate server 2 by the authentication to described user profile, or directly send authentication result to described storage server 1 by described certificate server 2, when the authentication of described certificate server 2 by described user profile, described first information receiver module 12 can receive the preset redundant configuration information corresponding with described user profile that described certificate server 2 sends.Wherein, described redundant configuration information is in described certificate server 2, to be the preset redundant configuration information of the corresponding user of each user profile by IT keeper, and described redundant configuration information comprises redundant fashion and redundancy proportioning value.
Described configuration module 13, for when receiving the document creation request of described virtual machine server 3 initiations, carries out redundant configuration according to described redundant configuration information to created file;
Concrete, after certificate server 2 passes through the authentication of described user profile, user can initiate document creation request by virtual machine, be that described storage server 1 can receive the document creation request that described virtual machine server 3 is initiated, now, described configuration module 13 can carry out redundant configuration to created file according to the described redundant configuration information corresponding with described user profile getting, be that 13 pairs of files that create of described configuration module adopt corresponding redundant fashion and redundancy proportioning value to carry out redundant configuration, to realize, the file in each user's virtual machine scratch diskette is carried out to frequency converter.
The redundant configuration information corresponding with user profile that the embodiment of the present invention sends by receiving certificate server 2, can be according to described redundant configuration information, the file that the virtual machine corresponding with described user profile created carries out redundant configuration, make distributed NAS storage to configure different redundancy proportionings to the virtual machine scratch diskette of different user, to meet the desired redundancy proportioning of each user, simultaneously because virtual machine scratch diskette can be shared and is mapped to storage server 1, so 3 virtual machine image file that need to have installing operating system of virtual machine server, thereby the migration and the clone that are conducive to virtual machine.
Refer to again Fig. 8, the structural representation of the another kind of storage server 1 providing for the embodiment of the present invention, described storage server 1 can comprise: receive forwarding module 11, first information receiver module 12, configuration module 13, catalogue preset module 14, the second information receiving module 15, quota value sending module 16, capacity check module 17, prompting sending module 18, upgrade acquisition module 19;
Described reception forwarding module 11, for when carrying out Share interlinkage with virtual machine server 3, the authentication request that carries user profile that sink virtual machine server 3 sends, and described authentication request is forwarded to certificate server 2;
Concrete, when carrying out Share interlinkage with virtual machine server 3, the authentication request that carries user profile that described reception forwarding module 11 can send sink virtual machine server 3, and described authentication request is forwarded to certificate server 2.In addition, before storage server 1 and described virtual machine server 3 Share interlinkages, described virtual machine server 3 first installs user's virtual machine, entering described virtual machine is mapped to virtual machine scratch diskette under certain catalogue of storage server 1 by sharing again, now, user can use described virtual machine by subscriber equipment.Because virtual machine scratch diskette is mapped on storage server 1 by sharing, so when loading described virtual machine scratch diskette, described virtual machine server 3 will be initiated to the Share interlinkage of described storage server 1, and send authentication request, make described reception forwarding module 11 can sink virtual machine server 3 authentication request that carry user profile that send, and described authentication request is forwarded to certificate server 2.Wherein, described storage server 1 can be distributed NAS storage server, and described user profile can comprise network address of user account, password and virtual machine server 3 etc.
Described first information receiver module 12, for when the authentication of described certificate server 2 by described user profile, receives the preset redundant configuration information corresponding with described user profile that described certificate server 2 sends;
Concrete, after described reception forwarding module 11 is forwarded to described certificate server 2 by described authentication request, whether described first information receiver module 12 can detect described certificate server 2 by the authentication to described user profile, or directly send authentication result to described storage server 1 by described certificate server 2, when the authentication of described certificate server 2 by described user profile, described first information receiver module 12 can receive the preset redundant configuration information corresponding with described user profile that described certificate server 2 sends.Wherein, described redundant configuration information is in described certificate server 2, to be the preset redundant configuration information of the corresponding user of each user profile by IT keeper, and described redundant configuration information comprises redundant fashion and redundancy proportioning value.
Described configuration module 13, for when receiving the document creation request of described virtual machine server 3 initiations, carries out redundant configuration according to described redundant configuration information to created file;
Concrete, after certificate server 2 passes through the authentication of described user profile, user can initiate document creation request by virtual machine, be that described storage server 1 can receive the document creation request that described virtual machine server 3 is initiated, now, described configuration module 13 can carry out redundant configuration to created file according to the described redundant configuration information corresponding with described user profile getting, be that 13 pairs of files that create of described configuration module adopt corresponding redundant fashion and redundancy proportioning value to carry out redundant configuration, to realize, the file in each user's virtual machine scratch diskette is carried out to frequency converter.
Described catalogue preset module 14, for share directory corresponding to preset and described virtual machine server 3;
Wherein, the virtual machine scratch diskette in described share directory and described virtual machine server 3 is for sharing mapping relations.Before storage server 1 and described virtual machine server 3 Share interlinkages, described catalogue preset module 14 can share directory corresponding to preset and described virtual machine server 3, described virtual machine server 3 first installs user's virtual machine simultaneously, entering described virtual machine is mapped to virtual machine scratch diskette under share directory preset in storage server 1 by sharing again, now, user can use described virtual machine by subscriber equipment.
Described the second information receiving module 15, the preset quota Quota value corresponding with described subscriber equipment sending for receiving described certificate server 2;
When the authentication of described certificate server 2 by described user profile being detected, can also receive the preset quota Quota value corresponding with described subscriber equipment that described certificate server 2 sends by described the second information receiving module 15, described quota Quota value refers to the capability value of virtual machine scratch diskette, and described quota Quota value is also by IT keeper, in described certificate server 2, to be the preset quota Quota value of the corresponding user of each user profile.
Described quota value sending module 16, for described quota Quota value is sent to described virtual machine server 3, so that described virtual machine server 3 is distributed the capability value of virtual machine scratch diskette according to described quota Quota value;
At described the second information receiving module 15, receive after described quota Quota value, described quota value sending module 16 can send to described virtual machine server 3 by described quota Quota value, so that described virtual machine server 3 is distributed the capability value of virtual machine scratch diskette according to described quota Quota value.
Whether described capacity check module 17, be greater than described quota Quota value for detection of the total capacity of created file;
Concrete, at described storage server 1, described certificate server 2 detected by after to the authentication of described user profile, whether the total capacity that described capacity check module 17 can detect created file is in real time greater than described quota Quota value, if described capacity check module 17 detects, be less than described quota Quota value, described capacity check module 17 can notify described configuration module 13 to continue receive the document creation request of described virtual machine server 3 initiations and according to described redundant configuration information, created file carried out to redundant configuration; If described capacity check module 17 detects, be greater than described quota Quota value, illustrate that the capacity of virtual machine scratch diskette is full, now described capacity check module 17 can notify described prompting sending module 18 to carry out corresponding operating.
Described prompting sending module 18, for when the total capacity of created file being detected and be greater than described quota Quota value, send miscue information to the subscriber equipment that uses described virtual machine server 3 so that described subscriber equipment send dilatation request to described certificate server 2 to upgrade described quota Quota value;
When the total capacity that created file detected when described capacity check module 17 is greater than described quota Quota value, described prompting sending module 18 can send miscue information to the subscriber equipment that uses described virtual machine server 3, to notify described in user the capacity of virtual machine scratch diskette full, now, described subscriber equipment can send dilatation request to described certificate server 2 to upgrade described quota Quota value.
Described renewal acquisition module 19, for when described virtual machine server 3 being detected and reload virtual machine scratch diskette, receive the quota Quota value that described certificate server 2 sends after upgrading, and the quota Quota value after described renewal is sent to described virtual machine server 3, so that described virtual machine server 3 is redistributed the capability value of virtual machine scratch diskette according to the quota Quota value after described renewal;
Concrete, when described storage server 1 detects described virtual machine server 3 and reloads virtual machine scratch diskette, virtual machine server 3 will be initiated Share interlinkage and authentication request again, after described certificate server 2 passes through the authentication of described user profile again, described renewal acquisition module 19 can receive the described redundant configuration information of described certificate server 2 transmissions and the quota Quota value after renewal, described renewal acquisition module 19 can also send to described virtual machine server 3 by the quota Quota value after described renewal, so that described virtual machine server 3 is redistributed the capability value of virtual machine scratch diskette according to the quota Quota value after described renewal, make to increase the capacity of user's virtual machine scratch diskette, thereby user can continue to use virtual machine.
Further, then refer to Fig. 9, the structural representation of a kind of configuration module 13 providing for the embodiment of the present invention, described configuration module 13 can comprise: extraction unit 131, redundant configuration unit 132;
Described extraction unit 131 for when receiving the document creation request of described virtual machine server 3 initiations, extracts redundant fashion and redundancy proportioning value from described redundant configuration information;
After described virtual machine server 3 distributes the capability value of virtual machine scratch diskette, user can initiate document creation request by described virtual machine server 3.When described storage server 1 receives the document creation request of described virtual machine server 3 initiations, described extraction unit 131 can extract redundant fashion and redundancy proportioning value from described redundant configuration information.
Described redundant configuration unit 132, for described redundant fashion, redundancy proportioning value and the file that creates are sent to local distributed file system, by described distributed file system, created file is carried out to redundant configuration according to described redundant fashion and redundancy proportioning value;
After described extraction unit 131 has extracted described redundant fashion and redundancy proportioning value, described redundant configuration unit 132 is by described redundant fashion, redundancy proportioning value and the file creating send to local distributed file system, by described distributed file system, created file is carried out to redundant configuration according to described redundant fashion and redundancy proportioning value, for example, the redundant fashion that described extraction unit 131 extracts is Erasure Code, redundancy proportioning value is 9:3, described redundant configuration unit 132 will split into 12 parts created file data by described distributed file system, wherein 9 parts is valid data, 3 parts is checking data.
Further, then referring to Figure 10, is a kind of structural representation that receives forwarding module 11 that the embodiment of the present invention provides, and described reception forwarding module 11 can comprise: protocol detection unit 111, protocol forward unit 112;
Described protocol detection unit 111, for when carrying out Share interlinkage with virtual machine server 3, the authentication request that carries user profile that sink virtual machine server 3 is sent, and detect the storage protocol that described authentication request that described virtual machine server 3 sends is used;
Because virtual machine scratch diskette is mapped on storage server 1 by sharing, so when loading described virtual machine scratch diskette, described virtual machine server 3 will be initiated to the Share interlinkage of described storage server 1, and send authentication request, make described protocol detection unit 111 can sink virtual machine server 3 authentication request that carry user profile that send, now, described protocol detection unit 111 can also detect the storage protocol that described authentication request that described virtual machine server 3 sends is used.
Described protocol forward unit 112, is forwarded to the certificate server corresponding with described storage protocol 2 for the described storage protocol by detecting by described authentication request;
Wherein, described protocol forward unit 112 can comprise:
First forwards subelement 1121, for when used storage protocol being detected for SMB SMB agreement, by described SMB SMB agreement, described authentication request is forwarded to active directory server;
Second forwards subelement 1122, for when used storage protocol being detected for NFS NFS agreement, by described NFS NFS agreement, described authentication request is forwarded to Light Directory Access Protocol ldap server.
The redundant configuration information corresponding with user profile and quota Quota value that the embodiment of the present invention sends by receiving certificate server 2, storage server 1 can be according to described redundant configuration information, the file that the virtual machine corresponding with described user profile created carries out redundant configuration, and control by described quota Quota value the capability value that virtual machine server 3 is distributed corresponding virtual machine scratch diskette, make distributed NAS storage to configure different redundancy proportionings to the virtual machine scratch diskette of different user, and be the virtual machine scratch diskette of different user assignment different capabilities value, to meet the desired redundancy proportioning of each user and quota Quota value, simultaneously by upgrading quota Quota value, make virtual machine server 3 when reloading virtual machine scratch diskette, can redistribute according to the quota Quota value after upgrading the capability value of virtual machine scratch diskette, thereby can realize simply the dilatation to virtual machine scratch diskette, in addition, because virtual machine scratch diskette can be shared and is mapped to storage server 1, thus 3 virtual machine image file that need to have installing operating system of virtual machine server, thus be conducive to migration and the clone of virtual machine.
Refer to Figure 11, the structural representation of a kind of certificate server 2 providing for the embodiment of the present invention, described certificate server 2 comprises: request receiving module 21, authentication module 22, information sending module 23;
Described request receiver module 21, the authentication request forwarding for receiving storage server 1, described authentication request is the authentication request that carries user profile being sent by virtual machine server 3;
Concrete, described request receiver module 21 can receive the authentication request that storage server 1 forwards, and described authentication request is the authentication request that carries user profile being sent by virtual machine server 3.Wherein, described storage server 1 can be distributed NAS storage server, and described user profile can comprise network address of user account, password and virtual machine server 3 etc.
Described authentication module 22, for authenticating described user profile according to described authentication request;
In described certificate server 2, preserve preset user account information and other information, whether the user profile that described authentication module 22 can detect in described authentication request is present in described preset user account information, if do not exist, authentification failure, described virtual machine server 3 cannot be connected to storage server 1; When described authentication module 22 detects user profile in described authentication request and is present in described preset user account information, described authentication module 22 can detect according to preset user account information the legitimacy of the user profile in described authentication request, when described user profile being detected when legal, described authentication module 22 has passed through the authentication to described user profile, otherwise, the authentification failure to described user profile.
Described information sending module 23, during for authentication when passing through described user profile, the preset redundant configuration information corresponding with described user profile is sent to described storage server 1, so that the file that described storage server 1 creates described virtual machine server 3 according to described redundant configuration information carries out redundant configuration;
Concrete, when the authentication of described authentication module 22 by described user profile, described information sending module 23 can send to described storage server 1 by the preset redundant configuration information corresponding with described user profile, so that the file that described storage server 1 creates described virtual machine server 3 according to described redundant configuration information carries out redundant configuration.Wherein, described storage server 1 can receive the document creation request that described virtual machine server 3 sends, now, the file that described storage server 1 can create described virtual machine server 3 according to the redundant configuration information getting from certificate server 2 carries out redundant configuration.
The redundant configuration information corresponding with user profile that the embodiment of the present invention sends by receiving certificate server 2, storage server 1 can be according to described redundant configuration information, the file that the virtual machine corresponding with described user profile created carries out redundant configuration, make distributed NAS storage to configure different redundancy proportionings to the virtual machine scratch diskette of different user, to meet the desired redundancy proportioning of each user.
Refer to again Figure 12, the structural representation of the another kind of certificate server 2 providing for the embodiment of the present invention, described certificate server 2 can comprise information preset module 24, request receiving module 21, authentication module 22, information sending module 23, receives update module 25, upgrade sending module 26;
Described information preset module 24 for preset user account information, and is redundant configuration information and the quota Quota value of the preset correspondence of described user account information;
Described information preset module 24 can be according to the user account information of the preset correspondence of each user, and is redundant configuration information and the quota Quota value of the preset correspondence of described user account information.Wherein, described redundant configuration information comprises redundant fashion and redundancy proportioning value, and described quota Quota value refers to the capability value of virtual machine scratch diskette.
Described request receiver module 21, the authentication request forwarding for receiving storage server 1, described authentication request is the authentication request that carries user profile being sent by virtual machine server 3;
Concrete, described request receiver module 21 can receive the authentication request that storage server 1 forwards, and described authentication request is the authentication request that carries user profile being sent by virtual machine server 3.Wherein, described virtual machine server 3 is shared virtual machine scratch diskette to be mapped on described storage server 1, makes virtual machine server 3 can initiate Share interlinkage and authentication request when loading described virtual machine scratch diskette.Described storage server 1 can be distributed NAS storage server, and described user profile can comprise network address of user account, password and virtual machine server 3 etc.
Described authentication module 22, for authenticating described user profile according to described authentication request;
In described certificate server 2, preserve preset user account information and other information, whether the user profile that described authentication module 22 can detect in described authentication request is present in described preset user account information, if do not exist, authentification failure, described virtual machine server 3 cannot be connected to storage server 1; When described authentication module 22 detects user profile in described authentication request and is present in described preset user account information, described authentication module 22 can detect according to preset user account information the legitimacy of the user profile in described authentication request, when described user profile being detected when legal, described authentication module 22 has passed through the authentication to described user profile, otherwise, the authentification failure to described user profile.
Described information sending module 23, during for authentication when passing through described user profile, the preset redundant configuration information corresponding with described user profile is sent to described storage server 1, so that the file that described storage server 1 creates described virtual machine server 3 according to described redundant configuration information carries out redundant configuration;
Concrete, when the authentication of described authentication module 22 by described user profile, described information sending module 23 can send to described storage server 1 by the preset redundant configuration information corresponding with described user profile, so that the file that described storage server 1 creates described virtual machine server 3 according to described redundant configuration information carries out redundant configuration.
Described information sending module 23 can also be for when when to the authentication of described subscriber equipment, the preset quota Quota value corresponding with described subscriber equipment sent to described storage server 1, so that described storage server 1 sends to described virtual machine server 3 to distribute the capability value of the virtual machine scratch diskette corresponding with described quota Quota value by described quota Quota value.
Described reception update module 25, the dilatation request sending for receiving the subscriber equipment of the described virtual machine server 3 of use, and upgrade described quota Quota value according to described dilatation request;
Concrete, when the capacity of virtual machine scratch diskette has been expired, use the subscriber equipment of described virtual machine server 3 will initiate dilatation request, now, described reception update module 25 can receive the dilatation request of using the subscriber equipment of described virtual machine server 3 to send, and upgrades described quota Quota value according to described dilatation request.
Described renewal sending module 26, for when described virtual machine server 3 being detected and reload virtual machine scratch diskette, by the quota Quota value after send upgrading to described storage server 1, so that described storage server 1 sends to described virtual machine server 3 to redistribute the capability value of the virtual machine scratch diskette corresponding with quota Quota value after described renewal by the quota Quota value after described renewal;
When certificate server 2 is detected described virtual machine server 3 and is reloaded virtual machine scratch diskette by storage server 1, described virtual machine server 3 will be initiated Share interlinkage and authentication request again, after described certificate server 2 passes through the authentication of described user profile again, described renewal sending module 26 can send quota Quota value after renewal to described storage server 1, so that described storage server 1 sends to described virtual machine server 3 to redistribute the capability value of the virtual machine scratch diskette corresponding with quota Quota value after described renewal by the quota Quota value after described renewal, simultaneously, described renewal sending module 26 also can send to described redundant configuration information on described storage server 1 again, so that the file that described storage server 1 still can create described virtual machine server 3 according to described redundant configuration information carries out redundant configuration.
The redundant configuration information corresponding with user profile and quota Quota value that the embodiment of the present invention sends by receiving certificate server 2, storage server 1 can be according to described redundant configuration information, the file that the virtual machine corresponding with described user profile created carries out redundant configuration, and control by described quota Quota value the capability value that virtual machine server 3 is distributed corresponding virtual machine scratch diskette, make distributed NAS storage to configure different redundancy proportionings to the virtual machine scratch diskette of different user, and be the virtual machine scratch diskette of different user assignment different capabilities value, to meet the desired redundancy proportioning of each user and quota Quota value, simultaneously by upgrading quota Quota value, make virtual machine server 3 when reloading virtual machine scratch diskette, can redistribute according to the quota Quota value after upgrading the capability value of virtual machine scratch diskette, thereby can realize simply the dilatation to virtual machine scratch diskette, in addition, because virtual machine scratch diskette can be shared and is mapped to storage server 1, thus 3 virtual machine image file that need to have installing operating system of virtual machine server, thus be conducive to migration and the clone of virtual machine.
The embodiment of the present invention provides another storage server, and described storage server can comprise processor, communication interface and memory (quantity of the processor in storage server can for one or more).In some embodiments of the present invention, processor, communication interface and memory can be connected by communication bus or other modes.
Wherein, described communication interface, for communicating with certificate server and virtual machine server;
Described memory is for storage program;
Described processor is used for carrying out described program, to realize
When carrying out Share interlinkage with virtual machine server, the authentication request that carries user profile that sink virtual machine server sends, and described authentication request is forwarded to certificate server;
When described certificate server is when to the authentication of described user profile, receive the preset redundant configuration information corresponding with described user profile that described certificate server sends;
When receiving the document creation request of described virtual machine server initiation, according to described redundant configuration information, created file is carried out to redundant configuration.
Concrete, before storage server and described virtual machine server Share interlinkage, described virtual machine server first installs user's virtual machine, entering described virtual machine is mapped to virtual machine scratch diskette under certain catalogue of storage server by sharing again, now, user can use described virtual machine by subscriber equipment.Because virtual machine scratch diskette is mapped on storage server by sharing, so when loading described virtual machine scratch diskette, described virtual machine server will be initiated to the Share interlinkage of described storage server, and send authentication request, the authentication request that carries user profile that described storage server can sink virtual machine server be sent, and described authentication request is forwarded to certificate server.Wherein, described storage server can be distributed NAS storage server, and described user profile can comprise network address of user account, password and virtual machine server etc.
After described storage server is forwarded to described certificate server by described authentication request, whether storage server can detect described certificate server by the authentication to described user profile, or described certificate server can send authentication result to described storage server, when described certificate server is when to the authentication of described user profile, described storage server can receive the preset redundant configuration information corresponding with described user profile that described certificate server sends.Wherein, described redundant configuration information is in described certificate server, to be the preset redundant configuration information of the corresponding user of each user profile by IT keeper, and described redundant configuration information comprises redundant fashion and redundancy proportioning value.
After certificate server passes through the authentication of described user profile, user can initiate document creation request by virtual machine, be that described storage server can receive the document creation request that described virtual machine server is initiated, now, described storage server can carry out redundant configuration to created file according to the described redundant configuration information corresponding with described user profile getting, to created file, adopt corresponding redundant fashion and redundancy proportioning value to carry out redundant configuration, to realize, the file in each user's virtual machine scratch diskette is carried out to frequency converter.
Wherein, described processor carry out described while created file being carried out to the step of redundant configuration according to described redundant configuration information, specifically for:
When receiving the document creation request of described virtual machine server initiation, from described redundant configuration information, extract redundant fashion and redundancy proportioning value;
Described redundant fashion, redundancy proportioning value and the file that creates are sent to local distributed file system, by described distributed file system, created file is carried out to redundant configuration according to described redundant fashion and redundancy proportioning value.
Concrete, after described virtual machine server distributes the capability value of virtual machine scratch diskette, user can initiate document creation request by described virtual machine server.When described storage server receives the document creation request of described virtual machine server initiation, described storage server can extract redundant fashion and redundancy proportioning value from described redundant configuration information.
After described storage server has extracted described redundant fashion and redundancy proportioning value, described storage server is by described redundant fashion, redundancy proportioning value and the file creating send to local distributed file system, by described distributed file system, created file is carried out to redundant configuration according to described redundant fashion and redundancy proportioning value, for example, the redundant fashion extracting is Erasure Code, redundancy proportioning value is 9:3, described distributed file system will split into 12 parts created file data, wherein 9 parts is valid data, 3 parts is checking data.
Described processor also for:
Receive the preset quota Quota value corresponding with described subscriber equipment that described certificate server sends;
Described quota Quota value is sent to described virtual machine server, so that described virtual machine server is distributed the capability value of virtual machine scratch diskette according to described quota Quota value.
Concrete, at described storage server, get after described quota Quota value, described storage server can send to described virtual machine server by described quota Quota value, so that described virtual machine server is distributed the capability value of virtual machine scratch diskette according to described quota Quota value.
Wherein, described processor also for:
Whether the total capacity that detects the file creating is greater than described quota Quota value;
When the total capacity of created file being detected and be greater than described quota Quota value, send miscue information to the subscriber equipment that uses described virtual machine server so that described subscriber equipment send dilatation request to described certificate server to upgrade described quota Quota value;
When described virtual machine server being detected and reload virtual machine scratch diskette, receive described certificate server and send the quota Quota value after upgrading, and the quota Quota value after described renewal is sent to described virtual machine server, so that described virtual machine server is redistributed the capability value of virtual machine scratch diskette according to the quota Quota value after described renewal.
Concrete, at described storage server, described certificate server detected by after to the authentication of described user profile, whether the total capacity that described storage server can detect created file is in real time greater than described quota Quota value, if detect, be less than described quota Quota value, described storage server can continue to receive the document creation request that described virtual machine server is initiated, and according to described redundant configuration information, created file is carried out to redundant configuration; If detect, be greater than described quota Quota value, illustrate that the capacity of virtual machine scratch diskette is full.
When the total capacity of created file being detected and be greater than described quota Quota value, send miscue information to the subscriber equipment that uses described virtual machine server, to notify described in user the capacity of virtual machine scratch diskette full, now, described subscriber equipment can send dilatation request to described certificate server to upgrade described quota Quota value.
When described storage server detects described virtual machine server and reloads virtual machine scratch diskette, virtual machine server will be initiated Share interlinkage and authentication request again, after described certificate server passes through the authentication of described user profile again, described storage server can receive the described redundant configuration information of described certificate server transmission and the quota Quota value after renewal, described storage server can send to described virtual machine server by the quota Quota value after described renewal, so that described virtual machine server is redistributed the capability value of virtual machine scratch diskette according to the quota Quota value after described renewal, make to increase the capacity of user's virtual machine scratch diskette, thereby user can continue to use virtual machine.
Wherein, described processor also for:
Share directory corresponding to preset and described virtual machine server;
Wherein, the virtual machine scratch diskette in described share directory and described virtual machine server is for sharing mapping relations.
Concrete, before storage server and described virtual machine server Share interlinkage, described storage server can share directory corresponding to preset and described virtual machine server, described virtual machine server first installs user's virtual machine simultaneously, entering described virtual machine is mapped to virtual machine scratch diskette under share directory preset in storage server by sharing again, now, user can use described virtual machine by subscriber equipment.
Wherein, described processor carry out described when carry out Share interlinkage with virtual machine server, the authentication request that carries user profile of sink virtual machine server transmission, and when described authentication request is forwarded to the step of certificate server, specifically for:
When carrying out Share interlinkage with virtual machine server, the authentication request that carries user profile that sink virtual machine server sends, and detect the storage protocol that described authentication request that described virtual machine server sends is used;
By the described storage protocol detecting, described authentication request is forwarded to the certificate server corresponding with described storage protocol.
Concrete, because virtual machine scratch diskette is mapped on storage server by sharing, so when loading described virtual machine scratch diskette, described virtual machine server will be initiated to the Share interlinkage of described storage server, and send authentication request, the authentication request that carries user profile that described storage server can sink virtual machine server be sent, now, described storage server can also detect the storage protocol that described authentication request that described virtual machine server sends is used.
Wherein, when described processor is forwarded to the step of the certificate server corresponding with described storage protocol by the described storage protocol detecting by described authentication request described in carrying out, specifically for:
When used storage protocol being detected for SMB SMB agreement, by described SMB SMB agreement, described authentication request is forwarded to active directory server; Or,
When used storage protocol being detected for NFS NFS agreement, by described NFS NFS agreement, described authentication request is forwarded to Light Directory Access Protocol ldap server.
Concrete, described storage server can be forwarded to the certificate server corresponding with described storage protocol by described authentication request by the described storage protocol detecting.Further, when used storage protocol being detected for SMB SMB agreement, by described SMB SMB agreement, described authentication request is forwarded to active directory server, and in follow-up flow process, described storage server all carries out use SMB agreement and described certificate server and described virtual machine server alternately; Or, when used storage protocol being detected for NFS NFS agreement, by described NFS NFS agreement, described authentication request is forwarded to Light Directory Access Protocol ldap server, and in follow-up flow process, described storage server all carries out use NFS agreement and described certificate server and described virtual machine server alternately.
The redundant configuration information corresponding with user profile and quota Quota value that the embodiment of the present invention sends by receiving certificate server, can be according to described redundant configuration information, the file that the virtual machine corresponding with described user profile created carries out redundant configuration, and control by described quota Quota value the capability value that virtual machine server is distributed corresponding virtual machine scratch diskette, make distributed NAS storage to configure different redundancy proportionings to the virtual machine scratch diskette of different user, and be the virtual machine scratch diskette of different user assignment different capabilities value, to meet the desired redundancy proportioning of each user and quota Quota value, simultaneously because virtual machine scratch diskette can be shared and is mapped to storage server, so virtual machine server only need to have the virtual machine image file of installing operating system, thereby the migration and the clone that are conducive to virtual machine.
The embodiment of the present invention provides another certificate server, and described certificate server can comprise processor, communication interface and memory (quantity of the processor in certificate server can for one or more).In some embodiments of the present invention, processor, communication interface and memory can be connected by communication bus or other modes.
Wherein, described communication interface, for communicating with storage server;
Described memory is for storage program;
Described processor is used for carrying out described program, to realize
Receive the authentication request that storage server forwards, described authentication request is the authentication request that carries user profile being sent by virtual machine server;
According to described authentication request, described user profile is authenticated;
When to the authentication of described user profile, the preset redundant configuration information corresponding with described user profile is sent to described storage server, so that the file that described storage server creates described virtual machine server according to described redundant configuration information carries out redundant configuration.
Concrete, certificate server can receive the authentication request that storage server forwards, and described authentication request is the authentication request that carries user profile being sent by virtual machine server.Wherein, described storage server can be distributed NAS storage server, and described user profile can comprise network address of user account, password and virtual machine server etc.
In described certificate server, preserve preset user account information and other information, whether the user profile that described certificate server can detect in described authentication request is present in described preset user account information, if do not exist, authentification failure, described virtual machine server cannot be connected to storage server; When the user profile in described authentication request being detected is present in described preset user account information, according to preset user account information, detect the legitimacy of the user profile in described authentication request, when described user profile being detected when legal, passed through the authentication to described user profile, otherwise, the authentification failure to described user profile.
When described certificate server is when to the authentication of described user profile, described certificate server can send to described storage server by the preset redundant configuration information corresponding with described user profile, so that the file that described storage server creates described virtual machine server according to described redundant configuration information carries out redundant configuration.Wherein, described storage server can receive the document creation request that described virtual machine server sends, now, the file that described storage server can create described virtual machine server according to the redundant configuration information getting from certificate server carries out redundant configuration.
Wherein, described processor also for:
Preset user account information, and be redundant configuration information and the quota Quota value of the preset correspondence of described user account information;
Wherein, described redundant configuration information comprises redundant fashion and redundancy proportioning value.
Certificate server can be according to the user account information of the preset correspondence of each user, and is redundant configuration information and the quota Quota value of the preset correspondence of described user account information.Wherein, described redundant configuration information comprises redundant fashion and redundancy proportioning value, and described quota Quota value refers to the capability value of virtual machine scratch diskette.
Described processor carry out described when pass through described user profile authentication time, the preset redundant configuration information corresponding with described user profile is sent to described storage server, so that the file that described storage server creates described virtual machine server according to described redundant configuration information is while carrying out the step of redundant configuration, specifically for:
When to the authentication of described subscriber equipment, the preset quota Quota value corresponding with described subscriber equipment sent to described storage server, so that described storage server sends to described virtual machine server to distribute the capability value of the virtual machine scratch diskette corresponding with described quota Quota value by described quota Quota value;
And the preset redundant configuration information corresponding with described user profile is sent to described storage server, so that the file that described storage server creates described virtual machine server according to described redundant configuration information carries out redundant configuration.
Wherein, described processor also for:
The dilatation request that reception is used the subscriber equipment of described virtual machine server to send, and upgrade described quota Quota value according to described dilatation request;
When described virtual machine server being detected and reload virtual machine scratch diskette, by the quota Quota value after send upgrading to described storage server, so that described storage server sends to described virtual machine server to redistribute the capability value of the virtual machine scratch diskette corresponding with quota Quota value after described renewal by the quota Quota value after described renewal.
Concrete, when the capacity of virtual machine scratch diskette has been expired, use the subscriber equipment of described virtual machine server will initiate dilatation request, now, described certificate server can receive the dilatation request of using the subscriber equipment of described virtual machine server to send, and upgrades described quota Quota value according to described dilatation request.
When certificate server is detected described virtual machine server and is reloaded virtual machine scratch diskette by storage server, described virtual machine server will be initiated Share interlinkage and authentication request again, after described certificate server passes through the authentication of described user profile again, certificate server can send quota Quota value after renewal to described storage server, so that described storage server sends to described virtual machine server to redistribute the capability value of the virtual machine scratch diskette corresponding with quota Quota value after described renewal by the quota Quota value after described renewal, simultaneously, described certificate server also can send to described redundant configuration information on described storage server again, so that the file that described storage server still can create described virtual machine server according to described redundant configuration information carries out redundant configuration.
The redundant configuration information corresponding with user profile and quota Quota value that the embodiment of the present invention sends by receiving certificate server, storage server can be according to described redundant configuration information, the file that the virtual machine corresponding with described user profile created carries out redundant configuration, and control by described quota Quota value the capability value that virtual machine server is distributed corresponding virtual machine scratch diskette, make distributed NAS storage to configure different redundancy proportionings to the virtual machine scratch diskette of different user, and be the virtual machine scratch diskette of different user assignment different capabilities value, to meet the desired redundancy proportioning of each user and quota Quota value, simultaneously by upgrading quota Quota value, make virtual machine server when reloading virtual machine scratch diskette, can redistribute according to the quota Quota value after upgrading the capability value of virtual machine scratch diskette, thereby can realize simply the dilatation to virtual machine scratch diskette, in addition, because virtual machine scratch diskette can be shared and is mapped to storage server, so virtual machine server only need to have the virtual machine image file of installing operating system, thereby be conducive to migration and the clone of virtual machine.
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method, to come the hardware that instruction is relevant to complete by computer program, described program can be stored in a computer read/write memory medium, this program, when carrying out, can comprise as the flow process of the embodiment of above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
Above disclosed is only preferred embodiment of the present invention, certainly can not limit with this interest field of the present invention, and the equivalent variations of therefore doing according to the claims in the present invention, still belongs to the scope that the present invention is contained.

Claims (22)

1. a method for virtual machine configuration, is characterized in that, comprising:
When carrying out Share interlinkage with virtual machine server, the authentication request that carries user profile that sink virtual machine server sends, and described authentication request is forwarded to certificate server;
When described certificate server is when to the authentication of described user profile, receive the preset redundant configuration information corresponding with described user profile that described certificate server sends;
When receiving the document creation request of described virtual machine server initiation, according to described redundant configuration information, created file is carried out to redundant configuration.
2. the method for claim 1, is characterized in that, describedly when receiving the document creation request that described virtual machine server initiates, according to described redundant configuration information, created file is carried out to redundant configuration, comprising:
When receiving the document creation request of described virtual machine server initiation, from described redundant configuration information, extract redundant fashion and redundancy proportioning value;
Described redundant fashion, redundancy proportioning value and the file that creates are sent to local distributed file system, by described distributed file system, created file is carried out to redundant configuration according to described redundant fashion and redundancy proportioning value.
3. method as claimed in claim 1 or 2, is characterized in that, when receiving the document creation request of described virtual machine server initiation, before created file being carried out to redundant configuration according to described redundant configuration information, also comprises:
Receive the preset quota Quota value corresponding with described subscriber equipment that described certificate server sends;
Described quota Quota value is sent to described virtual machine server, so that described virtual machine server is distributed the capability value of virtual machine scratch diskette according to described quota Quota value.
4. method as claimed in claim 3, is characterized in that, also comprises:
Whether the total capacity that detects the file creating is greater than described quota Quota value;
When the total capacity of created file being detected and be greater than described quota Quota value, send miscue information to the subscriber equipment that uses described virtual machine server so that described subscriber equipment send dilatation request to described certificate server to upgrade described quota Quota value;
When described virtual machine server being detected and reload virtual machine scratch diskette, receive described certificate server and send the quota Quota value after upgrading, and the quota Quota value after described renewal is sent to described virtual machine server, so that described virtual machine server is redistributed the capability value of virtual machine scratch diskette according to the quota Quota value after described renewal.
5. the method as described in claim 1 to 4 any one, it is characterized in that, described when carrying out Share interlinkage with virtual machine server, the authentication request that carries user profile that sink virtual machine server sends, and before described authentication request is forwarded to certificate server, also comprise:
Share directory corresponding to preset and described virtual machine server;
Wherein, the virtual machine scratch diskette in described share directory and described virtual machine server is for sharing mapping relations.
6. the method as described in claim 1 to 5 any one, it is characterized in that, described when carrying out Share interlinkage with virtual machine server, the authentication request that carries user profile that sink virtual machine server sends, and described authentication request is forwarded to certificate server, comprising:
When carrying out Share interlinkage with virtual machine server, the authentication request that carries user profile that sink virtual machine server sends, and detect the storage protocol that described authentication request that described virtual machine server sends is used;
By the described storage protocol detecting, described authentication request is forwarded to the certificate server corresponding with described storage protocol.
7. method as claimed in claim 6, is characterized in that, describedly by the described storage protocol detecting, described authentication request is forwarded to the certificate server corresponding with described storage protocol, comprising:
When used storage protocol being detected for SMB SMB agreement, by described SMB SMB agreement, described authentication request is forwarded to active directory server; Or,
When used storage protocol being detected for NFS NFS agreement, by described NFS NFS agreement, described authentication request is forwarded to Light Directory Access Protocol ldap server.
8. a method for virtual machine configuration, is characterized in that, comprising:
Receive the authentication request that storage server forwards, described authentication request is the authentication request that carries user profile being sent by virtual machine server;
According to described authentication request, described user profile is authenticated;
When to the authentication of described user profile, the preset redundant configuration information corresponding with described user profile is sent to described storage server, so that the file that described storage server creates described virtual machine server according to described redundant configuration information carries out redundant configuration.
9. method as claimed in claim 8, is characterized in that, before the authentication request forwarding, also comprises at described reception storage server:
Preset user account information, and be redundant configuration information and the quota Quota value of the preset correspondence of described user account information;
Wherein, described redundant configuration information comprises redundant fashion and redundancy proportioning value.
10. method as claimed in claim 8 or 9, it is characterized in that, described when when to the authentication of described user profile, the preset redundant configuration information corresponding with described user profile is sent to described storage server, so that the file that described storage server creates described virtual machine server according to described redundant configuration information carries out redundant configuration, comprising:
When to the authentication of described subscriber equipment, the preset quota Quota value corresponding with described subscriber equipment sent to described storage server, so that described storage server sends to described virtual machine server to distribute the capability value of the virtual machine scratch diskette corresponding with described quota Quota value by described quota Quota value;
And the preset redundant configuration information corresponding with described user profile is sent to described storage server, so that the file that described storage server creates described virtual machine server according to described redundant configuration information carries out redundant configuration.
11. methods as described in claim 9 or 10, is characterized in that, also comprise:
The dilatation request that reception is used the subscriber equipment of described virtual machine server to send, and upgrade described quota Quota value according to described dilatation request;
When described virtual machine server being detected and reload virtual machine scratch diskette, by the quota Quota value after send upgrading to described storage server, so that described storage server sends to described virtual machine server to redistribute the capability value of the virtual machine scratch diskette corresponding with quota Quota value after described renewal by the quota Quota value after described renewal.
12. 1 kinds of storage servers, is characterized in that, comprising:
Receive forwarding module, for when carrying out Share interlinkage with virtual machine server, the authentication request that carries user profile that sink virtual machine server sends, and described authentication request is forwarded to certificate server;
First information receiver module, for when described certificate server is when to the authentication of described user profile, receives the preset redundant configuration information corresponding with described user profile that described certificate server sends;
Configuration module, for when receiving the document creation request of described virtual machine server initiation, carries out redundant configuration according to described redundant configuration information to created file.
13. storage servers as claimed in claim 12, is characterized in that, described configuration module comprises:
Extraction unit for when receiving the document creation request of described virtual machine server initiation, extracts redundant fashion and redundancy proportioning value from described redundant configuration information;
Redundant configuration unit, for described redundant fashion, redundancy proportioning value and the file that creates are sent to local distributed file system, by described distributed file system, created file is carried out to redundant configuration according to described redundant fashion and redundancy proportioning value.
14. storage servers as described in claim 12 or 13, is characterized in that, also comprise:
The second information receiving module, the preset quota Quota value corresponding with described subscriber equipment sending for receiving described certificate server;
Quota value sending module, for described quota Quota value is sent to described virtual machine server, so that described virtual machine server is distributed the capability value of virtual machine scratch diskette according to described quota Quota value.
15. storage servers as claimed in claim 14, is characterized in that, also comprise:
Whether capacity check module, be greater than described quota Quota value for detection of the total capacity of created file;
Prompting sending module, for when the total capacity of created file being detected and be greater than described quota Quota value, send miscue information to the subscriber equipment that uses described virtual machine server so that described subscriber equipment send dilatation request to described certificate server to upgrade described quota Quota value;
Upgrade acquisition module, for when described virtual machine server being detected and reload virtual machine scratch diskette, receive described certificate server and send the quota Quota value after upgrading, and the quota Quota value after described renewal is sent to described virtual machine server, so that described virtual machine server is redistributed the capability value of virtual machine scratch diskette according to the quota Quota value after described renewal.
16. storage servers as described in claim 12 to 15 any one, is characterized in that, also comprise:
Catalogue preset module, for share directory corresponding to preset and described virtual machine server;
Wherein, the virtual machine scratch diskette in described share directory and described virtual machine server is for sharing mapping relations.
17. storage servers as described in claim 12 to 16 any one, is characterized in that, described reception forwarding module comprises:
Protocol detection unit, for when carrying out Share interlinkage with virtual machine server, the authentication request that carries user profile that sink virtual machine server sends, and detect the storage protocol that described authentication request that described virtual machine server sends is used;
Protocol forward unit, is forwarded to the certificate server corresponding with described storage protocol for the described storage protocol by detecting by described authentication request.
18. storage servers as claimed in claim 17, is characterized in that, described protocol forward unit comprises:
First forwards subelement, for when used storage protocol being detected for SMB SMB agreement, by described SMB SMB agreement, described authentication request is forwarded to active directory server;
Second forwards subelement, for when used storage protocol being detected for NFS NFS agreement, by described NFS NFS agreement, described authentication request is forwarded to Light Directory Access Protocol ldap server.
19. 1 kinds of certificate servers, is characterized in that, comprising:
Request receiving module, the authentication request forwarding for receiving storage server, described authentication request is the authentication request that carries user profile being sent by virtual machine server;
Authentication module, for authenticating described user profile according to described authentication request;
Information sending module, during for authentication when passing through described user profile, the preset redundant configuration information corresponding with described user profile is sent to described storage server, so that the file that described storage server creates described virtual machine server according to described redundant configuration information carries out redundant configuration.
20. certificate servers as claimed in claim 19, is characterized in that, also comprise:
Information preset module for preset user account information, and is redundant configuration information and the quota Quota value of the preset correspondence of described user account information;
Wherein, described redundant configuration information comprises redundant fashion and redundancy proportioning value.
21. certificate servers as described in claim 19 or 20, is characterized in that,
Described information sending module, also for when when to the authentication of described subscriber equipment, the preset quota Quota value corresponding with described subscriber equipment sent to described storage server, so that described storage server sends to described virtual machine server to distribute the capability value of the virtual machine scratch diskette corresponding with described quota Quota value by described quota Quota value.
22. certificate servers as described in claim 20 or 21, is characterized in that, also comprise:
Receive update module, the dilatation request sending for receiving the subscriber equipment of the described virtual machine server of use, and upgrade described quota Quota value according to described dilatation request;
Upgrade sending module, for when described virtual machine server being detected and reload virtual machine scratch diskette, by the quota Quota value after send upgrading to described storage server, so that described storage server sends to described virtual machine server to redistribute the capability value of the virtual machine scratch diskette corresponding with quota Quota value after described renewal by the quota Quota value after described renewal.
CN201310570990.8A 2013-11-15 2013-11-15 Virtual machine configuration method and related equipment Active CN103618767B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310570990.8A CN103618767B (en) 2013-11-15 2013-11-15 Virtual machine configuration method and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310570990.8A CN103618767B (en) 2013-11-15 2013-11-15 Virtual machine configuration method and related equipment

Publications (2)

Publication Number Publication Date
CN103618767A true CN103618767A (en) 2014-03-05
CN103618767B CN103618767B (en) 2017-01-18

Family

ID=50169471

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310570990.8A Active CN103618767B (en) 2013-11-15 2013-11-15 Virtual machine configuration method and related equipment

Country Status (1)

Country Link
CN (1) CN103618767B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105094692A (en) * 2014-05-22 2015-11-25 Tcl集团股份有限公司 Disk quota control method and system based on Android system
CN107515725A (en) * 2016-06-16 2017-12-26 中兴通讯股份有限公司 The method, apparatus and webmaster MANO systems of a kind of core net virtualization system shared disk
CN110413584A (en) * 2019-07-24 2019-11-05 无锡华云数据技术服务有限公司 Date storage method, device, equipment and storage medium
CN111240798A (en) * 2019-12-31 2020-06-05 北京安码科技有限公司 Method and system for initializing virtual machine based on mounted file system, electronic device and storage medium
CN117453816A (en) * 2023-10-24 2024-01-26 上海宁盾信息科技有限公司 User data unifying method, system, computer and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102333103A (en) * 2010-07-12 2012-01-25 戴元顺 Cloud storage system
CN102270161B (en) * 2011-06-09 2013-03-20 华中科技大学 Methods for storing, reading and recovering erasure code-based multistage fault-tolerant data
CN102594899B (en) * 2011-12-31 2015-05-27 华为数字技术(成都)有限公司 Storage service method and storage server using the same
US10067940B2 (en) * 2012-03-02 2018-09-04 International Business Machines Corporation Enhanced storage quota management for cloud computing systems

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105094692A (en) * 2014-05-22 2015-11-25 Tcl集团股份有限公司 Disk quota control method and system based on Android system
CN105094692B (en) * 2014-05-22 2018-07-13 Tcl集团股份有限公司 A kind of Disk Quotas control method and system based on android system
CN107515725A (en) * 2016-06-16 2017-12-26 中兴通讯股份有限公司 The method, apparatus and webmaster MANO systems of a kind of core net virtualization system shared disk
CN110413584A (en) * 2019-07-24 2019-11-05 无锡华云数据技术服务有限公司 Date storage method, device, equipment and storage medium
CN111240798A (en) * 2019-12-31 2020-06-05 北京安码科技有限公司 Method and system for initializing virtual machine based on mounted file system, electronic device and storage medium
CN117453816A (en) * 2023-10-24 2024-01-26 上海宁盾信息科技有限公司 User data unifying method, system, computer and storage medium
CN117453816B (en) * 2023-10-24 2024-05-07 上海宁盾信息科技有限公司 User data unifying method, system, computer and storage medium

Also Published As

Publication number Publication date
CN103618767B (en) 2017-01-18

Similar Documents

Publication Publication Date Title
CN102947797B (en) The online service using directory feature extending transversely accesses and controls
US9047443B2 (en) Data federation system and method for sociality storage service in cloud computing
CN101540755B (en) Method, system and device for recovering data
CN109033857B (en) Method, device and equipment for accessing data and readable storage medium
US20130332575A1 (en) Efficient data transfer for cloud storage by centralized management of access tokens
CN110798466B (en) Verification method and system for software license in virtual machine scene
CN103618767A (en) Virtual machine configuration method and related equipment
CN103415016A (en) Mobile WIFI hotspot connection processing method and system
US20140150055A1 (en) Data reference system and application authentication method
CN105376263A (en) Unified management method for multi-system data
CN110602108B (en) Data communication method, device, equipment and storage medium based on block chain network
CN104363207A (en) Multi-factor security enhancement authorization and authentication method
CN105431816A (en) Synchronizing device association data among computing devices
JP2015513128A (en) Data delivery optimization
CN106462423A (en) System and method for integrating web and native applications from web-based contexts
CN103067404A (en) Method for accessing embedded web server by users
CN106897629A (en) The control method and terminal of terminal applies
CN106357807A (en) Data processing method, device and system
US9462408B2 (en) Information processing method and electronic device
CN107645474B (en) Method and device for logging in open platform
CN107682184B (en) Cloud service platform region resource extended method, device, equipment and storage medium
CN103618769A (en) Redundancy configuration method, system and related device
CN105681055A (en) Access method, device and system of shared file server
CN108170482A (en) Information processing method and computer equipment
CN102739613B (en) Across dynamic path method and the system of fire wall

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant