A method for creating a private image in a public cloud and related devices

By providing ISO file upload interfaces and related interfaces on the cloud management platform, the problem of tenants being unable to register private ISO images has been solved, enabling rapid creation of private images and efficient utilization of resources, thereby improving the user experience for tenants.

CN114443058BActive Publication Date: 2025-11-25HUAWEI CLOUD COMPUTING TECHNOLOGIES CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202011195100.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-10-30
Publication Date
2025-11-25
Estimated Expiration
2040-10-30

AI Technical Summary

Technical Problem

Existing technology cannot create private images using ISO files on cloud management platforms, and tenants cannot register private ISO images.

Method used

By installing ISO files on a temporary cloud server, it provides interfaces for ISO file upload, ISO image registration, cloud server installation, cloud server settings, and cloud server image retrieval, enabling the registration of ISO files and the creation of images.

Benefits of technology

It improves the user experience for tenants, meets their actual application needs, and enables the rapid creation of private images and efficient utilization of resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114443058B_ABST
    Figure CN114443058B_ABST
Patent Text Reader

Abstract

The application discloses a method for creating a private image in a public cloud and related equipment, comprising: a cloud management platform on a network side can provide a plurality of interfaces to tenants, and based on the plurality of interfaces, an ISO file uploaded by a tenant and an operation input by the tenant are acquired, the ISO file carrying an installation file of an operating system, so that the cloud management platform registers the ISO file as an ISO image of the public cloud according to the input operation, the ISO image carrying the installation file of the operating system, and installs the installation file of the operating system carried by the ISO image into a temporary cloud server, sets a running environment in the operating system of the temporary cloud server, acquires an image of the temporary cloud server provided with the running environment, and records the image as a system disk image of the public cloud of the tenant. In this way, the cloud management platform can create a private image required by each tenant according to the ISO file, thereby improving the use experience of the tenant and meeting the actual application requirements of the tenant.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] Embodiments of the present application relate to the technical field of cloud computing, and particularly relate to a method and device for creating a private image in a public cloud, a computing device, and a computer readable storage medium. BACKGROUND

[0002] An image (Mirroring) is a template of a flexible cloud server, which at least contains an operating system. In actual application, the image can also contain application software (for example, database software) and private software. The image can be divided into a public image and a private image. The public image is a common standard operating system image, which is visible to all tenants and can include an operating system and pre-installed public applications. The private image is an image created by a tenant, which is only visible to the tenant and can include an operating system, pre-installed public applications, and private applications of the tenant.

[0003] At present, when creating a private image, a local existing image is usually registered as a private image through a private image import function, but a private ISO image cannot be registered, and a tenant cannot use an ISO file to create a private image on a cloud management platform. SUMMARY

[0004] Embodiments of the present application provide a method and device for creating a private image in a public cloud, a computing device, and a computer readable storage medium. By installing an operating system and related drivers included in an ISO file on a temporary cloud server, a tenant can use an ISO file to create a private image on a cloud management platform on a network side.

[0005] Firstly, this application provides a method for creating a private image in a public cloud, which is applied to a cloud management platform on the network side. During the creation of the private image, the cloud management platform can provide an ISO file upload interface, which allows tenants to easily upload ISO files. The cloud management platform can then obtain the ISO file uploaded by the tenant, which contains the operating system's installation files. Simultaneously, the cloud management platform also provides an ISO image registration interface, a cloud server installation interface, a cloud server configuration interface, and a cloud server image acquisition interface. The ISO image registration interface receives a first operation input by the tenant, and the cloud management platform can register the ISO file as an ISO image on the public cloud based on this first operation. This ISO image contains the operating system's installation files and registration... Information; The cloud server installation interface is used to receive a second operation input by the tenant, and the cloud management platform can install the operating system installation files carried by the ISO image into the temporary server according to the second operation; The cloud server setup interface is used to receive a third operation input by the tenant, and the cloud management platform can set up the running environment in the operating system of the temporary server according to the third operation; The cloud server image acquisition interface is used to receive a fourth operation input by the tenant, and obtain the image of the temporary cloud server with the running environment set up according to the fourth operation, and record the image as the tenant's system disk image on the public cloud, wherein the system disk image is used to provide the tenant with a cloud server with the operating system and running environment set up on the public cloud.

[0006] The cloud management platform can create the system disk image required by the tenant based on a series of operations input by the tenant and the ISO file uploaded by the tenant. This is the private image required by the tenant, which can improve the user experience and meet the actual application needs of the tenant.

[0007] In one possible implementation of the first aspect, the cloud management platform can also provide a cloud server deletion interface. This interface can receive a fifth operation input by the tenant, and based on this fifth operation, the cloud management platform can delete the temporary cloud server after creating the private image. This releases the resources occupied by the temporary cloud server, avoiding unnecessary resource occupation and waste.

[0008] In one possible implementation of the first aspect, the cloud server installation interface provided by the cloud management platform can also be used to receive a sixth operation input by the tenant. Furthermore, when installing the operating system, the cloud management platform can install the operating system for the temporary cloud server based on the sixth operation, thereby enabling the tenant to customize the installation of the operating system.

[0009] For example, in the process that the cloud management platform installs an operating system for the temporary cloud server, the tenant can specify the installation path, disk partition, driver entry and the like of the operating system through the cloud server installation interface, and the cloud management platform can execute the corresponding operating system installation process based on the custom installation operation of the tenant (i.e., the sixth operation).

[0010] In a possible implementation of the first aspect, the cloud management platform can automatically execute the installation process of the operating system and the corresponding driver according to an automatic answer file integrated in the ISO file, so that the installation process can be executed without the participation of the tenant. In a specific implementation, the cloud management platform can obtain an automatic answer file in the installation file of the operating system, and automatically install the operating system and the driver for the temporary cloud server based on the automatic answer file. The automatic answer file, for example, can be an unattend.xml file or the like, and can define the installation path, partition condition, driver entry and the like of the operating system.

[0011] In a possible implementation of the first aspect, the temporary cloud server can include at least two volumes, i.e., a first volume and a second volume. The first volume can include the operating system and the driver, and the cloud management platform can start the installation from the first volume, install the operating system and the driver in the first volume to the second volume, and set the startup mode of the operating system in the second volume to the hard disk startup when installing the operating system and the driver for the temporary cloud server.

[0012] In a possible implementation of the first aspect, the system disk image created by the cloud management platform can be a system disk image based on a Windows operating system or a Linux operating system. When creating the system disk image based on the Windows operating system, the cloud management platform can first obtain the original installation file uploaded by the tenant from the ISO file upload interface. The original installation file includes the Windows operating system, and since it usually does not include the driver required for installing the operating system, the cloud management platform can integrate the driver corresponding to the Windows operating system in the original installation file, and obtain the ISO file. Thus, the cloud management platform can create the private image based on the Windows operating system based on the ISO file integrated with the driver.

[0013] For example, the driver can be a Virtio driver.

[0014] When creating the private image based on the Linux operating system, the Virtio driver is usually included in the ISO file uploaded by the tenant, so the cloud management platform does not need to integrate the Virtio driver for the ISO file uploaded by the tenant.

[0015] In a second aspect, the embodiments of the present application further provide a device for creating a private image in a public cloud, characterized in that the device is applied to a cloud management platform on a network side, and the device comprises:

[0016] an acquisition module configured to provide an ISO file uploading interface, acquire an ISO file uploaded by a tenant from the ISO file uploading interface, and carry installation files of an operating system in the ISO file;

[0017] a registration module configured to provide an ISO image registration interface, receive a first operation input by the tenant, and register the ISO file as an ISO image of the public cloud according to the first operation, wherein the ISO image carries the installation files of the operating system and registration information;

[0018] an installation module configured to provide a cloud server installation interface, receive a second operation input by the tenant, and install the installation files of the operating system carried by the ISO image into a temporary cloud server according to the second operation;

[0019] a setting module configured to provide a cloud server setting interface, receive a third operation input by the tenant, and set a running environment in an operating system of the temporary cloud server according to the third operation;

[0020] a recording module configured to provide a cloud server image acquisition interface, receive a fourth operation input by the tenant, acquire an image of the temporary cloud server with the running environment set therein according to the fourth operation, and record the image as a system disk image of the tenant in the public cloud, wherein the system disk image is used to provide the tenant to create a cloud server with the operating system and the running environment set therein in the public cloud.

[0021] The second aspect or any of the implementation manners of the second aspect is a method implementation corresponding to the first aspect or any of the implementation manners of the first aspect, and the description in the first aspect or any of the implementation manners of the first aspect is applicable to any of the implementation manners of the second aspect or the second aspect, which will not be repeated here. The device for creating a private image in a public cloud provided by the second aspect has the functions of implementing the above-mentioned implementation manners of the first aspect. The functions can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above-mentioned functions.

[0022] In a third aspect, an embodiment of the present application provides a computing device, comprising: a processor and a memory; the memory is configured to store instructions, when the device is running, the processor executes the instructions stored in the memory, so that the device executes the method for creating a private image in the public cloud in the first aspect or any implementation method of the first aspect. It should be noted that the memory can be integrated into the processor, or independent of the processor. The device can also include a bus. Wherein the processor is connected to the memory through the bus. Wherein the memory can include a readable memory and a random access memory.

[0023] In a fourth aspect, an embodiment of the present application further provides a computer readable storage medium, the readable storage medium stores a program or instructions, when the program or instructions are running on a computer, the method for creating a private image in the public cloud in any of the first aspect is executed.

[0024] In a fifth aspect, an embodiment of the present application further provides a computer program product containing instructions, when the computer program product is running on a computer, the computer executes the method for creating a private image in the public cloud in any of the first aspect.

[0025] In addition, the technical effects brought by any implementation method of the second aspect to the fifth aspect can refer to the technical effects brought by different implementation methods of the first aspect, which will not be described here. BRIEF DESCRIPTION OF DRAWINGS

[0026] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings needed to be used in the embodiments. Obviously, the drawings in the following description are only some embodiments described in the present application, and other drawings can also be obtained by those skilled in the art according to these drawings.

[0027] Figure 1 For an exemplary application scenario diagram;

[0028] Figure 2 For a method flow diagram for creating a private image in an embodiment of the present application;

[0029] Figure 3 For a schematic diagram of the setting interface provided by the cloud management platform 100 to the tenant in an embodiment of the present application;

[0030] Figure 4 For a configuration interface provided by the cloud management platform 100 to the tenant in an embodiment of the present application;

[0031] Figure 5 For a device structure diagram for creating a private image in a public cloud in an embodiment of the present application;

[0032] Figure 6 Fig. 1 is a schematic diagram of a hardware structure of a computing device according to an embodiment of the present application. DETAILED DESCRIPTION

[0033] The technical solutions in the embodiments of the present application will be described below with reference to the drawings. Obviously, the described embodiments are only some of the embodiments of the present specification, not all the embodiments.

[0034] In the description of the present specification, "one embodiment" or "some embodiments" means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the present specification. Thus, the appearance of the phrases "in one embodiment", "in some embodiments", "in other embodiments", "in additional embodiments" and the like in various places in the present specification does not necessarily all refer to the same embodiment, but means "one or more but not all embodiments", unless otherwise specifically stated.

[0035] In the description of the present specification, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" herein is only a description of the association relationship of the associated objects, which means that there can be three relationships, for example, A and / or B, which can mean that A exists alone, A and B exist together, and B exists alone. In addition, in the description of the embodiments of the present specification, "multiple" means two or more than two.

[0036] In the description of the present specification, the terms "first", "second" are only for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined with "first", "second" can explicitly or implicitly include one or more of the features. The terms "include", "contain", "have" and their variants mean "include but not limited to", unless otherwise specifically emphasized.

[0037] At present, when making a private image, the cloud management platform usually converts the existing local image into a private image required by a tenant. Specifically, the existing local image can be registered as a private image through a private image import function, but it is not possible to create a private image for the tenant on the cloud management platform according to the ISO file provided by the tenant.

[0038] To this end, an embodiment of the present application provides a method for creating a private image in a public cloud. A cloud management platform at a network side can provide a plurality of interfaces to a tenant, including an ISO file uploading interface, an ISO image registration interface, a cloud server installation interface, a cloud server setting interface, and a cloud server image acquisition interface. The cloud management platform can obtain an ISO file uploaded by the tenant through the ISO file uploading interface. The ISO file carries an installation file of an operating system. The cloud management platform can register the ISO file as an ISO image of the public cloud according to a first operation input by the tenant through the ISO image registration interface. The ISO image carries the installation file of the operating system and registration information. Then, the cloud management platform can install the installation file of the operating system carried by the ISO image into a temporary cloud server according to a second operation input by the tenant through the cloud server installation interface. The cloud management platform can set a running environment in the operating system of the temporary cloud server according to a third operation input by the tenant through the cloud server setting interface. Thus, a temporary cloud server with the operating system installed can be obtained. The cloud management platform can obtain an image of the temporary cloud server with the running environment set according to a fourth operation input by the tenant through the cloud server image acquisition interface. The image is recorded as a system disk image of the public cloud for the tenant. The system disk image is used to provide the tenant to create a cloud server with the operating system and the running environment set in the public cloud. Thus, the cloud management platform can create a private image required by each tenant according to different ISO files provided for different tenants. Thus, the use experience of the tenant can be improved, and the actual application requirements of the tenant can be met.

[0039] The system disk image can be used as a private image of the tenant in the public cloud. That is, the tenant can quickly build a cloud service or a cloud application with the required operating system and running environment in a virtual machine, a container, or a bare metal server purchased by the tenant through the private image.

[0040] As an example, an embodiment of the present application can be applied to an application scenario as shown in Figure 1 . In the scenario, a cloud management platform 100 can provide an interactive interface 101. A tenant 200 can upload an ISO file and input related operations in the interactive interface 101. Thus, the cloud management platform 100 can install a cloud server according to an ISO image registered by the tenant 200. Thus, a private image expected by the tenant 200 can be further created according to the created cloud server. The cloud management platform 100 can be implemented by one or more computing devices 102 (one computing device 102 is taken as an example in Figure 1 . In actual application, the computing device 102 can be a server or the like providing a corresponding cloud service.

[0041] In order to make the above objectives, characteristics and advantages of the present application more obvious and easy to understand, various non-limiting embodiments in the embodiments of the present application will be exemplarily described below in combination with the drawings. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative labor fall within the scope of protection of the present application.

[0042] Referring to Figure 2 , a flowchart of a method for creating a private image in a public cloud is shown, which can be applied to a cloud management platform 100 as shown in Figure 1 , and specifically can be applied to a device included in the cloud management platform 100 or a functional module on the device, and the following is taken as the cloud management platform 100 performing the creation. The method specifically can include:

[0043] S201: The cloud management platform 100 provides an ISO file upload interface, and obtains an ISO file uploaded by a tenant from the ISO file upload interface, wherein the ISO file carries an installation file of an operating system.

[0044] An image file refers to a series of specific files such as operating system files, boot program files and operating system startup mode files, which are made into a single file according to a certain format. In actual application, the image file can have multiple different formats, such as “.iso” format, “.ccd”, “.bwt” format, “.nrg” format, etc., and the ISO file in the present embodiment refers to an image file based on “.iso” format.

[0045] In some possible embodiments, the cloud management platform 100 can provide an interactive interface 101 as shown in Figure 1 , and the interactive interface 101 can include an operation button for uploading an ISO file. The tenant can click the corresponding operation button in the interactive interface 101 and upload the ISO file, and the ISO file at least includes an installation file of an operating system corresponding to the private image to be created, such as an installation file of a Windows operating system or a Linux operating system. Correspondingly, the cloud management platform 100 can provide an ISO file upload interface corresponding to the operation button, and obtain the ISO file uploaded by the tenant from the ISO file upload interface.

[0046] For example, the cloud management platform 100 can upload the ISO file uploaded by the tenant as an object to an Object Storage Service (OBS) bucket belonging to the tenant, for example, the cloud management platform 100 can store the ISO file in the OBS bucket through the OBS Browser+ tool. Of course, the specific implementation of uploading the ISO file and cloud storage of the ISO file by the cloud management platform 100 is not limited in the embodiment.

[0047] In actual applications, the cloud management platform 100 can receive an image file uploaded by the tenant in other formats, and therefore, in some examples, the cloud management platform 100 can add a type identifier of the image file, such as “Type = IsoImage”, to the ISO file uploaded by the tenant, so as to distinguish the ISO file from the image file in other formats. It is worth noting that the above-mentioned ISO file can be integrated with the driver corresponding to the operating system. Specifically, when the tenant expects to create a private image based on the Windows operating system on the cloud management platform 100, since the original installation file (which can only include the operating system) corresponding to the Windows operating system usually does not contain the driver required for installing the Windows operating system, such as the Virtio driver, the tenant can add the Virtio driver to the original installation file to obtain the ISO file, and then upload the ISO file integrated with the Virtio driver to the cloud management platform 100, such as the OBS bucket corresponding to the tenant. When the tenant creates a private image based on the Linux operating system, the original installation file corresponding to the Linux operating system usually already contains the Virtio driver, and therefore, the tenant can directly upload the original installation file (i.e., the ISO file) corresponding to the Linux operating system to the cloud management platform 100.

[0048] In addition, the cloud management platform 100 can also provide a setting interface, such as the setting interface shown in FIG. 11, for the tenant. The setting interface can include setting options for the system architecture of the temporary cloud server, such as the “X86” architecture type and the “ARM” architecture type in FIG. 11. The tenant can select whether the temporary cloud server runs on the “X86” platform or the “ARM” platform on the setting interface, such as the gray area in FIG. 11 representing that the tenant inputs (or selects) the architecture type as “X86”. The cloud management platform 100 can set the temporary cloud server to run on the “X86” architecture based on the selection operation of the tenant for the running environment. Figure 3 Figure 3 Figure 3

[0049] ​​​In a further possible implementation, the tenant can also select a startup mode of the operating system of the temporary cloud server, such as whether the tenant selects a "BIOS" startup or a "UEFI" startup of the operating system of the temporary cloud server in the setting interface (for example, the gray area in 3 represents that the tenant inputs (or selects) a "BIOS" startup mode). Wherein, "BIOS" refers to a Basic Input Output System, which is a set of fixed programs in a device, recording the basic input and output programs, self-checking programs after startup, and system self-starting programs, etc. (usually not supporting "BIOS" startup mode in ARM architecture). "UEFI" refers to a Unified Extensible Firmware Interface, which skips the self-checking process during startup, and the startup speed is usually faster than that of "BIOS".

[0050] In actual application, the tenant can also input more content on the setting interface, such as inputting which operating system in the ISO file is the operating system, and providing the version of the operating system to the cloud management platform 100; at the same time, the system disk size of the private image to be created (allowed to be between 40 GB and 1024 GB), the name of the private image, etc. can also be input on the input interface. Of course, Figure 3 The setting interface shown is only an exemplary illustration, and the setting interface presented in actual application can be of other styles, or the tenant can input more or less content on the setting interface, which is not limited in the embodiment.

[0051] S202: The cloud management platform 100 provides an ISO image registration interface, which is used to receive the first operation input by the tenant, and registers the ISO file as an ISO image of the public cloud according to the first operation, and the ISO image carries the installation file and registration information of the operating system.

[0052] In actual application, the cloud management platform 100 can register the ISO file uploaded by the tenant as an ISO image by using an image management service (IMS). Wherein, different from other images, the currently registered ISO image in the embodiment does not install an operating system, but carries the installation file of the operating system, so that the corresponding operating system can be installed for the registered ISO image subsequently. At the same time, the ISO image can also have corresponding registration information. Exemplarily, the registration information can be metadata generated when the ISO image is registered in the cloud management platform 100, such as the storage path of the ISO file and other metadata, and the cloud management platform 100 records the metadata.

[0053] In a specific implementation, the cloud management platform can provide an ISO image registration interface to the tenant. The tenant can input a first operation for implementing registration of an ISO image to the cloud management platform 100 through the ISO image registration interface. The first operation can be, for example, an operation (such as a click) that triggers the cloud management platform 100 to generate a registration instruction. Accordingly, the cloud management platform 100 can register the ISO file as an ISO image of the public cloud according to the first operation.

[0054] As an exemplary specific implementation, in the process of registering the ISO image, the cloud management platform 100 can specifically create an elastic compute service instance based on the ISO file, and call a Nova component in the cloud management platform 100 to assemble computing and storage resources for the elastic compute service instance, thereby implementing a temporary cloud server. At this time, the created temporary cloud server has not yet installed an operating system and related drivers.

[0055] Meanwhile, the cloud management platform 100 also includes a Cinder component that provides block storage services for the cloud management platform 100. The Cinder component can provide virtual disks (also referred to as volumes) for cloud servers. The Nova component can call the Cinder component to create at least two volumes for the temporary cloud server when creating the temporary cloud server. In this embodiment, a first volume and a second volume are created as an example.

[0056] The Cinder component can access the database in Glance through a Cinder driver, and find the download path and other metadata of the ISO file in the OBS bucket from the database according to the identifier of the ISO file, and download the ISO file from the OBS bucket based on the obtained metadata. As an example, the download path of the ISO file in the OBS bucket can record an IP address, an OBS bucket identifier (such as the name of the OBS bucket), an access port of the OBS bucket, and an object identifier stored in the OBS bucket, so that the Cinder component determines the IP address of the OBS bucket based on the download path, accesses a specific OBS bucket (determined according to the OBS bucket) through the corresponding OBS port, and accesses the object corresponding to the object identifier in the OBS bucket to obtain the ISO file.

[0057] Then, the Cinder driver can read the ISO file based on the obtained metadata and write it (or the operating system and drivers in the ISO file) into the first volume. At this time, the first volume carries the installation file of the operating system (including the driver), and the second volume is temporarily empty and is a blank volume.

[0058] In a further possible implementation, the cloud management platform 100 can also configure the availability zone, the specification, the cloud server name, the corresponding project name, the network card attribute, the network rule file for cleaning up the temporary cloud server, and the like, of the temporary cloud server in the process of registering the ISO image, so that the attributes of the temporary cloud server meet the requirements of the tenant. In actual application, the tenant can input an operation for configuring the temporary cloud server to the cloud management platform 100 through the cloud server configuration interface or other interfaces. For example, the cloud management platform 100 can present the configuration interface as shown in FIG. 6 to the tenant, so that the tenant performs corresponding configuration on the configuration interface. Further, the configuration interface can also present other information of the temporary cloud server to the tenant, such as the disk space size of the first volume (system disk) and the second volume (data disk) created and the configuration cost of the temporary cloud server this time. Figure 4

[0059] S203: The cloud management platform 100 provides a cloud server installation interface, which is used to receive a second operation input by the tenant, and installs the installation file of the operating system carried by the ISO image into the temporary cloud server according to the second operation.

[0060] Since the temporary cloud server created at present contains the ISO file, but the installation of the operating system is not completed, the cloud management platform 100 can further install the operating system for the temporary cloud server. Then, the cloud management platform 100 can provide a cloud server installation interface to the tenant, and the tenant inputs a second operation for installing the operating system to the cloud management platform 100 through the cloud server installation interface, which can be an operation (such as clicking a control for triggering the installation of the operating system, and the like) for triggering the cloud management platform 100 to install the operating system.

[0061] In an exemplary specific implementation, since the temporary cloud server usually does not contain an optical drive, in the process of writing the ISO file into the first volume, the boot mode of the operating system in the ISO file written into the first volume can be set as “cdrom”, so as to simulate the boot installation of the operating system from the cdrom optical drive, and the disk interface type used is “ide”. In this way, the Cinder driver can boot and install from the first volume, and install the operating system and the driver (such as Virtio driver, and the like) in the first volume into the second volume. In the installation process, the boot mode of the operating system in the second volume can be changed to “disk”, that is, the boot mode of the operating system installed in the second volume is set to boot from the hard disk, and the disk interface type corresponding to the second volume is also changed to “virtio”. In this way, the installation of the operating system and the driver for the temporary cloud server can be realized.

[0062] ​In actual application, in order to facilitate the Cinder component to start from the first volume first, the Cinder component can specify the start order of the volume when creating the first volume and the second volume. For example, the Cinder component can include the start order identifier, such as boot_index, in the created volume, and the Cinder component can start from the first volume according to the start order identifier, so as to install the operating system and the driver in the first volume to the second volume. For example, the Cinder component can assign the start order identifier boo_index of the first volume as 0, and assign the start order identifier boo_index of the first volume as 1, and correspondingly, the Cinder component can start from the volume with boo_index = 0 by default. Of course, the embodiment is not limited to the specific implementation manner of starting the first volume first.

[0063] It is worth noting that in the above embodiment, the Cinder component creates the first volume and the second volume at the same time, and in actual application, the Cinder component can create the first volume first, and then create the second volume after successfully downloading the ISO file from the OSB bucket, and the embodiment is not limited thereto.

[0064] When installing the operating system and the driver, the cloud management platform 100 can be installed by the tenant participating in the installation process, such as specifying the installation path of the operating system, or can be automatically installed by the cloud management platform 100 based on the second operation.

[0065] In the implementation manner in which the tenant participates in the installation of the operating system and the driver, the tenant can also input the sixth operation through the cloud server installation interface, and the cloud management platform 100 can determine how to install the operating system and the corresponding driver based on the sixth operation. For example, the cloud management platform 100 can provide an installation definition interface to the tenant. The tenant can remotely define the installation of the operating system on the installation definition interface, such as defining the installation path, disk partition, disk naming, etc. of the operating system in the temporary cloud server, and the sixth operation can be the selection or input operation of the tenant for the disk partition, installation path, and driver item to be installed of the operating system. In this way, the cloud management platform 100 can obtain the installation definition operation of the tenant for the operating system, and install the corresponding operating system for the temporary cloud server according to the installation definition operation.

[0066] In the above embodiment, the tenant participates in the installation of the operating system and the driver, so that the cloud management platform 100 needs to determine the installation information of the operating system and the driver, such as the disk partition, the installation path, and the driver item, based on the sixth operation input by the tenant, so that the tenant needs to be on duty. Correspondingly, in other possible embodiments, the cloud management platform can also automatically install the operating system and the driver.

[0067] In a specific implementation, the tenant uploads an ISO file integrated with an automatic response file (such as an unattend.xml file, etc.), so that the cloud management platform 100 can start the automatic response file during the installation of the operating system and the driver, and automatically determine the installation path of the operating system, the partition condition, and which driver to install based on the automatic response file, so that the installation process of the operating system and the driver can be performed without the participation of the tenant, and a full-automatic installation process without manual intervention is realized. For example, for a Windows system, an unattend.xml file can be integrated in the ISO file, and for Linux, an AutoYaST or Kickstart file can be integrated in the ISO file. Of course, in actual applications, other ways can also be used to realize the automatic installation of the operating system and the driver, and the present embodiment does not limit this.

[0068] S204: The cloud management platform 100 provides a cloud server setting interface, which is used to receive a third operation input by the tenant, and sets a running environment in the operating system of the temporary cloud server according to the third operation.

[0069] In actual applications, different cloud servers can be in different running environments, and therefore, the cloud management platform 100 can set a corresponding running environment for the created temporary cloud server, which can be set by the tenant. In a specific implementation, the cloud management platform 100 can provide a cloud server setting interface for the tenant; the tenant can input a third operation for setting a running environment to the cloud management platform 100 through the cloud server setting interface, so that the cloud management platform 100 can set a running environment for the temporary cloud server based on the third operation.

[0070] In some examples, the cloud management platform 100 can specifically configure corresponding software in the operating system of the temporary cloud server, such as office software, drawing software, or other software customized by the tenant, etc., so as to complete the configuration of the running environment in the operating system.

[0071] It is worth noting that the present embodiment does not limit the specific execution order of step S204 and step S203 in actual applications. That is, in other embodiments, the running environment setting process in step S204 can be performed first, and then the operating system installation process in step S203 can be performed, or the cloud management platform can also perform step S204 and step S203 at the same time.

[0072] S205: The cloud management platform 100 provides a cloud server image acquisition interface, which is used to receive a fourth operation input by the tenant, and acquire an image of a temporary cloud server provided with the running environment according to the fourth operation, and record the image as a system disk image of the tenant in the public cloud, wherein the system disk image is used to provide the tenant to create a cloud server provided with an operating system and a running environment in the public cloud.

[0073] The obtained system disk image can be used as a private image of the tenant in the public cloud, so that the user can quickly build a cloud service or cloud application provided with the required operating system and running environment of the user in the public cloud through the private image.

[0074] After the temporary cloud server is installed and the setting of the running environment is completed, the operating system and the driver on the temporary cloud server can meet the expectations of the tenant, and then the cloud management platform 100 can create a private image required by the tenant based on the temporary cloud server. Specifically, the second volume of the temporary cloud server can be exported as an image file, and the private image required by the tenant can be created based on the image file exported by the second volume. The private image has already installed an operating system and corresponding drivers, and can be used as a template to be distributed to the tenant.

[0075] In a specific implementation, the Cinder component can export the data (including the operating system, the driver, etc.) in the second volume into an image file, and place the image file in the OBS bucket for storage. Meanwhile, the metadata inherited from the ISO file saved in the first volume, such as the name of the image file, the type of the operating system, the installed driver, the identification of the private image, and other data metadata, is inherited. It is worth noting that the Cinder component can also update the metadata inherited from the first volume. For example, the metadata corresponding to the original ISO file may include metadata of the startup mode “cdrom”, but the operating system in the current ISO file has been installed in the second volume, and the temporary cloud server does not need to install the operating system from the cdrom again, so the metadata (i.e., “cdrom”) in the ISO file does not need to be retained. Accordingly, the metadata can be deleted in the process of inheriting the metadata from the first volume. Of course, in actual applications, the metadata updated by the Cinder component adaptively can also include other metadata (such as the disk interface type corresponding to the ISO file needs to be updated from “ide” to “disk”), which can be determined according to the needs in actual applications, and this embodiment will not be described here.

[0076] It is worth noting that since the ISO file can be stored in the OBS bucket, and the ISO file can be directly obtained from the OBS bucket in the process of creating the private image, without the need to store the ISO file locally in the node supporting the cloud management platform in advance, thus, not only the storage space of the node can be reduced, but also since the ISO file can not be stored locally, the problem that the live migration of the temporary cloud server cannot be implemented because the temporary cloud server needs to carry the local ISO file can be avoided.

[0077] In a further possible implementation, after the cloud management platform 100 creates the private image desired by the tenant, the cloud management platform 100 can delete the temporary cloud server generated in the process of creating the private image, so as to release the resources occupied by the temporary cloud server. Therefore, in the present embodiment, the method can further include:

[0078] S206: The cloud management platform 100 provides a cloud server deletion interface, which is used to receive the fifth operation input by the tenant and delete the temporary cloud server according to the fifth operation.

[0079] In this way, the resources occupied by the temporary cloud server can be released, and unnecessary occupation and waste of cloud server resources can be avoided.

[0080] Based on the method of creating a private image by the cloud management platform, the present embodiment further provides an apparatus for creating a private image in a public cloud. Referring to Figure 5 , a structural schematic diagram of an apparatus for creating a private image in a public cloud is shown, and the apparatus 500 can be applied to a cloud management platform on the network side. As shown in Figure 5 , the apparatus 500 can specifically include:

[0081] The obtaining module 501 is configured to provide a disc image ISO file uploading interface, and obtain an ISO file uploaded by a tenant from the ISO file uploading interface, the ISO file carrying installation files of an operating system;

[0082] The registration module 502 is configured to provide an ISO image registration interface, and the ISO image registration interface is used to receive a first operation input by the tenant, and register the ISO file as an ISO image of the public cloud according to the first operation, the ISO image carrying the installation files of the operating system and registration information;

[0083] The installation module 503 is configured to provide a cloud server installation interface, and the cloud server installation interface is used to receive a second operation input by the tenant, and install the installation files of the operating system carried by the ISO image into a temporary cloud server according to the second operation;

[0084] The setting module 504 is configured to provide a cloud server setting interface, the cloud server setting interface is configured to receive a third operation input by the tenant, and set a running environment in an operating system of the temporary cloud server according to the third operation;

[0085] The recording module 505 is configured to provide a cloud server image acquisition interface, the cloud server image acquisition interface is configured to receive a fourth operation input by the tenant, and acquire an image of the temporary cloud server provided with the running environment according to the fourth operation, and record the image as a system disk image of the tenant in the public cloud, wherein the system disk image is configured to be provided to the tenant to create the cloud server provided with the operating system and the running environment in the public cloud.

[0086] In a possible implementation, the apparatus 500 further includes:

[0087] The deleting module 506 is configured to provide a cloud server deleting interface, the cloud server deleting interface is configured to receive a fifth operation input by the tenant, and delete the temporary cloud server according to the fifth operation.

[0088] In a possible implementation, the cloud server installing interface is further configured to receive a sixth operation input by the tenant, and the installing module 503 is specifically configured to install the operating system for the temporary cloud server according to the sixth operation.

[0089] In a possible implementation, the installing module 503 is specifically configured to:

[0090] acquire an automatic response file in an installation file of the operating system;

[0091] install the operating system and the driver for the temporary cloud server based on the automatic response file.

[0092] In a possible implementation, the temporary cloud server includes a first volume and a second volume, the first volume includes the operating system and the driver, and the installing module 503 is specifically configured to install the operating system and the driver in the first volume into the second volume, and the starting mode of the operating system in the second volume is starting from a hard disk.

[0093] In a possible implementation, the system disk image is a system disk image based on a Windows operating system, and the acquiring module 501 is specifically configured to:

[0094] acquire an original installation file including the Windows operating system uploaded by the tenant from an ISO file uploading interface;

[0095] integrate the driver corresponding to the Windows operating system in the original installation file to obtain the ISO file.

[0096] The device 500 for creating a private image in a public cloud provided in this embodiment corresponds to the method for creating a private image in a public cloud in the foregoing embodiments, and therefore, the specific implementation of each module provided in this embodiment and the technical effects thereof can be referred to the description of the related content in the foregoing embodiments, which will not be repeated here.

[0097] In addition, the embodiments of the present application further provide a computing device, which can be a device for implementing the cloud management platform, or a device for implementing the functions of the cloud management platform in the foregoing embodiments on the cloud management platform. Referring to Figure 6 , a schematic diagram of the hardware structure of the computing device is shown. As shown in Figure 6 , the computing device 600 can include a communication interface 610, a processor 620. Optionally, the device 600 can further include a memory 630. The memory 630 can be arranged inside the computing device 600, or arranged outside the computing device 600. The actions performed by the cloud management platform in the foregoing embodiments can be implemented by the processor 620. The processor 620 receives the user input operation through the communication interface 610, and is configured to implement any method performed by the cloud management platform described in Figure 2 . The communication interface can include the ISO file uploading interface, the ISO image registration interface, the cloud server installation interface, the cloud server setting interface, the cloud server image obtaining interface, and the cloud server deleting interface, and in some examples, the communication interface can further include the cloud server deleting interface. In the implementation process, each step of the process flow can be completed by the integrated logic circuit of the hardware in the processor 620 or the instructions in the form of software. Figure 1 The method performed by the cloud management platform described in . For the sake of brevity, it will not be repeated here. The program code for implementing the method described above can be stored in the memory 630. The memory 630 and the processor 620 are connected, such as coupled connection.

[0098] Some features of the embodiments of the present application can be completed / supported by the processor 620 executing the program instructions or software code in the memory 630. The loaded software components on the memory 630 can be summarized in terms of function or logic, for example, the obtaining module 501, the registration module 502, the installation module 503, the setting module 504, the recording module 505, and the deleting module 506 shown in Figure 5 .

[0099] Any communication interface involved in the embodiments of the present application can be a circuit, a bus, a transceiver, or any other device that can be used for information interaction, such as the communication interface 610 in the computing device 600. The other device can be a device connected to the computing device 600, for example, a device used by the tenant when uploading the ISO file.

[0100] The processor in the embodiments of the present application can be a general processor, a digital signal processor, an application specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, and can implement or execute the disclosed methods, steps and logic block diagrams in the embodiments of the present application. The general processor can be a microprocessor or any conventional processor. The steps of the method disclosed in combination with the embodiments of the present application can be directly embodied as hardware processor execution or executed by a combination of hardware and software modules in the processor.

[0101] The coupling in the embodiments of the present application is an indirect coupling or communication connection between devices, modules or modules, which can be electrical, mechanical or other forms, for information interaction between devices, modules or modules.

[0102] The processor can operate in cooperation with the memory. The memory can be a non-volatile memory such as a hard disk drive (HDD) or a solid-state drive (SSD), etc., and can also be a volatile memory such as a random-access memory (RAM). The memory is any other medium capable of carrying or storing desired program code in the form of instructions or data structures and capable of being accessed by a computer, but is not limited thereto.

[0103] The embodiments of the present application do not limit the specific connection medium between the above-mentioned communication interface, processor and memory. For example, the memory, processor and communication interface can be connected through a bus. The bus can be divided into an address bus, a data bus, a control bus, etc.

[0104] Based on the above embodiments, the embodiments of the present application also provide a computer storage medium, which stores a software program. When the software program is read and executed by one or more processors, the method performed by the cloud management platform provided by any one or more of the above embodiments can be implemented. The computer storage medium can include a U disk, a mobile hard disk, a read-only memory, a random access memory, a magnetic disk or an optical disk, and various media that can store program codes.

[0105] Based on the above embodiments, the embodiments of the present application also provide a chip, which includes a processor for implementing the functions of the cloud management platform involved in the above embodiments, such as for implementing the method performed by the cloud management platform in the above embodiments. Figure 1 Optionally, the chip further includes a memory for storing necessary program instructions and data for the processor. The chip can be composed of a chip, or can include a chip and other discrete devices.

[0106] The terms "first", "second", "third", etc. and the like in the description and in the claims of the present application and the above drawings are used for distinguishing between similar objects and not necessarily for describing a specific sequential or chronological order. It is to be understood that the terms so used are interchangeable under appropriate circumstances and are for descriptive purposes notwithstanding possible

[0107] Those skilled in the art will appreciate that embodiments of the present application can be readily used as a method, a system or a computer program product. Accordingly, the present application can take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application can take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROMs, optical storage devices, etc.) embodying computer readable program code.

[0108] The embodiments of the present application are described with reference to the flowchart illustrations and / or block diagrams of the methods, apparatus (systems) and computer program products according to embodiments of the present application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processing system or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart illustrations and / or block diagrams. Figure 1 one or more functions specified in the flowchart illustrations and / or block diagrams. Figure 1 means for performing each of the functions specified in the flowchart illustrations and / or block diagrams.

[0109] These computer program instructions can also be stored in a computer- readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instructions which implement the functions specified in the flowchart illustrations and / or block diagrams. Figure 1 one or more functions specified in the flowchart illustrations and / or block diagrams. Figure 1 means for performing each of the functions specified in the flowchart illustrations and / or block diagrams.

[0110] These computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart illustrations and / or block diagrams. Figure 1 one or more functions specified in the flowchart illustrations and / or block diagrams. ​ means for performing each of the functions specified in the flowchart illustrations and / or block diagrams.

[0111] It is apparent that a person skilled in the art can make various changes and modifications to the embodiments of the application without departing from the scope of the application. Therefore, if these modifications and changes of the embodiments of the application belong to the scope of the claims of the application and their equivalent technologies, the application also intends to include these modifications and changes.

Claims

1. A method for creating a private image in a public cloud, characterized by, The method is applied to a cloud management platform on a network side, and the method comprises: providing an optical disc image ISO file uploading interface, obtaining an ISO file uploaded by a tenant from the ISO file uploading interface, the ISO file carrying installation files of an operating system; providing an ISO image registration interface, the ISO image registration interface being used for receiving a first operation input by the tenant, and registering the ISO file as an ISO image of a public cloud according to the first operation, the ISO image carrying the installation files of the operating system and registration information; providing a cloud server installation interface, the cloud server installation interface being used for receiving a second operation input by the tenant, and installing the installation files of the operating system carried by the ISO image into a temporary cloud server according to the second operation; providing a cloud server setting interface, the cloud server setting interface being used for receiving a third operation input by the tenant, and setting a running environment in an operating system of the temporary cloud server according to the third operation; providing a cloud server image acquisition interface, the cloud server image acquisition interface being used for receiving a fourth operation input by the tenant, and acquiring an image of the temporary cloud server provided with the running environment according to the fourth operation, and recording the image as a system disk image of the tenant in the public cloud, wherein the system disk image is used for being provided to the tenant to create a cloud server provided with the operating system and the running environment on the public cloud; the temporary cloud server comprising a first volume and a second volume, and the installation of the installation files of the operating system into the temporary cloud server comprising: installing the operating system and the driver in the first volume into the second volume, setting a starting mode of the operating system in the first volume as cdrom, setting a disk interface type of the first volume as ide, setting a starting mode of the operating system in the second volume as starting from a hard disk, and setting a disk interface type of the second volume as virtio.

2. The method of claim 1, wherein, The method further comprises: providing a cloud server deletion interface, the cloud server deletion interface being used for receiving a fifth operation input by the tenant, and deleting the temporary cloud server according to the fifth operation.

3. The method of claim 1, wherein, The cloud server installation interface is further used for receiving a sixth operation input by the tenant, and the installation of the installation files of the operating system carried by the ISO image into the temporary cloud server comprises: installing the operating system and the driver for the temporary cloud server according to the sixth operation.

4. The method of claim 1, wherein, The installation of the installation files of the operating system carried by the ISO image into the temporary cloud server comprises: obtaining an auto-answer file in the installation files of the operating system; installing the operating system and the driver for the temporary cloud server based on the auto-answer file.

5. The method according to any one of claims 1 to 4, characterized in that, The system disk image is a system disk image based on a Windows operating system, and the obtaining of the ISO file uploaded by the tenant from the ISO file uploading interface comprises: obtaining original installation files of a Windows operating system uploaded by the tenant from the ISO file uploading interface; Integrate the driver corresponding to the Windows operating system in the original installation file to obtain the ISO file.

6. An apparatus for creating a private image on a public cloud, the apparatus comprising: The device is applied to a cloud management platform at a network side, and the device comprises: An acquisition module is configured to provide an ISO file uploading interface, acquire an ISO file uploaded by a tenant from the ISO file uploading interface, and carry an installation file of an operating system. A registration module is configured to provide an ISO image registration interface, receive a first operation input by the tenant, register the ISO file as an ISO image of a public cloud according to the first operation, and carry the installation file of the operating system and registration information. An installation module is configured to provide a cloud server installation interface, receive a second operation input by the tenant, and install the installation file of the operating system carried by the ISO image into a temporary cloud server according to the second operation. A setting module is configured to provide a cloud server setting interface, receive a third operation input by the tenant, and set a running environment in an operating system of the temporary cloud server according to the third operation. A recording module is configured to provide a cloud server image acquisition interface, receive a fourth operation input by the tenant, acquire an image of the temporary cloud server provided with the running environment according to the fourth operation, and record the image as a system disk image of the tenant in the public cloud, wherein the system disk image is used to provide the tenant to create the cloud server provided with the operating system and the running environment in the public cloud. The temporary cloud server comprises a first volume and a second volume, and the installation module is configured to install the operating system and the driver in the first volume into the second volume, set a startup mode of the operating system in the first volume as cdrom, set a disk interface type of the first volume as ide, set a startup mode of the operating system in the second volume as starting from a hard disk, and set a disk interface type of the second volume as virtio.

7. The apparatus of claim 6, wherein, The device further comprises: A deletion module is configured to provide a cloud server deletion interface, receive a fifth operation input by the tenant, and delete the temporary cloud server according to the fifth operation.

8. The apparatus of claim 6, wherein, The cloud server installation interface is further configured to receive a sixth operation input by the tenant, and the installation module is specifically configured to install the operating system and the driver for the temporary cloud server according to the sixth operation.

9. The apparatus of claim 6, wherein, The installation module is specifically configured to: Acquire an auto-answer file in the installation file of the operating system. Install the operating system and the driver for the temporary cloud server based on the auto-answer file.

10. The device of any one of claims 6 to 9, wherein, The system disk image is a system disk image based on a Windows operating system, and the acquisition module is specifically configured to: Acquire an original installation file of a Windows operating system from the ISO file uploading interface. Integrate the driver corresponding to the Windows operating system in the original installation file to obtain the ISO file.

11. A computing device, comprising: A computer program product comprising a memory storing a program and a processor configured to execute the program to perform the method of any one of claims 1 to 5.

12. A computer-readable storage medium, characterized in that, A computer program product comprising instructions which, when executed on a computing device, cause the computing device to perform the method of any one of claims 1 to 5.

Citation Information

Patent Citations

  • Deployment method and device for function components in cloud computing system

    CN107733985A

  • Mirror image creating method and device for cloud platform and storage medium

    CN111045781A