CN115061701B - Out-of-band installation method and device for server - Google Patents
Out-of-band installation method and device for server Download PDFInfo
- Publication number
- CN115061701B CN115061701B CN202210981499.3A CN202210981499A CN115061701B CN 115061701 B CN115061701 B CN 115061701B CN 202210981499 A CN202210981499 A CN 202210981499A CN 115061701 B CN115061701 B CN 115061701B
- Authority
- CN
- China
- Prior art keywords
- server
- bmc
- storage medium
- virtual storage
- virtual
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
- G06F8/63—Image based installation; Cloning; Build to order
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/544—Buffers; Shared memory; Pipes
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
Description
技术领域technical field
本申请涉及计算机领域,特别涉及一种服务器带外安装方法和装置。The present application relates to the field of computers, in particular to a server out-of-band installation method and device.
背景技术Background technique
在应用中,服务器常通过基板管理控制器(BMC:board management controller)远程安装操作系统。在具体实现时,BMC作为客户端和服务器的一个代理,作用是模拟成虚拟通用串行总线(USB:Universal Serial Bus)设备比如CD-ROM设备,以挂载客户端的镜像数据,并通过BMC中已有的虚拟USB集线器控制器与服务器端的USB主设备之间的USB2.0通道传输客户端的镜像数据,使得服务器就可以像读取U盘一样读取客户端的镜像数据进行系统安装。图1举例示出了远程安装操作系统的示意图。In applications, the server often installs an operating system remotely through a baseboard management controller (BMC: board management controller). In the specific implementation, BMC acts as an agent of the client and the server, and its role is to simulate a virtual Universal Serial Bus (USB: Universal Serial Bus) device such as a CD-ROM device to mount the mirror data of the client and pass it through the BMC. The USB2.0 channel between the existing virtual USB hub controller and the USB master device on the server side transmits the image data of the client, so that the server can read the image data of the client just like a U disk for system installation. Fig. 1 shows a schematic diagram of remotely installing an operating system by way of example.
但是,采用USB2.0通道进行镜像数据的传输,传输速率比较低,而镜像数据的传输效率低,则会影响服务器系统的安装速率。However, using the USB2.0 channel to transmit the image data has a relatively low transmission rate, and the low transmission efficiency of the image data will affect the installation rate of the server system.
发明内容Contents of the invention
本申请提供了一种服务器带外安装方法和装置,以提高镜像数据的传输效率,进而提高服务器系统的安装速率。The present application provides a server out-of-band installation method and device, so as to improve the transmission efficiency of image data, and further increase the installation speed of the server system.
根据本申请实施例的第一方面,提供一种服务器带外安装方法,所述方法应用于服务器,包括:According to the first aspect of the embodiments of the present application, there is provided a server out-of-band installation method, the method is applied to the server, including:
在本地创建用于镜像安装的虚拟存储介质;Create a virtual storage medium locally for image installation;
在本地基本输入输出系统BIOS启动后且在启动到安装setup界面前,通过本服务器与基板管理控制器BMC之间用于透传的数据通道,获取所述BMC透传的客户端侧的镜像数据;所述数据通道不同于USB通道;After the BIOS of the local basic input and output system is started and before it starts to install the setup interface, through the data channel for transparent transmission between the server and the baseboard management controller BMC, obtain the mirror data of the client side transparently transmitted by the BMC ; The data channel is different from the USB channel;
将所述镜像数据写入至所述虚拟存储介质中。Writing the image data into the virtual storage medium.
在一种可能的实施方式中,所述在本地创建用于镜像安装的虚拟存储介质,包括:In a possible implementation manner, the locally creating a virtual storage medium for image installation includes:
依据指定的内存虚拟磁盘协议,将所述服务器本地指定内存部分模拟成虚拟硬盘;所述指定内存部分是指未被使用的设定大小的内存空间;According to the specified memory virtual disk protocol, the local designated memory part of the server is simulated as a virtual hard disk; the designated memory part refers to an unused memory space of a set size;
将所述虚拟硬盘确定为所述用于镜像安装的虚拟存储介质。The virtual hard disk is determined as the virtual storage medium used for image installation.
在一种可能的实施方式中,所述获取所述BMC透传的客户端侧的镜像数据,包括:In a possible implementation manner, the acquiring the client-side image data transparently transmitted by the BMC includes:
通过所述服务器与所述BMC之间的管理通道发送镜像通知至所述BMC,以便BMC获取客户端侧的镜像数据;Send a mirroring notification to the BMC through the management channel between the server and the BMC, so that the BMC obtains the mirroring data on the client side;
接收BMC通过与所述服务器之间的数据通道发送的所述镜像数据。receiving the image data sent by the BMC through the data channel with the server.
在一种可能的实施方式中,所述管理通道为所述服务器本地BIOS与BMC之间的外设部件互连标准PCI通道。In a possible implementation manner, the management channel is a standard PCI channel for interconnecting peripheral components between the local BIOS of the server and the BMC.
在一种可能的实施方式中,所述数据通道为所述服务器本地BIOS与BMC之间的高速串行计算机扩展总线标准PCIE通道。In a possible implementation manner, the data channel is a high-speed serial computer expansion bus standard PCIE channel between the local BIOS of the server and the BMC.
在一种可能的实施方式中,在本地创建用于镜像安装的虚拟存储介质之后,还包括:将所述虚拟存储介质作为所述BIOS的启动选项;In a possible implementation manner, after locally creating a virtual storage medium for image installation, it further includes: using the virtual storage medium as a startup option of the BIOS;
其中,所述安装界面在被显示时显示所述BIOS的所有启动选项,以使得在被选中的BIOS的启动选项为所述虚拟存储介质时由所述BIOS通过指定的内存虚拟磁盘协议,识别所述虚拟存储介质,并通过所述指定的内存虚拟磁盘协议将所述虚拟存储介质中的镜像数据启动并安装;Wherein, the installation interface displays all boot options of the BIOS when displayed, so that when the boot option of the selected BIOS is the virtual storage medium, the BIOS recognizes the the virtual storage medium, and start and install the image data in the virtual storage medium through the specified memory virtual disk protocol;
所述指定的内存虚拟磁盘协议,用于创建所述虚拟存储介质。The specified memory virtual disk protocol is used to create the virtual storage medium.
根据本申请实施例的第二方面,提供一种服务器带外安装装置,所述装置应用于服务器,包括:According to the second aspect of the embodiment of the present application, there is provided an out-of-band installation device for a server, the device is applied to a server, including:
创建模块,用于在本地创建用于镜像安装的虚拟存储介质;Create a module for locally creating a virtual storage medium for image installation;
获取模块,用于在本地基本输入输出系统BIOS启动后且在启动到安装setup界面前,通过本服务器与基板管理控制器BMC之间用于透传的数据通道,获取所述BMC透传的客户端侧的镜像数据;所述数据通道不同于USB通道;The acquisition module is used to obtain the client of the BMC transparent transmission through the data channel for transparent transmission between the server and the baseboard management controller BMC after the local basic input and output system BIOS is started and before it is started to install the setup interface. Mirrored data on the end side; the data channel is different from the USB channel;
写入模块,用于将所述镜像数据写入至所述虚拟存储介质中。A writing module, configured to write the image data into the virtual storage medium.
在一种可能的实施方式中,所述创建模块,包括:In a possible implementation manner, the creation module includes:
模拟子模块,用于依据指定的内存虚拟磁盘协议,将所述服务器本地指定内存部分模拟成虚拟硬盘;所述指定内存部分是指未被使用的设定大小的内存空间;The simulation sub-module is used to simulate the local designated memory part of the server as a virtual hard disk according to the designated memory virtual disk protocol; the designated memory part refers to an unused memory space of a set size;
第一确定子模块,用于将所述虚拟硬盘确定为所述用于镜像安装的虚拟存储介质。The first determining submodule is configured to determine the virtual hard disk as the virtual storage medium for image installation.
在一种可能的实施方式中,所述获取模块,包括:In a possible implementation manner, the acquisition module includes:
发送子模块,用于通过所述服务器与所述BMC之间的管理通道发送镜像通知至所述BMC,以便BMC获取客户端侧的镜像数据;A sending submodule, configured to send a mirror image notification to the BMC through a management channel between the server and the BMC, so that the BMC obtains mirror data on the client side;
接收子模块,用于接收BMC通过与所述服务器之间的数据通道发送的所述镜像数据。The receiving submodule is configured to receive the image data sent by the BMC through the data channel with the server.
在一种可能的实施方式中,所述管理通道为所述服务器本地BIOS与BMC之间的外设部件互连标准PCI通道。In a possible implementation manner, the management channel is a standard PCI channel for interconnecting peripheral components between the local BIOS of the server and the BMC.
在一种可能的实施方式中,所述数据通道为所述服务器本地BIOS与BMC之间的高速串行计算机扩展总线标准PCIE通道。In a possible implementation manner, the data channel is a high-speed serial computer expansion bus standard PCIE channel between the local BIOS of the server and the BMC.
在一种可能的实施方式中,所述装置还包括:In a possible implementation manner, the device also includes:
设置模块,用于将所述虚拟存储介质作为所述BIOS的启动选项;A setting module, configured to use the virtual storage medium as a startup option of the BIOS;
其中,所述安装界面在被显示时显示所述BIOS的所有启动选项,以使得在被选中的BIOS的启动选项为所述虚拟存储介质时由所述BIOS通过指定的内存虚拟磁盘协议,识别所述虚拟存储介质,并通过所述指定的内存虚拟磁盘协议将所述虚拟存储介质中的镜像数据启动并安装;所述指定的内存虚拟磁盘协议,用于创建所述虚拟存储介质。Wherein, the installation interface displays all boot options of the BIOS when displayed, so that when the boot option of the selected BIOS is the virtual storage medium, the BIOS recognizes the the virtual storage medium, and start and install the image data in the virtual storage medium through the specified memory virtual disk protocol; the specified memory virtual disk protocol is used to create the virtual storage medium.
根据本申请实施例的第三方面,提供一种电子设备,所述电子设备包括:处理器及存储器;所述存储器存储有可被处理器调用的程序;其中,所述处理器执行所述程序时,以实现如前述实施例中的服务器带外安装方法。According to a third aspect of the embodiments of the present application, there is provided an electronic device, the electronic device includes: a processor and a memory; the memory stores a program that can be called by the processor; wherein, the processor executes the program , so as to implement the server out-of-band installation method in the foregoing embodiments.
由以上技术方案可以看出,本申请中,服务器在本地创建用于镜像安装的虚拟存储介质;在本地输入输出系统BIOS启动后且启动到安装setup界面前,通过本服务器与基板管理控制器BMC之间用于透传的数据通道,将BMC透传的客户端侧的镜像数据写入至所述虚拟存储介质中,使得镜像数据的传输效率高,从而提高了服务器系统的安装速率。As can be seen from the above technical solutions, in this application, the server locally creates a virtual storage medium for image installation; after the local input and output system BIOS starts and before starting to install the setup interface, the server and the baseboard management controller BMC The data channel used for transparent transmission between them writes the image data of the client side transparently transmitted by the BMC into the virtual storage medium, so that the transmission efficiency of the image data is high, thereby improving the installation speed of the server system.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本说明书。It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the specification.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure.
图1举例示出了远程安装操作系统的示意图;FIG. 1 shows a schematic diagram of remotely installing an operating system by way of example;
图2为本实施例提供的一种服务器带外安装方法所涉及的实施环境的示意图;FIG. 2 is a schematic diagram of an implementation environment involved in a server out-of-band installation method provided by this embodiment;
图3为本实施例提供的一种服务器带外安装方法的流程图;FIG. 3 is a flow chart of a server out-of-band installation method provided in this embodiment;
图4为本实施例提供的创建虚拟存储介质的方法流程图;FIG. 4 is a flowchart of a method for creating a virtual storage medium provided in this embodiment;
图5为本实施例提供的一种服务器带外安装装置的结构示意图;FIG. 5 is a schematic structural diagram of a server out-of-band installation device provided in this embodiment;
图6为本申请提供的电子设备的结构示意图。FIG. 6 is a schematic structural diagram of an electronic device provided by the present application.
具体实施方式Detailed ways
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本说明书相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本说明书的一些方面相一致的装置和方法的例子。Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with this specification. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present specification as recited in the appended claims.
在本说明书使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本说明书。在本说明书和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。The terms used in this specification are for the purpose of describing particular embodiments only, and are not intended to limit the specification. As used in this specification and the appended claims, the singular forms "a", "the", and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise. It should also be understood that the term "and/or" as used herein refers to and includes any and all possible combinations of one or more of the associated listed items.
应当理解,尽管在本说明书可能采用术语第一、第二、第三等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本说明书范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”。It should be understood that although the terms first, second, third, etc. may be used in this specification to describe various information, the information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, without departing from the scope of this specification, first information may also be called second information, and similarly, second information may also be called first information. Depending on the context, the word "if" as used herein may be interpreted as "at" or "when" or "in response to a determination."
参见图3,本申请实施例提供了一种服务器带外安装方法,图2举例示出了一种服务器带外安装方法所涉及的实施环境的示意图。如图2所示,基板管理控制器(BMC:Baseboard Management Controller)101,用于管理服务器上的硬件。BMC101与服务器202相连接。其中,服务器202和BMC201之间有至少一个用于传输控制指令的管理通道和用于传输数据的数据通道。Referring to FIG. 3 , an embodiment of the present application provides a server out-of-band installation method, and FIG. 2 shows a schematic diagram of an implementation environment involved in a server out-of-band installation method. As shown in FIG. 2 , a baseboard management controller (BMC: Baseboard Management Controller) 101 is configured to manage hardware on a server. BMC101 is connected to
参见图3,本申请实施例提供了一种服务器带外安装方法,该方法可应用于服务器,包括以下步骤:Referring to Figure 3, the embodiment of the present application provides a server out-of-band installation method, the method can be applied to the server, including the following steps:
步骤301,在本地创建用于镜像安装的虚拟存储介质。In
在如图2的服务器中,其会存在内存。在一个例子中,将服务器内存中的一部分内存模拟成虚拟存储介质。至于如何将服务器内存中的一部分内存模拟成虚拟存储介质,通过下文的图4进行举例描述,这里暂不赘述。In the server as shown in Figure 2, there will be memory. In one example, a part of the server memory is simulated as a virtual storage medium. As for how to simulate a part of the memory in the server memory as a virtual storage medium, the following figure 4 will be used as an example to describe, and details will not be described here.
步骤302,在本地BIOS启动后且在启动到安装setup界面前,通过本服务器与基板管理控制器BMC之间用于透传的数据通道,获得BMC透传的客户端侧的镜像数据。
在本申请中,在本地BIOS启动后且在启动到安装setup界面前,服务器会进行如下操作:通过本地BIOS会识别服务器的硬件配置,对硬件自检和初始化。比如:先对BIOS对内存和高速串行计算机扩展总线标准PCIE资源初始化,再对BIOS网卡初始化以及其他部件插卡的初始化;镜像数据的传输;而镜像数据的具体的传输时机,可以根据实际情况进行设定。In this application, after the local BIOS starts and before booting to the setup interface, the server will perform the following operations: the local BIOS will identify the hardware configuration of the server, self-check and initialize the hardware. For example: first initialize the memory and high-speed serial computer expansion bus standard PCIE resources of the BIOS, and then initialize the BIOS network card and other component cards; the transmission of mirror data; and the specific transmission timing of mirror data can be based on the actual situation Make settings.
在一种实施例中,镜像数据的传输可以与BIOS网卡初始化以及其他部件插卡的初始化并行完成。这样,可以减少在镜像数据传输过程中所占用的时间,从而缩短镜像整体的安装时间。In one embodiment, the transmission of the image data can be completed in parallel with the initialization of the BIOS network card and the initialization of other component cards. In this way, the time taken in the process of image data transmission can be reduced, thereby shortening the overall installation time of the image.
在本申请中,本服务器和BMC之间会有多个数据通道,基于此,可以通过多个数据通道中的任一数据通道作为服务器与BMC之间用于透传的数据通道。在本申请中,数据通道不同于USB通道。在一种实施例中,数据通道为服务器本地BIOS与BMC之间的高速串行计算机扩展总线标准PCIE通道。基于PCIE通道进行镜像数据传输,相对于USB2.0的传输通道,镜像数据的传输效率高,则提高了服务器系统的安装速率。In this application, there are multiple data channels between the server and the BMC. Based on this, any data channel in the multiple data channels can be used as a data channel for transparent transmission between the server and the BMC. In this application, a data channel is different from a USB channel. In one embodiment, the data channel is a high-speed serial computer expansion bus standard PCIE channel between the local BIOS of the server and the BMC. The image data transmission is based on the PCIE channel. Compared with the USB2.0 transmission channel, the image data transmission efficiency is high, which improves the installation speed of the server system.
在本申请中,BMC透传的客户端侧的镜像数据可以是预先存储在BMC中,也可以是从客户端侧获取。至于如何服务器如何获得BMC透传的客户端侧的镜像数据,通过下文进行举例描述。In this application, the image data on the client side transparently transmitted by the BMC may be pre-stored in the BMC, or may be acquired from the client side. As for how the server obtains the mirror data on the client side transparently transmitted by the BMC, an example is described below.
上面具体的阐述服务器获取镜像数据的过程,在获取到镜像数据后还会显示安装setup界面。基于此,setup界面用于显示被BIOS识别的介质,以便用户选择BIOS需要启动的介质。The process of obtaining mirror data by the server is described in detail above, and the installation setup interface will be displayed after the mirror data is obtained. Based on this, the setup interface is used to display the media recognized by the BIOS, so that the user can select the media that the BIOS needs to start.
步骤303,将镜像数据写入至虚拟存储介质中。
至此,完成图3所示流程。So far, the process shown in FIG. 3 is completed.
由以上技术方案可以看出,服务器在本地创建用于镜像安装的虚拟存储介质;在本地输入输出系统BIOS启动后且在启动到安装setup界面前,通过本服务器与基板管理控制器BMC之间用于透传的数据通道,将BMC透传的客户端侧的镜像数据写入至所述虚拟存储介质中,使得镜像数据的传输效率高,从而提高了服务器系统的安装速率。It can be seen from the above technical solutions that the server locally creates a virtual storage medium for image installation; after the local input and output system BIOS starts and before starting to install the setup interface, the server and the baseboard management controller BMC use the Based on the transparent data channel, the image data on the client side transparently transmitted by the BMC is written into the virtual storage medium, so that the transmission efficiency of the image data is high, thereby improving the installation speed of the server system.
如图4所示,在一种实施例中,步骤301中在本地创建用于镜像安装的虚拟存储介质包括:As shown in Figure 4, in one embodiment, in
步骤401,依据指定的内存虚拟磁盘协议,将服务器本地指定内存部分模拟成虚拟硬盘,指定内存部分是指未被使用的设定大小的内存空间。In
在一个例子中,指定的内存虚拟磁盘协议为预设的虚拟内存盘RamDisk协议,该协议可以预先存储在服务器本地BIOS中。基于BIOS中预先存储的预设的RamDisk协议生成虚拟硬盘。In an example, the designated memory virtual disk protocol is a preset virtual memory disk RamDisk protocol, which may be pre-stored in the local BIOS of the server. Generate a virtual hard disk based on the pre-stored preset RamDisk protocol in the BIOS.
在一种实施例中,RamDisk协议用于定义RamDisk的注册接口,可以通过对RamDisk的注册接口中的基本属性信息进行配置的方式来得到虚拟硬盘。至于基本属性信息的具体内容可以根据实际情况进行设定。In one embodiment, the RamDisk protocol is used to define a RamDisk registration interface, and the virtual hard disk can be obtained by configuring basic attribute information in the RamDisk registration interface. As for the specific content of the basic attribute information, it can be set according to the actual situation.
在一种实施例中,基本属性信息可以为:虚拟内存空间的基地址、内存大小和内存类型,基于此,虚拟内存空间的基地址可以为内存中未被使用的存储空间的初始地址,内存大小和内存类型可以预先设定,通过基地址和内存大小就可以确定未被使用的设定大小的内存空间,内存类型作为虚拟硬盘的类型。比如:虚拟内存空间的类型可以为:光驱、硬盘、网络和可移动磁盘中的至少一项。In one embodiment, the basic attribute information may be: the base address, memory size and memory type of the virtual memory space. Based on this, the base address of the virtual memory space may be the initial address of an unused storage space in the memory, and the memory The size and memory type can be preset, and the unused memory space of the set size can be determined through the base address and memory size, and the memory type is used as the type of the virtual hard disk. For example: the type of the virtual memory space may be: at least one of optical drive, hard disk, network and removable disk.
需要说明的是,虚拟内存空间的基地址、内存大小和内存类型是根据实际情况进行设定,本实施例并不具体限定。It should be noted that the base address, memory size, and memory type of the virtual memory space are set according to actual conditions, and are not specifically limited in this embodiment.
步骤402,将虚拟硬盘确定为用于镜像安装的虚拟存储介质。
在一种实施例中,虚拟存储介质可以为RamDisk介质。In one embodiment, the virtual storage medium may be a RamDisk medium.
至此,完成图4所示流程。So far, the process shown in FIG. 4 is completed.
在一种实施例中,步骤302中获取BMC透传的客户端侧的镜像数据,包括:通过服务器与BMC之间的管理通道发送镜像通知至BMC,以便BMC获取客户端侧的镜像数据;接收BMC通过与服务器之间的数据通道发送的镜像数据。In one embodiment, in
在本申请中,管理通道为服务器本地BIOS与BMC之间的外设部件互连标准PCI通道。该管理通道用于实现服务器向BMC发送镜像通知。该管理通道可预先建立,也可以在服务器需要向BMC发送镜像通知时,建立该管理通道。在一种实施例中,管理通道为服务器到基板管理控制器HOST2BMC通道。本申请,通过对服务器、BMC本身的结构进行了改进来增加上面的HOST2BMC通道。In this application, the management channel is a standard PCI channel for interconnecting peripheral components between the local BIOS of the server and the BMC. This management channel is used to implement the server to send mirroring notifications to the BMC. The management channel can be established in advance, or the management channel can be established when the server needs to send a mirroring notification to the BMC. In one embodiment, the management channel is a channel from the server to the baseboard management controller HOST2BMC. In this application, the above HOST2BMC channel is added by improving the structure of the server and BMC itself.
在一种实施例中,镜像通知用于通知BMC传输镜像数据。基于此,在BMC接收到镜像通知后,获取镜像数据。在另一种实施例中,镜像通知中携带有虚拟存储介质形成的虚拟存储空间对应的地址,以便告知BMC用于存储镜像数据的地址,在BMC接收到该镜像通知后,使得BMC通过与服务器之间的数据通道发送镜像数据至虚拟存储介质中。In one embodiment, the image notification is used to notify the BMC to transmit the image data. Based on this, after the BMC receives the mirroring notification, it acquires the mirroring data. In another embodiment, the address corresponding to the virtual storage space formed by the virtual storage medium is carried in the image notification, so as to inform the BMC of the address used to store the image data, and after the BMC receives the image notification, the BMC will communicate with the server The data channel between sends the image data to the virtual storage medium.
至于BMC如何获取镜像数据,可以将镜像数据预先存储在BMC中,BMC也可以从其他设备上获取,在一种实施例中,在BMC接收到镜像通知后,BMC才从客户端获取镜像数据。As for how the BMC obtains the image data, the image data can be pre-stored in the BMC, and the BMC can also be obtained from other devices. In one embodiment, the BMC obtains the image data from the client after the BMC receives the image notification.
至于如何从客户端侧获取镜像数据,在一种实施例中,BMC获取客户端中用于存储镜像数据的存储设备,将该存储设备挂载在BMC的指定目录下,通过访问该指定目录的方式来获取存储在存储设备中的镜像数据。As for how to obtain the image data from the client side, in one embodiment, the BMC obtains the storage device used to store the image data in the client, mounts the storage device under the specified directory of the BMC, and accesses the specified directory way to obtain the image data stored in the storage device.
作为一种实施例,在步骤301之后,还包括:将所述虚拟存储介质作为所述BIOS的启动选项;As an embodiment, after
其中,安装界面在被显示时显示BIOS的所有启动选项,以使得在被选中的BIOS的启动选项为虚拟存储介质时由BIOS通过指定的内存虚拟磁盘协议,识别虚拟存储介质,并通过指定的内存虚拟磁盘协议将虚拟存储介质中的镜像数据启动并安装;指定的内存虚拟磁盘协议,用于创建虚拟存储介质。Wherein, when the installation interface is displayed, all boot options of the BIOS are displayed, so that when the boot option of the selected BIOS is a virtual storage medium, the BIOS recognizes the virtual storage medium through the specified memory virtual disk protocol, and passes the specified memory The virtual disk protocol starts and installs the image data in the virtual storage medium; the specified memory virtual disk protocol is used to create the virtual storage medium.
在本申请中,BIOS的启动介质是能被BIOS识别的介质,在本申请的一种实施例中,镜像数据写入至虚拟存储介质中后,进入到本地BIOS的安装界面,被BIOS识别的介质以启动选项的形式显示在安装界面上,当接收到用户在安装界面上选取一个存储介质作为该BIOS的启动选项时,BIOS会识别该启动选项对应的存储介质,将该存储介质中的镜像数据启动并安装。In this application, the startup medium of BIOS is a medium that can be recognized by BIOS. In one embodiment of this application, after the image data is written into the virtual storage medium, it enters the installation interface of the local BIOS, and is recognized by the BIOS. The medium is displayed on the installation interface in the form of boot options. When receiving the user selecting a storage medium as the boot option of the BIOS on the installation interface, the BIOS will identify the storage medium corresponding to the boot option and use the image in the storage medium to Data starts and installs.
由以上技术方案可以看出,将镜像数据写入到虚拟内存空间中之后,才显示安装界面,以使用户在安装界面上选取存储介质,从而进行存储介质中的镜像数据的启动并安装,使得镜像数据在BIOS进入到安装界面之前就完成了镜像数据的传输,这样可以减少镜像数据传输所占用的时间,使得镜像数据的传输效率高,从而提高了服务器系统的安装速率。As can be seen from the above technical solutions, after the image data is written into the virtual memory space, the installation interface is displayed, so that the user selects the storage medium on the installation interface, thereby starting and installing the image data in the storage medium, so that The image data transmission is completed before the BIOS enters the installation interface, which can reduce the time taken by the image data transmission, make the image data transmission efficient, and thereby improve the installation speed of the server system.
作为一种实施例,指定的内存虚拟磁盘协议为:UEFI2.6中定义的UEFI ramdisk协议。As an embodiment, the designated memory virtual disk protocol is: UEFI ramdisk protocol defined in UEFI2.6.
需要说明的是,镜像数据中包含有驱动数据和操作系统的安装包数据,通过指定的内存虚拟磁盘协议能够识别到虚拟存储介质,从而能够发现虚拟存储介质中存储的镜像数据中的驱动数据,从而通过驱动数据引导操作系统的安装包在虚拟存储介质中进行启动安装流程,从而完成服务器的操作系统的安装。It should be noted that the image data includes the driver data and the installation package data of the operating system, and the virtual storage medium can be identified through the specified memory virtual disk protocol, so that the driver data in the image data stored in the virtual storage medium can be found. Therefore, the installation package of the operating system is guided through the driving data to start the installation process in the virtual storage medium, thereby completing the installation of the operating system of the server.
由以上技术方案可以看出,本申请中,服务器在本地创建用于镜像安装的虚拟存储介质;在本地输入输出系统BIOS启动后且在启动到安装setup界面前,通过本服务器与基板管理控制器BMC之间用于透传的数据通道,将BMC透传的客户端侧的镜像数据写入至所述虚拟存储介质中,使得镜像数据的传输效率高,从而提高了服务器系统的安装速率。It can be seen from the above technical solutions that in this application, the server locally creates a virtual storage medium for image installation; after the local input and output system BIOS starts and before starting to install the setup interface, through the server and the baseboard management controller The data channel used for transparent transmission between BMCs writes the image data of the client side transparently transmitted by the BMC into the virtual storage medium, so that the transmission efficiency of the image data is high, thereby improving the installation speed of the server system.
如图5所示,提供一种服务器带外安装装置500,该装置应用于服务器,包括:As shown in Figure 5, a server out-of-
创建模块501,用于在本地创建用于镜像安装的虚拟存储介质;Creating
获取模块502,用于在本地基本输入输出系统BIOS启动后且在启动到安装setup界面前,通过本服务器与基板管理控制器BMC之间用于透传的数据通道,获取BMC透传的客户端侧的镜像数;数据通道不同于USB通道;The obtaining
写入模块503,用于将镜像数据写入至虚拟存储介质中。The
在一种可能的实施方式中,创建模块501,包括:In a possible implementation manner, the
模拟子模块,用于依据指定的内存虚拟磁盘协议,将服务器本地指定内存部分模拟成虚拟硬盘,指定内存部分是指未被使用的设定大小的内存空间;The simulation sub-module is used to simulate the local designated memory part of the server as a virtual hard disk according to the designated memory virtual disk protocol, and the designated memory part refers to an unused memory space of a set size;
第一确定子模块,用于将虚拟硬盘确定为用于镜像安装的虚拟存储介质。The first determining submodule is used to determine the virtual hard disk as a virtual storage medium for image installation.
在一种可能的实施方式中,获取模块502,包括:In a possible implementation manner, the obtaining
发送子模块,用于通过服务器与BMC之间的管理通道发送镜像通知至BMC,以便BMC获取客户端侧的镜像数据;The sending sub-module is used to send the image notification to the BMC through the management channel between the server and the BMC, so that the BMC can obtain the image data on the client side;
接收子模块,用于接收 BMC通过与服务器之间的数据通道发送的镜像数据。The receiving sub-module is used to receive the image data sent by the BMC through the data channel between the server and the server.
在一种可能的实施方式中,管理通道为服务器本地BIOS与BMC之间的外设部件互连标准PCI通道。In a possible implementation manner, the management channel is a standard PCI channel for interconnecting peripheral components between the local BIOS of the server and the BMC.
在一种可能的实施方式中,数据通道为服务器本地BIOS与BMC之间的高速串行计算机扩展总线标准PCIE通道。In a possible implementation manner, the data channel is a high-speed serial computer expansion bus standard PCIE channel between the local BIOS of the server and the BMC.
在一种可能的实施方式中,装置还包括:In a possible implementation manner, the device also includes:
设置模块,用于将虚拟存储介质作为BIOS的启动选项;The setting module is used for using the virtual storage medium as a startup option of the BIOS;
其中,安装界面在被显示时显示BIOS的所有启动选项,以使得在被选中的BIOS的启动选项为虚拟存储介质时由BIOS通过指定的内存虚拟磁盘协议,识别虚拟存储介质,并通过指定的内存虚拟磁盘协议将虚拟存储介质中的镜像数据启动并安装;指定的内存虚拟磁盘协议,用于创建虚拟存储介质。Wherein, when the installation interface is displayed, all boot options of the BIOS are displayed, so that when the boot option of the selected BIOS is a virtual storage medium, the BIOS recognizes the virtual storage medium through the specified memory virtual disk protocol, and passes the specified memory The virtual disk protocol starts and installs the image data in the virtual storage medium; the specified memory virtual disk protocol is used to create the virtual storage medium.
由以上技术方案可以看出,本申请中,服务器在本地创建用于镜像安装的虚拟存储介质;在本地输入输出系统BIOS启动后且在启动到安装setup界面前,通过本服务器与基板管理控制器BMC之间用于透传的数据通道,将BMC透传的客户端侧的镜像数据写入至虚拟存储介质中,使得镜像数据的传输效率高,则提高了服务器系统的安装速率。It can be seen from the above technical solutions that in this application, the server locally creates a virtual storage medium for image installation; after the local input and output system BIOS starts and before starting to install the setup interface, through the server and the baseboard management controller The data channel used for transparent transmission between BMCs writes the image data of the client side transparently transmitted by the BMC into the virtual storage medium, so that the transmission efficiency of the image data is high, and the installation speed of the server system is improved.
如图6所示,本申请还提供一种电子设备600,包括处理器601及存储器602;存储器602存储有可被处理器调用的程序;其中,处理器601执行程序时,实现如前述实施例中的服务器带外安装方法。As shown in Figure 6, the present application also provides an
上述装置中各个模块的功能和作用的实现过程具体详见上述方法中对应步骤的实现过程,在此不再赘述。For the implementation process of the functions and effects of each module in the above-mentioned device, please refer to the implementation process of the corresponding steps in the above-mentioned method for details, and details will not be repeated here.
对于装置实施例而言,由于其基本对应于方法实施例,所以相关之处参见方法实施例的部分说明即可。以上所描述的装置实施例仅仅是示意性的,其中作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者也可以分布到多个网络模块上。可以根据实际的需要选择其中的部分或者全部模块来实现本说明书方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。As for the device embodiment, since it basically corresponds to the method embodiment, for related parts, please refer to the part description of the method embodiment. The device embodiments described above are only illustrative, and the modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place , or can also be distributed to multiple network modules. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution in this specification. It can be understood and implemented by those skilled in the art without creative effort.
上述对本说明书特定实施例进行了描述。其它实施例在所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作或步骤可以按照不同于实施例中的顺序来执行并且仍然可以实现期望的结果。另外,在附图中描绘的过程不一定要求示出的特定顺序或者连续顺序才能实现期望的结果。在某些实施方式中,多任务处理和并行处理也是可以的或者可能是有利的。The foregoing describes specific embodiments of this specification. Other implementations are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in an order different from that in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. Multitasking and parallel processing are also possible or may be advantageous in certain embodiments.
本领域技术人员在考虑说明书及实践这里申请的发明后,将容易想到本说明书的其它实施方案。本说明书旨在涵盖本说明书的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本说明书的一般性原理并包括本说明书未申请的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本说明书的真正范围和精神由下面的权利要求指出。Other embodiments of the description will readily occur to those skilled in the art from consideration of the specification and practice of the invention claimed herein. This description is intended to cover any modification, use or adaptation of this description. These modifications, uses or adaptations follow the general principles of this description and include common knowledge or conventional technical means in this technical field for which this description does not apply . The specification and examples are to be considered exemplary only, with a true scope and spirit of the specification being indicated by the following claims.
应当理解的是,本说明书并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本说明书的范围仅由所附的权利要求来限制。It should be understood that this specification is not limited to the precise constructions which have been described above and shown in the accompanying drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the specification is limited only by the appended claims.
以上所述仅为本说明书的较佳实施例而已,并不用以限制本说明书,凡在本说明书的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本说明书保护的范围之内。The above descriptions are only preferred embodiments of this specification, and are not intended to limit this specification. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of this specification shall be included in this specification. within the scope of protection.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210981499.3A CN115061701B (en) | 2022-08-16 | 2022-08-16 | Out-of-band installation method and device for server |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210981499.3A CN115061701B (en) | 2022-08-16 | 2022-08-16 | Out-of-band installation method and device for server |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN115061701A CN115061701A (en) | 2022-09-16 |
| CN115061701B true CN115061701B (en) | 2022-11-25 |
Family
ID=83208346
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202210981499.3A Active CN115061701B (en) | 2022-08-16 | 2022-08-16 | Out-of-band installation method and device for server |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN115061701B (en) |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107526616A (en) * | 2017-09-01 | 2017-12-29 | 联想(北京)有限公司 | A kind of main frame carries out the method and device of data write-in and reading to BMC |
| CN114756290A (en) * | 2022-04-30 | 2022-07-15 | 苏州浪潮智能科技有限公司 | Operating system installation method, device and readable storage medium |
Family Cites Families (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9778844B2 (en) * | 2014-05-14 | 2017-10-03 | American Megatrends, Inc. | Installation of operating system on host computer using virtual storage of BMC |
| CN113467882A (en) * | 2020-03-31 | 2021-10-01 | 阿里巴巴集团控股有限公司 | Method and system for deploying containers |
| CN113448598A (en) * | 2021-05-28 | 2021-09-28 | 新华三信息技术有限公司 | Component upgrading method and device and server |
| CN114020340B (en) * | 2021-11-02 | 2024-05-24 | 联想(北京)信息技术有限公司 | Server system and data processing method thereof |
| CN113934445B (en) * | 2021-11-04 | 2024-10-18 | 中科可控信息产业有限公司 | Device firmware upgrading system, method, device, computer device and storage medium |
| CN114153780A (en) * | 2021-11-12 | 2022-03-08 | 浪潮(北京)电子信息产业有限公司 | BIOS data interaction method, device and medium |
-
2022
- 2022-08-16 CN CN202210981499.3A patent/CN115061701B/en active Active
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107526616A (en) * | 2017-09-01 | 2017-12-29 | 联想(北京)有限公司 | A kind of main frame carries out the method and device of data write-in and reading to BMC |
| CN114756290A (en) * | 2022-04-30 | 2022-07-15 | 苏州浪潮智能科技有限公司 | Operating system installation method, device and readable storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN115061701A (en) | 2022-09-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10282192B1 (en) | Updating device code through a bus | |
| CN104360883B (en) | A kind of configuration Raid method and system | |
| US9934049B1 (en) | Method for creation of device drivers and device objects for peripheral devices | |
| US8380971B2 (en) | Information handling systems including network adapters and methods of booting the information handling systems using boot configuration information from remote sources | |
| CN106775924B (en) | Virtual machine starts method and apparatus | |
| CN107783818A (en) | Deep learning task processing method, device, equipment and storage medium | |
| CN103605562B (en) | Method for migrating kernel-based virtual machine (KVM) between physical hosts | |
| CN109240754B (en) | Logic device, method and system for configuring BIOS starting item | |
| CN110908753A (en) | Intelligent fusion cloud desktop server, client and system | |
| JP2007188374A (en) | Complex information platform apparatus and information processing apparatus configuration method thereof | |
| US20180335956A1 (en) | Systems and methods for reducing data copies associated with input/output communications in a virtualized storage environment | |
| CN114995888B (en) | Intelligent network card deployment method, device and medium | |
| CN115562734A (en) | Data processor configuration method, device, equipment and medium | |
| CN109388475A (en) | A kind of dispositions method, device, electronic equipment and the storage medium of physics bare machine | |
| US10235195B2 (en) | Systems and methods for discovering private devices coupled to a hardware accelerator | |
| WO2017177892A1 (en) | Installation of operating system | |
| CN112306581A (en) | A method and medium for baseboard management controller to manage BIOS configuration | |
| CN106095528A (en) | A method for detecting virtual machine drive letter | |
| US11221858B1 (en) | System control processor (SCP) boot system | |
| CN116069400A (en) | Method and terminal for starting Linux operating system under VOI architecture | |
| CN114020344B (en) | Bus resource reservation method, device, equipment and storage medium | |
| CN115712542A (en) | Dynamic loading method, device and equipment for monitoring process and storage medium | |
| JP2000112666A (en) | Disk controller | |
| CN115061701B (en) | Out-of-band installation method and device for server | |
| CN107659621B (en) | A RAID control card configuration method and device |
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 |