Automatic in-band program installation method, device and equipment and readable storage medium

Through the coordinated operation of the BMC device and the KVM client, the image is automatically mounted and the boot file configuration is updated, solving the problems of cumbersome operations and hardware dependence during server installation, and realizing efficient and convenient automatic installation.

CN120803476APending Publication Date: 2025-10-17NEW H3C TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510875310.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-27
Publication Date
2025-10-17

AI Technical Summary

Technical Problem

In the existing technology, the server operating system installation method has the problems of cumbersome operation, easy error, strong hardware compatibility, and complex configuration. In particular, the PXE installation technology cannot be widely used due to hardware limitations.

Method used

Utilize BMC devices and KVM clients to transmit data through preset channels, automatically mount images, and update configuration addresses in boot files to achieve automatic installation, avoiding complex network configuration and hardware dependence.

Benefits of technology

It enables convenient, efficient and automatic installation of servers, reduces deployment difficulty and operation and maintenance thresholds, is applicable to various hardware, and improves installation efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120803476A_ABST
    Figure CN120803476A_ABST
Patent Text Reader

Abstract

The invention provides an in-band program automatic installation method, device and equipment and a readable storage medium, and the method comprises the steps: mounting a to-be-installed mirror image according to a mounting instruction sent by a KVM client, and enabling a server to be restarted according to the to-be-installed mirror image; according to the position information provided by the KVM client, the storage address of the automatic installation configuration file is updated in the boot file read by the in-band unit; and transmitting the to-be-installed content of the to-be-installed mirror image and the boot file with the updated storage address of the automatic installation configuration file to an in-band unit through a preset channel. Through the technical scheme of the invention, the KVM function of the BMC automatically mounts the mirror image and dynamically injects the automatic installation configuration file address provided by the KVM client into the guide configuration, so that the server automatically completes installation according to the mirror image, complex network configuration such as establishment of a PXE server is avoided, and the deployment difficulty and the operation and maintenance threshold are remarkably reduced.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present specification relates to the technical field of communication, and particularly relates to an in-band program automatic installation method and device, equipment and a readable storage medium. BACKGROUND

[0002] At present, the server installation operating system mainly depends on manual installation and automatic installation. However, the manual installation has many disadvantages, the user needs to select a large number of installation configuration items on each server one by one, which is not only tedious and time-consuming, but also is prone to configuration errors due to human errors, which seriously affects the deployment efficiency and stability of the server.

[0003] Although the automatic installation improves the efficiency to a certain extent, the existing technical solutions have obvious limitations. Taking the PXE (Preboot eXecution Environment) server installation operating system as an example, as a relatively mature network boot technology, it allows the computer to load and run the operating system installation program from the network server, but it still faces the problem of complex configuration in practical application. First, the DHCP (Dynamic Host Configuration Protocol) server needs to be configured in the local area network to allocate IP addresses for the PXE client and guide it to download the start file from the TFTP (Trivial File Transfer Protocol) server, and the TFTP server needs to store the files required by the boot program and the installation program, so the complexity and error probability of the server configuration increase. Secondly, in the process of setting the PXE boot file, the boot file, configuration file and operating system installation image need to be set on the TFTP server, and the operation process is complicated, which requires a high level of operation and maintenance of the installation personnel. In addition, the technology has strong hardware compatibility dependence, only the network card or motherboard supporting PXE boot can be used, and many old devices cannot use this technology due to hardware limitations, which limits its application range. SUMMARY

[0004] Therefore, the present specification provides an in-band program automatic installation method, device, equipment and readable storage medium to solve the problem of lack of automatic installation method with wide applicability.

[0005] The specific technical solutions are as follows:

[0006] The specification provides an in-band program automatic installation method applied to a BMC device of an out-of-band unit of a server, the server further comprising an in-band unit, the out-of-band unit and the in-band unit being capable of transmitting data through a preset channel, the method comprising: mounting an image to be installed according to a mounting instruction sent by a KVM client and causing the server to restart according to the image to be installed, the image to be installed comprising a boot file, the boot file being read by the in-band unit when the server restarts according to the image to be installed; updating a storage address of an automatic installation configuration file in the boot file read by the in-band unit according to position information provided by the KVM client, the automatic installation configuration file being provided by the KVM client according to parameter information of the server in which the BMC device is located; and transmitting, to the in-band unit through the preset channel, installed content of the image to be installed and the boot file whose storage address of the automatic installation configuration file is updated, so as to cause the in-band unit to acquire the automatic installation configuration file according to the storage address and automatically install according to the automatic installation configuration file and the installed content.

[0007] As a technical solution, the automatic installation configuration file is stored in a device in which the KVM client is located, the storage address of the automatic installation configuration file is a network address, and the network address is a network address of the automatic installation configuration file in a local area network established by the device in which the KVM client is located and the in-band unit of the server.

[0008] As a technical solution, the boot file is a grub.cfg file, and the automatic installation configuration file is a kickstart file, the grub.cfg file storing a storage address of the kickstart file matching the local server after being updated.

[0009] As a technical solution, the KVM client is acquired and enabled by the device in which the KVM client is located by logging in a BMC device system through an IP address of the BMC device.

[0010] The specification also provides an in-band program automatic installation device applied to a BMC device of an out-of-band unit of a server, the server also comprising an in-band unit, the out-of-band unit and the in-band unit being capable of transmitting data through a preset channel, the device comprising: a first module configured to mount an image to be installed according to a mounting instruction sent by a KVM client and to make the server restart according to the image to be installed, the image to be installed comprising a boot file, the boot file being read by the in-band unit when the server restarts according to the image to be installed; a second module configured to update a storage address of an automatic installation configuration file in the boot file read by the in-band unit according to position information provided by the KVM client, the automatic installation configuration file being provided by the KVM client according to parameter information of the server in which the BMC device is located; and a third module configured to transmit, to the in-band unit through the preset channel, installed content of the image to be installed and the boot file whose storage address of the automatic installation configuration file is updated, so that the in-band unit acquires the automatic installation configuration file according to the storage address and automatically installs according to the automatic installation configuration file and the installed content.

[0011] As a technical solution, the automatic installation configuration file is stored in a device in which the KVM client is located, the storage address of the automatic installation configuration file is a network address, and the network address is a network address of the automatic installation configuration file in a local area network established by the device in which the KVM client is located and the in-band unit of the server.

[0012] As a technical solution, the boot file is a grub.cfg file, and the automatic installation configuration file is a kickstart file, the grub.cfg file storing a storage address of the kickstart file matching the local server after being updated.

[0013] As a technical solution, the KVM client is acquired and enabled by the device in which the KVM client is located by logging in a BMC device system through an IP address of the BMC device.

[0014] The specification also provides an electronic device comprising a processor and a readable storage medium, the readable storage medium storing machine executable instructions capable of being executed by the processor, the processor executing the machine executable instructions to implement the aforementioned in-band program automatic installation method.

[0015] The specification also provides a readable storage medium storing machine executable instructions, the machine executable instructions causing the processor to implement the aforementioned in-band program automatic installation method when the machine executable instructions are invoked and executed by the processor.

[0016] The above technical solutions provided by the specification bring at least the following beneficial effects:

[0017] The KVM function of the BMC automatically mounts the image and dynamically injects the automatic installation configuration file address provided by the KVM client into a boot configuration, so that the server automatically completes the installation accordingly, eliminates complex network configurations such as building a PXE server, significantly reduces the deployment difficulty and operation threshold, has no special requirements for the server hardware, and only needs basic network connectivity to realize convenient and efficient in-band program automatic installation. BRIEF DESCRIPTION OF DRAWINGS

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

[0019] Figure 1 is a flowchart of an in-band program automatic installation method in an embodiment of the present specification;

[0020] Figure 2 is a topological schematic diagram in an embodiment of the present specification;

[0021] Figure 3 is a flowchart in an embodiment of the present specification;

[0022] Figure 4 is a structural diagram of an in-band program automatic installation device in an embodiment of the present specification;

[0023] Figure 5 is a hardware structural diagram of an electronic device in an embodiment of the present specification.

[0024] The drawings show: a first module 21, a second module 22, and a third module 23. DETAILED DESCRIPTION

[0025] The terms used in the embodiments of the present specification are only for the purpose of describing specific embodiments, and are not intended to limit the present specification. The singular forms "a", "an" and "the" used in the present specification and claims are also intended to include plural forms, unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein means any or all possible combinations of one or more associated listed items.

[0026] It should be understood that, although the terms first, second, third, etc. can be employed in describing various information in the implementation of the present specification, the information should not be limited to these terms. These terms are only used to distinguish one piece of information from another piece of information of the same type. For example, without departing from the scope of the present specification, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as the first information. In addition, depending on the context, the word "if" used can be interpreted as "when" or "upon" or "in response to determining".

[0027] The present specification provides an in-band program automatic installation method, device, equipment and readable storage medium to at least improve one of the above technical problems.

[0028] The specific technical solutions are described as follows.

[0029] In an embodiment, the present specification provides an in-band program automatic installation method applied to a BMC device of a server out-of-band unit, the server further comprising an in-band unit, the out-of-band unit and the in-band unit being capable of transmitting data through a preset channel, the method comprising: mounting a to-be-installed image according to a mounting instruction sent by a KVM client and causing the server to restart according to the to-be-installed image, the to-be-installed image comprising a boot file, the boot file being read by the in-band unit when the server restarts according to the to-be-installed image; updating a storage address of an automatic installation configuration file in the boot file read by the in-band unit according to position information provided by the KVM client, the automatic installation configuration file being provided by the KVM client according to parameter information of the server in which the BMC device is located; and transmitting to-be-installed content of the to-be-installed image and the boot file with the updated storage address of the automatic installation configuration file to the in-band unit through the preset channel, so that the in-band unit acquires the automatic installation configuration file according to the storage address and automatically installs according to the automatic installation configuration file and the to-be-installed content.

[0030] The existing BMC device and KVM (Keyboard, Video, Mouse switch) software technology of the server are fully utilized, and complex network configuration and dependence on additional hardware are avoided. Specifically, first, a user accesses and logs in to a BMC system by inputting a BMC IP address of a target server in a local PC or other running environment. In the BMC system, the user can conveniently download and install a KVM client program. This KVM client program is a key tool for realizing in-band program automatic installation, which not only provides an interface for communicating with an in-band unit of a server, but also integrates a network server function, such as an FTP (File Transfer Protocol) server, for storing and transmitting an operating system image file.

[0031] Specifically, as Figure 1 comprising the steps of:

[0032] Step S11, according to the mounting instruction sent by the KVM client, mount the to-be-installed image and make the server restart according to the to-be-installed image.

[0033] First, it is necessary to ensure that the server has basic hardware conditions, that is, the out-of-band unit (BMC) is already running normally and can be accessed through the network. The user uses the KVM client software on the local PC to connect to the BMC module of the target server, and the connection is usually based on the standard IPMI protocol or the manufacturer's specific API interface. Once the connection is established, the user can see an operation interface similar to the physical console on the KVM client interface, including video output, keyboard input and mouse control, etc. At this time, the user can send a "mounting instruction" through the KVM client, instructing the BMC to mount a specified operating system installation image as a virtual optical drive or virtual USB device. The image can be an ISO format Linux distribution, a Windows Server installation package or other customized images that support unattended installation. After mounting, the BMC triggers the server to restart and adjusts the boot sequence to start from the mounted virtual medium first.

[0034] Step S12, according to the location information provided by the KVM client, update the storage address of the automatic installation configuration file in the boot file read by the in-band unit.

[0035] After the server restarts, it enters the BIOS or UEFI boot phase, recognizes the mounted virtual medium and loads the boot file from it. The boot file here refers to the bootloader part of the operating system image, for example, for Linux systems, it may be the isolinux or grub2 bootloader, and for Windows systems, it may contain bootmgr and related initialization scripts. Since the image has been correctly mounted and the path is accessible, the in-band unit can successfully read the boot file and perform the initial boot process. The key to this stage is that the BMC must ensure that the mounted virtual medium remains available during the entire boot process to avoid boot failure due to connection interruption or timeout.

[0036] Step S13, transmit the to-be-installed content of the to-be-installed image and the boot file with the updated storage address of the automatic installation configuration file to the in-band unit through a preset channel.

[0037] After the boot file is successfully loaded, the system enters the pre-installation preparation phase. At this time, the KVM client generates an automatic installation configuration file based on user input or system parameter information, which usually exists in the form of kickstart (.ks), preseed (.cfg), or answer file (.xml), depending on the type of target operating system. This configuration file contains key parameters such as disk partition planning, software package selection, network configuration, user permission settings, etc. In order for the bootloader to correctly reference this configuration file, the KVM client also needs to update the relevant fields in the bootloader according to its actual storage location, such as modifying the append line in isolinux.cfg, adding the path parameter ks= or ksdevice= pointing to the configuration file, etc. This step ensures that the subsequent installation process can be executed completely according to the preset strategy without manual intervention.

[0038] The BMC transmits the updated bootloader and the content to be installed to the in-band unit through a preset channel. The so-called "preset channel" is a special communication path established between the out-of-band unit and the in-band unit, which can be a shared memory area implemented through the OEM extension function in the IPMI command set, a serial port redirection channel, or a network-based virtual channel. The role of this channel is to ensure data exchange between the BMC and the host before the operating system is completely installed. For example, when the system is in the initrd phase, the ipmi_devintf module can be used to communicate with the BMC to obtain additional drivers or configuration information; or in the WinPE environment of Windows, the BMC service can be called through WMI to deliver files. With this mechanism, the BMC can push the final version of the bootloader (which already contains the correct address of the automatic installation configuration file) and other necessary components in the image (such as the kernel, ramdisk, driver modules, etc.) to the temporary storage space of the in-band unit for subsequent installation processes.

[0039] When all necessary files are in place, the system officially enters the automated installation phase. At this time, the bootloader will parse the instructions in the automatic installation configuration file and perform steps such as partition creation, formatting, operating system core file copying, software package installation, system initialization, etc. in sequence. In this process, all operations are driven by the configuration file, and the user no longer needs to perform any manual confirmation or input.

[0040] In an embodiment, the operation of mounting the to-be-installed image is performed by the KVM client. The to-be-installed image is usually an ISO image file containing operating system installation files, which is uploaded to the KVM client. During the mounting process, the KVM client sends relevant information of the image file to the BMC device for further processing. After receiving the mounting instruction, the BMC device mounts the to-be-installed image to the in-band unit of the server according to the pre-set rules and procedures. This step is realized through a pre-set channel between the BMC device and the in-band unit, which can be a communication link based on USB (Universal Serial Bus) or other physical interfaces, ensuring the stability and security of data transmission.

[0041] During the server restart process according to the mounted to-be-installed image, the in-band unit reads the boot file in the image. The boot file is a key configuration file in the operating system installation process, which contains the boot program and related parameters required when the system starts. The configuration and update of the boot file are simplified through the coordinated operation of the KVM client and the BMC device.

[0042] The KVM client generates an automatic installation configuration file according to the server parameter information input by the user. This configuration file contains all the parameters required in the operating system installation process, such as partition setting, network configuration, user account, etc. The KVM client uploads this automatic installation configuration file to its integrated web server and provides the storage address of the configuration file to the BMC device. The BMC device then updates the storage address of the automatic installation configuration file in the boot file read by the in-band unit according to this address information. This updating process is realized through the modification and retransmission of the boot file by the BMC device, ensuring that the in-band unit can correctly obtain the automatic installation configuration file from the specified network location after restarting.

[0043] After completing the update of the boot file, the BMC device transmits the to-be-installed content of the to-be-installed image and the updated boot file to the in-band unit through the pre-set channel. After receiving these data, the in-band unit downloads the automatic installation configuration file from the web server according to the storage address of the automatic installation configuration file specified in the boot file. Then, the in-band unit starts the automatic installation process of the operating system by combining the parameters in the automatic installation configuration file and the to-be-installed content. The entire installation process does not require human intervention, greatly improving the installation efficiency and accuracy.

[0044] In an embodiment, the IT administrator inputs the BMC IP address of the target server on the local PC and logs in to the BMC system. For example, the BMC IP of the target server is 192.168.1.100, and the administrator inputs the address in the browser and logs in using the administrator account.

[0045] In the interface of the BMC system, find and download the KVM client program. After the download is complete, run the program and follow the prompts to install it. During the installation process, the KVM client will automatically integrate an FTP server module for subsequent image file storage and transmission.

[0046] After installation is complete, the administrator selects the CentOS 7.9 ISO image file to mount through the KVM client interface. This image file is usually stored on the local PC's hard disk, and the administrator only needs to browse and select the file. After receiving the mounting instruction, the KVM client uploads the image file to its integrated FTP server and sends the image file information to the BMC device.

[0047] After receiving the mounting instruction and image information, the BMC device begins processing the mounting request. It mounts the image file to the server's in-band unit and configures the server to start from the image. To achieve this, the BMC device may need to control the server's boot order through an out-of-band management protocol such as IPMI (Intelligent Platform Management Interface) or Redfish.

[0048] At the same time, the administrator needs to configure automatic installation parameters in the KVM client. These parameters include the target server's hard disk partition scheme, network settings (such as IP address, gateway, DNS, etc.), user account information (such as administrator username and password), and whether to install additional software packages, etc. The KVM client generates a kickstart file based on these parameters, which is a configuration file for CentOS automatic installation. The administrator uploads this kickstart file to the KVM client's FTP server and records the file's storage address.

[0049] The KVM client sends the storage address of the kickstart file to the BMC device. The BMC device then modifies the boot file, updating the storage address of the automatic installation configuration file to the address of the kickstart file. The modified boot file is transmitted back to the in-band unit, replacing the original boot file.

[0050] When the server restarts according to the mounted image, the in-band unit reads the modified boot file, obtains the storage address of the kickstart file from it, and downloads the file from the FTP server. The in-band unit combines the parameters in the kickstart file with the installation content in the image to automatically execute the operating system installation process. The entire installation process does not require human intervention, and the administrator can monitor the installation progress in the background.

[0051] Through the above steps, batch automatic installation of multiple servers can be easily realized, greatly reducing the workload and operation time of IT administrators. Compared with the traditional PXE installation technical solution, the embodiment has the advantages of not needing to build complex DHCP, TFTP and NFS / HTTP servers, and not needing to make special adjustments to the network configuration of the server. As long as the server has BMC function and network connection capability, automatic installation can be realized. In addition, the compatibility requirement of the server hardware of the embodiment is relatively low, and it is suitable for servers of various brands and models, further expanding its application range.

[0052] In actual application, the embodiment can also be flexibly extended according to different needs. For example, for different types of servers or operating systems, corresponding automatic installation configuration files and image files can be customized. In addition, by integrating other network services or management tools, such as the combination of PXE and the method, more complex deployment scenarios can be realized to meet the diversified IT needs of enterprises.

[0053] In terms of security, the embodiment also takes corresponding measures. The BMC device usually has user authentication and authorization functions, only authorized users can access and operate the BMC system. At the same time, the communication between the KVM client and the BMC device can be protected by encryption protocol to prevent sensitive data from being stolen or tampered during transmission. In addition, the parameters in the automatic installation configuration file can also be encrypted to ensure the security of the installation process.

[0054] In one embodiment, the automatic installation configuration file is stored in the device where the KVM client is located, and the storage address of the automatic installation configuration file is a network address, which is the network address of the automatic installation configuration file in the local area network established by the device where the KVM client is located and the server in-band unit.

[0055] In one embodiment, the boot file is a grub.cfg file, and the automatic installation configuration file is a kickstart file. The grub.cfg file stores the storage address of the kickstart file matching the local server after being updated.

[0056] In one embodiment, the KVM client is obtained and enabled by the device where the KVM client is located from the BMC device system after logging in the BMC device system through the IP address of the BMC device.

[0057] In one embodiment, the KVM server process in the BMC software is used. The BMC is an out-of-band management system of the server, and the out-of-band refers to the side of the main CPU, and the in-band of the server refers to the side of the main CPU, and the operating system runs on the side of the main CPU. The BMC or the out-of-band management system and the in-band of the server can be connected through a physical channel, such as a USB channel, and can transmit data to each other.

[0058] The customer can input the BMC IP to open the BMC page in the PC or other local running environment, and the opening program of the KVM client is provided on the BMC page, and the customer opens the KVM client at the same time, and the program of the KVM client is downloaded to the local running environment.

[0059] The customer can mount the operating system cdrom image through the KVM client, the KVM client transmits data to the KVM server through the network, and the KVM server can transmit data to the in-band of the server through the physical channel. This is a method for mounting the cdrom image in the in-band of the server through the BMC.

[0060] As Figure 2 , Figure 2 The "network location such as FTP" is schematically shown, and can be other network locations, as long as the operating system image can be supported in the configuration of the grub.cfg. At the same time, the code of the FTP or other network location can also be integrated with the KVM client, and the customer can download the program of the network server such as the FTP server at the same time of downloading the KVM client. It is necessary to ensure that the network location and the in-band network of the server can be communicated, and the ipv6 linklocal address can be communicated in the local area network.

[0061] Specifically, as Figure 3, BMC system as the client's operation portal, the user needs to input BMC IP, login to the BMC system. The user downloads the KVM client in the BMC system, and the KVM client can contain the location of the network server such as FTP server. The user mounts the operating system image, hereinafter referred to as cdrom, and selects whether to install automatically. If it is automatic installation, the user uploads the automatic installation file kickstart to the KVM client. The KVM client reads the image file, obtains the location of grub.cfg, and controls (through ipmi or redfish and other out-of-band means) the server to restart from cdrom. The in-band environment transmits the offset position of the image file through the physical channel to find the out-of-band system, that is, the KVM server to obtain the image file. After the KVM server transmits the location to the KVM client through the network, the KVM client judges to obtain the grub.cfg file, which can read the grub.cfg file into the memory, and configure the network location of the kickstart file uploaded by the user into the grub.cfg file, and transmit it to the KVM server. The KVM server transmits the modified grub.cfg file to the in-band through the physical channel, and the in-band system reads the grub.cfg file, which is a new file that specifies the location of the automatic installation script kickstart. The in-band system obtains the kickstart file from the network location, and reads the configuration from the kickstart file to enter the automatic installation program, without manual configuration by the user

[0062] In an embodiment, as Figure 4 The present specification also provides an in-band program automatic installation device applied to a BMC device of a server out-of-band unit, the server further comprising an in-band unit, the out-of-band unit and the in-band unit being capable of transmitting data through a preset channel, the device comprising: a first module configured to mount a to-be-installed image according to a mounting instruction sent by a KVM client and make the server restart according to the to-be-installed image, the to-be-installed image comprising a boot file, the boot file being read by the in-band unit when the server restarts according to the to-be-installed image; a second module configured to update a storage address of an automatic installation configuration file in the boot file read by the in-band unit according to position information provided by the KVM client, the automatic installation configuration file being provided by the KVM client according to parameter information of the server where the BMC device is located; and a third module configured to transmit to-be-installed content of the to-be-installed image and the boot file with the updated storage address of the automatic installation configuration file to the in-band unit through the preset channel, so that the in-band unit acquires the automatic installation configuration file according to the storage address and automatically installs according to the automatic installation configuration file and the to-be-installed content.

[0063] In an embodiment, the automatic installation configuration file is stored in the device where the KVM client is located, and the storage address of the automatic installation configuration file is a network address, which is the network address of the automatic installation configuration file in the local area network established by the device where the KVM client is located and the server in-band unit.

[0064] In an embodiment, the boot file is a grub.cfg file, and the automatic installation configuration file is a kickstart file, and the grub.cfg file is updated to store the storage address of the kickstart file matching the local server.

[0065] In an embodiment, the KVM client is obtained and enabled by the device where the KVM client is located from the BMC device system after logging in the BMC device system through the IP address of the BMC device.

[0066] The device embodiments are the same or similar to the corresponding method embodiments, and are not described here again.

[0067] In an embodiment, the present specification provides an electronic device, which comprises a processor and a readable storage medium, and the readable storage medium stores machine executable instructions capable of being executed by the processor, and the processor executes the machine executable instructions to implement the in-band program automatic installation method described above. From the hardware layer, the hardware architecture diagram can be seen from Figure 5 .

[0068] In an embodiment, the present specification provides a readable storage medium, which stores machine executable instructions, and the machine executable instructions, when invoked and executed by a processor, cause the processor to implement the in-band program automatic installation method described above.

[0069] Here, the readable storage medium can be any electronic, magnetic, optical or other physical storage device, and can contain or store information such as executable instructions, data, etc. For example, the readable storage medium can be: RAM (Radom Access Memory, Random Access Memory), volatile memory, non-volatile memory, flash memory, storage drive (such as hard disk drive), solid state disk, any type of storage disk (such as optical disk, dvd, etc.), or similar storage medium, or combination thereof.

[0070] The systems, apparatuses, modules, or units disclosed in the above embodiments can be specifically implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer, and the specific form of the computer can be a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an e-mail device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0071] For the sake of description, the above apparatuses are described in various units by functions for the sake of description. Of course, the functions of the units can be implemented in one or more software and / or hardware in implementing the present specification.

[0072] Those skilled in the art should understand that the embodiments of the present specification can be provided as a method, a system, or a computer program product. Therefore, the present specification can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the embodiments of the present specification can take the form of a computer program product implemented on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROMs, optical storage, etc.) containing computer-usable program code.

[0073] The present specification is described with reference to flowcharts and / or block diagrams of methods, apparatuses (systems), and computer program products according to embodiments of the present specification. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, and combinations of flows and / or blocks in the flowcharts and / or block diagrams can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing apparatus to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing apparatus produce a device that implements the functions specified in the flowcharts and / or block diagrams. Figure 1 The functions specified in the flow or multiple flows and / or blocks Figure 1 The functions specified in the flow or multiple flows and / or blocks

[0074] Moreover, these computer program instructions can also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to work in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including instruction devices that implement the functions specified in the flowcharts and / or block diagrams. Figure 1 The functions specified in the flow or multiple flows and / or blocks Figure 1 The functions specified in the flow or multiple flows and / or blocks

[0075] These computer program instructions can also be loaded into computer or other programmable data processing devices, so that a series of operation steps are performed on the computer or other programmable data processing devices to generate computer-implemented processes, thus the instructions executed on the computer or other programmable data processing devices provide the function of implementing the processes specified in the flowchart Figure 1 one or more flows and / or blocks Figure 1 one or more blocks or a plurality of blocks.

[0076] Those skilled in the art should understand that the embodiments of the present specification can be provided as a method, a system or a computer program product. Therefore, the present specification can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present specification can take the form of a computer program product implemented on one or more computer-usable storage media (which can include, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0077] The above only describes the embodiments of the present specification and is not intended to limit the present specification. The present specification can have various modifications and changes for those skilled in the art. Any modification, equivalent replacement, improvement, etc. within the spirit and principle of the present specification shall be included in the scope of claims of the present specification.

Claims

1. A method for automatically installing an in-band program, characterized in that: A BMC device applied to an out-of-band unit of a server, wherein the server further includes an in-band unit, and the out-of-band unit and the in-band unit can transmit data via a preset channel, wherein the method includes: Mounting the image to be installed according to the mount instruction sent by the KVM client and causing the server to restart according to the image to be installed, wherein the image to be installed includes a boot file, and the boot file is read by the in-band unit when the server restarts according to the image to be installed; updating, in the boot file read by the in-band unit, a storage address of an automatic installation configuration file according to location information provided by the KVM client, wherein the automatic installation configuration file is provided by the KVM client according to parameter information of the server where the BMC device is located; The content to be installed of the image to be installed and the boot file with the updated storage address of the automatic installation configuration file are transmitted to the in-band unit through a preset channel, so that the in-band unit obtains the automatic installation configuration file according to the storage address and automatically installs according to the automatic installation configuration file and the content to be installed.

2. The method according to claim 1, characterized in that The automatic installation configuration file is stored in the device where the KVM client is located. The storage address of the automatic installation configuration file is a network address. The network address is the network address of the automatic installation configuration file in the local area network established by the device where the KVM client is located and the server in-band unit.

3. The method according to claim 1, characterized in that The boot file is a grub.cfg file, the automatic installation configuration file is a kickstart file, and after being updated, the grub.cfg file stores a storage address of the kickstart file that matches the local server.

4. The method according to claim 1, wherein The KVM client is obtained and enabled from the BMC device system after the device where the KVM client is located logs in to the BMC device system through the IP address of the BMC device.

5. An in-band program automatic installation device, characterized in that: A BMC device applied to an out-of-band unit of a server, wherein the server also includes an in-band unit. The out-of-band unit and the in-band unit can transmit data via a preset channel. The device includes: A first module is configured to mount the image to be installed and restart the server according to the image to be installed according to the mount instruction sent by the KVM client, wherein the image to be installed includes a boot file, and the boot file is read by the in-band unit when the server restarts according to the image to be installed; The second module is configured to update a storage address of an automatic installation configuration file in a boot file read by the in-band unit according to location information provided by the KVM client, wherein the automatic installation configuration file is provided by the KVM client according to parameter information of a server where the BMC device is located; The third module is used to transmit the content to be installed of the image to be installed and the boot file with the updated storage address of the automatic installation configuration file to the in-band unit through a preset channel, so that the in-band unit obtains the automatic installation configuration file according to the storage address and automatically installs according to the automatic installation configuration file and the content to be installed.

6. The device according to claim 5, characterized in that The automatic installation configuration file is stored in the device where the KVM client is located. The storage address of the automatic installation configuration file is a network address. The network address is the network address of the automatic installation configuration file in the local area network established by the device where the KVM client is located and the server in-band unit.

7. The device according to claim 5, characterized in that The boot file is a grub.cfg file, the automatic installation configuration file is a kickstart file, and after being updated, the grub.cfg file stores a storage address of the kickstart file that matches the local server.

8. The device according to claim 5, characterized in that The KVM client is obtained and enabled from the BMC device system after the device where the KVM client is located logs in to the BMC device system through the IP address of the BMC device.

9. An electronic device, characterized in that: include: A processor and a readable storage medium, wherein the readable storage medium stores machine-executable instructions that can be executed by the processor, and the processor executes the machine-executable instructions to implement the method according to any one of claims 1 to 4.

10. A readable storage medium, characterized in that: The readable storage medium stores machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to implement the method according to any one of claims 1 to 4.