CN112256393A - Resource management method and equipment for bare metal server - Google Patents

Resource management method and equipment for bare metal server Download PDF

Info

Publication number
CN112256393A
CN112256393A CN202011140112.9A CN202011140112A CN112256393A CN 112256393 A CN112256393 A CN 112256393A CN 202011140112 A CN202011140112 A CN 202011140112A CN 112256393 A CN112256393 A CN 112256393A
Authority
CN
China
Prior art keywords
bare metal
metal server
network
management
disk
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011140112.9A
Other languages
Chinese (zh)
Other versions
CN112256393B (en
Inventor
蒋迪
付丽丹
张波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Zstack Information Technology Co ltd
Original Assignee
Shanghai Zstack Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Zstack Information Technology Co ltd filed Critical Shanghai Zstack Information Technology Co ltd
Priority to CN202011140112.9A priority Critical patent/CN112256393B/en
Publication of CN112256393A publication Critical patent/CN112256393A/en
Application granted granted Critical
Publication of CN112256393B publication Critical patent/CN112256393B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/4555Para-virtualisation, i.e. guest operating system has to be modified
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45595Network integration; Enabling network access in virtual machine instances

Abstract

The application aims to provide a resource management method and equipment for a bare metal server, and the bare metal server is added to a cloud platform resource pool; creating a virtual hard disk and a virtual network for a bare metal server in a cloud platform, converting the virtual hard disk into an iSCSI target, and enabling the bare metal server to perform read-write access on the iSCSI target through a management network; sending a wake-up data packet to the bare metal server through the management network, so that the bare metal server responds to the start of the wake-up data packet and mounts an iSCSI target as a system disk or a data disk; responding to the starting of the bare metal server and entering an operating system, and sending virtual network configuration information to the bare metal server through a management network to enable the bare metal server to configure a network corresponding to the configuration information; accessing a network interface corresponding to the configuration information to a network node of the cloud platform through a tunnel network; the bare metal server is managed in a software mode, so that resources between the bare metal server and the virtual machine in the cloud platform are shared.

Description

Resource management method and equipment for bare metal server
Technical Field
The present application relates to the field of computers, and in particular, to a resource management method and device for a bare metal server.
Background
With the development of cloud computing, more and more users choose to deploy their applications in a cloud platform, and generally, computing resources provided in the cloud platform are often virtualized resources (virtual machines), and the virtualized resources themselves have resource loss, so that a part of application programs with requirements on performance cannot meet business requirements after being deployed in the cloud platform. In order to solve the problem, some cloud platforms launch bare metal services, that is, physical servers are directly delivered to users for use, so that the requirements of the users on performance are met. However, unlike the virtual machine whose resources such as computation, storage, and network are controlled by a virtualization manager (hypervisor), these bare metal servers are directly used by the system itself, and thus there is a certain hidden danger in security, and it is difficult to satisfy the requirement of multi-tenant isolation. Therefore, a public cloud manufacturer generally adds an additional intelligent network card device on a bare metal server, and accesses a virtual storage and a virtual network resource provided by a cloud platform through the intelligent network card, so that the service performance requirement is met while the safety isolation is ensured. However, in the private cloud platform of the user, the practice of additionally adding the intelligent network card device is difficult to be accepted by the user in terms of cost and compliance, so for the customers needing bare metal services, how to perform multi-tenant isolation management on the bare metal servers without adding extra hardware cost is one of the main problems faced by the information management environment of the customers.
At present, whether the bare metal service is realized by software or hardware, the final purpose is to keep the management of the bare metal server consistent with the management behavior of the virtual machine as much as possible, that is, all the virtual resources in the cloud platform, including the services of the virtual hard disk, the virtual network, the firewall, the load balancing and the like, can be used by the virtual machine, and meanwhile, the bare metal server can directly use the services without manual intervention. However, the drawbacks of these implementations currently on the market are also evident:
1. bare metal servers implemented based on hardware often adopt customized server hardware and special intelligent network cards, and some implementations even require special software to define network switch equipment, which is not universal standard equipment and has high manufacturer binding risk; 2. traditional software-based bare metal server management is very dependent on out-of-band management networks (BMC/IPMI), and cannot work when the bare metal server lacks the network, but in some servers of MIPS or Alpha architecture CPUs, an out-of-band management network rarely exists, so that software on the market cannot manage the devices; 3. traditional bare metal server management based on software implementation can only implement functions such as startup and shutdown (depending on BMC/IPMI), Linux system installation and the like, and does not implement sharing of virtual resources and physical resources, so that the practicability in a cloud platform is lower.
Disclosure of Invention
An object of the present application is to provide a resource management method and device for a bare metal server, so as to implement management of devices such as a general server, a switch, and storage through software, avoid dependence on proprietary hardware, and replace an out-of-band management network through network startup and proxy software, and increase manageable hardware types, so that management behaviors of the bare metal server and a virtual machine are kept consistent, and any virtual resource in a cloud platform can be shared between the bare metal server and the virtual machine.
According to an aspect of the present application, there is provided a resource management method of a bare metal server, wherein the method includes:
adding a bare metal server to a resource pool of a cloud platform;
creating a virtual hard disk and a virtual network for the bare metal server in the cloud platform, and converting the virtual hard disk into an iSCSI target of a small computer system interface so that the bare metal server can perform read-write access on the iSCSI target through a management network;
sending a wake-up data packet to the bare metal server through the management network, so that the bare metal server responds to the wake-up data packet to start and mount the iSCSI target as a system disk or a data disk;
after responding to the starting of the bare metal server and entering an operating system, sending configuration information of the virtual network to the bare metal server through the management network so that the bare metal server configures a network corresponding to the configuration information;
and accessing the network interface corresponding to the configuration information to the network node of the cloud platform through a tunnel network.
Further, in the resource management method of the bare metal server, the method further includes:
creating the management network between the bare metal server and a management node of the cloud platform;
configuring a management interface for the bare metal server in the management node;
and accessing the management interface to the management network so that the bare metal server is accessed to the virtual hard disk and the virtual network created in the cloud platform through the management network.
Further, in the above method for resource management of a bare metal server, the sending a wake-up packet to the bare metal server through the management network so that the bare metal server starts and mounts the iSCSI target as a system disk or a data disk in response to the wake-up packet includes:
and if the bare metal server is detected to be in the shutdown state, sending a startup awakening data packet to the bare metal server through the management network, so that the bare metal server is started up and mounts the iSCSI target as a system disk or a data disk in response to the startup awakening data packet.
Further, in the above method for resource management of a bare metal server, the sending a wake-up packet to the bare metal server through the management network so that the bare metal server starts and mounts the iSCSI target as a system disk or a data disk in response to the wake-up packet includes:
and if the bare metal server is detected to be in a starting state, sending a restart wakeup data packet to the bare metal server through the management network, so that the bare metal server responds to the restart wakeup data packet to restart and mount the iSCSI target as a system disk or a data disk.
Further, in the resource management method for a bare metal server, where the bare metal server mounts the iSCSI target as a system disk or a data disk, the method includes:
and the bare metal server mounts the iSCSI target as a system disk or a data disk through a pre-boot execution environment PXE.
Further, in the resource management method of the bare metal server, the method further includes:
and controlling an agent program in the operating system of the bare metal server through the management network, and performing operations of shutting down, creating a snapshot and modifying the network on the bare metal server.
Further, in the resource management method of the bare metal server, the method further includes:
in response to detecting that the client deletes the bare metal server, executing a shutdown operation instruction on the bare metal server through the management network;
stopping and deleting the iSCSI target and related services thereof corresponding to the bare metal server;
and deleting the virtual hard disk corresponding to the iSCSI target.
According to another aspect of the present application, there is also provided a non-volatile storage medium having computer readable instructions stored thereon, which, when executed by a processor, cause the processor to implement the resource management method of a bare metal server as described above.
According to another aspect of the present application, there is also provided a resource management device of a bare metal server, wherein the device includes:
one or more processors;
a non-volatile storage medium for storing one or more computer-readable instructions,
when executed by the one or more processors, cause the one or more processors to implement a method for resource management for a bare metal server as described above.
Compared with the prior art, the method and the system have the advantages that the bare metal server is added to the resource pool of the cloud platform; creating a virtual hard disk and a virtual network for the bare metal server in the cloud platform, and converting the virtual hard disk into an iSCSI target of a small computer system interface so that the bare metal server can perform read-write access on the iSCSI target through a management network; sending a wake-up data packet to the bare metal server through the management network, so that the bare metal server responds to the wake-up data packet to start and mount the iSCSI target as a system disk or a data disk; after responding to the starting of the bare metal server and entering an operating system, sending configuration information of the virtual network to the bare metal server through the management network so that the bare metal server configures a network corresponding to the configuration information; accessing a network interface corresponding to the configuration information to a network node of the cloud platform through a tunnel network; the management of the universal server, the switch, the storage and other devices is realized through software, the dependence on special hardware is avoided, meanwhile, the out-of-band management network is replaced through network starting and agent software, and the manageable hardware types are increased, so that the management behaviors of the bare metal server and the virtual machine are kept consistent, and any virtual resource in the cloud platform can be shared between the bare metal server and the virtual machine.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
fig. 1 illustrates a schematic flow chart of a bare metal server deployment in a resource management method of the bare metal server according to an aspect of the present application.
FIG. 2 illustrates an architectural diagram of a resource management method for a bare metal server, according to an aspect of the subject application;
fig. 3 is a schematic diagram illustrating a flow of recovering a bare metal server in a resource management method of the bare metal server according to an aspect of the present application.
The same or similar reference numbers in the drawings identify the same or similar elements.
Detailed Description
The present application is described in further detail below with reference to the attached figures.
In a typical configuration of the present application, the terminal, the device serving the network, and the trusted party each include one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include non-transitory computer readable media (transient media), such as modulated data signals and carrier waves.
As shown in fig. 1, according to an aspect of the present application, a schematic flowchart of a resource management method for a bare metal server for deploying the bare metal server is shown.
Wherein the method comprises the following steps: step S11, step S12, step S13, step S14 and step S15, which specifically include the following steps:
step S11, adding the bare metal server to a resource pool of the cloud platform;
here, as shown in fig. 2, storage and network resources such as a virtual hard disk and a virtual network are provided in the cloud platform, and based on a request of a user, the virtual hard disk and the virtual network are respectively connected with the bare metal server, so that the cloud platform adds the bare metal server to the resource pool managed by the cloud platform as a managed object; meanwhile, the virtual hard disk and the virtual network are respectively connected with a virtual machine, wherein the virtual machine is accessed to the virtual hard disk and the virtual network through a virtualization simulator and directly uses resources in the cloud platform; the resource pool comprises but is not limited to at least one bare metal server and at least one virtual machine, and the bare metal server and the virtual machine are independent of each other.
Step S12, creating a virtual hard disk and a virtual network for the bare metal server in the cloud platform, and converting the virtual hard disk into an iSCSI target (Internet Small computer System Interface) so that the bare metal server can perform read-write access to the iSCSI target through a management network; for example, after a virtual hard disk and a virtual network are created for the bare metal server in the cloud platform, the cloud platform automatically converts the virtual hard disk into the iSCSI target, thereby implementing reading, writing and accessing of the bare metal server to the virtual hard disk; the virtual hard disk stores the virtual hard disk file in the cloud platform, and the virtual hard disk file is generally in a virtual hard disk format of qcow2 format; the back end of the iSCSI target connected with the bare metal server is a virtual hard disk file, the iSCSI target seen from the inside of the bare metal server is equivalent to a local hard disk and is only stored in the cloud platform, the bare metal server reads, writes and accesses the iSCSI target through a network, the iSCSI target is always stored in the cloud platform, and the bare metal server only accesses the iSCSI target through an iSCSI client, namely the virtual hard disk file.
Step S13, sending a wake-up packet to the bare metal server through the management network, so that the bare metal server starts and mounts the iSCSI target as a system disk or a data disk in response to the wake-up packet; the bare metal server may be in any state, including but not limited to a power-off state and a power-on state.
Step S14, after responding to the bare metal server being started and entering an operating system, sending configuration information of the virtual network to the bare metal server through the management network, so that the bare metal server configures a network corresponding to the configuration information;
here, the configuration of the virtual network includes which physical interfaces, network port MAC addresses, and other hardware information of the bare metal server exist, and a connection relationship between these interfaces and a three-layer network is also provided, for example, four network ports are provided on the bare metal server, a first network port is used for managing the network, and a second three-four network ports respectively configure IP addresses of other networks according to virtual network configuration information issued by a management node, and are used for providing services to the bare metal server; the bare metal server is configured with the network corresponding to the configuration information, where the configuration is automatic configuration, for example, the issued configuration information content is: DEV (eth) 1, IPADDR (192.168.0.100), NETMASK (255.255.255.0), the agent running in the bare metal server system automatically finds the eth1 network port in the system, and configures the IP 192.168.0.100 through a system built-in command; the configuration content mainly refers to the relevant information of which networks the network port is to access; meanwhile, besides the management network necessary for the cloud platform, the bare metal server generally has other network ports, such as a data network connected to an external database, a storage network connected to a proprietary storage device, a service network connected to an application terminal, and the like; each bare metal server needs to be configured with a different IP, and then access the network for the application program in the bare metal server to work normally.
Step S15, the network interface corresponding to the configuration information is accessed to the network node of the cloud platform through a tunnel network; here, the network interface is accessed to the network node of the cloud platform through a tunnel network, so that the network of the bare metal server can communicate with other virtual machines in the network node of the cloud platform later.
Through the steps S11 to S15, the bare metal server is added to the resource pool of the cloud platform; creating a virtual hard disk and a virtual network for the bare metal server in the cloud platform, and converting the virtual hard disk into an iSCSI target of a small computer system interface so that the bare metal server can perform read-write access on the iSCSI target through a management network; sending a wake-up data packet to the bare metal server through the management network, so that the bare metal server responds to the wake-up data packet to start and mount the iSCSI target as a system disk or a data disk; after responding to the starting of the bare metal server and entering an operating system, sending configuration information of the virtual network to the bare metal server through the management network so that the bare metal server configures a network corresponding to the configuration information; accessing a network interface corresponding to the configuration information to a network node of the cloud platform through a tunnel network; the management of the universal server, the switch, the storage and other devices is realized through software, the dependence on special hardware is avoided, meanwhile, the out-of-band management network is replaced through network starting and agent software, and the manageable hardware types are increased, so that the management behaviors of the bare metal server and the virtual machine are kept consistent, and any virtual resource in the cloud platform can be shared between the bare metal server and the virtual machine.
Next to the foregoing embodiment of the present application, an embodiment of the present application provides a resource management method for a bare metal server, further including: creating the management network between the bare metal server and a management node of the cloud platform; configuring a management interface for the bare metal server in the management node, wherein an identifier of the management interface may include, but is not limited to, a MAC address of the management network interface; and accessing the management interface to the management network so that the bare metal server is accessed to the virtual hard disk and the virtual network created in the cloud platform through the management network. For example, based on a request of a user, a management interface is configured for the bare metal server in the management node in a cloud platform, an identifier of the management interface may be a MAC address of the management network interface, and the like, and then the management interface is accessed to the management network, thereby creating a management network between the bare metal server and the management node of the cloud platform, so that the bare metal server is respectively accessed to a virtual hard disk and a virtual network resource in the cloud platform through the management network and is managed by the cloud platform.
Next to the foregoing embodiment of the present application, the sending, in step S13, a wake-up packet to the bare metal server through the management network, so that the bare metal server starts and mounts the iSCSI target as a system disk or a data disk in response to the wake-up packet, specifically includes:
and if the bare metal server is detected to be in the shutdown state, sending a startup awakening data packet to the bare metal server through the management network, so that the bare metal server is started up and mounts the iSCSI target as a system disk or a data disk in response to the startup awakening data packet. For example, when the bare metal server is in a shutdown state, a user clicks a startup button of the bare metal server on the cloud platform, a network node in the cloud platform immediately sends a network startup wake-up data packet to the bare metal server, the bare metal server is triggered to perform startup operation, the bare metal server is made to mount and start the iSCSI target as a system disk or a data disk after startup, and the bare metal server can read, write and access the iSCSI target.
Next to the foregoing embodiment of the present application, the sending, in step S13, a wake-up packet to the bare metal server through the management network, so that the bare metal server starts and mounts the iSCSI target as a system disk or a data disk in response to the wake-up packet, specifically includes:
and if the bare metal server is detected to be in a starting state, sending a restart wakeup data packet to the bare metal server through the management network, so that the bare metal server responds to the restart wakeup data packet to restart and mount the iSCSI target as a system disk or a data disk. For example, when the bare metal server is in a boot state, a user clicks a restart button of the bare metal server on the cloud platform, a network node in the cloud platform immediately sends a network restart wake-up data packet to the bare metal server, the bare metal server is triggered to restart, the bare metal server is mounted and starts the iSCSI target to be a system disk or a data disk after the bare metal server is restarted, and the bare metal server can read, write and access the iSCSI target.
Following the above embodiment of the present application, the bare metal server mounting the iSCSI target in step S13 as a system disk or a data disk includes:
the bare metal server mounts the iSCSI target as a system disk or a data disk through a preboot execution Environment (PXE). For example, after the cloud platform triggers the bare metal server to boot or restart, the bare metal server mounts and starts a virtual hard disk file which is used as an iSCSI target in the previous step through the PXE.
Next to the foregoing embodiment of the present application, an embodiment of the present application provides a resource management method for a bare metal server, further including:
and controlling an agent program in the operating system of the bare metal server through the management network, and performing operations of shutting down, creating a snapshot and modifying the network on the bare metal server. For example, after the management network is created between the bare metal server and the cloud platform, the cloud platform may control and manage an agent program in the operating system of the bare metal server through the created management network, so as to perform corresponding management operations such as shutdown, creation, and modification on the bare metal server.
Following the above-described embodiment of the present application, as shown in fig. 3, the method further includes: in response to detecting that the client deletes the bare metal server, executing a shutdown operation instruction on the bare metal server through the management network; stopping and deleting the iSCSI target and related services thereof corresponding to the bare metal server; and deleting the virtual hard disk corresponding to the iSCSI target. Here, the deleting operation includes, but is not limited to, clicking, sliding, and the like.
For example, at this time, the corresponding deletion operation is a click operation, a user clicks and deletes the bare metal server from an interface of a client corresponding to a cloud platform, the cloud platform executes a shutdown operation of the bare metal server, the cloud platform stops and deletes a virtual hard disk iSCSI target service related to the bare metal server, and the cloud platform deletes the virtual hard disk file related to the bare metal server, so that the bare metal server is recycled in the cloud platform, and waste of resources is avoided.
According to another aspect of the present application, there is also provided a non-volatile storage medium having computer readable instructions stored thereon, which, when executed by a processor, cause the processor to implement the resource management method of a bare metal server as described above.
According to another aspect of the present application, there is also provided an apparatus for resource management of a bare metal server, wherein the apparatus includes:
one or more processors;
a non-volatile storage medium for storing one or more computer-readable instructions,
when executed by the one or more processors, cause the one or more processors to implement a method of resource management for a bare metal server as described above.
Here, for details of each embodiment in the resource management device of the bare metal server, reference may be specifically made to corresponding parts of the above embodiment of the resource management method of the bare metal server, and details are not described here again.
To sum up, the bare metal server is added to the resource pool of the cloud platform; creating a virtual hard disk and a virtual network for the bare metal server in the cloud platform, and converting the virtual hard disk into an iSCSI target of a small computer system interface so that the bare metal server can perform read-write access on the iSCSI target through a management network; sending a wake-up data packet to the bare metal server through the management network, so that the bare metal server responds to the wake-up data packet to start and mount the iSCSI target as a system disk or a data disk; after responding to the starting of the bare metal server and entering an operating system, sending configuration information of the virtual network to the bare metal server through the management network so that the bare metal server configures a network corresponding to the configuration information; accessing a network interface corresponding to the configuration information to a network node of the cloud platform through a tunnel network; the management of the universal server, the switch, the storage and other devices is realized through software, the dependence on special hardware is avoided, meanwhile, the out-of-band management network is replaced through network starting and agent software, and the manageable hardware types are increased, so that the management behaviors of the bare metal server and the virtual machine are kept consistent, and any virtual resource in the cloud platform can be shared between the bare metal server and the virtual machine.
It should be noted that the present application may be implemented in software and/or a combination of software and hardware, for example, implemented using Application Specific Integrated Circuits (ASICs), general purpose computers or any other similar hardware devices. In one embodiment, the software programs of the present application may be executed by a processor to implement the steps or functions described above. Likewise, the software programs (including associated data structures) of the present application may be stored in a computer readable recording medium, such as RAM memory, magnetic or optical drive or diskette and the like. Additionally, some of the steps or functions of the present application may be implemented in hardware, for example, as circuitry that cooperates with the processor to perform various steps or functions.
In addition, some of the present application may be implemented as a computer program product, such as computer program instructions, which when executed by a computer, may invoke or provide methods and/or techniques in accordance with the present application through the operation of the computer. Program instructions which invoke the methods of the present application may be stored on a fixed or removable recording medium and/or transmitted via a data stream on a broadcast or other signal-bearing medium and/or stored within a working memory of a computer device operating in accordance with the program instructions. An embodiment according to the present application comprises an apparatus comprising a memory for storing computer program instructions and a processor for executing the program instructions, wherein the computer program instructions, when executed by the processor, trigger the apparatus to perform a method and/or a solution according to the aforementioned embodiments of the present application.
It will be evident to those skilled in the art that the present application is not limited to the details of the foregoing illustrative embodiments, and that the present application may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the application being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned. Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or means recited in the apparatus claims may also be implemented by one unit or means in software or hardware. The terms first, second, etc. are used to denote names, but not any particular order.

Claims (9)

1. A resource management method of a bare metal server, wherein the method comprises the following steps:
adding a bare metal server to a resource pool of a cloud platform;
creating a virtual hard disk and a virtual network for the bare metal server in the cloud platform, and converting the virtual hard disk into an iSCSI target of a small computer system interface so that the bare metal server can perform read-write access on the iSCSI target through a management network;
sending a wake-up data packet to the bare metal server through the management network, so that the bare metal server responds to the wake-up data packet to start and mount the iSCSI target as a system disk or a data disk;
after responding to the starting of the bare metal server and entering an operating system, sending configuration information of the virtual network to the bare metal server through the management network so that the bare metal server configures a network corresponding to the configuration information;
and accessing the network interface corresponding to the configuration information to the network node of the cloud platform through a tunnel network.
2. The method of claim 1, wherein the method further comprises:
creating the management network between the bare metal server and a management node of the cloud platform;
configuring a management interface for the bare metal server in the management node;
and accessing the management interface to the management network so that the bare metal server is accessed to the virtual hard disk and the virtual network created in the cloud platform through the management network.
3. The method as claimed in claim 1, wherein said sending a wake packet to the bare metal server over the management network to cause the bare metal server to boot and mount the iSCSI target as a system disk or a data disk in response to the wake packet comprises:
and if the bare metal server is detected to be in the shutdown state, sending a startup awakening data packet to the bare metal server through the management network, so that the bare metal server is started up and mounts the iSCSI target as a system disk or a data disk in response to the startup awakening data packet.
4. The method as claimed in claim 1, wherein said sending a wake packet to the bare metal server over the management network to cause the bare metal server to boot and mount the iSCSI target as a system disk or a data disk in response to the wake packet comprises:
and if the bare metal server is detected to be in a starting state, sending a restart wakeup data packet to the bare metal server through the management network, so that the bare metal server responds to the restart wakeup data packet to restart and mount the iSCSI target as a system disk or a data disk.
5. The method as claimed in any of claims 1 to 4, wherein the bare metal server mounting the iSCSI target as a system disk or a data disk, comprises:
and the bare metal server mounts the iSCSI target as a system disk or a data disk through a pre-boot execution environment PXE.
6. The method of claim 1, wherein the method further comprises:
and controlling an agent program in the operating system of the bare metal server through the management network, and performing operations of shutting down, creating a snapshot and modifying the network on the bare metal server.
7. The method of claim 1, further comprising:
in response to detecting that the client deletes the bare metal server, executing a shutdown operation instruction on the bare metal server through the management network;
stopping and deleting the iSCSI target and related services thereof corresponding to the bare metal server;
and deleting the virtual hard disk corresponding to the iSCSI target.
8. A non-transitory storage medium having stored thereon computer readable instructions which, when executed by a processor, cause the processor to implement the method of any one of claims 1 to 7.
9. A method and implemented device for implementing bare metal server resource management in a cloud platform, wherein the device comprises:
one or more processors;
a non-volatile storage medium for storing one or more computer-readable instructions,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-7.
CN202011140112.9A 2020-10-22 2020-10-22 Resource management method and equipment for bare metal server Active CN112256393B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011140112.9A CN112256393B (en) 2020-10-22 2020-10-22 Resource management method and equipment for bare metal server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011140112.9A CN112256393B (en) 2020-10-22 2020-10-22 Resource management method and equipment for bare metal server

Publications (2)

Publication Number Publication Date
CN112256393A true CN112256393A (en) 2021-01-22
CN112256393B CN112256393B (en) 2022-04-12

Family

ID=74263220

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011140112.9A Active CN112256393B (en) 2020-10-22 2020-10-22 Resource management method and equipment for bare metal server

Country Status (1)

Country Link
CN (1) CN112256393B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114172853A (en) * 2021-12-01 2022-03-11 阿里巴巴(中国)有限公司 Flow forwarding and bare computer server configuration method and device
CN114443148A (en) * 2021-12-16 2022-05-06 宝德计算机系统股份有限公司 Method for starting disk by centralized management server and server
CN114546920A (en) * 2022-02-20 2022-05-27 中电云数智科技有限公司 Bare metal server data disk hot plug method based on intelligent network card under Feiteng CPU architecture
CN115442316A (en) * 2022-09-06 2022-12-06 南京信易达计算技术有限公司 Full-stack type high-performance computing bare metal management service system and method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140282944A1 (en) * 2013-03-12 2014-09-18 Stackinsider Technology LLC Methods and systems of deploying cloud computing platforms
CN106936680A (en) * 2015-12-29 2017-07-07 中移(苏州)软件技术有限公司 The system and method for intercommunication between cloud computing platform heterogeneous network
CN107431647A (en) * 2014-08-27 2017-12-01 适应性频谱和信号校正股份有限公司 For system, the method and apparatus of the virtualization for realizing access node function
CN109120494A (en) * 2018-08-28 2019-01-01 无锡华云数据技术服务有限公司 The method of physical machine is accessed in cloud computing system
CN111694519A (en) * 2020-05-29 2020-09-22 北京世纪互联宽带数据中心有限公司 Method and system for mounting cloud hard disk on bare metal server and server

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140282944A1 (en) * 2013-03-12 2014-09-18 Stackinsider Technology LLC Methods and systems of deploying cloud computing platforms
CN107431647A (en) * 2014-08-27 2017-12-01 适应性频谱和信号校正股份有限公司 For system, the method and apparatus of the virtualization for realizing access node function
CN106936680A (en) * 2015-12-29 2017-07-07 中移(苏州)软件技术有限公司 The system and method for intercommunication between cloud computing platform heterogeneous network
CN109120494A (en) * 2018-08-28 2019-01-01 无锡华云数据技术服务有限公司 The method of physical machine is accessed in cloud computing system
CN111694519A (en) * 2020-05-29 2020-09-22 北京世纪互联宽带数据中心有限公司 Method and system for mounting cloud hard disk on bare metal server and server

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114172853A (en) * 2021-12-01 2022-03-11 阿里巴巴(中国)有限公司 Flow forwarding and bare computer server configuration method and device
CN114172853B (en) * 2021-12-01 2024-04-16 阿里巴巴(中国)有限公司 Configuration method and device of traffic forwarding and bare computer server
CN114443148A (en) * 2021-12-16 2022-05-06 宝德计算机系统股份有限公司 Method for starting disk by centralized management server and server
CN114443148B (en) * 2021-12-16 2024-04-02 宝德计算机系统股份有限公司 Method for centrally managing server starting disk and server
CN114546920A (en) * 2022-02-20 2022-05-27 中电云数智科技有限公司 Bare metal server data disk hot plug method based on intelligent network card under Feiteng CPU architecture
CN114546920B (en) * 2022-02-20 2024-02-20 中电云计算技术有限公司 Hot plug method for bare metal server data disc under Feiteng CPU architecture based on intelligent network card
CN115442316A (en) * 2022-09-06 2022-12-06 南京信易达计算技术有限公司 Full-stack type high-performance computing bare metal management service system and method
CN115442316B (en) * 2022-09-06 2024-02-23 南京信易达计算技术有限公司 Full stack type high-performance computing bare metal management service system and method

Also Published As

Publication number Publication date
CN112256393B (en) 2022-04-12

Similar Documents

Publication Publication Date Title
CN112256393B (en) Resource management method and equipment for bare metal server
US7631173B2 (en) Method and system for performing pre-boot operations from an external memory including memory address and geometry
US9384094B2 (en) Method and system for instant restore of system volume from a backup image
US8060542B2 (en) Template-based development of servers
US9329943B2 (en) Methods and systems for instant restore of system volume
US9069596B2 (en) Hypervisor file system
US20120144391A1 (en) Provisioning a virtual machine
US7797288B2 (en) Use of server instances and processing elements to define a server
US20060173912A1 (en) Automated deployment of operating system and data space to a server
WO2010021630A2 (en) Server virtualized using virtualization platform
US10817378B2 (en) Managing boot failures in an information handling system
US9417886B2 (en) System and method for dynamically changing system behavior by modifying boot configuration data and registry entries
US11886902B2 (en) Physical-to-virtual migration method and apparatus, and storage medium
US10303487B2 (en) System and method for booting an information handling system
US8875132B2 (en) Method and apparatus for implementing virtual proxy to support heterogeneous systems management
US11630777B2 (en) Provisioning virtual machines with a single identity and cache virtual disk
US20170371519A1 (en) Automatic Document Handling with On-Demand Application Mounting
US8117432B2 (en) Method for controlling boot sequence of server
US11520648B2 (en) Firmware emulated watchdog timer controlled using native CPU operations
CN106557354B (en) Method for setting attribute parameters of private image and computer equipment
CN113342365A (en) Operating system deployment method, device, equipment and computer-readable storage medium
US11921582B2 (en) Out of band method to change boot firmware configuration
Vetter et al. IBM Power Systems HMC Implementation and Usage Guide
US11789821B1 (en) Out-of-band method to change boot firmware configuration
US20240020103A1 (en) Parallelizing data processing unit provisioning

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant