CN110427196B - Installation method and device of Operating System (OS) - Google Patents

Installation method and device of Operating System (OS) Download PDF

Info

Publication number
CN110427196B
CN110427196B CN201910683387.8A CN201910683387A CN110427196B CN 110427196 B CN110427196 B CN 110427196B CN 201910683387 A CN201910683387 A CN 201910683387A CN 110427196 B CN110427196 B CN 110427196B
Authority
CN
China
Prior art keywords
file
image file
iso
kvm
specified
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
Application number
CN201910683387.8A
Other languages
Chinese (zh)
Other versions
CN110427196A (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.)
New H3C Technologies Co Ltd Chengdu Branch
Original Assignee
New H3C Technologies Co Ltd Chengdu Branch
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 New H3C Technologies Co Ltd Chengdu Branch filed Critical New H3C Technologies Co Ltd Chengdu Branch
Priority to CN201910683387.8A priority Critical patent/CN110427196B/en
Publication of CN110427196A publication Critical patent/CN110427196A/en
Application granted granted Critical
Publication of CN110427196B publication Critical patent/CN110427196B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3006Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is distributed, e.g. networked systems, clusters, multiprocessor systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Quality & Reliability (AREA)
  • Software Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the disclosure provides an installation method and device of an Operating System (OS). In the disclosure, the BMC adds the specified file for user mode installation to the ISO image file by controlling the KVM, the specified file includes a network parameter for obtaining a source file of the ISO image file, and based on the network parameter, the server can directly obtain the source file through the LAN channel for OS installation when performing user mode installation. The method for acquiring the source file through the LAN channel based on the network parameters has very high file acquisition speed, and further improves the installation efficiency of the server OS.

Description

Installation method and device of Operating System (OS)
Technical Field
The embodiment of the disclosure relates to the field of data communication, and in particular, to an installation method and device of an Operating System (OS).
Background
The BMC (Baseboard Management Controller) is an out-of-band Management system of the server. The BMC intelligently monitors and manages the servers based on an IPMI (Intelligent Platform Management Interface) protocol.
The KVM (Keyboard Video Mouse) is directly connected to the Keyboard, Video and Mouse ports, and is a java program running on a remote client (PC) side for the BMC to remotely operate the server.
Currently, OS installation of a server is often achieved by mounting an ISO image file by KVM.
Disclosure of Invention
The invention aims to provide an installation method and device of an Operating System (OS) so as to enable a server to acquire a source file through a Local Area Network (LAN) channel based on network parameters in a specified file for installing a user mode program during user mode installation.
An installation method of an Operating System (OS) is applied to a Basic Management Controller (BMC) which is used for monitoring and managing a server, and comprises the following steps:
when monitoring that a server is started from an ISO mirror image file, sending an analysis notification to a KVM (keyboard video mouse), wherein the analysis notification is used for indicating the KVM to analyze the ISO mirror image file;
receiving a request message sent by the KVM, wherein the request message is sent when the KVM analyzes that the ISO mirror image file does not have a designated file, and the designated file is used for installing a user mode program;
and controlling the KVM to add the specified file to the ISO image file according to the request message, wherein the specified file comprises network parameters for acquiring a source file of the ISO image file, so that the server acquires the source file through a LAN (local area network) channel based on the network parameters to install the OS.
An installation method of an Operating System (OS) is applied to a kernel-based virtual machine (KVM), and comprises the following steps:
receiving an analysis notification sent by a Basic Management Controller (BMC), wherein the analysis notification is sent by the BMC when monitoring that a server starts from an ISO mirror image file and is used for indicating to analyze the ISO mirror image file;
analyzing the ISO mirror image file according to the analysis notification, if no specified file exists in the ISO mirror image file, sending a request message to BMC to control the KVM to add the specified file to the ISO mirror image file according to the request message, wherein the specified file is used for installing a user mode program;
and adding the specified file to the ISO image file according to the control of the BMC, wherein the specified file comprises network parameters for acquiring a source file of the ISO image file, so that the server acquires the source file through a LAN (local area network) channel based on the network parameters in the specified file to install the OS.
An installation apparatus of an Operating System (OS), which is applied to a Basic Management Controller (BMC) for monitoring and managing a server, comprising:
the monitoring unit is used for monitoring that when the server is started from the mounted ISO mirror image file, an analysis notice is sent to the KVM, and the analysis notice is used for indicating the KVM to analyze the ISO mirror image file;
a message unit, configured to receive a request message sent by the KVM, where the request message is sent when the specified file does not exist in the ISO image file analyzed by the KVM;
and the control unit is used for controlling the KVM to add the specified file to the ISO image file according to the request message, wherein the specified file comprises network parameters used for acquiring a source file of the ISO image file, so that the server acquires the source file through a LAN (local area network) channel based on the network parameters in the specified file to install the OS.
An installation apparatus of an Operating System (OS), which is applied to a KVM (keyboard video mouse), comprises:
the system comprises a receiving unit, a sending unit and a processing unit, wherein the receiving unit is used for receiving an analysis notification sent by a Basic Management Controller (BMC), and the analysis notification is sent by the BMC when monitoring that a server starts from a mounted ISO mirror image file and is used for indicating to analyze the ISO mirror image file;
the processing unit is used for analyzing the ISO mirror image file according to the analysis notification, and if no specified file exists in the ISO mirror image file, sending a request message to the BMC so that the BMC controls the KVM to add the specified file to the ISO mirror image file according to the request message;
and the adding unit is used for adding the specified file to the ISO image file according to the control of the BMC, wherein the specified file comprises network parameters of a source file used for acquiring the ISO image file, so that the server acquires the source file through a LAN (local area network) channel based on the network parameters in the specified file to install the OS.
An apparatus, comprising: a memory, a processor;
the memory for storing machine executable instructions;
the processor is configured to read and execute the machine executable instructions stored in the memory to implement the method described above.
A machine-readable storage medium having stored therein machine-executable instructions for reading and execution by a processor to implement a method as described above.
In the embodiment of the disclosure, the BMC adds the specified file for user mode installation to the ISO image file by controlling the KVM, the specified file includes a network parameter for obtaining a source file of the ISO image file, and based on the network parameter, the server can directly obtain the source file through the LAN channel for OS installation when performing user mode installation. The method for acquiring the source file through the LAN channel based on the network parameters has very high file acquisition speed, and further improves the installation efficiency of the server OS.
Drawings
FIG. 1 is a flow diagram of a server obtaining a source file of an ISO image file;
FIG. 2 is a flow chart of a method provided by the present disclosure;
FIG. 3 is a flow chart of another OS installation method provided by the present disclosure;
FIG. 4 is a diagram of a network scenario architecture for use in the present disclosure;
FIG. 5 is a schematic view of an OS installation provided by the present disclosure;
FIG. 6 is a block diagram of an apparatus provided by the present disclosure;
FIG. 7 is a block diagram of another apparatus provided by the present disclosure;
fig. 8 is a hardware block diagram provided by the present disclosure.
Detailed Description
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, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus consistent with certain aspects of the embodiments of the present disclosure, as detailed in the appended claims.
The terminology used in the embodiments of the present disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the embodiments of the present disclosure. Unless otherwise defined, technical or scientific terms used in the embodiments of the present disclosure should have the ordinary meaning as understood by those having ordinary skill in the art to which the embodiments of the present disclosure belong. The use of "first," "second," and similar language in the description and claims of the embodiments of the present disclosure is not intended to imply any order, quantity, or importance, but rather the components are identified. Also, the use of the terms "a" or "an" and the like do not denote a limitation of quantity, but rather denote the presence of at least one. "plurality" or "a number" means two or more. Unless otherwise indicated, "front", "rear", "lower" and/or "upper" and the like are for convenience of description and are not limited to one position or one spatial orientation. The word "comprising" or "comprises", and the like, means that the element or item listed as preceding "comprising" or "includes" covers the element or item listed as following "comprising" or "includes" and its equivalents, and does not exclude other elements or items. The terms "connected" or "coupled" and the like are not restricted to physical or mechanical connections, but may include electrical connections, whether direct or indirect. As used in the specification of the disclosed embodiments and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
Before describing the method provided by the present disclosure, the following process of mounting an ISO image file on a KVM is described: the KVM receives a user instruction, and the user instruction indicates the ISO image files needing mounting and specified by the user on the user interface. The KVM opens this ISO image according to the user instruction. This means that the ISO image has been successfully mounted.
After the KVM has successfully mounted the ISO image file, the BMC virtualizes a CD/DVD device based on USB. The CD/DVD device stores the ISO image described above. Since the CD/DVD device is USB based, at this point, the server and BMC may assume that there is a USB channel interaction.
The OS installation of the server is divided into: kernel-mode installation and user-mode installation. The present disclosure relates generally to user-mode installation. When the user mode is installed, the server needs to access the CD/DVD device so as to obtain a source file of the ISO image file according to the ISO image file for installation. An ISO image file is not identical to its source file. As an example, an ISO image may include only a few file directories, and not specifically file contents. When the server performs user mode installation, specific file content (namely, a source file) is acquired according to a file directory in the ISO image file. How a server acquires a source file of an ISO image file is described below with fig. 1.
As shown in fig. 1, the process may include:
step 101, the server sends a file instruction to the BMC through the USB channel.
At step 102, the BMC sends the request to the KVM via the LAN channel with the KVM.
In step 103, the KVM sends the source file to the BMC through the LAN channel between the KVM and the BMC.
And step 104, the BMC sends the source file to the server through a USB channel between the source file and the server.
As can be seen from the above steps 101 to 104, when the server executes user mode installation, a source file required by the server is transferred in the BMC, and the BMC performs conversion from the LAN to the USB on the source file, which reduces the speed of acquiring the source file by the server, and further reduces the OS installation efficiency of the server.
To avoid the above problem, the present disclosure provides an OS installation method. In the method provided by the present disclosure, the BMC controls the KVM to add a specific file to the ISO image file, where the specific file is used to install a user-mode program, which may be, for example, a kickstart file in a specific implementation. The appointed file comprises network parameters of a source file used for obtaining an ISO (International organization for standardization) image file, and based on the network parameters, when a user mode is installed, the server can directly obtain the source file through an LAN (local area network) channel to install the OS.
The method provided by the present disclosure is described below by means of fig. 2:
referring to fig. 2, fig. 2 is a flow chart of a method provided by the present disclosure. This flow applies to the BMC, where the BMC is used to monitor and manage the server.
As shown in fig. 2, the process may include the following steps:
in step 201, when monitoring that the server is started from the ISO image file, the BMC sends an analysis notification to the KVM, where the analysis notification is used to instruct the KVM to analyze the ISO image file.
In the embodiment of the present disclosure, the ISO image file may be an ISO image file mounted by the KVM described above.
In the embodiment of the present disclosure, after the KVM mounts the ISO image file, the server is powered on and enters a BIOS (Basic Input Output System). The BIOS is a set of programs that is fixed to a ROM chip on a server motherboard, and stores the most important basic input/output programs of the server, system setting information, a post-boot self-test program, and a system self-boot program. Its primary function is to provide the lowest level, most direct hardware setup and control for the computer.
After the server is started and enters the BIOS, the CD/DVD equipment virtualized from the BMC is started. Here, the server is started from a BMC virtual CD/DVD device, meaning that the server is started from an ISO image stored on the CD/DVD device. Because the CD/DVD device is BMC virtualized, the BMC will monitor in time once the server boots from the BMC virtualized CD/DVD device (the server boots from the ISO image file). Once the BMC monitors that the server is started from the ISO image, a resolution notification is sent to the KVM.
And when the KVM receives the analysis notice sent by the BMC, the ISO mirror image file is analyzed according to the analysis notice. And sending a request message to the BMC if the specified file does not exist in the analyzed ISO mirror image file. The specified file is used for installing the user mode program, and a specific implementation of the specified file can be a kickstart file.
After the KVM sends the request message to the BMC, step 202 is performed.
Step 202, the BMC receives a request message sent by the KVM, where the request message is sent when the KVM is analyzed that the ISO image file does not have a designated file, and the designated file is used for installing a user mode program.
Step 203, the BMC controls the KVM to add an assigned file to the ISO image file according to the request message, where the assigned file includes a network parameter for acquiring a source file of the ISO image file, so that the server acquires the source file through the LAN channel based on the network parameter in the assigned file to perform OS installation.
In one example, the BMC controlling the KVM to add the specified file to the ISO image may include: and the BMC searches the specified file matched with the ISO mirror image file locally and sends the searched specified file to the KVM. And after receiving the specified file, the KVM adds the specified file to the ISO mirror image file. Finally, the BMC controls the KVM to add the designated file to the ISO mirror image file.
In the flow shown in fig. 2, as an embodiment, the specific implementation of the network parameter may include: specifying an IP address, specifying a port.
The specified IP address and the IP address of the user side equipment where the KVM is located are in the same network segment. As an embodiment, the specified IP address may be an IP address of the user-side device where the KVM is located.
And designating the port as a port on the user side equipment, wherein the port is a cut-off idle port which is not occupied by other services currently.
Taking network parameters as an appointed IP address, an appointed port and a service type as examples, once the appointed IP address and the appointed port are added in an appointed file, the server takes the appointed IP address as a destination IP address and the appointed port as a destination port, and directly accesses the destination IP address and the destination port through a LAN channel to acquire a source file for OS installation. Compared with the existing mode of transferring and acquiring the source file through the BMC, the method greatly improves the installation efficiency of the server OS.
It should be noted that, as an embodiment, the network parameters may further include: such as ftp service or http service. Thereafter, the KVM may initiate a service corresponding to the service type, such as ftp or http, at the designated port. Further, when the server accesses the destination IP address as the designated IP address and the destination port as the designated port through the LAN channel, the server also accesses the destination IP address according to a protocol corresponding to the service type (for example, ftp corresponding to ftp service).
Thus, the flow shown in fig. 2 is completed.
As can be seen from the flow shown in fig. 2, the BMC controls the KVM to add a specific file (for installing the user mode program) to the ISO image file, where the specific file includes the network parameter of the source file for obtaining the ISO image file. In this way, when installing a user mode program (part of the OS), the server acquires a source file through the LAN channel based on the network parameter to install the OS. Compared with the existing mode of acquiring the source file by transferring the BMC, the mode of directly acquiring the source file through the LAN channel based on the network parameters greatly improves the installation efficiency of the server OS.
In particular implementations, the server is OS-installed according to a configuration file in the ISO image file. The configuration file can be a grub2.conf file in an ISO image file. Based on this, as an embodiment, in the flow shown in fig. 2, the method may further include: and controlling the KVM to add the path parameter of the specified file in the configuration file of the ISO image file so that the server reads the path parameter when the OS is installed according to the configuration file and accesses the specified file according to the path parameter. In one example, controlling the KVM to add a path parameter of a specified file in a configuration file of the ISO image file may include: and the BMC determines the position of the specified file in the ISO mirror image file, determines a path parameter according to the position and sends the path parameter to the KVM. And after receiving the path parameters, the KVM adds the path parameters to the configuration file. Finally, the BMC controls the KVM to add the path parameter of the designated file in the configuration file of the ISO mirror image file.
As described above, as an embodiment, the path parameters herein include at least: specifying a location of a file in the ISO image file.
Thus, when the server installs the OS according to the configuration file, the server reads the specified file in the ISO image file according to the path parameter of the specified file in the configuration file, and then acquires the source file through the LAN channel according to the network parameter in the specified file to install the OS.
It should be noted that, as described above, the KVM starts a service corresponding to the service type, such as ftp or http, at the specified port. However, the designated port is not always continuously enabled, and as an embodiment, when the BMC monitors that the server is automatically restarted after the OS is installed, the BMC notifies the KVM to disable the designated port, so as to prevent unnecessary installation trouble.
The OS installation method provided by the present disclosure is described above in terms of standing at BMC and by the flow shown in fig. 2. The following stations describe the OS installation method provided by the present disclosure in a KVM perspective:
referring to fig. 3, fig. 3 is a flowchart of another OS installation method provided by the present disclosure. The method is applied to KVM.
As shown in fig. 3, the process may include the following steps:
step 301, the KVM receives an analysis notification sent by the BMC, where the analysis notification is sent by the BMC when monitoring that the server is started from the ISO image file, and is used to instruct to analyze the ISO image file.
This step 301 corresponds to the above step 201.
Step 302, the KVM analyzes the ISO image file according to the analysis notification, and if no specified file exists in the analyzed ISO image file, the BMC sends a request message to the BMC, so that the BMC controls the KVM to add the specified file to the ISO image file according to the request message.
This step 302 corresponds to the step 202, and the specified file is described above, which is not described herein again.
As an embodiment, in step 302, the KVM parsing the ISO image file may include:
step a1, judging whether the ISO mirror image file meets the specified format, if so, executing step a 2.
In step a1, the specified format may be: the format required by the Linux ISO mirror system can be started.
For one embodiment, in step a1, when the ISO image is determined not to satisfy the specified format, the current process may be ended.
Step a2, judging whether the ISO mirror image file has a designated file, if so, determining that the designated file exists in the ISO mirror image file, otherwise, determining that the designated file does not exist in the ISO mirror image file.
Through the steps a1 and a2, the KVM can analyze the ISO image.
Step 303, the KVM adds a specific file to the ISO image file according to the control of the BMC, where the specific file includes a network parameter for obtaining a source file of the ISO image file, so that the server obtains the source file through the LAN channel based on the network parameter in the specific file to perform OS installation.
This step 303 corresponds to the step 203 described above, and is not described herein again.
The network parameters are as described above and will not be described in detail here.
The flow shown in fig. 3 is completed.
In order to facilitate the server to read the specified file when performing OS installation according to the configuration file, the flow shown in fig. 3 may further include: and the KVM adds the path parameter of the specified file to the configuration file of the ISO mirror image file according to the control of the BMC so that the server accesses the specified file according to the path parameter. The path parameters include at least: the location of the specified file in the ISO image file.
As an embodiment, the adding, by the KVM under the control of the BMC, the path parameter of the specified file to the configuration file of the ISO image file may include: the KVM sends a path parameter request to the BMC, receives a path parameter returned by the BMC, and determines the path parameter according to the position of the specified file in the ISO image file by the BMC as described above; when the KVM receives the path parameter, the path parameter is added to the configuration file of the ISO image file. Finally, the KVM is controlled according to the BMC, and the path parameter of the designated file is added to the configuration file of the ISO mirror image file.
The process flow shown in FIG. 3 is described from a KVM perspective. It should be noted that, as described above, the network parameters may further include: such as ftp service or http service. Thereafter, the KVM may initiate a service corresponding to the service type, such as ftp or http, at the designated port. However, the designated port is not always on, and as an embodiment, the KVM may close the designated port when receiving a close notification from the BMC, so as to prevent unnecessary installation trouble. The shutdown notification is sent by the BMC upon monitoring that the server has completed OS installation and is automatically restarted.
For the convenience of understanding, the disclosure is described by way of example through an embodiment in conjunction with the flow shown in fig. 2 and 3:
referring to fig. 4, fig. 4 is a diagram of a network scene structure applied in the present disclosure. As shown in fig. 4, the KVM runs on the user side device (PC) 20. BMC22 has a first port 221 and a second port 222. The first port 221 is connected to the server 23 through a USB channel. The second Port 222 is connected to the server's Port1, for example, through an NCSI link. Port1 may be, for example, a network Port. The server 23 is installed with a BIOS. Port1 of server 23 is connected to PC20 through a LAN channel.
Based on the structure shown in fig. 4, the following describes the OS installation of the server by way of example:
before describing OS installation, preparation before OS installation is described:
after the KVM mounts the ISO image file to the server, the server 23 boots into BIOS and boots the CD/DVD device virtualized from BMC 22.
When monitoring that the server 23 is started from the ISO image file, the BMC22 sends a resolution notification to the KVM, where the resolution notification is used to instruct the KVM to resolve the ISO image file.
The KVM receives the resolution notification sent by the BMC 22. Then, the KVM parses the ISO image according to the parsing notification, and sends a request message to the BMC22 if it is parsed that there is no specific file (here, a Kickstart file is taken as an example) in the ISO image.
The BMC22 receives the request message sent by the KVM. And then, according to the request message, locally searching a Kickstart file matched with the ISO mirror image file, and sending the searched Kickstart file to the KVM.
And after receiving the Kickstart file, the KVM adds the Kickstart file to the ISO mirror image file. The Kickstart file is configured with a designated IP address, a designated port and a service type. Wherein the designated IP address is in the same network segment as the IP address of the PC20 (for example, the IP address of the PC 20). The port is designated as the free one on PC 20. The KVM may initiate a specified service such as ftp or http, etc. at a specified port on PC 20. The KVM also opens ftp service according to the service type (exemplified by ftp service).
So far, the Kickstart file is stored in the ISO image file.
In this embodiment, the BMC22 may further send the path parameter of the Kickstart file to the KVM.
After receiving the path parameter, the KVM adds the path parameter to the configuration file of the ISO image file (here, grub2.conf is taken as an example). To this end, grub2.conf of the ISO image file stores the path parameters of the Kickstart file.
As described above, the Kickstart file is stored in the ISO image file, and the grub2.conf of the ISO image file stores the path parameter of the Kickstart file.
The following describes OS installation of the server 23:
the OS installation of the server 23 includes kernel-state installation and user-state installation. Wherein, the kernel-mode installation of the server 23 is similar to the existing kernel-mode installation process. This embodiment focuses on user-mode installation:
after the kernel-state installation of the server 23 is completed, the server 23 finds the path parameter of the Kickstart file according to the grub2.conf file, and then accesses the Kickstart file according to the path parameter of the Kickstart file.
The server 23 accesses and reads a Kickstart file, where a designated IP address, a designated port, and a service type are configured in the Kickstart file, and then the server 23 downloads a source file through a LAN channel of the PC20 according to a protocol corresponding to the service type, such as an ftp protocol, with the designated IP address as a destination IP address and the designated port as a destination port, where fig. 5 shows an illustration of user mode installation. Compared with the method for forwarding and reading the source file through the BMC in the user mode installation shown in fig. 1, the method for directly downloading the source file through the LAN channel of the PC20 by the server 23 according to the embodiment of the present disclosure may greatly improve the speed of the user mode installation.
The server 23 performs installation according to the downloaded source file.
After the server 23 completes the OS installation, the server 23 is automatically restarted.
When the BMC22 monitors the server 23 to automatically restart, it notifies the KVM to close the opened designated port.
And the KVM receives the notification, and closes the opened appointed port.
The description of the embodiment shown in fig. 4 is thus completed.
The method provided by the present disclosure is described above, and the apparatus provided by the present disclosure is described below:
referring to fig. 6, fig. 6 is a block diagram of an apparatus provided in the present disclosure. The apparatus is applied to BMC, and corresponds to the flow shown in fig. 2. The BMC here is used to monitor and manage the server.
As shown in fig. 6, the apparatus includes:
the monitoring unit is used for monitoring that when the server is started from the mounted ISO mirror image file, an analysis notice is sent to the KVM, and the analysis notice is used for indicating the KVM to analyze the ISO mirror image file;
a message unit, configured to receive a request message sent by the KVM, where the request message is sent when the specified file does not exist in the ISO image file analyzed by the KVM;
and the control unit is used for controlling the KVM to add the specified file to the ISO image file according to the request message, wherein the specified file comprises network parameters used for acquiring a source file of the ISO image file, so that the server acquires the source file through a LAN (local area network) channel based on the network parameters in the specified file to install the OS.
As one embodiment, the network parameters include: appointing an IP address and an appointed port;
the specified IP address and the IP address of the user side equipment where the KVM is located are in the same network segment;
the designated port is a port on the user side equipment.
As an embodiment, the control unit further controls the KVM to add a path parameter of the specified file in a configuration file of the ISO image file, so that the server accesses the specified file according to the path parameter. In one example, the path parameters include at least: the location of the specified file in the ISO image file.
As an embodiment, the monitoring unit further notifies the KVM to close the designated port when monitoring that the server automatically restarts after the OS installation is completed.
The structure of the device shown in fig. 6 has been described above.
Referring to fig. 7, fig. 7 is a block diagram of another apparatus provided by the present disclosure. The apparatus is applied to KVM, corresponding to the process shown in FIG. 3.
As shown in fig. 7, the apparatus includes:
the system comprises a receiving unit, a sending unit and a processing unit, wherein the receiving unit is used for receiving an analysis notification sent by the BMC, and the analysis notification is sent by the BMC when the server is monitored to start from a mounted ISO mirror image file and used for indicating to analyze the ISO mirror image file;
the processing unit is used for analyzing the ISO mirror image file according to the analysis notification, and if no specified file exists in the ISO mirror image file, sending a request message to the BMC so that the BMC controls the KVM to add the specified file to the ISO mirror image file according to the request message;
and the adding unit is used for adding the specified file to the ISO mirror image file according to the control of BMC, wherein the specified file comprises network parameters of a source file used for acquiring the ISO mirror image file, so that the server acquires the source file through a LAN (local area network) channel based on the network parameters in the specified file to install the OS.
In one example, parsing the ISO image by the processing unit may include:
judging whether the ISO mirror image file meets a specified format, if so,
judging whether the ISO mirror image file has a specified file or not,
if so, determining that the designated file exists in the ISO mirror image file, and otherwise, determining that the designated file does not exist in the ISO mirror image file.
In an example, the adding unit further adds a path parameter of a specified file to the configuration file of the ISO image file according to control of the BMC, so that the server accesses the specified file according to the path parameter.
In one example, the receiving unit further receives a shutdown notification from the BMC. The close notification is sent when the BMC monitors that the server is automatically restarted after the OS is installed;
the processing unit further closes the designated port according to the close notification.
Thus, the description of the structure of the apparatus shown in fig. 7 is completed.
The present disclosure also provides a hardware structure corresponding to the apparatus shown in fig. 6 and 7. The hardware structure is shown in fig. 8 and may include: memory, processor.
Wherein the memory is used for storing machine executable instructions;
a processor to read and execute the machine executable instructions stored by the memory. Wherein, corresponding to the apparatus shown in fig. 6, the machine executable instructions may implement the process shown in fig. 2. Corresponding to the apparatus shown in FIG. 7, the machine-executable instructions may implement the process shown in FIG. 3.
The present disclosure also provides a machine-readable storage medium having stored therein machine-executable instructions. Wherein, corresponding to the apparatus shown in fig. 6, the machine executable instructions are used for realizing the flow shown in fig. 2 when being read and executed by the processor. Corresponding to the apparatus shown in fig. 7, the machine executable instructions are for implementing the flow shown in fig. 3 when read and executed by a processor.
This completes the description of the present disclosure.
It is noted that the description of the terms "certain embodiments," "one embodiment," "another embodiment," "some embodiments," or "other embodiments," etc., in this disclosure, means that a particular feature, structure, material, or condition described in connection with the embodiment is included in at least one embodiment of the embodiments of the disclosure. In this document, the schematic representations of the terms used above do not necessarily refer to the same embodiment. Furthermore, the particular features, structures, materials, or conditions described above may be combined in any suitable manner in any one or more embodiments.
The above description is only exemplary of the present disclosure and should not be taken as limiting the disclosure, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present disclosure should be included in the scope of the present disclosure.

Claims (12)

1. An installation method of an Operating System (OS), which is applied to a Basic Management Controller (BMC) for monitoring and managing a server, the method comprising:
when monitoring that a server is started from an ISO mirror image file, sending an analysis notification to a KVM (keyboard video mouse), wherein the analysis notification is used for indicating the KVM to analyze the ISO mirror image file;
receiving a request message sent by the KVM, wherein the request message is sent when the KVM analyzes that the ISO mirror image file does not have a designated file, and the designated file is used for installing a user mode program;
and controlling the KVM to add the specified file to the ISO image file according to the request message, wherein the specified file comprises network parameters for acquiring a source file of the ISO image file, so that the server acquires the source file through a LAN (local area network) channel based on the network parameters to install the OS.
2. The method of claim 1, wherein the network parameters comprise: appointing an IP address and an appointed port;
the specified IP address and the IP address of the user side equipment where the KVM is located are in the same network segment;
the designated port is a port on the user side equipment.
3. The method of claim 1, further comprising: and controlling the KVM to add the path parameter of the specified file in the configuration file of the ISO mirror image file so that the server accesses the specified file according to the path parameter.
4. The method of claim 2, further comprising:
and when the server is monitored to be automatically restarted after the OS is installed, informing the KVM to close the designated port.
5. A method for installing OS is characterized in that the method is applied to KVM,
the method comprises the following steps:
receiving an analysis notification sent by a Basic Management Controller (BMC), wherein the analysis notification is sent by the BMC when monitoring that a server starts from an ISO mirror image file and is used for indicating to analyze the ISO mirror image file;
analyzing the ISO mirror image file according to the analysis notification, if no specified file exists in the ISO mirror image file, sending a request message to BMC to control the KVM to add the specified file to the ISO mirror image file according to the request message, wherein the specified file is used for installing a user mode program;
and adding the specified file to the ISO image file according to the control of the BMC, wherein the specified file comprises network parameters for acquiring a source file of the ISO image file, so that the server acquires the source file through a LAN (local area network) channel based on the network parameters in the specified file to install the OS.
6. The method of claim 5, wherein parsing the ISO image file comprises:
judging whether the ISO mirror image file meets a specified format, if so,
judging whether the ISO mirror image file has a specified file or not,
if so, determining that the designated file exists in the ISO mirror image file, and otherwise, determining that the designated file does not exist in the ISO mirror image file.
7. The method of claim 5, further comprising:
and adding the path parameter of the specified file to the configuration file of the ISO mirror image file according to the control of the BMC so that the server accesses the specified file according to the path parameter.
8. The method of claim 5, further comprising:
receiving a closing notification from the BMC, wherein the closing notification is sent when the BMC monitors that the server automatically restarts after the OS is installed;
and closing the specified port according to the closing notice.
9. An installation apparatus of an operating system OS, applied to a basic management controller BMC for monitoring and managing a server, comprising:
the monitoring unit is used for monitoring that when the server is started from the mounted ISO mirror image file, an analysis notice is sent to the KVM, and the analysis notice is used for indicating the KVM to analyze the ISO mirror image file;
a message unit, configured to receive a request message sent by the KVM, where the request message is sent when the specified file does not exist in the ISO image file analyzed by the KVM;
and the control unit is used for controlling the KVM to add the specified file to the ISO image file according to the request message, wherein the specified file comprises network parameters used for acquiring a source file of the ISO image file, so that the server acquires the source file through a LAN (local area network) channel based on the network parameters in the specified file to install the OS.
10. An installation device of OS, which is applied to KVM,
the method comprises the following steps:
the system comprises a receiving unit, a sending unit and a processing unit, wherein the receiving unit is used for receiving an analysis notification sent by a Basic Management Controller (BMC), and the analysis notification is sent by the BMC when monitoring that a server starts from a mounted ISO mirror image file and is used for indicating to analyze the ISO mirror image file;
the processing unit is used for analyzing the ISO mirror image file according to the analysis notification, and if no specified file exists in the ISO mirror image file, sending a request message to the BMC so that the BMC controls the KVM to add the specified file to the ISO mirror image file according to the request message;
and the adding unit is used for adding the specified file to the ISO image file according to the control of the BMC, wherein the specified file comprises network parameters of a source file used for acquiring the ISO image file, so that the server acquires the source file through a LAN (local area network) channel based on the network parameters in the specified file to install the OS.
11. An electronic device, characterized in that the electronic device comprises: a memory, a processor;
the memory for storing machine executable instructions;
the processor is configured to read and execute the machine executable instructions stored in the memory to implement the method of any one of claims 1 to 4, or any one of claims 5 to 8.
12. A machine-readable storage medium having stored therein machine-executable instructions for reading and execution by a processor to perform the method of any one of claims 1 to 4, or 5 to 8.
CN201910683387.8A 2019-07-26 2019-07-26 Installation method and device of Operating System (OS) Active CN110427196B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910683387.8A CN110427196B (en) 2019-07-26 2019-07-26 Installation method and device of Operating System (OS)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910683387.8A CN110427196B (en) 2019-07-26 2019-07-26 Installation method and device of Operating System (OS)

Publications (2)

Publication Number Publication Date
CN110427196A CN110427196A (en) 2019-11-08
CN110427196B true CN110427196B (en) 2022-03-25

Family

ID=68412747

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910683387.8A Active CN110427196B (en) 2019-07-26 2019-07-26 Installation method and device of Operating System (OS)

Country Status (1)

Country Link
CN (1) CN110427196B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113193986B (en) * 2021-04-08 2023-05-05 上海云轴信息科技有限公司 Cloud resource allocation method and physical machine for realizing cloud resource allocation

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105791362A (en) * 2014-12-24 2016-07-20 联想(北京)有限公司 Server operating system deployment method and server
CN106325944A (en) * 2016-08-26 2017-01-11 浪潮电子信息产业股份有限公司 Method for using KVM (Keyboard Video Mouse) to mount and install system
CN106528214A (en) * 2016-10-31 2017-03-22 华为技术有限公司 Installation method of OS (Operating System), server and system
CN107341036A (en) * 2017-07-14 2017-11-10 郑州云海信息技术有限公司 A kind of method and apparatus of Remote Installation node operating system
CN107608681A (en) * 2017-09-14 2018-01-19 紫光华山信息技术有限公司 Installation method of operating system, device and server
CN109783015A (en) * 2018-12-24 2019-05-21 新华三技术有限公司 Document transmission method, device, server and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6750605B2 (en) * 2017-12-28 2020-09-02 日本電気株式会社 Computer system, baseboard management controller, OS installation method, and program

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105791362A (en) * 2014-12-24 2016-07-20 联想(北京)有限公司 Server operating system deployment method and server
CN106325944A (en) * 2016-08-26 2017-01-11 浪潮电子信息产业股份有限公司 Method for using KVM (Keyboard Video Mouse) to mount and install system
CN106528214A (en) * 2016-10-31 2017-03-22 华为技术有限公司 Installation method of OS (Operating System), server and system
CN107341036A (en) * 2017-07-14 2017-11-10 郑州云海信息技术有限公司 A kind of method and apparatus of Remote Installation node operating system
CN107608681A (en) * 2017-09-14 2018-01-19 紫光华山信息技术有限公司 Installation method of operating system, device and server
CN109783015A (en) * 2018-12-24 2019-05-21 新华三技术有限公司 Document transmission method, device, server and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Linux网络服务器安装与调试课程整体设计;牛芸等;《现代职业教育》;20190118;第210-211页 *
OS and Application Identification by Installed Fonts;Takamichi Saito;《2016 IEEE 30th International Conference on Advanced Information Networking and Applications (AINA)》;20160523;第684 - 689页 *

Also Published As

Publication number Publication date
CN110427196A (en) 2019-11-08

Similar Documents

Publication Publication Date Title
US11409678B2 (en) Auto-provisioning and auto-installation of server SAN target
US20200257519A1 (en) Method for discovering hardware attribute of bare metal server and system
US11301280B2 (en) System and method for managing a monitoring agent in an operating system of a virtual computing instance
US8997090B2 (en) Installing an operating system in a host system
US11132187B2 (en) Bare metal provisioning of software defined infrastructure
US8402123B2 (en) Systems and methods for inventorying un-provisioned systems in a software provisioning environment
EP2019358A1 (en) A method and a system for the creation and deployment of a virtual machine appliance on virtualised servers
CN110908753B (en) Intelligent fusion cloud desktop server, client and system
US9594586B2 (en) Scale-out method and system
EP2508987A1 (en) Wireless modem device usable on computer device without driver installation
EP2328088A1 (en) Home network system, gateway device, and firmware update method
CN109587005B (en) Connection detection method and device, computer equipment and readable storage medium
CN110149409B (en) Cloud host metadata service management method, system, equipment and storage medium
US20050198650A1 (en) Device driver selection
CN108616384B (en) Centralized service management deployment tool and method
CN106549789B (en) Method and system for realizing server installation
US20130167140A1 (en) Method and apparatus for distributed operating system image deployment
CN111475172B (en) Bare metal deployment method and device
CN110427196B (en) Installation method and device of Operating System (OS)
US8856297B2 (en) Device control apparatus, device information acquiring method, and computer-readable recording medium
CN110971689B (en) System installation method, device, system, equipment and storage medium
CN108733398B (en) Software upgrading processing method and device
CN114327536A (en) Server operation and maintenance method, device, equipment and storage medium
CN114115917A (en) Operating system installation method and device
CN112948008A (en) Ironic based physical bare computer management method

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