CN104331375A - Shared virtualized resource management method and shared virtualized resource management device under shared virtualized resource pool environment - Google Patents
Shared virtualized resource management method and shared virtualized resource management device under shared virtualized resource pool environment Download PDFInfo
- Publication number
- CN104331375A CN104331375A CN201410594563.8A CN201410594563A CN104331375A CN 104331375 A CN104331375 A CN 104331375A CN 201410594563 A CN201410594563 A CN 201410594563A CN 104331375 A CN104331375 A CN 104331375A
- Authority
- CN
- China
- Prior art keywords
- user
- virtual disk
- virtual
- virtual machine
- resource management
- 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
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Stored Programmes (AREA)
Abstract
The application discloses a shared virtualized resource management method and a shared virtualized resource management device under a shared virtualized resource pool environment, wherein the method includes the following steps: the corresponding relation between set user identifiers and virtual disks is preset; when virtual disk management (VDM) service is started, a virtual disk currently mounted on a virtual machine is unloaded; the user identifier in the login event of the virtual machine is obtained; according to the corresponding relation, the target virtual disk corresponding to the user identifier is obtained; when being successfully obtained, the target virtual disk is the mounted virtual disk of the virtual machine. Because each user can access specific working data through any virtual machine in the whole shared virtualized resource pool by means of the embodiment of the invention when needing to access the specific working data, the circumstance that a plurality of users need to simultaneously log in the same virtual machine is effectively reduced, and thereby the problem that the load of certain one virtual machine is overhigh as the result of the circumstance is also eliminated; thus the problem that the working efficiency of users is decreased under the circumstance is also prevented.
Description
Technical field
The present invention relates to the virtual field of computer resource, particularly relate to the shared resource management method under a kind of shared virtual resources pool environment and device.
Background technology
In computer resource virtual technology, need various resource consolidations such as the server resource within the scope of ALARA Principle, storage resources and Internet resources, formed and share virtual resources pond; Then by allocating dynamically the various resources in shared virtual resources pond, make user can use various resources in shared virtual resources pond as required, and then reach and increase work efficiency, reduce the object of equipment cost.
In computer resource virtual technology, typical application includes cloud computing technology; In the shared virtual resources pond of cloud computing technology, different resources can be provided by different underlying device; Such as, server resource pond may be made up of virtualized PC server or unix server, and storage resources then may be stored by virtualized SAN or NAS storage forms etc.; According to the difference of the physical characteristics of each resource belonging to it, the service of different stage can be provided for user.
Realize the virtual of above-mentioned all kinds of bottom physical equipment by all kinds of virtualization software such as VMware vSphere, Citrix XenServer and add the action in shared virtual resources pond, user can use corresponding computational resource as required in shared virtual resources pond.
Management is carried out for the shared resource in shared virtual resources pond comprise, when building virtual machine, by building virtual disk according to the storage resources shared in virtual resources pond, virtual machine realizes operation and the storage capacity of virtual machine by mount virtual disk.
In prior art, the deployment way of virtual machine is generally: first can by the operating system installation of virtual machine in system virtualization disk, guided by system virtualization disk and start, then, except the system virtualization disk that the operating system of virtual machine is used, virtual machine also can or/and local disk, carry out work and deposit operational data after logging in for user by other work virtual disk of carry in advance.
Inventor finds through research, and prior art at least exists following defect:
In prior art, by virtual platform when disposing virtual machine, can be just all generally this virtual machine virtual disk that carry is corresponding in advance when building virtual machine, and then accept the login of user, that is, virtual machine of the prior art and virtual disk have corresponding binding relationship; Due in actual applications, same user often can log in multiple different virtual machine respectively, and the virtual disk of each virtual machine institute carry is different, so user logs in different virtual machines will use different virtual disks, for this reason, when user needs to access specific operational data, because specific operational data is stored in the virtual disk of setting, could realize so need user to log in specific virtual machine.
Based on the corresponding relation of above user, virtual machine and virtual disk, when the quantity of virtual machine is less than the quantity of user, the situation needing the operational data of multiple user to be stored in the virtual disk of same virtual machine will be there is; Now, when multiple user needs the operational data of accessing belonging to it simultaneously, just need to log in same virtual machine simultaneously, like this will the load of this virtual machine of increase at double, thus reduce the work efficiency of these users, reduce the experience of each user.
Summary of the invention
Technical matters to be solved by this invention is, provide shared resource management method and the device of virtual machine, during to log in virtual machine the user set, by the specific virtual disk of virtual machine carry for this user, reach the object strengthening this user security.
Embodiments provide the shared resource management method under a kind of shared virtual resources pool environment, comprising:
The user ID of default settings and the corresponding relation of virtual disk;
When starting virtual disk management VDM service, unloading is when front mount virtual disk on a virtual machine;
Obtain the user ID in the log-in events of described virtual machine;
The target virtual disk corresponding with described user ID is obtained according to described corresponding relation;
When obtaining the success of described target virtual disk, it is target virtual disk described in described virtual machine carry.
Preferably, in embodiments of the present invention, the user ID of described default settings and the corresponding relation of virtual disk, comprising:
In the database that user, VMDK and virtual machine relation management UVRM serve, be provided with user's mapping table, described user's mapping table comprises the mapping relation information that the user ID of setting and virtual disk identify.
Preferably, in embodiments of the present invention, the user ID of described default settings and the corresponding relation of virtual disk, also comprise:
By supervisor console MC, create, inquire about, forbid or delete the mapping relation information that user ID in described user's mapping table and virtual disk identify.
Preferably, in embodiments of the present invention, the user ID in the log-in events of the described virtual machine of described acquisition, comprising:
By the log-in events of virtual machine described in VDM service acquisition, and obtain the user ID logging in described virtual machine.
Preferably, in embodiments of the present invention, the described target virtual disk corresponding with described user ID according to described corresponding relation acquisition, comprising:
After the log-in events of virtual machine described in VDM service acquisition, send virtual disk determination solicited message;
User ID in virtual disk determination solicited message described in UVRM service acquisition, obtains the target virtual disk corresponding with described user ID in a database according to described corresponding relation.
Preferably, in embodiments of the present invention, described is target virtual disk described in described virtual machine carry, comprising:
VDM service is by calling target virtual disk described in Hypervisor layer SDK (Software Development Kit) SDK carry.
Preferably, in embodiments of the present invention, also comprise:
Obtain the Logout Events of described virtual machine;
When described virtual machine is mounted with virtual disk, unload the virtual disk of described virtual machine institute carry.
Preferably, in embodiments of the present invention, the virtual disk of described unloading described virtual machine institute carry, comprising:
VDM service unloads virtual disk by calling Hypervisor layer SDK (Software Development Kit) SDK.
Preferably, in embodiments of the present invention, described virtual disk, comprising:
Based on the virtual disk carry of high speed that SAN stores.
At the another side of the application, additionally provide the shared resource management devices under a kind of shared virtual resources pool environment, comprising:
Corresponding unit, for the user ID of default settings and the corresponding relation of virtual disk;
Log in unloading unit, for when starting virtual disk management VDM service, unloading is when front mount virtual disk on a virtual machine;
Mark acquiring unit, for obtaining the user ID in the log-in events of described virtual machine;
Target determination unit, for obtaining the target virtual disk corresponding with described user ID according to described corresponding relation;
Carry unit, for when obtaining the success of described target virtual disk, is target virtual disk described in described virtual machine carry.
Preferably, in embodiments of the present invention, described corresponding unit comprises:
Be located at the user's mapping table in the database of UVRM service, described user's mapping table comprises the mapping relation information that the user ID of setting and virtual disk identify.
Preferably, in embodiments of the present invention, described corresponding unit also comprises:
Mapping relations operational module, for by supervisor console MC, creates, inquires about, forbids or deletes the mapping relation information that user ID in described user's mapping table and virtual disk identify.
Preferably, in embodiments of the present invention, described mark acquiring unit by the log-in events of virtual machine described in VDM service acquisition, and obtains the user ID logging in described virtual machine.
Preferably, in embodiments of the present invention, described target determination unit, comprising:
Solicited message sending module, after the log-in events by virtual machine described in VDM service acquisition, sends virtual disk determination solicited message;
Virtual disk determination module, for by the user ID in virtual disk determination solicited message described in UVRM service acquisition, obtains the target virtual disk corresponding with described user ID in a database according to described corresponding relation.
Preferably, in embodiments of the present invention, described carry unit is located at VDM service;
Described VDM service is by calling target virtual disk described in Hypervisor layer SDK (Software Development Kit) SDK carry.
Preferably, in embodiments of the present invention, cancellation unit is also comprised;
Described cancellation unit comprises:
Logout Events acquisition module, for obtaining the Logout Events of described virtual machine;
Nullify Unload module, for when described virtual machine is mounted with virtual disk, unload the virtual disk of described virtual machine institute carry.
Preferably, in embodiments of the present invention, described cancellation Unload module is located at described VDM and is served;
Described VDM service unloads virtual disk by calling Hypervisor layer SDK (Software Development Kit) SDK.
Preferably, in embodiments of the present invention, described virtual disk, comprising:
Based on the virtual disk carry of high speed that SAN stores.
As can be seen from above-mentioned technical scheme, in embodiments of the present invention, the user ID of setting and the corresponding relation of virtual disk has been preset, then, when starting virtual disk management VDM service, unloading when after front mount virtual disk on a virtual machine, the log-in events of detection user; Like this, by obtaining the user ID of login user, thus can be this user virtual disk that carry is corresponding on its virtual machine logged in; Pass through technique scheme, each user is when its specific operational data accessed by needs, can be realized by the arbitrary virtual machine in whole shared virtual resources pond, thus effectively decrease the situation that simultaneously must log in multiple user on same virtual machine, and then also just eliminate the problem making a certain virtual machine load too high caused thus; Also the problem that user job efficiency reduces in above-mentioned situation is just avoided thus.
In addition, pass through the embodiment of the present invention, the resource in whole shared virtual resources pond can be utilized fully, avoid excessively using a certain resource when there being slack resources, thus improve the service efficiency of the resource in whole shared virtual resources pond, make Resource allocation and smoothing more reasonable.
In addition, by the embodiment of the present invention, can also make the higher user of some security requirement can determine its log in virtual machine time this virtual machine institute carry virtual disk, that is, make this user can use particular virtual disk; Concrete, in embodiments of the present invention, the corresponding relation of user ID and virtual disk has first been preset, namely, by the user ID of user and virtual disk are bound, thus the particular virtual disk of this user can be determined by the user ID of login user, that is, target virtual disk, like this, no matter which virtual machine this user logs in, and all can use the particular virtual disk of this user, and then strengthen the security of its data.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present application or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, the accompanying drawing that the following describes is only some embodiments recorded in the application, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is for sharing the step intention of the shared resource management method under virtual resources pool environment described in the embodiment of the present invention;
Fig. 2 is the structural representation of the mapping table of user described in the embodiment of the present invention;
Fig. 3 is for sharing the another step intention of the shared resource management method under virtual resources pool environment described in the embodiment of the present invention;
Fig. 4 is the process flow diagram of user log off described in the embodiment of the present invention;
Fig. 5 is the sequential chart of user log off described in the embodiment of the present invention;
Fig. 6 is for sharing the structural representation of the shared resource management devices under virtual resources pool environment described in the embodiment of the present invention.
Embodiment
The present invention program is understood better in order to make those skilled in the art person, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
In order to the object of this user security can be strengthened, provide the shared resource management method under a kind of shared virtual resources pool environment in this application, as shown in Figure 1, comprise step:
The user ID of S11, default settings and the corresponding relation of virtual disk;
In embodiments of the present invention, under the shared resource management shared under virtual resources pool environment is included in cloud computing or shared virtual resources pool environment, the management such as the dynamic adaptation of the virtual disk carried out, its use scenes can comprise the various cloud computing application model such as IaaS, PaaS or cloud desktop.
Share in virtual resource and can comprise the multiple resources such as server resource, storage resources, Internet resources, shared virtual resources pond can be formed by these shared virtual resources, in shared virtual resources pond, different resources can be provided by different underlying device, such as, server resource pond may be made up of virtualized PC server or unix server, storage resources may be stored by virtualized SAN or NAS storage forms etc., and the difference of the physical characteristics according to often kind of resource, for user provides the service of different stage.By all kinds of virtualization software such as VMware vSphere, Citrix XenServer, the virtual of above-mentioned all kinds of bottom physical equipment and the action adding shared virtual resources pond can be realized, like this, user can use corresponding resource as required in shared virtual resources pond.Such as, server resource pond can according to user's request, for it provides computational resource that is exclusive or that share, memory resource pool can provide the high speed storing based on iSCSI agreement or the network storage based on ICP/IP protocol according to the memory property demand of user or regulatory requirement.
In prior art, virtual machine and virtual disk have corresponding binding relationship; User logs in different virtual machines will use different virtual disks, and for this reason, when user needs to access specific operational data, needing user to log in specific virtual machine could realize.
Based on the corresponding relation of user in prior art, virtual machine and virtual disk, when the quantity of virtual machine is less than the quantity of user, the situation needing the operational data of multiple user to be stored in the virtual disk of same virtual machine will be there is; Now, when this multiple user needs the operational data of accessing belonging to it simultaneously, just need to log in same virtual machine simultaneously, like this will the load of this virtual machine of increase at double, thus reduce the work efficiency of these users, reduce the experience of each user.
In addition, after the above-mentioned situation of generation, multiple user can be caused to log in same virtual machine simultaneously, simultaneously, other multiple virtual machines in whole shared virtual resources pond then can should be not corresponding with the virtual disk of the operational data storing user, cannot utilize, cause the waste of shared resource in shared virtual resources pond so idle, thus can learn, also there is the irrational problem of allotment in shared virtual resources Managed Solution of the prior art.
Example is configured to what carried out virtual machine by VMware Tools Service, the enforcement of the shared resource management of the virtual machine in the embodiment of the present invention can manage (Virtual Disk Management by virtual disk, VDM) service, user's virtual disk and virtual machine relation management (User and VMDK/VM Relationship Management, UVRM) service and these three services of supervisor console (Management Console, MC) realize.
Wherein, VDM service, as the system standard service of Windows, can realize carry and the unloading of virtual disk; UVRM service can provide the maintenance of the corresponding relation of user ID, virtual disk and virtual machine, and can provide the inquiry service of corresponding relation; MC can divide virtual disk by the SDK of Hypervisor layer on storage resources, is written in database by the corresponding relation of user ID and virtual disk.
Based on above application scenarios, in actual applications, the mode of the user ID of the default settings in the embodiment of the present invention and the corresponding relation of virtual disk, can be just specifically, in the database that user, VMDK and virtual machine relation management UVRM serve, be provided with user's mapping table, wherein, user's mapping table comprises the mapping relation information that the user ID of setting and virtual disk identify.The concrete structure of user's mapping table (UserMapping) can be as shown in Figure 2, wherein, userID field for represent user ID, VMDKID field for represent virtual disk mark, status field for represent virtual disk whether the successful state of carry, ComputeID field for representing that virtual machine mark, MappedTime field are for representing mapping relations update times.
In actual applications, specifically can create, inquire about, forbid or delete by MC the mapping relation information that user ID in user's mapping table and virtual disk identify, that is, user's mapping table be operated.
S12, when starting virtual disk management VDM service, unloading is when front mount virtual disk on a virtual machine;
In embodiments of the present invention, when starting virtual disk management VDM service, first to first unload when front mount virtual disk on a virtual machine; Thus avoid the virtual disk of virtual machine carry abnomal condition.
Concrete, unloading can be as shown in Figure 3 when the detailed process of front mount virtual disk on a virtual machine, comprising:
S21, when VDM service starts, check and whether current virtual machine is mounted with virtual disk.
If S22 is mounted with virtual disk, the instruction of a unloading virtual disk will be sent to Hypervisor layer SDK (Software Development Kit, SDK (Software Development Kit)).
S23, Hypervisor layer SDK is after receiving instruction, and the virtual disk of being served by VDM on the virtual machine at place unloads.
S24, the success of unloading virtual disk, VDM service completes startup.
In this step, this operates in intermediate software layer between basic physics server and operating system to utilize Hypervisor layer, by Hypervisor layer SDK, realizes the unloading of virtual disk.
S13, the user ID obtained in the log-in events of virtual machine;
After VDM service completes startup, user generally can log in virtual machine by user ID, like this, by obtaining the user ID in the log-in events of virtual machine, both can determine it is which user is at login virtual machine.
In actual applications, can be specifically serve by VDM the log-in events obtaining virtual machine, and obtain the user ID logging in virtual machine.
S14, the target virtual disk corresponding with user ID according to corresponding relation acquisition;
Due in embodiments of the present invention, it has been the user preset corresponding relation of user ID and virtual disk of setting, so after obtaining the user ID logging in virtual machine, just can obtain the target virtual disk corresponding with user ID according to corresponding relation, here so-called target virtual disk is virtual disk corresponding to user ID, namely the particular virtual disk of this user ID.
In actual applications, can be specifically, after VDM service detection to the log-in events of virtual machine, intend disk determination solicited message to empty UVRM service, in disk determination solicited message, at least will include user ID, like this, after UVRM service acquisition virtual disk determination solicited message, just according to user ID wherein, the target virtual disk corresponding with user ID can be obtained from database.
S15, when obtain target virtual disk success time, be virtual machine carry target virtual disk.
In embodiments of the present invention, opportunity of mount virtual disk is when user logs in, and for the determination of required mount virtual disk in virtual, is realize according to the corresponding relation of user ID and virtual disk.When obtaining target virtual disk success, now, meaning for this user has been provided with particular virtual disk, so can be just virtual machine carry target virtual disk, making user store operational data on its particular virtual disk.
In actual applications, can be specifically that VDM service is by calling Hypervisor layer SDK carry target virtual disk.
In sum, in embodiments of the present invention, having preset the user ID of setting and the corresponding relation of virtual disk, then, when starting virtual disk management VDM service, having unloaded when after front mount virtual disk on a virtual machine, the log-in events of detection user; Like this, by obtaining the user ID of login user, thus can be this user virtual disk that carry is corresponding on its virtual machine logged in; Pass through technique scheme, each user is when its specific operational data accessed by needs, can be realized by the arbitrary virtual machine in whole shared virtual resources pond, thus effectively decrease the situation that simultaneously must log in multiple user on same virtual machine, and then also just eliminate the problem making a certain virtual machine load too high caused thus; Also the problem that user job efficiency reduces in above-mentioned situation is just avoided thus.
In addition, pass through the embodiment of the present invention, the resource in whole shared virtual resources pond can be utilized fully, avoid excessively using a certain resource when there being slack resources, thus improve the service efficiency of the resource in whole shared virtual resources pond, make Resource allocation and smoothing more reasonable.
In addition, by the embodiment of the present invention, can also make the higher user of some security requirement can determine its log in virtual machine time this virtual machine institute carry virtual disk, that is, make this user can use particular virtual disk; Concrete, in embodiments of the present invention, the corresponding relation of user ID and virtual disk has first been preset, namely, by the user ID of user and virtual disk are bound, thus the particular virtual disk of this user can be determined by the user ID of login user, that is, target virtual disk, like this, no matter which virtual machine this user logs in, and all can use the particular virtual disk of this user, and then strengthen the security of its data.
Further, in embodiments of the present invention, can also include when logging off users (that is, user ID being nullified from virtual machine), the step of the virtual disk of unloading virtual machine institute carry, concrete, can comprise the following steps:
S31, obtain the Logout Events of described virtual machine;
S32, when virtual machine is mounted with virtual disk, the virtual disk of unloading virtual machine institute carry.
In actual applications, similar with the mode unloaded in step S12 in the embodiment of the present invention when front mount virtual disk on a virtual machine, when logging off users, VDM service can unload virtual disk by calling Hypervisor layer SDK (Software Development Kit) SDK.
In embodiments of the present invention, the idiographic flow of logging off users can as shown in Figure 4 and Figure 5, and wherein, Fig. 4 is user log off process flow diagram, Fig. 5 is user log off sequential chart.
Preferably, in embodiments of the present invention, virtual disk can be specifically the virtual disk carry of high speed stored based on SAN, thus meets the demand of user for memory property.
At the another side of the application, additionally provide a kind of shared resource management devices of virtual machine, as shown in Figure 6, comprising: corresponding unit 11, for the user ID of default settings and the corresponding relation of virtual disk; Log in unloading unit 12, for when starting VDM service, unloading is when front mount virtual disk on a virtual machine; Mark acquiring unit 13, for obtaining the user ID in the log-in events of virtual machine; Target determination unit 14, for obtaining the target virtual disk corresponding with user ID according to corresponding relation; Carry unit 15, for when obtaining target virtual disk success, is virtual machine carry target virtual disk.
The embodiment that the principle of work of the embodiment of the present invention is corresponding with Fig. 1 Suo Shi with the effect reached is similar, specifically:
Can determine that in order to make the higher user of some security requirement it logs in the virtual disk of virtual machine institute carry, namely, make this user can use particular virtual disk, in embodiments of the present invention, first the corresponding relation of user ID and virtual disk has been preset by corresponding unit 11, namely, by the user ID of user and virtual disk are bound, thus the particular virtual disk of this user can be determined by the user ID of login user, that is, target virtual disk.
Log in unloading unit 12 by when starting virtual disk management VDM service, first first unloading is when front mount virtual disk on a virtual machine; Thus avoid the virtual disk of virtual machine carry abnomal condition.
Mark acquiring unit 13 by obtaining the user ID in the log-in events of virtual machine, thus can determine it is which user is at login virtual machine.
Due in embodiments of the present invention, it has been the user preset corresponding relation of user ID and virtual disk of setting, so after obtaining the user ID logging in virtual machine, target determination unit 14 just can obtain the target virtual disk corresponding with user ID according to corresponding relation, here so-called target virtual disk is virtual disk corresponding to user ID, namely the particular virtual disk of this user ID.
When obtaining target virtual disk success, now, meaning for this user has been provided with particular virtual disk, so can be just virtual machine carry target virtual disk by carry unit 15, making user store operational data on its particular virtual disk.
In actual applications, corresponding unit 11 specifically can be provided at the user's mapping table in the database of UVRM service, and user's mapping table comprises the mapping relation information that the user ID of setting and virtual disk identify.In addition, corresponding unit 11 can also comprise mapping relations operational module, and mapping relations operational module by supervisor console MC, can create, inquires about, forbids or delete the mapping relation information that user ID in user's mapping table and virtual disk identify, that is, user's mapping table is operated.
Preferably, the mark acquiring unit 13 in the embodiment of the present invention can be specifically the log-in events by VDM service acquisition virtual machine, and obtains the user ID logging in virtual machine.
Preferably, the target determination unit 14 in the embodiment of the present invention, specifically can comprise solicited message sending module and virtual disk determination module, wherein:
Solicited message sending module, for by after the log-in events of VDM service acquisition virtual machine, sends virtual disk determination solicited message; Virtual disk determination module, for by the user ID in UVRM service acquisition virtual disk determination solicited message, obtains the target virtual disk corresponding with user ID in a database according to corresponding relation.
Preferably, the carry unit 15 in the embodiment of the present invention specifically can be located at VDM service; Like this, VDM service is by calling Hypervisor layer SDK (Software Development Kit) SDK carry target virtual disk.
In sum, in embodiments of the present invention, having preset the user ID of setting and the corresponding relation of virtual disk, then, when starting virtual disk management VDM service, having unloaded when after front mount virtual disk on a virtual machine, the log-in events of detection user; Like this, by obtaining the user ID of login user, thus can be this user virtual disk that carry is corresponding on its virtual machine logged in; Pass through technique scheme, each user is when its specific operational data accessed by needs, can be realized by the arbitrary virtual machine in whole shared virtual resources pond, thus effectively decrease the situation that simultaneously must log in multiple user on same virtual machine, and then also just eliminate the problem making a certain virtual machine load too high caused thus; Also the problem that user job efficiency reduces in above-mentioned situation is just avoided thus.
In addition, pass through the embodiment of the present invention, the resource in whole shared virtual resources pond can be utilized fully, avoid excessively using a certain resource when there being slack resources, thus improve the service efficiency of the resource in whole shared virtual resources pond, make Resource allocation and smoothing more reasonable.
In addition, by the embodiment of the present invention, can also make the higher user of some security requirement can determine its log in virtual machine time this virtual machine institute carry virtual disk, that is, make this user can use particular virtual disk; Concrete, in embodiments of the present invention, the corresponding relation of user ID and virtual disk has first been preset, namely, by the user ID of user and virtual disk are bound, thus the particular virtual disk of this user can be determined by the user ID of login user, that is, target virtual disk, like this, no matter which virtual machine this user logs in, and all can use the particular virtual disk of this user, and then strengthen the security of its data.
Further, in embodiments of the present invention, cancellation unit can also be provided with; Nullify unit specifically can comprise Logout Events acquisition module and nullify Unload module:
Logout Events acquisition module is for obtaining the Logout Events of virtual machine; Nullify Unload module to be used for when virtual machine is mounted with virtual disk, the virtual disk of unloading virtual machine institute carry.
In actual applications, nullify Unload module and can be located at VDM service; Such VDM service unloads virtual disk by calling Hypervisor layer SDK (Software Development Kit) SDK.
Preferably, virtual disk in embodiments of the present invention can be specifically the virtual disk carry of high speed stored based on SAN, thus meets the demand of user for memory property.
In this instructions, each embodiment adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar portion mutually see.For the device that embodiment provides, the method provided due to itself and embodiment is corresponding, so description is fairly simple, relevant part illustrates see method part.
To the above-mentioned explanation of provided embodiment, professional and technical personnel in the field are realized or uses the present invention.To be apparent for those skilled in the art to the multiple amendment of these embodiments, General Principle as defined herein can without departing from the spirit or scope of the present invention, realize in other embodiments.Therefore, the present invention can not be restricted to these embodiments shown in this article, but will meet the widest scope consistent with principle provided in this article and features of novelty.
Claims (18)
1. the shared resource management method under shared virtual resources pool environment, is characterized in that, comprising:
The user ID of default settings and the corresponding relation of virtual disk;
When starting virtual disk management VDM service, unloading is when front mount virtual disk on a virtual machine;
Obtain the user ID in the log-in events of described virtual machine;
The target virtual disk corresponding with described user ID is obtained according to described corresponding relation;
When obtaining the success of described target virtual disk, it is target virtual disk described in described virtual machine carry.
2. shared resource management method according to claim 1, it is characterized in that, the user ID of described default settings and the corresponding relation of virtual disk, comprising:
In the database that user, VMDK and virtual machine relation management UVRM serve, be provided with user's mapping table, described user's mapping table comprises the mapping relation information that the user ID of setting and virtual disk identify.
3. shared resource management method according to claim 2, it is characterized in that, the user ID of described default settings and the corresponding relation of virtual disk, also comprise:
By supervisor console MC, create, inquire about, forbid or delete the mapping relation information that user ID in described user's mapping table and virtual disk identify.
4. shared resource management method according to claim 3, it is characterized in that, the user ID in the log-in events of the described virtual machine of described acquisition, comprising:
By the log-in events of virtual machine described in VDM service acquisition, and obtain the user ID logging in described virtual machine.
5. shared resource management method according to claim 4, is characterized in that, describedly obtains the target virtual disk corresponding with described user ID according to described corresponding relation, comprising:
After the log-in events of virtual machine described in VDM service acquisition, send virtual disk determination solicited message;
User ID in virtual disk determination solicited message described in UVRM service acquisition, obtains the target virtual disk corresponding with described user ID in a database according to described corresponding relation.
6. shared resource management method according to claim 5, it is characterized in that, described is target virtual disk described in described virtual machine carry, comprising:
VDM service is by calling target virtual disk described in Hypervisor layer SDK (Software Development Kit) SDK carry.
7. shared resource management method according to claim 6, is characterized in that, also comprise:
Obtain the Logout Events of described virtual machine;
When described virtual machine is mounted with virtual disk, unload the virtual disk of described virtual machine institute carry.
8. shared resource management method according to claim 7, it is characterized in that, the virtual disk of described unloading described virtual machine institute carry, comprising:
VDM service unloads virtual disk by calling Hypervisor layer SDK (Software Development Kit) SDK.
9., according to the shared resource management method of described virtual machine arbitrary in claim 1 to 8, it is characterized in that, described virtual disk, comprising:
Based on the virtual disk carry of high speed that SAN stores.
10. the shared resource management devices under shared virtual resources pool environment, is characterized in that, comprising:
Corresponding unit, for the user ID of default settings and the corresponding relation of virtual disk;
Log in unloading unit, for when starting virtual disk management VDM service, unloading is when front mount virtual disk on a virtual machine;
Mark acquiring unit, for obtaining the user ID in the log-in events of described virtual machine;
Target determination unit, for obtaining the target virtual disk corresponding with described user ID according to described corresponding relation;
Carry unit, for when obtaining the success of described target virtual disk, is target virtual disk described in described virtual machine carry.
11. shared resource management devices according to claim 10, it is characterized in that, described corresponding unit comprises:
Be located at the user's mapping table in the database of UVRM service, described user's mapping table comprises the mapping relation information that the user ID of setting and virtual disk identify.
12., according to shared resource management devices described in claim 11, is characterized in that, described corresponding unit also comprises:
Mapping relations operational module, for by supervisor console MC, creates, inquires about, forbids or deletes the mapping relation information that user ID in described user's mapping table and virtual disk identify.
13., according to shared resource management devices described in claim 12, is characterized in that, described mark acquiring unit by the log-in events of virtual machine described in VDM service acquisition, and obtains the user ID logging in described virtual machine.
14., according to shared resource management method described in claim 13, is characterized in that, described target determination unit, comprising:
Solicited message sending module, after the log-in events by virtual machine described in VDM service acquisition, sends virtual disk determination solicited message;
Virtual disk determination module, for by the user ID in virtual disk determination solicited message described in UVRM service acquisition, obtains the target virtual disk corresponding with described user ID in a database according to described corresponding relation.
15., according to shared resource management devices described in claim 14, is characterized in that, described carry unit is located at VDM service;
Described VDM service is by calling target virtual disk described in Hypervisor layer SDK (Software Development Kit) SDK carry.
16., according to shared resource management devices described in claim 15, is characterized in that, also comprise cancellation unit;
Described cancellation unit comprises:
Logout Events acquisition module, for obtaining the Logout Events of described virtual machine;
Nullify Unload module, for when described virtual machine is mounted with virtual disk, unload the virtual disk of described virtual machine institute carry.
17., according to shared resource management devices described in claim 16, is characterized in that, described cancellation Unload module is located at described VDM and is served;
Described VDM service unloads virtual disk by calling Hypervisor layer SDK (Software Development Kit) SDK.
18. according to claim 10 to arbitrary described shared resource management devices in 17, and it is characterized in that, described virtual disk, comprising:
Based on the virtual disk carry of high speed that SAN stores.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410594563.8A CN104331375B (en) | 2014-10-29 | 2014-10-29 | Shared virtual resource management method under shared virtualization resource pool environment and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410594563.8A CN104331375B (en) | 2014-10-29 | 2014-10-29 | Shared virtual resource management method under shared virtualization resource pool environment and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104331375A true CN104331375A (en) | 2015-02-04 |
CN104331375B CN104331375B (en) | 2018-08-07 |
Family
ID=52406107
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410594563.8A Active CN104331375B (en) | 2014-10-29 | 2014-10-29 | Shared virtual resource management method under shared virtualization resource pool environment and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104331375B (en) |
Cited By (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105306594A (en) * | 2015-11-19 | 2016-02-03 | 国云科技股份有限公司 | Method for managing virtual unit through multiple strategies |
WO2016206414A1 (en) * | 2015-06-25 | 2016-12-29 | 中兴通讯股份有限公司 | Method and device for merging multiple virtual desktop architectures |
CN106503587A (en) * | 2016-11-28 | 2017-03-15 | 航天恒星科技有限公司 | A kind of hanging method of data disks and monitor of virtual machine |
CN107220767A (en) * | 2017-05-26 | 2017-09-29 | 中山市博林树投资管理有限公司 | A kind of resource sharing system under virtual resources pool environment |
CN107885622A (en) * | 2016-09-30 | 2018-04-06 | 伊姆西Ip控股有限责任公司 | Handle virtual data shifter(VDM)Failure redundant situation |
CN108073440A (en) * | 2016-11-18 | 2018-05-25 | 中兴通讯股份有限公司 | A kind of video card management method under virtualized environment, apparatus and system |
CN109857345A (en) * | 2019-01-31 | 2019-06-07 | 合肥谐桐科技有限公司 | Realize the system and method based on concurrent disk carry interface management and running |
CN110659095A (en) * | 2019-09-16 | 2020-01-07 | 兰州立云信息科技有限公司 | Desktop virtualization system and method for desktop virtualization |
WO2020007226A1 (en) * | 2018-07-06 | 2020-01-09 | 中兴通讯股份有限公司 | Cloud desktop-based disc management method, virtual machines and storage medium |
CN110806911A (en) * | 2018-08-06 | 2020-02-18 | 中兴通讯股份有限公司 | Cloud desktop management and control method, device and system |
CN111736960A (en) * | 2020-08-10 | 2020-10-02 | 北京信安世纪科技股份有限公司 | Service providing method, device and storage medium based on software isolation |
US10924590B1 (en) | 2019-12-20 | 2021-02-16 | Citrix Systems, Inc. | Virtual workspace experience visualization and optimization |
CN112596861A (en) * | 2020-12-28 | 2021-04-02 | 江苏欧帝电子科技有限公司 | Data sharing method and system based on intelligent blackboard and storage medium |
CN112631784A (en) * | 2020-12-31 | 2021-04-09 | 联想未来通信科技(重庆)有限公司 | Resource-based allocation/processing method and electronic equipment |
CN113126912A (en) * | 2021-03-15 | 2021-07-16 | 新华三大数据技术有限公司 | Personal disk mounting method and device |
CN113504872A (en) * | 2021-05-14 | 2021-10-15 | 济南浪潮数据技术有限公司 | Method, system, equipment and medium for mounting virtual disk on cloud physical machine |
WO2024012221A1 (en) * | 2022-07-13 | 2024-01-18 | 江苏中威科技软件***有限公司 | Method for creating virtual service shared pool on basis of formatted data stream file base template |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1889426A (en) * | 2005-06-30 | 2007-01-03 | 联想(北京)有限公司 | Method and system for realizing network safety storaging and accessing |
CN101419535A (en) * | 2008-11-19 | 2009-04-29 | 北京航空航天大学 | Distributed virtual magnetic disc system of virtual machine |
CN101443748A (en) * | 2006-05-08 | 2009-05-27 | 微软公司 | Converting machines to virtual machines |
CN101449268A (en) * | 2006-05-09 | 2009-06-03 | 惠普开发有限公司 | Maintaining commonly named client-specific file content in hard disk drive emulation |
CN101656718A (en) * | 2008-08-18 | 2010-02-24 | 英业达股份有限公司 | Network server system and method for establishing and starting virtual machine thereof |
CN102323943A (en) * | 2011-09-02 | 2012-01-18 | 北京天地云箱科技有限公司 | Virtual-machine-based data storage method and system |
CN103493027A (en) * | 2011-04-25 | 2014-01-01 | 微软公司 | Virtual disk storage techniques |
-
2014
- 2014-10-29 CN CN201410594563.8A patent/CN104331375B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1889426A (en) * | 2005-06-30 | 2007-01-03 | 联想(北京)有限公司 | Method and system for realizing network safety storaging and accessing |
CN101443748A (en) * | 2006-05-08 | 2009-05-27 | 微软公司 | Converting machines to virtual machines |
CN101449268A (en) * | 2006-05-09 | 2009-06-03 | 惠普开发有限公司 | Maintaining commonly named client-specific file content in hard disk drive emulation |
CN101656718A (en) * | 2008-08-18 | 2010-02-24 | 英业达股份有限公司 | Network server system and method for establishing and starting virtual machine thereof |
CN101419535A (en) * | 2008-11-19 | 2009-04-29 | 北京航空航天大学 | Distributed virtual magnetic disc system of virtual machine |
CN103493027A (en) * | 2011-04-25 | 2014-01-01 | 微软公司 | Virtual disk storage techniques |
CN102323943A (en) * | 2011-09-02 | 2012-01-18 | 北京天地云箱科技有限公司 | Virtual-machine-based data storage method and system |
Non-Patent Citations (1)
Title |
---|
黄峰: "分布式虚拟运行环境的研究与实现", 《中国优秀硕士学位论文全文数据库(信息科技辑)》 * |
Cited By (28)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2016206414A1 (en) * | 2015-06-25 | 2016-12-29 | 中兴通讯股份有限公司 | Method and device for merging multiple virtual desktop architectures |
CN107026875A (en) * | 2015-06-25 | 2017-08-08 | 中兴通讯股份有限公司 | The fusion method and device of multiple virtual desktop frameworks |
US10411957B2 (en) | 2015-06-25 | 2019-09-10 | Zte Corporation | Method and device for integrating multiple virtual desktop architectures |
CN105306594A (en) * | 2015-11-19 | 2016-02-03 | 国云科技股份有限公司 | Method for managing virtual unit through multiple strategies |
CN107885622A (en) * | 2016-09-30 | 2018-04-06 | 伊姆西Ip控股有限责任公司 | Handle virtual data shifter(VDM)Failure redundant situation |
CN108073440A (en) * | 2016-11-18 | 2018-05-25 | 中兴通讯股份有限公司 | A kind of video card management method under virtualized environment, apparatus and system |
CN108073440B (en) * | 2016-11-18 | 2023-07-07 | 南京中兴新软件有限责任公司 | Display card management method, device and system in virtualized environment |
CN106503587A (en) * | 2016-11-28 | 2017-03-15 | 航天恒星科技有限公司 | A kind of hanging method of data disks and monitor of virtual machine |
CN107220767A (en) * | 2017-05-26 | 2017-09-29 | 中山市博林树投资管理有限公司 | A kind of resource sharing system under virtual resources pool environment |
WO2020007226A1 (en) * | 2018-07-06 | 2020-01-09 | 中兴通讯股份有限公司 | Cloud desktop-based disc management method, virtual machines and storage medium |
CN110806911A (en) * | 2018-08-06 | 2020-02-18 | 中兴通讯股份有限公司 | Cloud desktop management and control method, device and system |
CN109857345B (en) * | 2019-01-31 | 2023-01-24 | 电科云(北京)科技有限公司 | System and method for realizing disk mounting interface scheduling management based on concurrency |
CN109857345A (en) * | 2019-01-31 | 2019-06-07 | 合肥谐桐科技有限公司 | Realize the system and method based on concurrent disk carry interface management and running |
CN110659095A (en) * | 2019-09-16 | 2020-01-07 | 兰州立云信息科技有限公司 | Desktop virtualization system and method for desktop virtualization |
CN110659095B (en) * | 2019-09-16 | 2023-11-21 | 兰州立云信息科技有限公司 | Desktop virtualization system and method for desktop virtualization |
US11303729B2 (en) | 2019-12-20 | 2022-04-12 | Citrix Systems, Inc. | Virtual workspace experience visualization and optimization |
WO2021120180A1 (en) * | 2019-12-20 | 2021-06-24 | Citrix Systems, Inc. | Virtual workspace experience visualization and optimization |
US10924590B1 (en) | 2019-12-20 | 2021-02-16 | Citrix Systems, Inc. | Virtual workspace experience visualization and optimization |
US11843674B2 (en) | 2019-12-20 | 2023-12-12 | Citrix Systems, Inc. | Virtual workspace experience visualization and optimization |
CN111736960A (en) * | 2020-08-10 | 2020-10-02 | 北京信安世纪科技股份有限公司 | Service providing method, device and storage medium based on software isolation |
CN111736960B (en) * | 2020-08-10 | 2020-12-22 | 北京信安世纪科技股份有限公司 | Service providing method, device and storage medium based on software isolation |
CN112596861A (en) * | 2020-12-28 | 2021-04-02 | 江苏欧帝电子科技有限公司 | Data sharing method and system based on intelligent blackboard and storage medium |
CN112596861B (en) * | 2020-12-28 | 2024-01-30 | 江苏欧帝电子科技有限公司 | Data sharing method, system and storage medium based on intelligent blackboard |
CN112631784A (en) * | 2020-12-31 | 2021-04-09 | 联想未来通信科技(重庆)有限公司 | Resource-based allocation/processing method and electronic equipment |
CN113126912A (en) * | 2021-03-15 | 2021-07-16 | 新华三大数据技术有限公司 | Personal disk mounting method and device |
CN113504872A (en) * | 2021-05-14 | 2021-10-15 | 济南浪潮数据技术有限公司 | Method, system, equipment and medium for mounting virtual disk on cloud physical machine |
CN113504872B (en) * | 2021-05-14 | 2023-11-03 | 济南浪潮数据技术有限公司 | Method, system, equipment and medium for mounting virtual disk on cloud physical machine |
WO2024012221A1 (en) * | 2022-07-13 | 2024-01-18 | 江苏中威科技软件***有限公司 | Method for creating virtual service shared pool on basis of formatted data stream file base template |
Also Published As
Publication number | Publication date |
---|---|
CN104331375B (en) | 2018-08-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104331375A (en) | Shared virtualized resource management method and shared virtualized resource management device under shared virtualized resource pool environment | |
US10599466B2 (en) | Managed services coordinator | |
US9183378B2 (en) | Runtime based application security and regulatory compliance in cloud environment | |
US9569277B1 (en) | Rebalancing virtual resources for virtual machines based on multiple resource capacities | |
US10394477B2 (en) | Method and system for memory allocation in a disaggregated memory architecture | |
US8806015B2 (en) | Workload-aware placement in private heterogeneous clouds | |
US9875144B2 (en) | Controlling virtual machine density and placement distribution in a converged infrastructure resource pool | |
US20180225104A1 (en) | Virtual container deployment | |
US9038085B2 (en) | System, method and program product for cost-aware selection of stored virtual machine images for subsequent use | |
US20150309828A1 (en) | Hypervisor manager for virtual machine management | |
US9864618B2 (en) | Optimized placement of virtual machines on physical hosts based on user configured placement polices | |
US20130297672A1 (en) | Mechanism for tracking and utilizing facts about a node of a multi-tenant cloud hosting environment | |
US9735984B2 (en) | Bursting cloud resources to affect state change performance | |
US20170093966A1 (en) | Managing a shared pool of configurable computing resources having an arrangement of a set of dynamically-assigned resources | |
US11907766B2 (en) | Shared enterprise cloud | |
US10698785B2 (en) | Task management based on an access workload | |
US9755986B1 (en) | Techniques for tightly-integrating an enterprise storage array into a distributed virtualized computing environment | |
US11573837B2 (en) | Service retention in a computing environment | |
US10956228B2 (en) | Task management using a virtual node | |
CN107562510B (en) | Management method and management equipment for application instances | |
US20180011789A1 (en) | Reducing idle resource usage | |
US20170054617A1 (en) | Managing a shared pool of configurable computing resources which uses a set of dynamically-assigned resources | |
US20160191617A1 (en) | Relocating an embedded cloud for fast configuration of a cloud computing environment | |
Sehgal | Introduction to OpenStack | |
US11632432B2 (en) | Dynamic overflow processing in a multi-user computing environment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |