Cloud server management method, method and device for providing data services
By directly starting the cloud server using the startup firmware and the core resources provided by the user in the cloud server, the problem of cloud server instances in the existing technology cannot be started, and the requirements of fast startup and user-defined kernels are realized.
Patent Information
- Application Number
- CN202010454889.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-05-26
- Publication Date
- 2025-06-24
- Estimated Expiration
- 2040-05-26
AI Technical Summary
When the existing technology realizes the normal operation of the cloud server kernel, it is necessary to pass the process of creating and importing custom images files, which easily leads to the problem of inability to start cloud server instances, and the user's custom kernel needs are difficult to meet.
Directly start the cloud server instance through the boot firmware in the operating system (such as qboot) and the core resources provided by the user, eliminating the production and import of custom image files and directly running the cloud server.
It realizes the rapid start-up and efficient management of cloud servers, avoids the problem of inadequacy with cloud servers, meets the needs of users' custom kernels, and improves the user experience.
Smart Images

Figure CN113296838B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computers, and in particular, to a method for managing a cloud server, a method for providing data services, an apparatus, a device, and a medium. Background Art
[0002] The kernel is the internal core program of the operating system, which can provide external core management calls for computer devices. Among them, the code of the operating system is divided into two spaces, that is, the address space where the kernel is located is called the kernel space, and the address space occupied by the external management program and user processes is called the external space.
[0003] Currently, if you want to implement the normal operation of the kernel of a cloud server on the cloud server, you need to create a custom image file in other servers according to custom core resources (such as kernel), then import the custom image file into the cloud server, and then reinstall and start the cloud server according to the imported custom image file. However, this method of uploading a custom image file may be incompatible with the cloud server, resulting in the inability to start the cloud server instance; in addition, if the kernel version of the system image provided by the cloud platform running on the cloud server is used, in some cases, it cannot meet the needs of users to customize the kernel. Summary of the Invention
[0004] Embodiments of the present invention provide a method for managing a cloud server, a method for providing data services, an apparatus, a device, and a medium, which can effectively adapt to the cloud server and meet the needs of users to customize the kernel.
[0005] In a first aspect, an embodiment of the present invention provides a method for managing a cloud server, the method may include:
[0006] Obtain target data, where the target data includes core resources of an operating system;
[0007] When it is determined that the storage address of the core resources meets a preset condition, start a cloud server instance through a startup firmware and core resources in the operating system to run the cloud server.
[0008] In a second aspect, an embodiment of the present invention provides a method for providing data services, the method may include:
[0009] Receive target data sent by a user, where the target data includes core resources of an operating system;
[0010] When it is determined that the storage address of the core resources meets a preset condition, start a cloud server instance through a startup firmware and core resources in the operating system;
[0011] Run a cloud server according to the started cloud server instance, and provide data services to users based on the cloud server.
[0012] In a third aspect, an embodiment of the present invention provides a cloud server management device, which may include:
[0013] An acquisition module, configured to acquire target data, where the target data includes core resources of an operating system;
[0014] A processing module, configured to start a cloud server instance through a startup firmware and core resources in the operating system when it is determined that the storage address of the core resources meets a preset condition, so as to run the cloud server.
[0015] In a fourth aspect, an embodiment of the present invention provides a device for providing data services, which may include:
[0016] A receiving module, configured to receive target data sent by a user, where the target data includes core resources of an operating system;
[0017] A processing module, configured to start a cloud server instance through a startup firmware and core resources in the operating system when it is determined that the storage address of the core resources meets a preset condition;
[0018] The processing module is further configured to run the cloud server according to the started cloud server instance, and provide data services to users based on the cloud server.
[0019] In a fifth aspect, an embodiment of the present invention provides a computing device, including: a processor and a memory storing computer program instructions; wherein, when the processor executes the computer program instructions, the cloud server management method provided in the first aspect is implemented; or, the method for providing data services provided in the second invention is implemented.
[0020] In a sixth aspect, an embodiment of the present invention provides a computer storage medium, on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the cloud server management method provided in the first aspect is implemented; or, the method for providing data services provided in the second invention is implemented.
[0021] The method provided by the embodiment of the present invention starts a cloud server instance through a startup firmware (such as qboot) in the operating system and core resources provided by the user, and directly runs the cloud server, which can save the process of making a custom image file according to a custom kernel and importing the custom image file into the cloud server. In this way, the shortest path can be achieved, and the speed of restarting the cloud server is faster, improving the efficiency of restarting the cloud server.
[0022] In addition, the method provided by the embodiments of the present invention omits the process of creating a custom image file. Therefore, the situation where the cloud server instance cannot be started due to incompatibility with the cloud server will not occur. Thus, the method provided by the embodiments of the present invention can meet the user's need for a custom kernel while ensuring the operation of the cloud server and being able to provide data services to users based on the cloud server, improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required to be used in the embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings without creative efforts.
[0024] Figure 1 FIG. shows a schematic diagram of an application scenario of a method for providing data services based on a cloud server provided by an embodiment of the present invention;
[0025] Figure 2 FIG. shows a schematic flowchart of a cloud server management method provided by an embodiment of the present invention;
[0026] Figure 3 FIG. shows a schematic structural diagram of a process of a method for providing data services provided by an embodiment of the present invention;
[0027] Figure 4 FIG. shows a schematic structural diagram of a cloud server management device provided by an embodiment of the present invention;
[0028] Figure 5 FIG. shows a schematic structural diagram of a device for providing data services provided by an embodiment of the present invention;
[0029] Figure 6 FIG. shows a schematic structural diagram of a computing device provided by an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0030] The following will describe in detail the features and exemplary embodiments of various aspects of the present invention. In order to make the objectives, technical solutions, and advantages of the present invention more clear and understandable, the present invention will be further described in detail below with reference to the drawings and embodiments. It should be understood that the specific embodiments described herein are only configured to explain the present invention and are not configured to limit the present invention. For those skilled in the art, the present invention can be implemented without some of these specific details. The following description of the embodiments is only provided to provide a better understanding of the present invention by showing examples of the present invention.
[0031] It should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, such that a process, method, article or device comprising a series of elements not only includes those elements but also includes other elements not expressly listed, or also includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "comprising..." does not exclude the presence of additional identical elements in the process, method, article or device comprising the element.
[0032] Currently, if one wants to achieve the normal operation of the kernel of a cloud server on the cloud server, it is necessary to create a custom image file in other servers according to core resources (such as kernel), then import the custom image file into the cloud server, and then reinstall the system of the cloud server according to the imported custom image file. Among them, the kernel contains detection programs and driver modules for driving various hardware of the host.
[0033] The ways for users to customize the kernel can be as follows. In the first way, the user needs to select a system image (AMI) close to the target kernel in the cloud platform of the cloud server to start an instance, and compile the custom kernel required by the user or modify the target menu such as menu.lst to point to the target kernel in the instance, so as to determine the target kernel as the custom kernel. In the second way, the user can make an image from the compiled custom kernel (or the target kernel pointed to), and then import it into the cloud platform provided by the cloud server to generate a custom image file.
[0034] However, the above ways have the following defects. First, both ways solve the need for customizing the kernel according to the image level, and this way is not lightweight enough. Second, the reachable paths of the above two ways are relatively long. For example, in the first way, it is necessary to start an instance first and rely on the image kernel provided by the cloud platform. In the second way, it is necessary to upload the image to the cloud server and then import it into the cloud platform to generate an available image. In this way, it will lead to too low efficiency for users in the process of customizing the kernel, and there will also be a situation where the cloud server instance cannot be started due to incompatibility with the cloud server.
[0035] Therefore, in order to solve the above problems, the embodiments of the present invention provide a cloud server management method, a method for providing data services based on a cloud server, a device, a device and a medium, which can effectively adapt to the cloud server and meet the needs of users for customizing the kernel. The following will be introduced in detail with reference to the accompanying drawings.
[0036] Figure 1 Schematic diagram of an application scenario of a method for providing data services based on a cloud server according to an embodiment of the present invention. Among them, the method for providing data services based on a cloud server includes a method for managing a cloud server according to an embodiment of the present invention.
[0037] As Figure 1 shown, it is divided into a user terminal 10 and a cloud server 11.
[0038] Among them, the user terminal 10 sends target data to the cloud server 11. Here, the target data includes the core resources of the operating system (such as a custom kernel) and the permissions to access the core resources. Further, the user terminal 10 uploads the pre-compiled core resources to the storage service nodes provided by the cloud platform in the cloud server 11, and grants the cloud server the permission to access the storage service nodes.
[0039] Next, when the cloud server 11 receives the target data sent by the user terminal 10, it determines whether the storage address of the core resources meets the preset conditions; when the storage address of the core resources meets the preset conditions, it starts a cloud server instance by running the startup firmware (such as qboot startup firmware) and the core resources in the operating system of the cloud server to re-run the cloud server 11.
[0040] Here, the qboot startup firmware may include a minimized x86 firmware for a virtual operating system simulator (QEMU), which is used to start the Linux kernel (Linux kernel) under the Linux system, and can start a cloud server instance within 500 - 700 milliseconds. It should be noted that in addition to the qboot startup firmware, the startup firmware in the embodiments of the present invention may also include, but is not limited to, startup firmware similar to the qboot startup firmware in function.
[0041] Then, based on the re-run cloud server, data services corresponding to the target data are provided to the user, that is, a cloud server corresponding to the target data is delivered to the user.
[0042] Based on this, the user can use the custom kernel in at least one of the following possible scenarios:
[0043] (1) Specify the storage address of the custom kernel when creating a cloud server in the cloud server 11, so that there is no need to use the images already available on the cloud platform. (2) For the cloud server created by specifying the kernel, perform an operation to replace the system kernel resource kernel. (3) For the cloud server created by specifying the kernel, perform an operation to reset the system kernel resource kernel.
[0044] Here, in any possible scenario, the above method can be used to restart the cloud server. Thus, the user-defined image is lightweighted into a custom kernel, providing the functions of creating a cloud server with the custom kernel, replacing the system kernel resource kernel, and resetting the system kernel resource kernel, and providing a feasible method for starting a Linux cloud server based on the custom kernel.
[0045] Thus, by using the startup firmware in the operating system (such as the qboot startup firmware) and the core resources provided by the user to start the cloud server instance and directly run the cloud server, the process of creating a user-defined image file according to the custom kernel and importing the user-defined image file into the cloud server can be omitted. This can achieve the shortest path to the goal, and the speed of restarting the cloud server is faster, improving the efficiency of restarting the cloud server. In addition, the method provided in the embodiments of the present invention omits the process of creating a user-defined image file. Therefore, the situation where the cloud server instance cannot be started due to incompatibility with the cloud server will not occur. Thus, the method provided in the embodiments of the present invention can meet the user's demand for a custom kernel while ensuring the operation of the cloud server and being able to provide data services to users based on the cloud server, improving the user experience.
[0046] Here, in addition to the above application scenarios, the cloud server management method in the embodiments of the present invention can also be applied to scenarios where when the user needs to put forward a custom requirement, the cloud server can provide an adapted function for the custom requirement, enable the custom requirement to run normally on the cloud server, and based on the restarted server, be able to provide data services corresponding to the user's custom requirement to the user.
[0047] It should be noted that the cloud server management method provided in the embodiments of the present invention provides an additional service function. Based on the above scenarios, it can be understood that when the user-defined image file is adapted to the cloud server, the cloud server can still be restarted in the two ways involved in the prior art. Of course, according to the user's choice or when an exception occurs, the cloud server management method provided in the embodiments of the present invention can be used to restart the cloud server.
[0048] Based on this, the following will be combined with Figure 2 to describe the cloud server management method in detail.
[0049] Figure 2 shows a schematic flowchart of a cloud server management method provided by an embodiment of the present invention. As Figure 2 shown, the cloud server management method may include step 210 - step 220, which are specifically as follows:
[0050] First, in step 210, obtain target data, where the target data includes core resources. Then, in step 220, when it is determined that the storage address of the core resources meets the preset conditions, start a cloud server instance through the startup firmware and core resources in the operating system to run the cloud server.
[0051] In this way, by starting the cloud server instance through the startup firmware (such as the qboot startup firmware) in the operating system and the core resources provided by the user, and directly running the cloud server, the process of making a custom image file according to the custom kernel and importing the custom image file into the cloud server can be omitted. In this way, the target shortest path can be achieved, and the speed of restarting the cloud server is faster, improving the efficiency of restarting the cloud server.
[0052] In addition, the method provided by the embodiment of the present invention omits the process of making a custom image file. Therefore, the situation where the cloud server instance cannot be started due to incompatibility with the cloud server will not occur. Thus, the method provided by the embodiment of the present invention can meet the user's need for a custom kernel while ensuring the operation of the cloud server and being able to provide data services to the user based on the cloud server, improving the user experience.
[0053] The above steps will be described separately below.
[0054] First, regarding step 210, the target data in the embodiment of the present invention may include not only core resources (such as kernel) but also the permission to access the core resources. Here, the permission may be the permission granted to the cloud server to access the storage service node; or, it may be the permission granted to access the core resources in the storage service node.
[0055] In addition, the startup firmware in the embodiment of the present invention includes the qboot startup firmware.
[0056] Next, regarding step 220, in a possible embodiment, before this step, it may further include:
[0057] As Figure 3 shown, the storage address of the core resources can be sent to the virtualization management node libvirt in the kernel space through the target interface. The operating system includes the kernel space.
[0058] It should be noted here that the code of the operating system is divided into two spaces, namely the kernel space and the external space. Here, when the cloud server receives the target data such as core resources sent by the user, the core resources in the target data can be stored in the storage service node in the external space. In this way, this process can be specifically to send the storage address of the core resources from the storage service node in the external space to the virtualization management node libvirt in the kernel space through the target interface.
[0059] For example: The storage address of the kernel is transparently transmitted from top to bottom and passed to libvirt through a target interface such as the virDomainCreateXML interface. In this way, data can be transferred from the external space to the internal space so that a cloud server instance can be started through core resources subsequently.
[0060] Based on this, when it is determined that the storage address of the core resource meets the preset conditions, the cloud server instance can be started based on the kernel and the qboot startup firmware corresponding to the kernel to restart the cloud server.
[0061] For example, as Figure 3 shown, use the pre-compiled qboot startup firmware such as bios.bin stored in memory through QEMU-KVM, and at the same time specify the local custom kernel to start the cloud server instance to restart the cloud server. After successful startup, deliver the cloud server based on the custom kernel to the user to provide data services to the user through the cloud server based on the custom kernel. Among them, QEMU-KVM is a virtualization architecture applicable to the linux kernel in the virtual operating system simulator and is used to implement the virtualization function of core resources.
[0062] On the contrary, when it is determined that the storage address of the core resource does not meet the preset conditions, the process of starting the normal firmware can be adopted, such as creating a virtual machine based on the kernel to start the cloud server instance through the virtual machine.
[0063] The following will separately elaborate on the above two possible situations in detail:
[0064] (1) In step 220, when it is determined that the storage address of the core resource meets the preset conditions, the cloud server instance can be started in the following three ways, specifically as follows:
[0065] Method 1: In the scenario where the preset condition is that the storage address of the core resource is not a null value and it is the first time to start libvirt.
[0066] Among them, as Figure 3 shown, when it is determined that the storage address of the core resource is not a null value and it is the first time to start libvirt, obtain the core resource from the storage service node in the external space; start the cloud server instance through the startup firmware and the downloaded core resource.
[0067] Method 2: In the scenario where the preset condition is that the storage address of the core resource is not a null value and it is not the first time to start libvirt.
[0068] Among them, when it is determined that the storage address of the core resource is not a null value and it is not the first time to start libvirt, the cloud server instance is started through the boot firmware and the core resource stored in the memory; among them, the kernel space includes memory.
[0069] Method 3: In the scenario where it is determined that the storage address of the core resource is not a null value.
[0070] Among them, when it is determined that the storage address of the core resource is not a null value, the operating environment of the operating system is determined;
[0071] In the case where the operating environment is a bare metal environment, the core resource stored in the Network File System (NFS) is transparently transmitted to the host of the bare metal server; the cloud server instance is started through the boot firmware and the core resource transparently transmitted to the host memory. Here, NFS can allow resource sharing between at least two computers in the network; the bare metal server includes an exclusive physical server on the cloud, which has high-performance computing capabilities on the basis of being elastic and flexible.
[0072] In addition, in the embodiments of the present invention, a scenario for starting a cloud server instance when it is determined that the storage address of the core resource does not meet the preset conditions is also provided, as follows:
[0073] When it is determined that the storage address of the core resource does not meet the preset conditions, the operating environment of the operating system is determined;
[0074] In the case where the operating environment is a virtual machine environment, the cloud server instance is started according to the core resource stored in the memory of the kernel space.
[0075] It should be noted that, as Figure 3 shown in the architecture diagram, the method in the embodiments of the present invention can implement scenarios of creating a server through custom core resources, replacing the core resources of the operating system, and resetting the core resources of the operating system.
[0076] In summary, by using the boot firmware (such as qboot) in the operating system and the core resources provided by the user to start the cloud server instance and directly run the cloud server, the process of making a custom image file according to the custom kernel and importing the custom image file into the cloud server can be omitted, so that the shortest path can be achieved, and the speed of restarting the cloud server is faster, improving the efficiency of restarting the cloud server.
[0077] In addition, the method provided by the embodiment of the present invention omits the process of creating a custom image file. Therefore, the situation where the cloud server instance cannot be started due to incompatibility with the cloud server will not occur. Thus, the method provided by the embodiment of the present invention can meet the user's need for a custom kernel while ensuring the operation of the cloud server and being able to provide data services to users based on the cloud server, improving the user experience.
[0078] Based on the above cloud server management method and the method for providing data services, the embodiments of the present invention also respectively provide a cloud server management device and a device for providing data services, which will be specifically described in conjunction with Figure 4 and Figure 5 for illustration.
[0079] Figure 4 The structural schematic diagram of the cloud server management device provided by the embodiment of the present invention is shown.
[0080] As Figure 4 shown, the cloud server management device 40 may include:
[0081] An acquisition module 401, configured to acquire target data, where the target data includes core resources of an operating system;
[0082] A processing module 402, configured to start a cloud server instance through a startup firmware and core resources in the operating system when it is determined that the storage address of the core resources meets a preset condition, so as to run the cloud server.
[0083] In this way, by starting the cloud server instance through the startup firmware (such as qboot) in the operating system and the core resources provided by the user, and directly running the cloud server, the process of creating a custom image file according to a custom kernel and importing the custom image file into the cloud server can be omitted, which can achieve the shortest target path and the cloud server can be restarted faster, improving the efficiency of restarting the cloud server.
[0084] In addition, the method provided by the embodiment of the present invention omits the process of creating a custom image file. Therefore, the situation where the cloud server instance cannot be started due to incompatibility with the cloud server will not occur. Thus, the method provided by the embodiment of the present invention can meet the user's need for a custom kernel while ensuring the operation of the cloud server and being able to provide data services to users based on the cloud server, improving the user experience.
[0085] The above cloud server management device 40 will be specifically described below.
[0086] In a possible embodiment, the above cloud server management device 40 further includes: a sending module 403 and a judging module 404.
[0087] Among them, the sending module 403 is used to send the storage address of the core resource to the virtualization management node libvirt in the kernel space through the target interface, and the operating system includes the kernel space.
[0088] The judgment module 404 is used to determine whether the storage address of the core resource meets the preset conditions based on libvirt.
[0089] Based on this, when the operating system further includes an external space, the processing module 303 is specifically configured to, when determining that the storage address of the core resource is not a null value and it is the first time to start libvirt, obtain the core resource from the storage service node in the external space. And start the cloud server instance through the startup firmware and the obtained core resource.
[0090] Or, when the kernel space includes memory, the processing module 403 is specifically configured to, when determining that the storage address of the core resource is not a null value and it is not the first time to start libvirt, start the cloud server instance through the startup firmware and the core resource stored in the memory.
[0091] In another possible embodiment, the processing module 403 is specifically configured to, when determining that the storage address of the core resource is not a null value, determine the operating environment of the operating system; when the operating environment is a bare metal environment, transparently transmit the core resource stored in the network file system NFS to the host of the bare metal server; start the cloud server instance through the startup firmware and the core resource transparently transmitted to the host memory.
[0092] In addition, the processing module 403 in the embodiment of the present invention is further configured to, when determining that the storage address of the core resource does not meet the preset conditions, determine the operating environment of the operating system; when the operating environment is a virtual machine environment, start the cloud server instance according to the core resource stored in the memory of the operating system.
[0093] It should be noted that the startup firmware in the embodiment of the present invention includes the qboot startup firmware.
[0094] In addition, the embodiment of the present invention further provides a device for providing data services. The following will be combined with Figure 5 for description.
[0095] Figure 5 Show the structural schematic diagram of the data service providing device provided by the embodiment of the present invention.
[0096] As Figure 5 shown, the data service providing device 50 may specifically include:
[0097] The receiving module 501 is used to receive the target data sent by the user, and the target data includes the core resource of the operating system;
[0098] A processing module 502 is configured to, when it is determined that the storage address of the core resource meets a preset condition, start a cloud server instance through a startup firmware and the core resource in an operating system.
[0099] The processing module 502 is further configured to run the cloud server according to the started cloud server instance and provide a data service to a user based on the cloud server.
[0100] Therefore, both the cloud server management device and the device for providing a data service provided by an embodiment of the present invention can start a cloud server instance through a startup firmware (such as qboot) in an operating system and a core resource provided by a user, directly run the cloud server, can omit the process of making a custom image file according to a custom kernel and importing the custom image file into the cloud server, so that the shortest path can be achieved, and the speed of restarting the cloud server is faster, improving the efficiency of restarting the cloud server.
[0101] In addition, the method provided by an embodiment of the present invention omits the process of making a custom image file. Therefore, a situation where a cloud server instance cannot be started due to incompatibility with the cloud server will not occur. Therefore, the method provided by an embodiment of the present invention can meet the needs of a user for a custom kernel while ensuring the operation of the cloud server and being able to provide a data service to a user based on the cloud server, improving the user experience.
[0102] According to an embodiment of the present invention, the cloud server management device, the device for providing a data service, and the Figures 1 to 3 cloud server management method and the method for providing a data service described in an embodiment of the present invention can be implemented by a computing device. As Figure 6 shown, the computing device may include a processor 601 and a memory 602 storing computer program instructions.
[0103] Specifically, the processor 601 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement an embodiment of the present application.
[0104] The memory 602 may include a mass storage for data or instructions. By way of example and not limitation, the memory 602 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive, or a combination of two or more of these. In a suitable case, the memory 602 may include removable or non-removable (or fixed) media. In a suitable case, the memory 602 may be internal or external to the integrated gateway device. In a particular embodiment, the memory 602 is a non-volatile solid-state memory. In a particular embodiment, the memory 602 includes a read-only memory (ROM). In a suitable case, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM), or a flash memory, or a combination of two or more of these.
[0105] The processor 601 reads and executes computer program instructions stored in the memory 602 to implement the cloud server management method or the data service providing method in the above embodiments.
[0106] The transceiver 603 is mainly used to implement the communication among the devices in the embodiments of the present invention or with other devices.
[0107] In one example, the device may further include a bus 604. As Figure 6 shown, the processor 601, the memory 602, and the transceiver 603 are connected through the bus 604 and complete the communication with each other.
[0108] The bus 604 includes hardware, software, or both. By way of example and not limitation, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a HyperTransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an InfiniBand interconnect, a Low Pin Count (LPC) bus, a memory bus, a Multi-Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local (VLB) bus, or other suitable buses, or a combination of two or more of these. In a suitable case, the bus 603 may include one or more buses. Although the embodiments of the present application describe and illustrate a particular bus, the present application contemplates any suitable bus or interconnect.
[0109] In a possible embodiment, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed on a computer, the computer is made to execute the data processing method or the node determination method of the embodiment of the present invention.
[0110] It should be clear that the present invention is not limited to the specific configurations and processes described and illustrated in the above embodiments. For the convenience and brevity of description, the detailed descriptions of known methods are omitted here, and the specific working processes of the systems, modules, and units described above can refer to the corresponding processes in the foregoing method embodiments and will not be elaborated here.
[0111] Those skilled in the art can clearly understand that the method process of the present invention is not limited to the specific steps described and illustrated. After understanding the spirit of the present invention, any person skilled in the art can make various changes, modifications, and additions within the technical scope disclosed by the present invention, or make equivalent replacements and change the order between steps. These modifications or replacements should be covered within the protection scope of the present invention.
Claims
1. A cloud server management method, comprising: Obtaining target data sent by a user, where the target data includes core resources of an operating system and access permissions for the core resources; The operating system includes a kernel space and an external space, and the core resources are stored in a storage service node in the external space; Determining whether the storage address of the core resources meets a preset condition, including: sending the storage address of the core resources to a virtualization management node in the kernel space through a target interface; determining whether the storage address of the core resources meets the preset condition based on the virtualization management node; When it is determined that the storage address of the core resources meets the preset condition, starting a cloud server instance through a startup firmware and the core resources in the operating system to run the cloud server; The step of, when it is determined that the storage address of the core resources meets the preset condition, starting a cloud server instance through a startup firmware and the core resources in the operating system, includes: When it is determined that the storage address of the core resources is not a null value and it is the first time to start the virtualization management node, obtaining the core resources from a storage service node in the external space; starting a cloud server instance through the startup firmware and the obtained core resources.
2. The method according to claim 1, Sending the storage address of the core resource to the virtualization management node in the kernel space through the target interface; Determining whether the storage address of the core resources meets a preset condition based on the virtualization management node, includes: Sending the storage address of the core resources to the virtualization management node libvirt in the kernel space through a target interface; Determining whether the storage address of the core resources meets the preset condition based on the libvirt.
3. The method according to claim 2, wherein The step of, when it is determined that the storage address of the core resources meets the preset condition, starting a cloud server instance through a startup firmware and the core resources in the operating system, includes: When it is determined that the storage address of the core resources is not a null value and it is not the first time to start the libvirt, starting a cloud server instance through a startup firmware stored in memory and the core resources; wherein, the kernel space includes the memory.
4. The method according to claim 1, wherein, The step of, when it is determined that the storage address of the core resources meets the preset condition, starting a cloud server instance through a startup firmware and the core resources in the operating system, includes: When it is determined that the storage address of the core resources is not a null value, determining the operating environment of the operating system; When the operating environment is a bare metal environment, transparently transmitting the core resources stored in a network file system NFS to a host of a bare metal server; Starting a cloud server instance through the startup firmware and the core resources transparently transmitted to the memory of the host.
5. The method according to claim 1, wherein The method further includes: When it is determined that the storage address of the core resources does not meet the preset condition, determining the operating environment of the operating system; When the operating environment is a virtual machine environment, starting a cloud server instance according to the core resources stored in the memory of the operating system.
6. The method according to claim 1, wherein The startup firmware includes a qboot startup firmware.
7. A method for providing data services, comprising: Receive the target data sent by the user, where the target data includes the core resources of the operating system and the access rights to the core resources; The operating system includes a kernel space and an external space, and the core resources are stored in the storage service node in the external space; Determine whether the storage address of the core resources meets a preset condition, including: sending the storage address of the core resources to the virtualization management node in the kernel space through a target interface; determining whether the storage address of the core resources meets the preset condition based on the virtualization management node; When it is determined that the storage address of the core resources meets the preset condition, start a cloud server instance through the startup firmware and the core resources in the operating system; run the cloud server according to the started cloud server instance, and provide data services to the user based on the cloud server; The step of starting a cloud server instance through the startup firmware and the core resources in the operating system when it is determined that the storage address of the core resources meets the preset condition includes: When it is determined that the storage address of the core resources is not a null value and it is the first time to start the virtualization management node, obtain the core resources from the storage service node in the external space; start a cloud server instance through the startup firmware and the obtained core resources.
8. A cloud server management device, including: An acquisition module, configured to acquire the target data sent by the user, where the target data includes the core resources of the operating system and the access rights to the core resources; The operating system includes a kernel space and an external space, and the core resources are stored in the storage service node in the external space; A judgment module, configured to determine whether the storage address of the core resources meets a preset condition, including: sending the storage address of the core resources to the virtualization management node in the kernel space through a target interface; determining whether the storage address of the core resources meets the preset condition based on the virtualization management node; A processing module, configured to start a cloud server instance through the startup firmware and the core resources in the operating system to run the cloud server when it is determined that the storage address of the core resources meets the preset condition; Specifically, the processing module is configured to obtain the core resources from the storage service node in the external space when it is determined that the storage address of the core resources is not a null value and it is the first time to start the external space; Start a cloud server instance through the startup firmware and the obtained core resources.
9. The device according to claim 8, wherein The cloud server management device further includes: a sending module and a judgment module; The sending module is configured to send the storage address of the core resources to the virtualization management node libvirt in the kernel space through a target interface, and the operating system includes the kernel space; The judgment module is specifically configured to determine whether the storage address of the core resources meets a preset condition based on libvirt.
10. The apparatus according to claim 9, wherein, Specifically, the processing module is configured to, when it is determined that the storage address of the core resource is not a null value and it is not the first time to start libvirt, start a cloud server instance by using the startup firmware stored in the memory and the core resource; wherein, the kernel space includes the memory.
11. The device according to claim 8 or 9, wherein, Specifically, the processing module is configured to, when it is determined that the storage address of the core resource is not a null value, determine the operating environment of the operating system. When the operating environment is a bare metal environment, transparently transmit the core resource stored in the network file system NFS to the host of the bare metal server. Start a cloud server instance by using the startup firmware and the core resource transparently transmitted to the memory of the host.
12. The device according to claim 8, wherein, The processing module is further configured to When it is determined that the storage address of the core resource does not meet the preset condition, determine the operating environment of the operating system. When the operating environment is a virtual machine environment, start a cloud server instance according to the core resource stored in the memory of the operating system.
13. The apparatus according to claim 8, wherein The startup firmware includes the qboot startup firmware.
14. A device for providing data services, comprising: A receiving module, configured to receive target data sent by a user, where the target data includes the core resource of an operating system and the access right to the core resource. The operating system includes a kernel space and an external space, and the core resource is stored in a storage service node in the external space. A processing module, configured to determine whether the storage address of the core resource meets a preset condition, including: sending the storage address of the core resource to a virtualization management node in the kernel space through a target interface; determining whether the storage address of the core resource meets the preset condition based on the virtualization management node; when it is determined that the storage address of the core resource is not a null value and it is the first time to start the virtualization management node, obtaining the core resource from a storage service node in the external space of the operating system; starting a cloud server instance by using the startup firmware and the obtained core resource. The processing module is further configured to run the cloud server according to the started cloud server instance, and provide data services to the user based on the cloud server.
15. A computing device, wherein, The device includes: a processor and a memory storing computer program instructions. When the processor executes the computer program instructions, the cloud server management method according to any one of claims 1-6 is implemented; or, the method for providing data services according to claim 7 is implemented.
16. A computer storage medium, wherein, Computer program instructions are stored on a computer storage medium, and when the computer program instructions are executed by a processor, the cloud server management method according to any one of claims 1-6 is implemented; or, the method for providing data services according to claim 7 is implemented.
Citation Information
Patent Citations
Operating system and method for cloud server
CN102541625A