CN107544781B - System installation method and device - Google Patents

System installation method and device Download PDF

Info

Publication number
CN107544781B
CN107544781B CN201710633333.1A CN201710633333A CN107544781B CN 107544781 B CN107544781 B CN 107544781B CN 201710633333 A CN201710633333 A CN 201710633333A CN 107544781 B CN107544781 B CN 107544781B
Authority
CN
China
Prior art keywords
system installation
target server
configuration file
installation
instruction
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
CN201710633333.1A
Other languages
Chinese (zh)
Other versions
CN107544781A (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 Information Technologies Co Ltd
Original Assignee
New H3C Information Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by New H3C Information Technologies Co Ltd filed Critical New H3C Information Technologies Co Ltd
Priority to CN201710633333.1A priority Critical patent/CN107544781B/en
Publication of CN107544781A publication Critical patent/CN107544781A/en
Application granted granted Critical
Publication of CN107544781B publication Critical patent/CN107544781B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application provides a system installation method and a device, wherein the method comprises the following steps: when a system automatic installation instruction for a target server is received, controlling the target server to set a first starting item and restart the target server so that the target server enters a corresponding system installation interface according to the first starting item; and sending a keyboard message to the target server according to the content of the configuration file for system installation, so that the target server completes system installation according to the keyboard message. By applying the embodiment of the application, the automatic installation of the system based on the KVM can be realized.

Description

System installation method and device
Technical Field
The present application relates to the field of communications technologies, and in particular, to a system installation method and apparatus.
Background
The birth of KVM (Keyboard, Video, Mouse, Keyboard, Video, Mouse) makes the user more nimble convenient to the management of server, control, also makes more convenient to the long-range installation system of server.
Disclosure of Invention
The application provides a system installation method and device, which are used for realizing automatic installation of a KVM-based system.
According to a first aspect of an embodiment of the present application, there is provided a system installation method applied to a KVM client installed on a target server, the method including:
when a system automatic installation instruction for a target server is received, controlling the target server to set a first starting item and restart the target server so that the target server enters a corresponding system installation interface according to the first starting item;
and sending a keyboard message to the target server according to the content of the configuration file for system installation, so that the target server completes system installation according to the keyboard message.
According to a second aspect of the embodiments of the present application, there is provided a system installation apparatus for a KVM client installed on a target server, the apparatus including:
a receiving unit for receiving a system automatic installation instruction for a target server;
the control unit is used for controlling the target server to set a first starting item and restart the target server when the receiving unit receives a system automatic installation instruction aiming at the target server, so that the target server enters a corresponding system installation interface according to the first starting item;
and the sending unit is used for sending a keyboard message to the target server according to the content of the configuration file for system installation so that the target server completes system installation according to the keyboard message.
By applying the embodiment of the application, when a system automatic installation instruction for the target server is received, the target server is controlled to set the first starting item and restart the target server, so that the target server enters the corresponding system installation interface according to the first starting item, and further, according to the content of the configuration file for system installation, the keyboard message is sent to the target server, so that the target server completes system installation according to the keyboard message, and the KVM-based system automatic installation is realized.
Drawings
Fig. 1 is a schematic flow chart of a system installation method provided in an embodiment of the present application;
FIGS. 2A-2C are schematic diagrams of a system installation interface provided by an embodiment of the present application;
fig. 3 is a schematic diagram of a correspondence relationship between a system installation interface and a configuration file provided in an embodiment of the present application;
FIG. 4 is a schematic structural diagram of a system installation apparatus provided in an embodiment of the present application;
FIG. 5 is a schematic structural diagram of another system installation device provided in the embodiments of the present application;
fig. 6 is a schematic structural diagram of another system installation device provided in the embodiments of the present application.
Detailed Description
In order to make the technical solutions in the embodiments of the present application better understood and make the above objects, features and advantages of the embodiments of the present application more comprehensible, the technical solutions in the embodiments of the present application are described in further detail below with reference to the accompanying drawings.
Referring to fig. 1, a flow chart of a system installation method provided in an embodiment of the present application is shown, where the system installation method may be applied to a KVM client installed on any server (referred to as a target server herein), as shown in fig. 1, the system installation method may include the following steps:
for convenience of description, the following description will be made with the execution subjects of steps 101 to 102 as KVM clients.
Step 101, when receiving a system automatic installation instruction for a target server, controlling the target server to set a first start item and restart the target server so that the target server enters a corresponding system installation interface according to the first start item.
In the embodiment of the present application, when a user wants to perform system automatic installation on a target server through a KVM client, the user may remotely access the KVM client (for example, remotely access the KVM client on the target server through a Personal Computer (PC)), and input a system automatic installation instruction for the target server on a designated interface of the KVM client.
When the KVM client receives a system auto-install instruction for the target server, the KVM client may send a first startup item setting instruction to the target server, so that the target server performs a first startup item setting according to the first startup item setting instruction; after the target server completes the setting of the first startup item, the KVM client may further send a restart (reboot) instruction to the target server, so that the target server is restarted to enter a system installation interface corresponding to the first startup item.
The first startup item setting instruction and the restart instruction may be implemented by an IPMI (Intelligent Platform Management Interface) command.
And 102, sending a keyboard message to the target server according to the content of the configuration file for system installation so that the target server completes system installation according to the received keyboard message.
In this embodiment, after the target server enters the system installation interface, the KVM client may read the contents of the configuration file (which may be selected by the user) for system installation and send the contents of the configuration file to the target server in the form of a keyboard message.
When the target server receives the keyboard message sent by the KVM client, the system may be installed according to the received keyboard message, for example, selecting an associated option in the system installation interface, or/and filling out associated content, or/and clicking an associated function button, so as to complete the system installation.
In the process of system installation of the target server, the KVM client may display a system installation interface of the target server in an assigned interface of the KVM software, so that when a user wants to know a system installation state of the target server, the user may view a system installation process of the target server on the KVM client.
It should be noted that, in the embodiment of the present application, since the system installation of the target server is performed automatically by the KVM client, in order to ensure that when the KVM client sends the keyboard message to the target server, the target server has entered the system installation interface, rather than being still in the restart phase, after the KVM client sends the restart instruction to the target server, the KVM client may wait for a preset time period (which may be set according to an actual scenario, such as 5 minutes, 10 minutes, and the like), and then send the keyboard message to the target server. During the waiting time, the KVM client may control the relevant program to be in a sleep state.
It can be seen that, in the method flow shown in fig. 1, the target server is controlled to set the first start item, restart the system installation interface corresponding to the first start item, and then send the keyboard message to the target server according to the content of the configuration file for system installation, so that the target server completes system installation according to the received keyboard message, thereby implementing automatic installation of the system based on KVM, and in the system installation process, the user can view the system installation flow of the target server in real time.
In one embodiment of this application, before receiving the system automatic installation instruction for the target server, the method may further include:
receiving a mirror image mounting instruction, and mounting a target mirror image of a system to be installed in a mirror image mounting interface according to the mirror image mounting instruction;
outputting a first prompt message, wherein the first prompt message is used for prompting whether to use an existing configuration file for system installation;
when a selection instruction for carrying out system installation by using an existing configuration file input in response to the first prompt message is received, inquiring a configuration file saved in advance according to the type of the target mirror image;
outputting a second prompt message, wherein the second prompt message is used for displaying a configuration file matched with the type of the target mirror image;
and according to the received selection instruction input in response to the second prompt message, determining the configuration file selected by the selection instruction as the configuration file for system installation.
In this embodiment, when the user determines that automatic system installation on the target server is required through the KVM client, the user may control the KVM client to enter a mirror mount interface and mount the mirror of the system to be installed (referred to herein as the target mirror) in the mirror mount interface.
After mounting the target image of the system to be installed in the image mounting interface, the KVM client may output a prompt message (referred to herein as a first prompt message) for prompting whether to use an existing configuration file for system installation, and a user selects, according to actual needs, whether to use a configuration file that has been generated and stored before for system installation (i.e., to use the existing configuration file for system installation) or to regenerate the configuration file for system installation (i.e., not to use the existing configuration file for system installation).
In this embodiment, when the KVM client receives a selection instruction for performing system installation using an existing configuration file input in response to the first prompt message, the KVM client may query a configuration file saved in advance according to the type of the target image, and output a prompt message (referred to as a second prompt message herein) according to a query result, where the second prompt message is used to display a configuration file matching the type of the target image, and the user selects the configuration file for system installation as needed.
When the KVM client receives a selection instruction input in response to the second prompt message, the configuration file selected by the selection instruction may be determined as the configuration file for system installation.
It should be noted that, in the embodiment of the present application, when the KVM client receives a selection instruction for performing system installation by using an existing configuration file input in response to the first prompt message, but does not query a configuration file matching the type of the target image, the KVM client may output a prompt message to prompt the user to suspend the matching configuration file, and the user selects a processing policy according to an actual situation.
In addition, in the embodiment of the present application, it is considered that the KVM mount mirror function may mount a plurality of mirror files, and therefore, after mounting the target mirror of the system to be installed in the mirror mount interface according to the received mirror mount instruction, the KVM client may also show the mounted target mirror to the user, and the user confirms the system mirror that needs to be installed again, and after the user confirms, executes subsequent operations such as outputting the first prompt message.
Further, in this embodiment, after outputting the first prompting message, the method may further include:
when a selection instruction for carrying out system installation without using an existing configuration file input in response to the first prompt message is received, outputting a configuration interface corresponding to the type of the target mirror image;
and generating a configuration file for system installation according to the configuration information input through the configuration interface.
In this embodiment, when the user chooses not to use the existing configuration file for system installation, the KVM client may output the corresponding configuration interface according to the type of the target image, and the user inputs the corresponding configuration information in the configuration interface, so that the KVM client may generate the configuration file for system installation according to the configuration information input by the user in the configuration interface.
In order to achieve the above object, in this embodiment, the KVM client may store corresponding configuration interfaces (which may be generated by codes) in the background for interfaces when the system is installed in different image types, and when the user chooses not to use an existing configuration file for system installation, the KVM client may call the stored corresponding configuration interface from the background according to the type of the target image, display the configuration interface to the user, and perform a custom configuration by the user.
The configuration interface stored by the KVM client may be a simplified version of the system installation interface when the server performs system installation, for example, only including each option or/and input box or/and function button on the corresponding system installation interface, and the description information of the relevant option or/and input box or/and function button may not be displayed in the configuration interface.
After the KVM client generates a configuration file according to configuration information input by the user in the configuration interface, the configuration file may be stored, for example, stored in a BMC (Baseboard Management Controller) of the server, to form a configuration file library, and when the user subsequently installs the system again, the configuration file may be used as an existing configuration file for the user to select.
Further, in an embodiment of the present application, in order to improve compatibility of the system installation method provided by the present application and enable the system installation method to be compatible with an existing system installation scheme, after the target image of the system to be installed is installed in the image installation interface according to the image installation instruction, the method may further include:
outputting a third prompt message, wherein the third prompt message is used for prompting whether an automatic response mode is used for system installation;
and when a selection instruction for system installation in an automatic response mode is received in response to the input of the third prompt message, determining to execute the step of outputting the first prompt message.
In this embodiment, after the KVM client mounts the target image of the system to be installed in the image mounting interface according to the image mounting instruction, the KVM client may determine that the user needs to perform system installation on the target server, and at this time, the KVM client may output a prompt message (referred to as a third prompt message) for prompting whether to perform system installation using an automatic response manner, where the user selects to perform system installation using the automatic response manner (i.e., perform automatic system installation) or to perform system installation using a manual manner (i.e., not perform system installation using the automatic response manner) according to actual needs.
When the user chooses to use the auto-answer mode for system installation, the KVM client may output a first prompt message and process it as described in the above method embodiments.
When the user chooses not to use the automatic response mode for system installation, the KVM client may enter a manual system installation process, and the user manually installs the system, and the specific implementation of the system installation process may refer to related implementations in the existing related schemes, which is not described herein again in the embodiments of the present invention.
Further, in the embodiment of the application, in order to improve controllability and flexibility of system installation, in the automatic system installation process, a user may select to switch to manual installation according to actual requirements, and switch from manual installation to automatic installation again.
Accordingly, in one embodiment of the present application, the system installation method may further include the following steps:
in the automatic installation process of the system, when an interrupt instruction is received, stopping sending a keyboard message to a target server according to the content of a configuration file for system installation;
and receiving a configuration instruction input by a user in a system installation interface displayed by the KVM client, and sending a keyboard message to the target server according to the configuration instruction so that the target server performs system installation according to the keyboard message.
In this embodiment, during the automatic installation of the system, the user may switch the automatic installation to the manual installation according to actual requirements, for example, when the user finds that the configuration information of the ongoing system installation is inconsistent with the expectation, or when the user needs to temporarily modify the specified configuration information, the user may send an interrupt instruction to the KVM client through a preset shortcut key or a specified button on a specified interface of the KVM software.
When the KVM client receives the interrupt command, the KVM client stops sending the keyboard message to the server according to the content of the configuration file for system installation, that is, stops the automatic installation operation of the system, and at this time, the user may manually input the configuration command in a system installation interface (such as shown in a designated function interface of KVM software) shown by the KVM client; after receiving a configuration instruction input by a user in a system installation interface displayed by a KVM (keyboard video mouse), the KVM client can send a keyboard message to a target server according to the configuration instruction, so that the target server can select options in the corresponding system installation interface or/and fill contents or/and click function buttons according to the received keyboard message, and the system is automatically installed and switched to be manually installed. At this time, the user may perform corresponding configuration on the system of the target server according to actual requirements, and does not need to configure the system of the target server completely according to the content of the configuration file for system installation.
Therefore, in the embodiment of the application, after the user selects the configuration file for the automatic system installation, the specific configuration information can be changed according to actual requirements in the automatic system installation process, and the configuration of the system installation is more flexible.
Further, in this embodiment, when the target server enters a new system installation interface and receives a system automatic installation instruction input by a user, a keyboard message is sent to the target server according to the content after the flag bit corresponding to the entry of the new system installation interface in the configuration file for system installation, so that the target server performs system installation according to the received keyboard message.
Specifically, in this embodiment, after the user switches the system installation of the target server from automatic to manual, the user may choose to switch the system installation of the target server back to automatic installation when the target server enters a new system installation interface.
Correspondingly, when the target server enters a new system installation interface and receives a system automatic installation instruction input by a user, sending a keyboard message to the target server according to the content behind the zone bit of the inlet corresponding to the new system installation interface in the configuration file for system installation, so that the target server can select options in the corresponding system installation interface or/and fill in the content or/and click a function button according to the keyboard message.
In order to achieve the above object, in this embodiment, flag bits corresponding to entries of different system installation interfaces in the system installation process need to be set in a configuration file for system installation in advance, and the KVM client may determine configuration information corresponding to each system installation interface in the configuration file according to the flag bits, and further, when the user switches the system installation of the target server from manual to automatic again, the KVM client may find the flag bit corresponding to the entry of the new system installation interface, where the target server enters, in the configuration file, and send a keyboard message to the target server according to content after the flag bit, so as to continue automatic system installation.
It should be noted that, in the embodiment of the present application, after the system installation is switched from the automatic installation to the manual installation, if there is no need to switch back to the automatic installation, the entry flag may not be set in the configuration file.
In addition, in the embodiment of the present application, when the system installation is switched from the automatic installation to the manual installation, the relevant configuration information in the manual installation process may also be recorded, and the corresponding content in the original configuration file is replaced according to the configuration information, or a new configuration file is regenerated, so that the user may select as needed when the system installation is performed again.
In order to make those skilled in the art better understand the technical solutions provided in the embodiments of the present application, the following examples are set forth to illustrate the technical solutions provided in the embodiments of the present application.
1. Preparation phase
1) The KVM client receives the mirror mounting interface access instruction, enters a mirror mounting interface, and mounts a target mirror of the system to be installed according to the received mirror mounting instruction;
2) outputting a prompt message (namely the third prompt message) to prompt a user to select whether to use an automatic response mode for system installation; if yes, entering step 3); otherwise, entering a manual system installation process;
3) outputting a prompt message (which may be referred to as a fourth prompt message) to prompt a user to confirm a target image of the system to be installed, and entering step 4 when a determination instruction input by the user in response to the fourth prompt message is received;
4) outputting a prompt message (namely the first prompt message) to prompt a user to select whether to use an existing configuration file for response installation; if yes, entering step 5); otherwise, entering step 6);
5) inquiring a configuration file matched with the type of the target mirror image in the stored configuration files according to the type of the target mirror image; if a matched configuration file is inquired, entering 7); otherwise, outputting a prompt message to prompt the user that the configuration file matched with the type of the target mirror image is not inquired, and turning to 4);
6) displaying an automatic response configuration interface corresponding to the type of the target mirror image according to the type of the target mirror image for user-defined configuration, and storing the configuration to a BMC of the KVM client to form a configuration file library after the configuration is finished;
7) the KVM client displays a configuration file matched with the type of the target mirror image; the displayed configuration files can be sorted according to a time sequence (or can be sorted according to other strategies), and the configuration file which is recently added to the configuration file library is displayed on the top and serves as a default option;
8) when a selection instruction of a user for a configuration file (a configuration file for system installation) is received, and a system automatic installation triggering instruction (such as an operation that the user clicks a 'next' function button on a configuration file selection interface) is received, entering a system automatic installation process;
2. system installation phase
1) The KVM client sends an IPMI command for setting a first starting item to the target server to control the target server to set the first starting item; after the setting is finished, the KVM client sends an IPMI command for restarting to the target server, and controls the target server to execute rebot and restart the system;
after the target server is restarted, entering a corresponding system installation interface according to the set first starting item;
in order to ensure that the target server has enough time to complete the restart, the KVM client may wait for 5 minutes before performing subsequent steps after sending the IPMI command for the restart to the target server, during which the KVM client may control the system installation-related program to be in a sleep state;
2) the KVM client analyzes the configuration file for system installation, and sends a keyboard message to the target server according to the content of the configuration file for system installation, so as to control the target server to carry out system installation;
in this embodiment, assuming that the image type of the system installed by the user is type a (which may include but is not limited to CentOS, Debian, or Ubuntu, etc.), the specific implementation of the system installation may be as follows:
referring to fig. 2A, a schematic diagram of a system initial installation interface of a system image of type a provided in this embodiment of the present application is shown, where after the target server is restarted, the target server enters the interface, the interface wants to execute Next, and needs to click a Next button, and since the Next button is selected by default in the interface (i.e., the focus is located in the Next button by default), the KVM client may directly send an Enter key message (i.e., Enter key) to the target server, execute a Enter operation, and Enter the Next system installation interface.
Referring to fig. 2B, a schematic diagram of another system installation interface provided in an embodiment of the present application is shown, in this embodiment, it is assumed that configuration information for the system installation interface in a configuration file for system installation is: selecting a "Use All Space" installation type, checking and modifying partition layout, and executing the next step;
at this time, the KVM client needs to select an option by sending a Tab key message to the server. In the system interface, the 'Use All Space' is a default option, so that no setting is needed for the option; next, the KVM client directly sends the Tab key message N (where N is 6) times, so that the focus reaches the "check and modify partition layout" option, and then sends the space key message to the server through the KVM, so that the "Review and modification verification layout" option is selected, and then sends the Tab key message N (where N is 2) times to the server, so that the focus reaches the "Next" button, and then sends the Enter key message to the target server. At this point, the KVM client sends a keyboard message to operate the system installation interface shown in fig. 2B, so as to achieve the purpose that the installation type is "Use All Space", check "Review and modification sharing layout", and finally execute the next step.
Referring to fig. 2C, a schematic diagram of another system installation interface provided in the present application is shown, in this embodiment, it is assumed that configuration information for the system installation interface in a configuration file for system installation is: setting host name (host name) to eric, and not setting others, at the moment, sending Tab key information to a target server by a KVM client, sending key information of 'e', 'r', 'i' and 'c' to the target server in sequence until an input box acquires a focus, and finally sending the Tab key information to the server again until a 'Next' button acquires the focus, and then sending an Enter key information to the target server, so that the purposes of configuring the host name and executing the Next step are achieved.
The configuration process of other system installation interfaces in the system installation process is similar to the configuration process of the system installation interfaces shown in fig. 2A to 2C, and details are not repeated here in the embodiments of the present application.
In the embodiment, in the system installation process, because the key message is sent by the KVM to realize automatic response, the system installation interface is normally displayed, and a user can check the installation progress at any time and check whether the preset configuration information is completely executed or not; when the user determines that the preset configuration information is not completely executed or some configuration information needs to be changed, the program for automatically answering installation can be interrupted at any time, and the installation is switched to manual installation. After the manual installation of the user is finished, when entering the next interface, the user can also choose to continue the automatic response operation.
Referring to fig. 3, a schematic diagram of a corresponding relationship between a configuration file and a system installation interface is provided, in this embodiment, corresponding flag bits are set in the configuration file in advance corresponding to entries of each system installation interface in a system installation process.
Assuming that the KVM client receives the interrupt command when the system installation is performed on the system installation interface 3, at this time, the KVM client stops sending the keyboard message according to the file content of the configuration file for system installation, enters a manual installation process, and sends the keyboard message to the target server according to the configuration command input by the user in the system installation interface displayed by the KVM client; after the manual installation operation is completed, when entering the next system installation interface (i.e., system installation interface 4), at this time, if the KVM client receives a system automatic installation instruction input by the user, the KVM client may switch to automatic response installation again, at this time, the KVM client may read the configuration file for system installation again, and send a key message to the target server according to the content behind the flag bit (i.e., flag bit 4) corresponding to the entry (i.e., entry 4) of the system installation interface 4, and continue the system automatic installation process.
As can be seen from the above description, in the technical solution provided in the embodiment of the present application, when a system automatic installation instruction for a target server is received, the target server is controlled to set a first start item and restart the target server, so that the target server enters a corresponding system installation interface according to the first start item, and further, according to the content of a configuration file for system installation, a keyboard message is sent to the target server, so that the target server completes system installation according to the keyboard message, thereby implementing system automatic installation based on KVM.
Referring to fig. 4, a schematic structural diagram of a system installation apparatus according to an embodiment of the present application is provided, where the system installation apparatus may be applied to a KVM client in the foregoing method embodiment, as shown in fig. 4, the system installation apparatus may include:
a receiving unit 410 for receiving a system automatic installation instruction for a target server;
a control unit 420, configured to, when the receiving unit 410 receives a system automatic installation instruction for a target server, control the target server to set a first start item and restart the target server, so that the target server enters a corresponding system installation interface according to the first start item;
a sending unit 430, configured to send a keyboard message to the target server according to the content of the configuration file for system installation, so that the target server completes system installation according to the keyboard message.
Referring to fig. 5 together, a schematic structural diagram of another system installation apparatus provided in the embodiment of the present application is shown in fig. 5, where, on the basis of the system installation apparatus shown in fig. 4, the system installation apparatus shown in fig. 5 further includes:
a mounting unit 440, configured to mount, when the receiving unit 410 receives a mirror mounting instruction, a target mirror of a system to be installed in a mirror mounting interface according to the mirror mounting instruction;
an output unit 450, configured to output a first prompt message, where the first prompt message is used to prompt whether to use an existing configuration file for system installation;
a query unit 460, configured to query a configuration file saved in advance according to the type of the target image when the receiving unit 410 receives a selection instruction for performing system installation by using an existing configuration file, which is input in response to the first prompt message;
the output unit 450 is further configured to output a second prompt message, where the second prompt message is used to display a configuration file matched with the type of the target image;
a determining unit 470, configured to determine, according to the selection instruction received by the receiving unit 410 and responding to the input of the second prompting message, the configuration file selected by the selection instruction as the configuration file for system installation.
In one embodiment, the output unit 450 is further configured to output a configuration interface corresponding to the type of the target image when the receiving unit 410 receives a selection instruction for performing system installation without using an existing configuration file, which is input in response to the first prompt message;
accordingly, please refer to fig. 6 together, which is a schematic structural diagram of another system installation apparatus provided in the embodiment of the present application, as shown in fig. 6, based on the system installation apparatus shown in fig. 5, the system installation apparatus shown in fig. 6 further includes:
a generating unit 480, configured to generate a configuration file for system installation according to the configuration information input through the configuration interface and received by the receiving unit 410.
In one embodiment, the output unit 450 is further configured to output a third prompt message, where the third prompt message is used to prompt whether to use an automatic response mode for system installation;
the output unit 450 is further configured to output a first prompt message when the receiving unit 410 receives a selection instruction for system installation using an automatic response mode, which is input in response to the third prompt message.
In one embodiment, the sending unit 430 is further configured to stop sending the keyboard message to the target server according to the content of the configuration file for system installation when the receiving unit 410 receives an interrupt instruction in the automatic system installation process;
the receiving unit 410 is further configured to receive a configuration instruction input by a user in a system installation interface displayed by the KVM client;
the sending unit 430 is further configured to send a keyboard message to a target server according to the configuration instruction, so that the target server performs system installation according to the keyboard message.
In one embodiment, the sending unit 430 is further configured to send, when the target server enters a new system installation interface and the receiving unit receives a system automatic installation instruction input by a user, a keyboard message to the target server according to content after a flag bit corresponding to an entry of the new system installation interface in the configuration file for system installation, so that the target server performs system installation according to the keyboard message.
The implementation process of the functions and actions of each unit in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the application. One of ordinary skill in the art can understand and implement it without inventive effort.
As can be seen from the above embodiments, when a system automatic installation instruction for a target server is received, the target server is controlled to set a first start item and restart the target server, so that the target server enters a corresponding system installation interface according to the first start item, and further, according to the content of a configuration file for system installation, a keyboard message is sent to the target server, so that the target server completes system installation according to the keyboard message, thereby implementing KVM-based system automatic installation.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It will be understood that the present application is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (10)

1. A system installation method is applied to a KVM client installed on a target server, and comprises the following steps:
when a system automatic installation instruction for a target server is received, controlling the target server to set a first starting item and restart the target server so that the target server enters a corresponding system installation interface according to the first starting item;
sending a keyboard message to the target server according to the content of the configuration file for system installation so that the target server completes system installation according to the keyboard message;
in the automatic installation process of the system, when an interrupt instruction is received, stopping sending a keyboard message to the target server according to the content of the configuration file for system installation;
receiving a configuration instruction input by a user in a system installation interface displayed by the KVM, and sending a keyboard message to a target server according to the configuration instruction so that the target server performs system installation according to the keyboard message.
2. The method of claim 1, wherein prior to receiving the system auto-install instruction for the target server, further comprising:
receiving a mirror image mounting instruction, and mounting a target mirror image of a system to be installed in a mirror image mounting interface according to the mirror image mounting instruction;
outputting a first prompt message, wherein the first prompt message is used for prompting whether to use an existing configuration file for system installation;
when a selection instruction for performing system installation by using an existing configuration file input in response to the first prompt message is received, inquiring a configuration file saved in advance according to the type of the target mirror image;
outputting a second prompt message, wherein the second prompt message is used for displaying a configuration file matched with the type of the target mirror image;
and determining the configuration file selected by the selection instruction as the configuration file for system installation according to the received selection instruction responding to the second prompt message input.
3. The method of claim 2, wherein after outputting the first prompting message, further comprising:
when a selection instruction for performing system installation without using an existing configuration file input in response to the first prompt message is received, outputting a configuration interface corresponding to the type of the target mirror image;
and generating a configuration file for system installation according to the configuration information input through the configuration interface.
4. The method according to claim 2, further comprising, after mounting a target image of the system to be installed in a mirror mount interface according to the mirror mount instruction, the steps of:
outputting a third prompt message, wherein the third prompt message is used for prompting whether an automatic response mode is used for system installation;
and when a selection instruction for system installation in an automatic response mode is received, wherein the selection instruction is input in response to the third prompt message, determining to execute the step of outputting the first prompt message.
5. The method of claim 4, further comprising:
when the target server enters a new system installation interface and receives a system automatic installation instruction input by a user, sending a keyboard message to the target server according to the content behind an entry zone bit in a configuration file for system installation so that the target server performs system installation according to the keyboard message, wherein the entry zone bit is a zone bit corresponding to an entry of the new system installation interface in the configuration file for system installation.
6. A system installation apparatus, applied to a KVM client installed on a target server, the apparatus comprising:
a receiving unit for receiving a system automatic installation instruction for a target server;
the control unit is used for controlling the target server to set a first starting item and restart the target server when the receiving unit receives a system automatic installation instruction aiming at the target server, so that the target server enters a corresponding system installation interface according to the first starting item;
a sending unit, configured to send a keyboard message to the target server according to the content of the configuration file for system installation, so that the target server completes system installation according to the keyboard message;
the sending unit is further configured to stop sending the keyboard message to the target server according to the content of the configuration file for system installation when the receiving unit receives an interrupt instruction in the automatic system installation process;
the receiving unit is further used for receiving a configuration instruction input by a user in a system installation interface displayed by the KVM client;
and the sending unit is also used for sending a keyboard message to a target server according to the configuration instruction so that the target server carries out system installation according to the keyboard message.
7. The apparatus of claim 6, further comprising:
the mounting unit is used for mounting a target mirror image of the system to be installed in a mirror image mounting interface according to the mirror image mounting instruction when the receiving unit receives the mirror image mounting instruction;
the system comprises an output unit, a configuration file generation unit and a configuration file generation unit, wherein the output unit is used for outputting a first prompt message which is used for prompting whether to use the existing configuration file for system installation;
the query unit is used for querying a configuration file saved in advance according to the type of the target mirror image when the receiving unit receives a selection instruction which is input by responding to the first prompt message and uses the existing configuration file to install the system;
the output unit is further configured to output a second prompt message, where the second prompt message is used to display a configuration file matched with the type of the target image;
and the determining unit is used for determining the configuration file selected by the selection instruction as the configuration file for system installation according to the selection instruction which is received by the receiving unit and responds to the input of the second prompt message.
8. The apparatus of claim 7,
the output unit is further configured to output a configuration interface corresponding to the type of the target image when the receiving unit receives a selection instruction for performing system installation without using an existing configuration file, which is input in response to the first prompt message;
the device further comprises:
and the generating unit is used for generating a configuration file for system installation according to the configuration information which is received by the receiving unit and input through the configuration interface.
9. The apparatus of claim 7,
the output unit is further configured to output a third prompt message, where the third prompt message is used to prompt whether to use an automatic response mode for system installation;
and the output unit is also used for outputting a first prompt message when the receiving unit receives a selection instruction which is input by responding to the third prompt message and is used for carrying out system installation by using an automatic response mode.
10. The apparatus of claim 6,
the sending unit is further configured to send a keyboard message to the target server according to content after an entry flag bit in a configuration file for system installation when the target server enters a new system installation interface and the receiving unit receives a system automatic installation instruction input by a user, so that the target server performs system installation according to the keyboard message, where the entry flag bit is a flag bit of an entry, corresponding to the new system installation interface, in the configuration file for system installation.
CN201710633333.1A 2017-07-28 2017-07-28 System installation method and device Active CN107544781B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710633333.1A CN107544781B (en) 2017-07-28 2017-07-28 System installation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710633333.1A CN107544781B (en) 2017-07-28 2017-07-28 System installation method and device

Publications (2)

Publication Number Publication Date
CN107544781A CN107544781A (en) 2018-01-05
CN107544781B true CN107544781B (en) 2021-03-23

Family

ID=60970466

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710633333.1A Active CN107544781B (en) 2017-07-28 2017-07-28 System installation method and device

Country Status (1)

Country Link
CN (1) CN107544781B (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9385959B2 (en) * 2013-09-26 2016-07-05 Acelio, Inc. System and method for improving TCP performance in virtualized environments
CN104850442A (en) * 2015-05-27 2015-08-19 杭州昆海信息技术有限公司 Operating system mounting method and device
CN106528226B (en) * 2016-10-31 2020-09-08 新华三信息技术有限公司 Installation method and device of operating system

Also Published As

Publication number Publication date
CN107544781A (en) 2018-01-05

Similar Documents

Publication Publication Date Title
US7703091B1 (en) Methods and apparatus for installing agents in a managed network
US10514930B2 (en) Setting a startup parameter and controlling startup of a mainboard
CN109308241B (en) Method and device for monitoring starting process of application program, terminal equipment and storage medium
CN103917949A (en) Component update using management engine
CN103677807A (en) Customizing program logic for booting a system
CN103761088A (en) Multiple operation system switching method applicable to ARM (advanced risc machine) framework mobile equipment
WO2021136200A1 (en) Bootloader loading method, storage medium, and embedded terminal
CN106027631B (en) Data transmission method and device
JP2018190143A (en) Information processing apparatus
CN112968929B (en) Server management method and system
CN113590146B (en) Server and container upgrading method
CN112328328B (en) Method, device, equipment and storage medium for equipment driving reload
CN111367722B (en) Virtual machine backup method, device and equipment and readable storage medium
CN113411212B (en) BIOS control system of intelligent network card and BIOS control method of intelligent network card
CN109634659A (en) Method, apparatus, equipment and the storage medium that a kind of couple of BMC is controlled
CN103997684A (en) Method and device for updating operating system
JP2011197853A (en) Function providing device and program
US10606632B2 (en) Preventing interruption during virtual machine reboot
CN108234174B (en) Management method and device of virtual network function
US20170199733A1 (en) Method for terminal to update operating system, terminal and system
CN107544781B (en) System installation method and device
US11023220B2 (en) Firmware update with integrated smart sequence and action engine
CN109491762B (en) Container state control method and device, storage medium and electronic equipment
CN106484442B (en) Server system and method for updating startup mapping file
CN115913913B (en) Network card pre-starting execution environment function fault positioning 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
CB02 Change of applicant information

Address after: 310052 11th Floor, 466 Changhe Road, Binjiang District, Hangzhou City, Zhejiang Province

Applicant after: Xinhua Sanxin Information Technology Co., Ltd.

Address before: 310052 11th Floor, 466 Changhe Road, Binjiang District, Hangzhou City, Zhejiang Province

Applicant before: Huashan Information Technology Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant