The present disclosure relates to virtual machines, and more particularly to a cloud system and a method thereof for managing creation and distribution of templates for the virtual machines.
Generally, templates of virtual machines can be created and sold to customers. The templates may have different formats.
Implementations of the present technology will now be described, by way of example only, with reference to the attached figures.
It will be appreciated that for simplicity and clarity of illustration, where appropriate, reference numerals have been repeated among the different figures to indicate corresponding or analogous elements. In addition, numerous specific details are set forth in order to provide a thorough understanding of the embodiments described herein. However, it will be understood by those of ordinary skill in the art that the embodiments described herein can be practiced without these specific details. In other instances, methods, procedures and components have not been described in detail so as not to obscure the related relevant feature being described. The drawings are not necessarily to scale and the proportions of certain parts may be exaggerated to better illustrate details and features. The description is not to be considered as limiting the scope of the embodiments described herein.
Several definitions that apply throughout this disclosure will now be presented.
The term “coupled” is defined as connected, whether directly or indirectly through intervening components, and is not necessarily limited to physical connections. The connection can be such that the objects are permanently connected or releasably connected. The term “comprising” means “including, but not necessarily limited to”; it specifically indicates open-ended inclusion or membership in a so-described combination, group, series and the like.
The cloud system can further include a plurality of inter-cloud management systems (ICMS) 100. Each ICMS 100 can be a cloud environment of an operator. Each ICMS 100 can be coupled to the TS Global 10 and the TS Lib 20 through the cloud system, and each TS Agent 30 can serve as an IDC of the corresponding ICMS 100. Thus, the template creator of a first ICMS 100 (as shown in
After the account is approved by the Agent Portal 40, the template creator can input basic information of the template to the TS Global 10. The basic information can include a name of the template, a description of the template, a price of the template, and the like. The TS Global 10 can determine whether the template creator has the virtual machine for creating the template. If the template creator does not have the virtual machine, the TS Global 10 can instruct the template creator to purchase the virtual machine on the Agent Portal 40. The template creator can create a template design for the virtual machine on the TS Global 10. After the template design is created, the TS Global 10 can send the virtual machine and the template design to a virtual facilities operating system (hereinafter “the VFOS”) 50. The VFOS 50 can control the virtual machine to create the template according to the template design.
To create the template, the VFOS 50 can send out a message for creating the template and control the virtual machine to restart. After the virtual machine restarts, a specialized basic input/output system (hereinafter “the Cloud Boot”) 60 can receive the message. After receiving the message, the Cloud Boot 60 can perform a disk dump on a second partition of the virtual machine, and create an image file of a hard disk of the virtual machine. In at least one embodiment, the template is the image file created by the Cloud Boot 60, and the Cloud Boot 60 can upload the template to the TS Lib 20.
To install the template, the VFOS 50 can send out a message for installing the template and control the virtual machine to restart. After the virtual machine restarts, the Cloud Boot 60 can receive the message and download the template from the TS Lib 20 to the corresponding TS Agent 30 according to the download link. After the template is downloaded, the Cloud Boot 60 can install the template on the virtual machine.
Each TS Agent 30 and the TS Lib 20 can include a GLUSTERFS system. After the template is created, the Cloud Boot 60 can upload the template to an FTP server of the TS Lib 20. After the template is downloaded to the TS Agent 30, the template can be synced with the template in the FTP server of the TS Lib 20 through the GLUSTERFS system. When the template is updated in the TS Lib 20, the updates can be synced to the template in the TS Agent 30 through the GLUSTERFS system.
The template can include an authorization program. When the template includes the authorization program, an operating system of the virtual machine requires authorization to run the template. After the virtual machine is started, the authorization program of the template can be executed. The authorization program can request an authorization system of the operating system to authorize the operating system. After the operating system is authorized, the authorization program can request the TS Global 10 to sign a subscription of the template. After the subscription is signed, the TS Global 10 can uninstall the authorization program from the template. In at least one embodiment, the operating system can be WINDOWS, the authorization program can be MICROSOFT SPLA, and the authorization system can be the KMS SERVER of MICROSOFT.
At block 400, a template creator can register an account for creating a template. The account can be verified.
At block 401, the template creator can input basic information of the template. The basic information can include a name of the template, a description of the template, a price of the template, and the like.
At block 402, whether the template creator has a virtual machine for creating the template can be determined. If the template creator does not have the virtual machine, block 403 can be implemented. If the template creator has the virtual machine, block 404 can be implemented.
At block 403, the template creator can purchase the virtual machine.
At block 404, the template creator can create a template design for the virtual machine.
At block 405, the template can be created on the virtual machine according to the template design.
At block 406, the template can be uploaded to a template library to store the template.
At block 500, a template user can purchase a virtual machine.
At block 501, identification information of a template and of a corresponding Internet data center can be obtained from an order form of the purchased virtual machine.
At block 502, a download link corresponding to the identification information can be obtained to download the template from a template library.
At block 503, whether the download link is still valid is determined. If the download link is not valid, block 502 can be implemented. If the download link is still valid, block 504 can be implemented.
At block 504, the template can be downloaded to the corresponding Internet data center.
At block 505, the template can be installed on the purchased virtual machine.
At block 600, an authorization program of the template can be executed.
At block 601, the authorization program can request an activation system of the operating system to activate the operating system. The operating system can be activated by the activation system.
At block 602, a subscription of the template can be signed.
At block 603, the authorization program can be uninstalled.
The embodiments shown and described above are only examples. Even though numerous characteristics and advantages of the present technology have been set forth in the foregoing description, together with details of the structure and function of the present disclosure, the disclosure is illustrative only, and changes may be made in the detail, including in matters of shape, size and arrangement of the parts within the principles of the present disclosure up to, and including, the full extent established by the broad general meaning of the terms used in the claims.
Number | Date | Country | Kind |
---|---|---|---|
201310490127.1 | Oct 2013 | CN | national |