CN113312064A - Installation configuration method and device of physical machine and computer readable medium - Google Patents

Installation configuration method and device of physical machine and computer readable medium Download PDF

Info

Publication number
CN113312064A
CN113312064A CN202110608657.6A CN202110608657A CN113312064A CN 113312064 A CN113312064 A CN 113312064A CN 202110608657 A CN202110608657 A CN 202110608657A CN 113312064 A CN113312064 A CN 113312064A
Authority
CN
China
Prior art keywords
physical machine
configuration
address
installation
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110608657.6A
Other languages
Chinese (zh)
Other versions
CN113312064B (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.)
China Travelsky Holding Co
Original Assignee
China Travelsky Holding Co
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 China Travelsky Holding Co filed Critical China Travelsky Holding Co
Priority to CN202110608657.6A priority Critical patent/CN113312064B/en
Publication of CN113312064A publication Critical patent/CN113312064A/en
Application granted granted Critical
Publication of CN113312064B publication Critical patent/CN113312064B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/63Image based installation; Cloning; Build to order
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Abstract

The application discloses a method, a device and a computer readable medium for installing and configuring a physical machine, wherein the method comprises the steps of acquiring identification information of the physical machine to be installed and identification information of a target operating system, which are input by a user; then, determining installation information of the physical machine to be installed by using the identification information of the physical machine to be installed; acquiring a Media Access Control (MAC) address of a physical machine to be installed from the physical machine to be installed; binding the MAC address of the physical machine to be installed, importing a system image file corresponding to the identification information of the target operating system into the physical machine to be installed, and installing the target operating system; and for each system configuration service to be configured currently of the physical machine to be installed, determining a configuration code corresponding to the system configuration service belonging to the business class according to the business class of the physical machine to be installed, and controlling the physical machine to be installed to operate the determined configuration code through the target IP address, thereby realizing automatic installation and customized configuration of the system.

Description

Installation configuration method and device of physical machine and computer readable medium
Technical Field
The present application relates to the field of physical machine installation and configuration technologies, and in particular, to a physical machine installation and configuration method and apparatus, and a computer readable medium.
Background
In the prior art, before delivering a physical machine to a customer, the installation configuration of an operating system is generally required for the physical machine according to the requirements of the customer. Because customers have different business requirements on different physical machines, the system installation configuration process of the physical machines is usually realized in a way of manually customizing installation configuration so as to meet the personalized business requirements of the users.
However, when the number of physical machines needing to be installed and configured is large, the manual installation and configuration mode is obviously too inefficient, and the installation and configuration requirements of a large number of physical machines cannot be met.
Disclosure of Invention
Based on the defects of the prior art, the application provides an installation configuration method and device of a physical machine and a computer readable medium, so as to automatically install an operating system of the physical machine and automatically customize and configure the operating system of the physical machine according to the business requirements of customers on the physical machine.
The application discloses a first aspect of an installation configuration method of a physical machine, which is applied to a configuration center platform, and the installation configuration method of the physical machine comprises the following steps:
acquiring identification information of a physical machine to be installed and identification information of a target operating system, which are input by a user; wherein, the identification information of the physical machine to be installed includes: a target host name and a target Internet Protocol (IP) address of the physical machine to be installed;
determining installation information of the physical machine to be installed by using the identification information of the physical machine to be installed; wherein, treat the installation information of installation physics machine, include: the service type of the physical machine to be installed and the IPMI information of the intelligent platform management interface of the physical machine to be installed;
logging in the physical machine to be installed through the IPMI information, and acquiring a Media Access Control (MAC) address of the physical machine to be installed from the physical machine to be installed;
binding the MAC address of the physical machine to be installed, and importing a system image file corresponding to the identification information of the target operating system into the physical machine to be installed so as to control the physical machine to be installed to install the target operating system by using the system image file;
after the target operating system is installed, configuring the host name of the physical machine to be installed as the target host name, and configuring the IP address of the physical machine to be installed as the target IP address;
and determining a configuration code corresponding to the system configuration service belonging to the business category according to the business category of the physical machine to be installed aiming at each system configuration service to be configured currently of the physical machine to be installed, and controlling the physical machine to be installed to operate the determined configuration code through the target IP address.
Optionally, in the installation configuration method of the physical machine, the system configuration service includes: a system bug fix service, a system parameter configuration service, a system check service, or a system monitoring service.
Optionally, in the installation and configuration method of the physical machine, before determining, according to the service class of the physical machine to be installed, a configuration code corresponding to the system configuration service and belonging to the service class for each system configuration service currently to be configured of the physical machine to be installed, and controlling the physical machine to be installed to run the determined configuration code through the target IP address, the method further includes:
scanning an installation configuration log of the physical machine to be installed, and determining each system configuration service to be configured currently of the physical machine to be installed;
the method includes, after determining, for each system configuration service to be configured currently by the physical machine to be installed, a configuration code corresponding to the system configuration service belonging to the service class according to the service class of the physical machine to be installed, and controlling the physical machine to be installed to run the determined configuration code through the target IP address, the method further including:
and writing an operation result corresponding to the configuration code determined by the operation of the physical machine to be installed into the installation configuration log.
Optionally, in the installation configuration method of the physical machine, the determining, by using the identification information of the physical machine to be installed, installation information of the physical machine to be installed includes:
calling a configuration management database CMDB in the configuration center platform to analyze the identification information of the physical machine to be installed, and analyzing to obtain installation information to be verified of the physical machine to be installed;
displaying installation information to be verified of the physical machine to be installed;
and responding to the confirmation operation of the user on the installation information to be verified, and determining the installation information to be verified of the physical machine to be installed as the installation information of the physical machine to be installed.
Optionally, in the installation configuration method of the physical machine, the installation information of the physical machine to be installed further includes: the PXE server is started remotely corresponding to the physical machine to be installed;
the logging in the physical machine to be installed through the IPMI information and acquiring the MAC address of the physical machine to be installed from the physical machine to be installed includes:
responding to the port query task creation operation of the user, and logging in the physical machine to be installed through the IPMI information;
controlling the physical machine to be installed to restart in a PXE mode through an IPMI platform management tool;
and acquiring the MAC address of the physical machine to be installed from the physical machine to be installed through the PXE server in the configuration center platform.
Optionally, in the installation configuration method of the physical machine, the binding the MAC address of the physical machine to be installed, and importing a system image file corresponding to the identification information of the target operating system into the physical machine to be installed, so as to control the physical machine to be installed to install the target operating system by using the system image file, includes:
binding the MAC address of the physical machine to be installed through a network installation server suite on the PXE server, and calling an IPMI platform management tool to control the physical machine to be installed to restart in a PXE mode;
after the network installation server suite identifies the physical machine to be installed, the system image file corresponding to the identification information of the target operating system is imported into the physical machine to be installed through the network installation server suite so as to control the physical machine to be installed to use the system image file to install the target operating system.
Optionally, in the method for configuring installation of a physical machine, before the logging in the physical machine to be installed through the IPMI information and acquiring a MAC address of the physical machine to be installed from the physical machine to be installed, the method further includes:
inquiring the use state information of the physical machine to be installed through the CMDB;
if the use state information of the physical machine to be installed indicates that the physical machine to be installed is in the state to be installed, calling the IPMI platform management tool to acquire an identification sequence code of the physical machine to be installed;
judging whether the identification sequence code of the physical machine to be installed, which is acquired by the IPMI platform management tool, is consistent with the identification sequence code of the physical machine to be installed, which is stored in the CMDB; if the identification sequence code of the physical machine to be installed, which is acquired by the IPMI platform management tool, is judged to be consistent with the identification sequence code of the physical machine to be installed, which is stored in the CMDB, the steps of logging in the physical machine to be installed through the IPMI information and acquiring the MAC address of the physical machine to be installed from the physical machine to be installed are executed.
Optionally, in the installation configuration method of a physical machine, before configuring the host name of the physical machine to be installed as the target host name and configuring the IP address of the physical machine to be installed as the target IP address, the method further includes:
after the target operating system is installed, acquiring the temporarily allocated IP address of the physical machine to be installed through the PXE server;
accessing the temporarily assigned IP address of the physical machine to be installed by using an Internet packet explorer;
wherein the configuring the host name of the physical machine to be installed as the target host name and the configuring the IP address of the physical machine to be installed as the target IP address comprises:
if the IP address temporarily allocated to the physical machine to be installed is successfully accessed through the Internet packet explorer, a configuration interface of the PXE server is called, the host name of the physical machine to be installed is configured to be the target host name, and the IP address of the physical machine to be installed is configured to be the target IP address.
The second aspect of the present application discloses an installation configuration device of a physical machine, which is applied to a configuration center platform, and the installation configuration device of the physical machine includes:
the system comprises a first acquisition unit, a second acquisition unit and a third acquisition unit, wherein the first acquisition unit is used for acquiring identification information of a physical machine to be installed and identification information of a target operating system, which are input by a user; wherein, the identification information of the physical machine to be installed includes: a target host name and a target Internet Protocol (IP) address of the physical machine to be installed;
the first determining unit is used for determining installation information of the physical machine to be installed by utilizing the identification information of the physical machine to be installed; wherein, treat the installation information of installation physics machine, include: the service type of the physical machine to be installed and the IPMI information of the intelligent platform management interface of the physical machine to be installed;
a second obtaining unit, configured to log in the physical machine to be installed through the IPMI information, and obtain a MAC address of the physical machine to be installed from the physical machine to be installed;
an importing unit, configured to bind the MAC address of the physical machine to be installed, and import a system image file corresponding to the identification information of the target operating system into the physical machine to be installed, so as to control the physical machine to be installed to install the target operating system by using the system image file;
the configuration unit is used for configuring the host name of the physical machine to be installed as the target host name and configuring the IP address of the physical machine to be installed as the target IP address after the target operating system is installed;
and a second determining unit, configured to determine, for each system configuration service to be currently configured by the physical machine to be installed, a configuration code corresponding to the system configuration service, which belongs to the service class, according to the service class of the physical machine to be installed, and control, through the target IP address, the physical machine to be installed to run the determined configuration code.
Optionally, in the installation configuration device of the physical machine, the system configuration service includes: a system bug fix service, a system parameter configuration service, a system check service, or a system monitoring service.
Optionally, in the installation configuration apparatus of a physical machine, the installation configuration apparatus further includes:
the scanning unit is used for scanning the installation configuration log of the physical machine to be installed and determining each system configuration service to be configured currently by the physical machine to be installed;
and the writing unit is used for writing the operation result corresponding to the configuration code determined by the operation of the physical machine to be installed into the installation configuration log.
Optionally, in the installation configuration apparatus of a physical machine, the first determining unit includes:
the first calling subunit is used for calling a configuration management database CMDB in the configuration center platform to analyze the identification information of the physical machine to be installed, and analyzing to obtain installation information to be verified of the physical machine to be installed;
the display subunit is used for displaying the installation information to be verified of the physical machine to be installed;
and the first determining subunit is used for responding to the confirmation operation of the user on the installation information to be verified, and determining the installation information to be verified of the physical machine to be installed as the installation information of the physical machine to be installed.
Optionally, in the installation configuration device of the physical machine, the installation information of the physical machine to be installed further includes: the PXE server is started remotely corresponding to the physical machine to be installed;
wherein the second obtaining unit includes:
the login subunit is used for responding to the port query task creation operation of the user and logging in the physical machine to be installed through the IPMI information;
the first restarting subunit is used for controlling the physical machine to be installed to restart in a PXE mode through an IPMI platform management tool;
a first obtaining subunit, configured to obtain, from the physical machine to be installed, an MAC address of the physical machine to be installed through the PXE server in the configuration center platform.
Optionally, in the installation configuration apparatus of a physical machine, the import unit includes:
the binding subunit is used for binding the MAC address of the physical machine to be installed through a network installation server suite on the PXE server;
the second restarting subunit is used for calling an IPMI platform management tool to control the physical machine to be installed to restart in a PXE mode;
and the importing subunit is configured to, after the network installation server suite identifies the physical machine to be installed, import, through the network installation server suite, the system image file corresponding to the identification information of the target operating system into the physical machine to be installed, so as to control the physical machine to be installed to install the target operating system by using the system image file.
Optionally, in the installation configuration apparatus of a physical machine, the installation configuration apparatus further includes:
the query unit is used for querying the use state information of the physical machine to be installed through the CMDB;
the calling unit is used for calling the IPMI platform management tool to acquire the identification sequence code of the physical machine to be installed if the use state information of the physical machine to be installed indicates that the physical machine to be installed is in the state to be installed;
the judging unit is used for judging whether the identification sequence code of the physical machine to be installed, acquired by the IPMI platform management tool, is consistent with the identification sequence code of the physical machine to be installed, stored in the CMDB; if the judging unit judges that the identification sequence code of the physical machine to be installed, acquired by the IPMI platform management tool, is consistent with the identification sequence code of the physical machine to be installed, stored in the CMDB, the second acquiring unit logs in the physical machine to be installed through the IPMI information and acquires the MAC address of the physical machine to be installed from the physical machine to be installed.
Optionally, in the installation configuration apparatus of a physical machine, the installation configuration apparatus further includes:
a third obtaining unit, configured to obtain, by the PXE server, an IP address to which the physical machine to be installed is temporarily allocated after the target operating system is installed;
an access unit for accessing the temporarily assigned IP address of the physical machine to be installed using an Internet packet explorer;
wherein the configuration unit includes:
and the configuration subunit is configured to, if the temporarily allocated IP address of the physical machine to be installed is successfully accessed through the internet packet explorer, invoke a configuration interface of the PXE server, configure the host name of the physical machine to be installed as the target host name, and configure the IP address of the physical machine to be installed as the target IP address.
A third aspect of the application discloses a computer readable medium having a computer program stored thereon, wherein the program when executed by a processor implements the method as described in any of the first aspects above.
It can be seen from the above technical solutions that, the installation and configuration method for a physical machine provided in this embodiment of the present application is applied to a configuration center platform, and is implemented by obtaining identification information of a physical machine to be installed and identification information of a target operating system input by a user, determining installation information of the physical machine to be installed by using the identification information of the physical machine to be installed, then logging in the physical machine to be installed by IPMI information, obtaining a media access control MAC address of the physical machine to be installed from the physical machine to be installed, binding the MAC address of the physical machine to be installed, importing a system image file corresponding to the target operating system into the physical machine to be installed to control the physical machine to be installed to use the system image file, installing the target operating system, configuring a host name of the physical machine to be installed as a target host name after the target operating system is installed, and configuring an IP address of the physical machine to be installed as a target IP address, and then, aiming at each system configuration service to be configured currently of the physical machine to be installed, determining a configuration code corresponding to the system configuration service and belonging to the service class according to the service class of the physical machine to be installed, controlling the physical machine to be installed to run the determined configuration code through the target IP address, automatically installing an operating system for the physical machine, customizing and controlling the physical machine to be installed to run the configuration code corresponding to the system configuration service and belonging to the service class according to the service class of the physical machine to be installed, and achieving customized system configuration.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a schematic flowchart of an installation configuration method of a physical machine according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of a method for determining installation information according to an embodiment of the present disclosure;
fig. 3 is a schematic view of a display interface of installation information according to an embodiment of the present application;
fig. 4 is a schematic flowchart of a method for acquiring a MAC address according to an embodiment of the present application;
fig. 5 is a schematic flowchart of another MAC address obtaining method according to an embodiment of the present application;
fig. 6 is a flowchart illustrating an installation method of a target operating system according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of an installation configuration device of a physical machine according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, an embodiment of the present application discloses an installation configuration method of a physical machine, which is applied to a configuration center platform, and the installation configuration method of the physical machine includes:
s101, acquiring identification information of a physical machine to be installed and identification information of a target operating system, which are input by a user.
Wherein, the identification information of the physical machine to be installed comprises: a target host name and a target Internet Protocol (IP) address of the physical machine to be installed.
The physical machine to be installed is a physical machine needing to install the configuration system, the target host name of the physical machine to be installed is the host name of the physical machine to be installed after installation configuration is completed, which is set by a user, and the target IP address is the IP address of the physical machine to be installed after installation configuration is completed, which is set by the user. The target operating system is the operating system that the physical machine to be installed needs to install.
The identification information of the physical machine to be installed can be uploaded to the configuration center platform in an electronic form file form, or can be a filling interface for displaying the identification information of the physical machine to be installed on a front-end interface by the configuration center platform, then a user inputs the identification information of the physical machine to be installed on the filling interface, and the identification information of the physical machine to be installed is input into the configuration center platform through the filling interface.
Optionally, the identification information of the physical machine to be installed may further include information such as a mask and a gateway of the physical machine to be installed, including but not limited to what is proposed in the embodiments of the present application.
Alternatively, the identification information of the target operating system may be a name, version number, or the like of the target operating system.
Optionally, before performing step S101, login verification of the user through the configuration center platform may be further included, so that the user logs in the configuration center platform. After the user successfully logs in the configuration center platform, step S101 is executed.
Alternatively, the identification information of the physical machine to be installed and the identification information of the target operating system of the physical machine to be installed may not be acquired at the same time. For example, after the user inputs the identification information of the physical machine to be installed to the configuration center platform, the configuration center platform performs operations such as parsing and verification on the acquired identification information of the physical machine to be installed, so that the user can ensure that the identification information uploaded by the user is indeed the identification information of the physical machine that the user needs to install, and then the user inputs the identification information of the target operating system to enter the subsequent installation configuration.
It should be noted that the configuration center platform for executing the embodiment shown in fig. 1 may be composed of one server, that is, one server executes the embodiment shown in fig. 1, or may be composed of a plurality of servers, that is, the embodiment shown in fig. 1 may be executed by cooperation of a plurality of servers. Different functional modules may be deployed in different servers and cooperate to perform the process illustrated in fig. 1.
And S102, determining installation information of the physical machine to be installed by using the identification information of the physical machine to be installed.
Wherein, treat the installation information of installation physics machine, include: the service type of the physical machine to be installed and Intelligent Platform Management Interface (IPMI) information of the physical machine to be installed. The installation information of the physical machine to be installed is information that needs to be used when the physical machine to be installed is installed and configured.
The service class of the physical machine to be installed is used for explaining the service class for which the physical machine to be installed is responsible. In an actual application scenario, when a large amount of physical machine installation configuration operations are executed, since the services responsible for different physical machines are different, for example, an airline company is taken as an example, part of the physical machines are used for an on-duty service, and part of the physical machines are used for the international terminal service … …, the service types responsible for the physical machines to be installed can be known through installation information of the physical machines to be installed, and then customized installation can be performed for the services responsible for the physical machines to be installed. And the IPMI information of the physical machine to be installed is used for configuring the central platform to remotely log in and operate the physical machine to be installed. When the physical machine to be installed is installed, the physical machine to be installed needs to be logged in and controlled to perform operation of installing and configuring the system, so that the IPMI information required when the physical machine to be installed is remotely logged in needs to be used.
Specifically, the step S102 is executed by associating and storing the identification information of the physical machine to be installed and the installation information in advance, and then, after the user needs to perform the installation of the physical machine to be installed, only the identification information of the physical machine to be installed needs to be input to the configuration center platform, and when the step S102 is executed, the associated installation information can be called out through the identification information.
Optionally, in a specific embodiment of the present application, the installation information may further include: and a remote boot Environment (PXE) server corresponding to the physical machine to be installed. If the PXE server is used to execute the system installation operation, the installation information needs to include the PXE server corresponding to the physical machine to be installed.
Optionally, referring to fig. 2, in an embodiment of the present application, an implementation of step S102 is performed, including:
s201, calling a Configuration Management Database (CMDB) in the Configuration center platform to analyze the identification information of the physical machine to be installed, and analyzing to obtain installation information to be verified of the physical machine to be installed.
Specifically, the configuration center platform is provided with a CMDB module, and the identification information and the installation information of all the physical machines to be installed are input to the CMDB module in advance, so that the identification information is analyzed by calling the CMDB module when step S201 is executed, that is, the installation information to be verified of the physical machines to be installed can be obtained through analysis. The installation information to be verified refers to installation information which is obtained by analyzing the identification information through the CMDB and is not verified by a user.
S202, displaying installation information to be verified of the physical machine to be installed.
And outputting the installation information to be verified of the physical machine to be installed to a display interface of the configuration center platform, and confirming and verifying by a user. In some cases, the identification information that the user may input is incorrect, or the installation information entered into the CMDB is incorrect, so that the installation information to be verified obtained in step S201 is not the installation information of the physical machine to be installed that the user needs to install, and if the installation information is incorrect, the configuration cannot be successfully installed, or another physical machine is installed. Therefore, installation information to be verified of the physical machine to be installed needs to be displayed on an interface of the configuration center platform for a user to verify.
S203, responding to the confirmation operation of the user on the installation information to be verified, and determining the installation information to be verified of the physical machine to be installed as the installation information of the physical machine to be installed.
If the user confirms that the installation information to be verified is the installation information of the physical machine to be installed, the confirmation operation of the installation information to be verified is executed on the configuration center platform, the configuration center platform responds to the confirmation operation of the user on the installation information to be verified, the installation information to be verified of the physical machine to be installed is determined as the installation information of the physical machine to be installed, and the installation information is continuously used for executing subsequent processes.
For example, the configuration center platform may output an interface for confirming whether the installation information to be verified is the installation information of the physical machine to be installed, after the user clicks the confirmation, the configuration center platform directly determines the installation information to be verified as the installation information of the physical machine to be installed, and then performs the subsequent steps.
Optionally, in a specific embodiment of the present application, after the step S203 is executed, that is, after it is confirmed that the installation information to be verified is installation information of the physical machine to be installed, the user inputs identification information of the target operating system to the configuration center platform, and starts to execute the installation and configuration operations in the subsequent steps S103 to S106.
Optionally, if the user responds to the operation of denying the installation information to be verified, the installation information to be verified is not determined as the installation information of the physical machine to be installed, and the process is ended.
S103, logging in the physical machine to be installed through IPMI information, and acquiring a Media Access Control (MAC) address of the physical machine to be installed from the physical machine to be installed.
Because the installation information of the physical machine to be installed comprises the IPMI information of the physical machine to be installed, the physical machine to be installed can be remotely logged in through the IPMI information, and further, the MAC address of the physical machine to be installed can be acquired from the physical machine to be installed in a mode of inquiring the port of the physical machine to be installed, and the MAC address can also be considered as the MAC address of the network card of the physical machine to be installed. Optionally, in addition to the MAC address, the disk information of the physical machine to be installed may be acquired, and a disk array (raid) may be performed on the system disk after the physical machine to be installed is installed through the disk information of the physical machine to be installed.
For example, as shown in fig. 3, MAC address information and disk information of the physical machine to be installed are displayed on the interface of the configuration center platform. Wherein the MAC address information includes: switches (switch), ports (port), and virtual local area networks (vlan). The disk information includes: disk number (enclosureid), size (size), slot (slot), and disk array (is-raid).
Optionally, in a specific embodiment of the present application, if the MAC address information of the physical machine to be installed indicates that the physical machine to be installed has multiple network cards, the multiple network cards may be subjected to link aggregation when the physical machine to be installed is installed, so as to ensure stable execution of the installation work.
Alternatively, referring to fig. 4, if the installation information of the physical machine to be installed further includes: if the information of the PXE server corresponding to the physical machine to be installed is obtained, an implementation manner of step S103 is executed, and includes:
s401, responding to the port query task creating operation of a user, and logging in a physical machine to be installed through IPMI information.
The configuration center platform inquires a task creation interface to the user output port, various physical machines capable of creating the port inquiry tasks are displayed on the port inquiry task creation interface, and the user can create the port inquiry tasks of the physical machines to be installed by selecting the physical machines to be installed. And the port query task is used for acquiring the MAC address so as to carry out system installation configuration by using the MAC address of the physical machine to be installed in the following process.
After the configuration center platform responds to the port query task creation operation of the user, the port query task is started to be executed, specifically, the physical machine to be installed is logged in through the IPMI information, and the steps S402 to S403 are executed to obtain the MAC address of the physical machine to be installed, that is, the port query task is completed.
For example, after the configuration center platform responds to a port query task creation operation of a user, the installation information of the physical machine to be installed is submitted to a task dispatch (dispatch) module of the configuration center platform, the dispatch module generates a port query task order of the physical machine to be installed, then the port query task order is distributed to a distributed task scheduling module (cell), the cell calls an installation service module (install), then the install queries the task order according to the port of the physical machine to be installed, logs in the physical machine to be installed through IPMI information, and subsequent step S402 and step S403.
S402, controlling the physical machine to be installed to restart in a PXE mode through an IPMI platform management tool.
The IPMI platform management tool (ipmitool) can command the physical machine to be installed to restart in a PXE mode, so that the physical machine to be installed enters a diskless system mode, and MAC address information, disk information and the like of the physical machine to be installed can be acquired at the moment.
And S403, acquiring the MAC address of the physical machine to be installed from the physical machine to be installed through a PXE server in the configuration center platform.
Since the physical machine to be installed is in the PXE mode after being restarted, the PXE server in the configuration center platform (i.e. the PXE server corresponding to the physical machine to be installed) can acquire the MAC address of the physical machine to be installed from the physical machine to be installed.
Optionally, referring to fig. 5, in an embodiment of the present application, before executing step S103, the method further includes:
s501, inquiring the use state information of the physical machine to be installed through the CMDB.
The CMDB records the use state information of each physical machine to be installed, and when the physical machine is in a state that the operating system is not required to be installed, the use state information of the physical machine recorded by the CMDB is not the state to be installed. For example, when the physical machine to be installed completes the installation of the target operating system, the CMDB records the use state information of the physical machine to be installed as the installed state, and records the use state information of the physical machine that has been installed and put into use as the in-use state.
And when the physical machine to be installed does not install the target operating system, recording the use state information of the physical machine to be installed as the state to be installed in the CMDB. The use state information of the physical machine to be installed is inquired by using the identification information of the physical machine to be installed, and the use state of the current physical machine to be installed can be confirmed, so that the operation system is prevented from being installed again for the physical machine with the operation system installed or the physical machine in production and use.
S502, if the use state information of the physical machine to be installed indicates that the physical machine to be installed is in the state to be installed, calling an IPMI platform management tool to acquire an identification sequence code of the physical machine to be installed.
When the use state information of the physical machine to be installed indicates that the physical machine to be installed is in the state to be installed, it indicates that the physical machine to be installed is not in use and is in a state in which installation of the operating system can be started. And then, acquiring the identification sequence code of the physical machine to be installed by calling an IPMI platform management tool (ipmitool) so as to perform subsequent further verification and verification. Specifically, the ipmitool acquires the identification sequence code of the physical machine to be installed from the physical machine to be installed, where the identification sequence code is a unique sequence code specific to the physical machine to be installed.
S503, judging whether the identification sequence code of the physical machine to be installed, acquired by the IPMI platform management tool, is consistent with the identification sequence code of the physical machine to be installed, stored in the CMDB.
The CMDB stores in advance the identification sequence code of the physical machine to be installed, and if the information of the physical machine to be installed stored in the CMDB is accurate, the identification sequence code of the physical machine to be installed, which is directly acquired from the physical machine to be installed by the IPMI platform management tool, will be consistent with the identification sequence code of the physical machine to be installed stored in the CMDB, and it can be confirmed that the installation information stored in the CMDB should also be correct, so that the subsequent step S504 can be continuously executed. However, if the identifier sequence code of the physical machine to be installed acquired by the IPMI platform management tool is not consistent with the identifier sequence code of the physical machine to be installed stored in the CMDB, it indicates that the installation information of the physical machine to be installed stored in the CMDB may be incorrect, and therefore step S504 cannot be continuously executed, and the process ends.
S504, logging in the physical machine to be installed through IPMI information, and acquiring the MAC address of the physical machine to be installed from the physical machine to be installed.
The execution process and principle of step S504 are the same as step S103, and are not described here again.
S104, binding the MAC address of the physical machine to be installed, and importing the system image file corresponding to the identification information of the target operating system into the physical machine to be installed so as to control the physical machine to be installed to use the system image file to install the target operating system.
The configuration center platform binds the MAC address of the physical machine to be installed, then the MAC address of the physical machine to be installed is utilized to import the system image file corresponding to the identification information of the target operating system into the physical machine to be installed, namely the system image file corresponding to the identification information of the target operating system is controlled and downloaded into the physical machine to be installed, and then the physical machine to be installed is controlled to install the downloaded system image file, so that the target operating system is installed.
The system image file corresponding to the identification information of the target operating system may be understood as a system image file corresponding to the target operating system, and the installation of the system image file corresponding to the target operating system is equivalent to the installation of the target operating system.
Optionally, referring to fig. 6, in an embodiment of the present application, an implementation of step S104 is performed, including:
s601, binding the MAC address of the physical machine to be installed through a network installation server suite on the PXE server, and calling an IPMI platform management tool to control the physical machine to be installed to restart in a PXE mode.
And after the MAC address of the physical machine to be installed is bound, if the physical machine to be installed is in the PXE mode, the cobbler can identify the physical machine to be installed and further execute installation operation. Therefore, the IPMI platform management tool needs to be called to control the physical machine to be installed to restart in the PXE mode. The implementation of the embodiment of the present application is not affected by the MAC address binding of the physical machine to be installed and the execution sequence controlling the physical machine to be installed to restart in the PXE mode.
And S602, after the network installation server suite identifies the physical machine to be installed, importing a system image file corresponding to the identification information of the target operating system into the physical machine to be installed through the network installation server suite so as to control the physical machine to be installed to use the system image file to install the target operating system.
Since the physical machine to be installed is restarted in the PXE mode in step S601, the physical machine to be installed can be identified by the cobbler of the network installation server suite, and after the physical machine to be installed is identified by the network installation server suite, because the cobbler binds the MAC address of the physical machine to be installed, the system image file corresponding to the identification information of the target operating system can be imported into the physical machine to be installed through the network installation server suite, so as to control the physical machine to be installed to use the system image file to install the target operating system.
S105, after the target operating system is installed, configuring the host name of the physical machine to be installed as the target host name, and configuring the IP address of the physical machine to be installed as the target IP address.
After the target operating system is installed, the host name and the IP address of the physical machine to be installed are both temporary, the IP address is temporarily allocated when the target operating system is installed, and the host name is also default for the physical machine to be installed. However, in step S101, the user has a target host name and a target IP address for specifying the physical machine to be installed, and therefore, it is necessary to configure the temporary default host name of the physical machine to be installed as the target host name and then configure the IP address of the physical machine to be installed as the target IP address, so that the IP address and the host name used when the user is handed over to the physical machine to be installed are required by the user.
Optionally, in a specific embodiment of the present application, before performing step S105, the method further includes:
after the target operating system is installed, the temporarily allocated IP address of the physical machine to be installed is obtained through the PXE server, and the temporarily allocated IP address of the physical machine to be installed is accessed by using an Internet Packet explorer (Packet Internet Groper, PING).
The PXE server temporarily allocates a temporary IP address to the physical machine to be installed when the target operating system is installed for the physical machine to be installed, after the operation of the target operating system is completed, in order to ensure that the target operating system is successfully installed, PING is required to access the temporarily allocated IP address of the physical machine to be installed, if the access is successful, the physical machine to be installed is indicated that the target operating system is successfully installed, if the access is not successful, the installation is indicated to be failed, the result of the unsuccessful access can be returned to the configuration center platform, and the configuration center platform performs subsequent processing.
Optionally, the configuration center platform may further record PING access results, and count whether each physical machine to be installed is successfully installed.
Wherein, executing an embodiment of step S105 includes:
if the IP address temporarily allocated to the physical machine to be installed is successfully accessed through the Internet packet explorer, a configuration interface of the PXE server is called, the host name of the physical machine to be installed is configured to be the target host name, and the IP address of the physical machine to be installed is configured to be the target IP address.
If the PING can successfully access the temporarily allocated IP address of the physical machine to be installed, the PING indicates that the physical machine to be installed has successfully installed the target operating system, and therefore the configuration of the host name and the IP address can be continued. Specifically, the target IP address and the target host name are introduced by using the configuration interface of the PXE server, that is, the host name of the physical machine to be installed is configured as the target host name, and the IP address of the physical machine to be installed is configured as the target IP address.
In the prior art, the system installation process of the physical machine is mainly completed by manual operation, but the manual operation and installation efficiency of large-batch physical machines one by one is low. In the embodiment of the application, the step S101 to the step S105 can be automatically executed only by inputting the identification information of the physical machine to be installed and the identification information of the target operating system by the user, the MAC address of the physical machine to be installed is automatically obtained through the IPMI information, then the target operating system is installed by binding the MAC address and using the mirror image system file, and the installation requirement of installing the physical machine in large batch can be met.
S106, aiming at each system configuration service to be configured currently of the physical machine to be installed, determining a configuration code corresponding to the system configuration service and belonging to the service class according to the service class of the physical machine to be installed, and controlling the physical machine to be installed to operate through the target IP address to determine the configuration code.
The service type information of the physical machine to be installed is pre-stored in the configuration center platform, because the installed information of the physical machine to be installed has the service type of the physical machine to be installed. After the installation of the operating system is completed, the physical machine to be installed also needs to configure the system configuration service required by the physical machine to be installed in a customized manner according to the service class.
Specifically, the configuration center platform stores the configuration code corresponding to each customized system configuration service under each service category in advance, so that the configuration code corresponding to each system configuration service under the service category can be determined through the service category of the physical machine to be installed.
The system configuration service to be configured refers to a system configuration service for which the physical machine to be installed is not configured yet, and since there may be a plurality of system configuration services that need to be configured for the physical machine to be installed and the time for configuring each system configuration service is also inconsistent, the configuration may be performed only for each system configuration service to be configured currently, and the configuration is not performed for the system configuration service that has been configured.
Since the target IP address of the physical machine to be installed has already been configured in step S105, the physical machine to be installed may be controlled by the target IP address, and after the configuration code corresponding to the system configuration service to be configured, which is determined by the operation of the physical machine to be installed, is controlled in the form of inputting a control command to the physical machine to be installed, the physical machine to be installed automatically performs the configuration process of the system configuration service.
Optionally, in a specific embodiment of the present application, the system configuration service includes: a system bug fix service, a system parameter configuration service, a system check service, or a system monitoring service. The system bug fixing service is used for fixing bugs of the target operating system. The system parameter configuration service is used for configuring the system parameters of the target operating system. The system check service is used for checking the target operating system, and the system monitoring service is used for monitoring the target operating system. In the embodiment of the present application, the association relationship between the service class and the configuration code corresponding to the system configuration service is stored in advance, and then the configuration code corresponding to the system configuration service and belonging to the service class of the physical machine to be installed is run in the physical machine to be installed, so as to complete the configuration of the system configuration service.
There may be many other system configuration services, including but not limited to those set forth in the embodiments of the present application.
Optionally, in a specific embodiment of the present application, an implementation manner of the step S106 is executed, further including:
and scanning an installation configuration log of the physical machine to be installed, and determining each system configuration service to be configured currently of the physical machine to be installed.
And scanning an installation configuration log of the physical machine to be installed in real time or periodically, wherein the installation configuration log records whether the physical machine to be installed has an installation system or not and whether the configuration of each system configuration service is completed or not. If the system configuration service which is not configured yet by the physical machine to be installed exists in the installation configuration log, the system configuration service is determined to be the system configuration service which is currently configured by the physical machine to be installed, and then step S106 is executed.
After step S106 is executed, the method may further include:
and writing an operation result corresponding to the configuration code determined by the operation of the physical machine to be installed into the installation configuration log.
After the physical machine to be installed runs the configuration code determined in step S106, a running result for explaining whether the configuration code is successfully run is written into the installation configuration log. Subsequently, from the operation result written in by the installation configuration log, which system configuration services are successfully installed and which system configuration services are not successfully installed can be read, and further, the system configuration services to be configured can be determined again, and a corresponding configuration task is established to be executed again.
In the prior art, the system configuration of the physical machines is mainly completed by manual operation, and because the services executed by different physical machines may be different, for example, part of the physical machines in an airline company execute a value machine service, and some physical machines execute an international station transportation service, the system configuration needs to be customized manually.
In the embodiment of the application, for each system configuration service to be configured currently of the physical machine to be installed, the configuration code corresponding to the system configuration service belonging to the business category is determined according to the business category of the physical machine to be installed, and the determined configuration code is controlled to run by the target IP address, so that the system configuration is customized automatically according to the business category of the physical machine to be installed, and manual operation is not needed.
In the embodiment of the application, only the identification information of the physical machine to be installed and the identification information of the target operating system need to be input by a user, system installation and customized system configuration aiming at the service category of the physical machine can be automatically carried out, and the delivery work of the physical machine in batches can be rapidly completed.
The installation and configuration method of the physical machine provided by the embodiment of the application is applied to a configuration center platform, the installation information of the physical machine to be installed is determined by acquiring the identification information of the physical machine to be installed and the identification information of a target operating system, which are input by a user, then the physical machine to be installed is logged in through IPMI information, the media access control MAC address of the physical machine to be installed is acquired from the physical machine to be installed, the MAC address of the physical machine to be installed is bound, a system image file corresponding to the target operating system is led into the physical machine to be installed so as to control the physical machine to be installed to utilize the system image file, the target operating system is installed, after the target operating system is installed, the host name of the physical machine to be installed is configured as the target host name, and the IP address of the physical machine to be installed is configured as the target IP address, and then, aiming at each system configuration service to be configured currently of the physical machine to be installed, determining a configuration code corresponding to the system configuration service and belonging to the service class according to the service class of the physical machine to be installed, controlling the physical machine to be installed to run the determined configuration code through the target IP address, automatically installing an operating system for the physical machine, customizing and controlling the physical machine to be installed to run the configuration code corresponding to the system configuration service and belonging to the service class according to the service class of the physical machine to be installed, and achieving customized system configuration.
Referring to fig. 7, based on the installation configuration method of the physical machine provided in the embodiment of the present application, the embodiment of the present application correspondingly discloses an installation configuration device of the physical machine, including: a first acquisition unit 701, a first determination unit 702, a second acquisition unit 703, an import unit 704, a configuration unit 705, and a second determination unit 706.
A first obtaining unit 701, configured to obtain identification information of a physical machine to be installed and identification information of a target operating system, which are input by a user. Wherein, the identification information of the physical machine to be installed comprises: the target host name and the IP address of the physical machine to be installed.
A first determining unit 702, configured to determine installation information of the physical machine to be installed by using the identification information of the physical machine to be installed. Wherein, treat the installation information of installation physics machine, include: the service type of the physical machine to be installed and the IPMI information of the physical machine to be installed.
Optionally, in a specific embodiment of the present application, the first determining unit 702 includes: the display unit comprises a first calling subunit, a display subunit and a first determining subunit.
And the first calling subunit is used for calling the configuration management database CMDB in the configuration center platform to analyze the identification information of the physical machine to be installed, and analyzing to obtain the installation information to be verified of the physical machine to be installed.
And the display subunit is used for displaying the installation information to be verified of the physical machine to be installed.
And the first determining subunit is used for responding to the confirmation operation of the user on the installation information to be verified, and determining the installation information to be verified of the physical machine to be installed as the installation information of the physical machine to be installed.
The second obtaining unit 703 is configured to log in the physical machine to be installed through the IPMI information, and obtain the MAC address of the physical machine to be installed from the physical machine to be installed.
Optionally, in a specific embodiment of the present application, the installation information of the physical machine to be installed further includes: and (4) the PXE server corresponding to the physical machine to be installed is started remotely.
The second obtaining unit 703 includes: the device comprises a login subunit, a first restart subunit and a first acquisition subunit.
And the login subunit is used for responding to the port query task creation operation of the user and logging in the physical machine to be installed through the IPMI information.
And the first restarting subunit is used for controlling the physical machine to be installed to restart in a PXE mode through the IPMI platform management tool.
The first obtaining subunit is configured to obtain, from the physical machine to be installed, the MAC address of the physical machine to be installed through a PXE server in the configuration center platform.
An importing unit 704, configured to bind the MAC address of the physical machine to be installed, and import the system image file corresponding to the identification information of the target operating system into the physical machine to be installed, so as to control the physical machine to be installed to install the target operating system by using the system image file.
Optionally, in a specific embodiment of the present application, the importing unit 704 includes: a binding subunit, a second restarting subunit, and an importing subunit.
And the binding subunit is used for binding the MAC address of the physical machine to be installed through a network installation server suite on the PXE server.
And the second restarting subunit is used for calling the IPMI platform management tool to control the physical machine to be installed to restart in a PXE mode.
And the importing subunit is used for importing the system image file corresponding to the identification information of the target operating system into the physical machine to be installed through the network installation server suite after the network installation server suite identifies the physical machine to be installed, so as to control the physical machine to be installed to install the target operating system by using the system image file.
The configuration unit 705 is configured to configure the host name of the physical machine to be installed as the target host name and configure the IP address of the physical machine to be installed as the target IP address after the target operating system is installed.
A second determining unit 706, configured to determine, for each system configuration service to be currently configured by the physical machine to be installed, a configuration code corresponding to the system configuration service, which belongs to the service class, according to the service class of the physical machine to be installed, and control the physical machine to be installed to operate through the target IP address.
Optionally, in a specific embodiment of the present application, the system configuration service includes: a system bug fix service, a system parameter configuration service, a system check service, or a system monitoring service.
Optionally, in a specific embodiment of the present application, the method further includes: a scanning unit and a writing unit.
And the scanning unit is used for scanning the installation configuration log of the physical machine to be installed and determining each system configuration service to be configured currently of the physical machine to be installed.
And the writing unit is used for writing the operation result corresponding to the configuration code determined by the operation of the physical machine to be installed into the installation configuration log.
Optionally, in a specific embodiment of the present application, the method further includes: the device comprises a query unit, a calling unit and a judgment unit.
And the query unit is used for querying the use state information of the physical machine to be installed through the CMDB.
And the calling unit is used for calling the IPMI platform management tool to acquire the identification sequence code of the physical machine to be installed if the use state information of the physical machine to be installed indicates that the physical machine to be installed is in the state to be installed.
And the judging unit is used for judging whether the identification sequence code of the physical machine to be installed, acquired by the IPMI platform management tool, is consistent with the identification sequence code of the physical machine to be installed, stored in the CMDB. If the judgment unit judges that the identification sequence code of the physical machine to be installed, acquired by the PMI platform management tool, is consistent with the identification sequence code of the physical machine to be installed, stored in the CMDB, the second acquisition unit logs in the physical machine to be installed through the IPMI information and acquires the Media Access Control (MAC) address of the physical machine to be installed from the physical machine to be installed.
Optionally, in a specific embodiment of the present application, the method further includes:
and a third obtaining unit, configured to obtain, by the PXE server, the IP address to which the physical machine to be installed is temporarily allocated after the target operating system is installed.
And an access unit for accessing the temporarily assigned IP address of the physical machine to be installed using the Internet packet explorer.
The configuration unit 705 includes:
and the configuration subunit is used for calling a configuration interface of the PXE server if the IP address temporarily allocated to the physical machine to be installed is successfully accessed through the Internet packet explorer, configuring the host name of the physical machine to be installed as the target host name, and configuring the IP address of the physical machine to be installed as the target IP address.
The specific principle and the execution process of each unit in the installation configuration device of the physical machine disclosed in the embodiment of the present application are the same as the installation configuration method of the physical machine disclosed in the embodiment of the present application, and reference may be made to corresponding parts in the installation configuration method of the physical machine disclosed in the embodiment of the present application, which are not described herein again.
The installation configuration device of the physical machine provided by the embodiment of the application is applied to a configuration center platform, and acquires identification information of a physical machine to be installed and identification information of a target operating system, which are input by a user, through a first acquisition unit 701, a first determination unit 702 determines installation information of the physical machine to be installed by using the identification information of the physical machine to be installed, then a second acquisition unit 703 logs in the physical machine to be installed through IPMI information, acquires a Media Access Control (MAC) address of the physical machine to be installed from the physical machine to be installed, an importing unit 704 binds the MAC address of the physical machine to be installed, imports a system image file corresponding to the target operating system into the physical machine to be installed so as to control the physical machine to be installed to use the system image file, installs the target operating system, and configures a host name of the physical machine to be installed as the target host name 705 after the target operating system is installed, the IP address of the physical machine to be installed is configured as a target IP address, then a service is configured for each system to be configured currently of the physical machine to be installed, the second determining unit 706 determines a configuration code corresponding to the system configuration service, which belongs to the service category, according to the service category of the physical machine to be installed, and controls the physical machine to be installed to run the determined configuration code through the target IP address, so as to automatically install an operating system for the physical machine, and custom-control the physical machine to be installed to run the configuration code corresponding to the system configuration service, which belongs to the service category, according to the service category of the physical machine to be installed, so as to implement custom-made system configuration.
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
The embodiment of the application provides a computer readable medium, on which a computer program is stored, wherein the program is executed by a processor to implement any one of the installation configuration methods of a physical machine as provided in the embodiments above.
An embodiment of the present application provides an apparatus, including: one or more processors, a storage device, on which one or more programs are stored. When the one or more programs are executed by the one or more processors, the one or more processors are caused to implement any one of the installation configuration methods of the physical machine set forth in the above-described embodiments.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer storage medium may be included in the electronic device; or may exist separately without being assembled into the electronic device.
It should be noted that the computer storage media described above in this disclosure can be computer readable signal media or computer readable storage media or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer storage medium that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer storage medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.
While several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.

Claims (10)

1. The installation configuration method of the physical machine is applied to a configuration center platform, and comprises the following steps:
acquiring identification information of a physical machine to be installed and identification information of a target operating system, which are input by a user; wherein, the identification information of the physical machine to be installed includes: a target host name and a target Internet Protocol (IP) address of the physical machine to be installed;
determining installation information of the physical machine to be installed by using the identification information of the physical machine to be installed; wherein, treat the installation information of installation physics machine, include: the service type of the physical machine to be installed and the IPMI information of the intelligent platform management interface of the physical machine to be installed;
logging in the physical machine to be installed through the IPMI information, and acquiring a Media Access Control (MAC) address of the physical machine to be installed from the physical machine to be installed;
binding the MAC address of the physical machine to be installed, and importing a system image file corresponding to the identification information of the target operating system into the physical machine to be installed so as to control the physical machine to be installed to install the target operating system by using the system image file;
after the target operating system is installed, configuring the host name of the physical machine to be installed as the target host name, and configuring the IP address of the physical machine to be installed as the target IP address;
and determining a configuration code corresponding to the system configuration service belonging to the business category according to the business category of the physical machine to be installed aiming at each system configuration service to be configured currently of the physical machine to be installed, and controlling the physical machine to be installed to operate the determined configuration code through the target IP address.
2. The method of claim 1, wherein the system configuration service comprises: a system bug fix service, a system parameter configuration service, a system check service, or a system monitoring service.
3. The method according to claim 1, wherein before determining, for each system configuration service to be currently configured by the physical machine to be installed, a configuration code corresponding to the system configuration service belonging to the service class according to the service class of the physical machine to be installed, and controlling the physical machine to be installed to run the determined configuration code through the target IP address, the method further includes:
scanning an installation configuration log of the physical machine to be installed, and determining each system configuration service to be configured currently of the physical machine to be installed;
the method includes, after determining, for each system configuration service to be configured currently by the physical machine to be installed, a configuration code corresponding to the system configuration service belonging to the service class according to the service class of the physical machine to be installed, and controlling the physical machine to be installed to run the determined configuration code through the target IP address, the method further including:
and writing an operation result corresponding to the configuration code determined by the operation of the physical machine to be installed into the installation configuration log.
4. The method according to claim 1, wherein the determining the installation information of the physical machine to be installed by using the identification information of the physical machine to be installed comprises:
calling a configuration management database CMDB in the configuration center platform to analyze the identification information of the physical machine to be installed, and analyzing to obtain installation information to be verified of the physical machine to be installed;
displaying installation information to be verified of the physical machine to be installed;
and responding to the confirmation operation of the user on the installation information to be verified, and determining the installation information to be verified of the physical machine to be installed as the installation information of the physical machine to be installed.
5. The method of claim 1, wherein the installation information of the physical machine to be installed further comprises: the PXE server is started remotely corresponding to the physical machine to be installed;
the logging in the physical machine to be installed through the IPMI information and acquiring the MAC address of the physical machine to be installed from the physical machine to be installed includes:
responding to the port query task creation operation of the user, and logging in the physical machine to be installed through the IPMI information;
controlling the physical machine to be installed to restart in a PXE mode through an IPMI platform management tool;
and acquiring the MAC address of the physical machine to be installed from the physical machine to be installed through the PXE server in the configuration center platform.
6. The method according to claim 5, wherein the binding the MAC address of the physical machine to be installed and importing a system image file corresponding to the identification information of the target operating system into the physical machine to be installed to control the physical machine to be installed to install the target operating system by using the system image file, includes:
binding the MAC address of the physical machine to be installed through a network installation server suite on the PXE server, and calling an IPMI platform management tool to control the physical machine to be installed to restart in a PXE mode;
after the network installation server suite identifies the physical machine to be installed, the system image file corresponding to the identification information of the target operating system is imported into the physical machine to be installed through the network installation server suite so as to control the physical machine to be installed to use the system image file to install the target operating system.
7. The method according to claim 4, wherein before the logging in the physical machine to be installed through the IPMI information and obtaining the MAC address of the physical machine to be installed from the physical machine to be installed, the method further comprises:
inquiring the use state information of the physical machine to be installed through the CMDB;
if the use state information of the physical machine to be installed indicates that the physical machine to be installed is in the state to be installed, calling the IPMI platform management tool to acquire an identification sequence code of the physical machine to be installed;
judging whether the identification sequence code of the physical machine to be installed, which is acquired by the IPMI platform management tool, is consistent with the identification sequence code of the physical machine to be installed, which is stored in the CMDB; if the identification sequence code of the physical machine to be installed, which is acquired by the IPMI platform management tool, is judged to be consistent with the identification sequence code of the physical machine to be installed, which is stored in the CMDB, the steps of logging in the physical machine to be installed through the IPMI information and acquiring the MAC address of the physical machine to be installed from the physical machine to be installed are executed.
8. The method according to claim 6, wherein before configuring the host name of the physical machine to be installed as the target host name and configuring the IP address of the physical machine to be installed as the target IP address, further comprising:
after the target operating system is installed, acquiring the temporarily allocated IP address of the physical machine to be installed through the PXE server;
accessing the temporarily assigned IP address of the physical machine to be installed by using an Internet packet explorer;
wherein the configuring the host name of the physical machine to be installed as the target host name and the configuring the IP address of the physical machine to be installed as the target IP address comprises:
if the IP address temporarily allocated to the physical machine to be installed is successfully accessed through the Internet packet explorer, a configuration interface of the PXE server is called, the host name of the physical machine to be installed is configured to be the target host name, and the IP address of the physical machine to be installed is configured to be the target IP address.
9. An installation configuration device of a physical machine, which is applied to a configuration center platform, and is characterized by comprising:
the system comprises a first acquisition unit, a second acquisition unit and a third acquisition unit, wherein the first acquisition unit is used for acquiring identification information of a physical machine to be installed and identification information of a target operating system, which are input by a user; wherein, the identification information of the physical machine to be installed includes: a target host name and a target Internet Protocol (IP) address of the physical machine to be installed;
the first determining unit is used for determining installation information of the physical machine to be installed by utilizing the identification information of the physical machine to be installed; wherein, treat the installation information of installation physics machine, include: the service type of the physical machine to be installed and the IPMI information of the intelligent platform management interface of the physical machine to be installed;
a second obtaining unit, configured to log in the physical machine to be installed through the IPMI information, and obtain a MAC address of the physical machine to be installed from the physical machine to be installed;
an importing unit, configured to bind the MAC address of the physical machine to be installed, and import a system image file corresponding to the identification information of the target operating system into the physical machine to be installed, so as to control the physical machine to be installed to install the target operating system by using the system image file;
the configuration unit is used for configuring the host name of the physical machine to be installed as the target host name and configuring the IP address of the physical machine to be installed as the target IP address after the target operating system is installed;
and a second determining unit, configured to determine, for each system configuration service to be currently configured by the physical machine to be installed, a configuration code corresponding to the system configuration service, which belongs to the service class, according to the service class of the physical machine to be installed, and control, through the target IP address, the physical machine to be installed to run the determined configuration code.
10. A computer-readable medium, on which a computer program is stored, wherein the program, when executed by a processor, implements the method of any one of claims 1 to 8.
CN202110608657.6A 2021-06-01 2021-06-01 Method and device for installing and configuring physical machine and computer readable medium Active CN113312064B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110608657.6A CN113312064B (en) 2021-06-01 2021-06-01 Method and device for installing and configuring physical machine and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110608657.6A CN113312064B (en) 2021-06-01 2021-06-01 Method and device for installing and configuring physical machine and computer readable medium

Publications (2)

Publication Number Publication Date
CN113312064A true CN113312064A (en) 2021-08-27
CN113312064B CN113312064B (en) 2024-03-26

Family

ID=77376802

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110608657.6A Active CN113312064B (en) 2021-06-01 2021-06-01 Method and device for installing and configuring physical machine and computer readable medium

Country Status (1)

Country Link
CN (1) CN113312064B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113656185A (en) * 2021-09-01 2021-11-16 上海中通吉网络技术有限公司 System and method for quickly executing server operation in batch
CN114327663A (en) * 2022-01-04 2022-04-12 中国建设银行股份有限公司 Operating system installation method, system and related device
CN115037723A (en) * 2022-06-06 2022-09-09 中邮信息科技(北京)有限公司 Full-link system autonomous delivery method and device, electronic equipment and storage medium
CN115686907A (en) * 2022-10-31 2023-02-03 超聚变数字技术有限公司 Information configuration method and computing device

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102111300A (en) * 2011-03-14 2011-06-29 浪潮(北京)电子信息产业有限公司 Monitoring system and method for guaranteeing business continuity
CN102833310A (en) * 2012-07-03 2012-12-19 中山大学 Workflow engine trunking system based on virtualization technology
CN103577232A (en) * 2013-11-04 2014-02-12 交通银行股份有限公司 Method and equipment for deploying application-oriented IT architecture environment in clustering manner
US20140096136A1 (en) * 2012-09-29 2014-04-03 International Business Machines Corporation Creating a Virtual Machine and Cloud Server
CN105681081A (en) * 2016-01-12 2016-06-15 华为技术有限公司 Physical machine management method and device
CN106502765A (en) * 2016-11-07 2017-03-15 中南大学 A kind of virtual machine placement method suitable for cloud data center
CN106911500A (en) * 2017-02-20 2017-06-30 北京百度网讯科技有限公司 The collocation method of physical machine, device and physical machine
CN107766118A (en) * 2016-08-16 2018-03-06 北京神州泰岳软件股份有限公司 A kind of method and apparatus of establishment KVM virtual machines
CN110688130A (en) * 2019-10-14 2020-01-14 天津卓朗科技发展有限公司 Physical machine deployment method, physical machine deployment device, readable storage medium and electronic equipment
CN110908770A (en) * 2019-11-05 2020-03-24 安超云软件有限公司 Operation and creation method of virtual machine, virtual machine and virtual machine management platform
CN110968444A (en) * 2018-09-30 2020-04-07 北京国双科技有限公司 Data processing method and device of cloud computing platform
CN111966384A (en) * 2020-10-20 2020-11-20 腾讯科技(深圳)有限公司 System updating method, device, equipment and computer readable storage medium
CN112230940A (en) * 2020-09-18 2021-01-15 苏州浪潮智能科技有限公司 User mirror image making method and system based on Openstack bare computer service
CN112383502A (en) * 2020-09-11 2021-02-19 深圳市证通电子股份有限公司 Method and system for uniformly monitoring physical machine and virtual machine and electronic device
CN112506534A (en) * 2020-12-17 2021-03-16 武汉噢易云计算股份有限公司 Method and system for starting qcow2 format system mirror image by physical machine

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102111300A (en) * 2011-03-14 2011-06-29 浪潮(北京)电子信息产业有限公司 Monitoring system and method for guaranteeing business continuity
CN102833310A (en) * 2012-07-03 2012-12-19 中山大学 Workflow engine trunking system based on virtualization technology
US20140096136A1 (en) * 2012-09-29 2014-04-03 International Business Machines Corporation Creating a Virtual Machine and Cloud Server
CN103577232A (en) * 2013-11-04 2014-02-12 交通银行股份有限公司 Method and equipment for deploying application-oriented IT architecture environment in clustering manner
CN105681081A (en) * 2016-01-12 2016-06-15 华为技术有限公司 Physical machine management method and device
CN107766118A (en) * 2016-08-16 2018-03-06 北京神州泰岳软件股份有限公司 A kind of method and apparatus of establishment KVM virtual machines
CN106502765A (en) * 2016-11-07 2017-03-15 中南大学 A kind of virtual machine placement method suitable for cloud data center
CN106911500A (en) * 2017-02-20 2017-06-30 北京百度网讯科技有限公司 The collocation method of physical machine, device and physical machine
CN110968444A (en) * 2018-09-30 2020-04-07 北京国双科技有限公司 Data processing method and device of cloud computing platform
CN110688130A (en) * 2019-10-14 2020-01-14 天津卓朗科技发展有限公司 Physical machine deployment method, physical machine deployment device, readable storage medium and electronic equipment
CN110908770A (en) * 2019-11-05 2020-03-24 安超云软件有限公司 Operation and creation method of virtual machine, virtual machine and virtual machine management platform
CN112383502A (en) * 2020-09-11 2021-02-19 深圳市证通电子股份有限公司 Method and system for uniformly monitoring physical machine and virtual machine and electronic device
CN112230940A (en) * 2020-09-18 2021-01-15 苏州浪潮智能科技有限公司 User mirror image making method and system based on Openstack bare computer service
CN111966384A (en) * 2020-10-20 2020-11-20 腾讯科技(深圳)有限公司 System updating method, device, equipment and computer readable storage medium
CN112506534A (en) * 2020-12-17 2021-03-16 武汉噢易云计算股份有限公司 Method and system for starting qcow2 format system mirror image by physical machine

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
林雄: "云计算平台中多维资源控制子系统的设计与实现", 《中国优秀硕士学位论文全文数据库》, no. 4 *
牟宏蕾;杨波;郝亚飞;: "业务支撑系统云化平台资源调度方案", 电信科学, no. 1 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113656185A (en) * 2021-09-01 2021-11-16 上海中通吉网络技术有限公司 System and method for quickly executing server operation in batch
CN114327663A (en) * 2022-01-04 2022-04-12 中国建设银行股份有限公司 Operating system installation method, system and related device
CN115037723A (en) * 2022-06-06 2022-09-09 中邮信息科技(北京)有限公司 Full-link system autonomous delivery method and device, electronic equipment and storage medium
CN115686907A (en) * 2022-10-31 2023-02-03 超聚变数字技术有限公司 Information configuration method and computing device
CN115686907B (en) * 2022-10-31 2023-10-10 超聚变数字技术有限公司 Information configuration method and computing device

Also Published As

Publication number Publication date
CN113312064B (en) 2024-03-26

Similar Documents

Publication Publication Date Title
CN113312064B (en) Method and device for installing and configuring physical machine and computer readable medium
US11652918B2 (en) Using automatically collected device problem information to route and guide users' requests
CN110442524B (en) Method and device for testing web service interface with authentication authorization
CN108845808B (en) Middleware installation method and device, computer equipment and storage medium
CN109375933B (en) Method and equipment for upgrading client
CN110119350B (en) Software development kit testing method, device and equipment and computer storage medium
WO2020248375A1 (en) Method and system for synchronizing data between databases, computer device and storage medium
CN106612204B (en) Service checking method and device
CN110058998B (en) Software testing method and device
CN108804399B (en) Form verification method and device
US8670441B2 (en) System and method for migrating a large scale batch of customer accounts from one VoIP system to another VoIP system
CN109032705B (en) Application program execution method and device, electronic equipment and readable storage medium
CN115004666A (en) Registration method, device, equipment and storage medium of Internet of things equipment
CN111930625B (en) Log acquisition method, device and system based on cloud service platform
US9294865B2 (en) Enhanced system and method for custom programming of large groups of phones without requiring additional equipment
CN109286692A (en) A kind of method of configuration server IPMI static ip address
CN113934552A (en) Method and device for determining function code, storage medium and electronic device
CN113110982A (en) Data access layer verification method and device, storage medium and electronic device
CN111045689B (en) Operation platform automatic installation and deployment system
CN112311570A (en) Method and device for opening network equipment
CN113507388B (en) Equipment deployment configuration method and device, electronic equipment and storage medium
CN113961198A (en) Micro-service automatic deployment method, device and storage medium
CN113934592A (en) Data processing method and device and storage medium
CN115037723A (en) Full-link system autonomous delivery method and device, electronic equipment and storage medium
CN115334087A (en) Control method suitable for eUICC cloud LPA service

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