CN116755728A - System deployment method and device, computer readable storage medium and electronic equipment - Google Patents

System deployment method and device, computer readable storage medium and electronic equipment Download PDF

Info

Publication number
CN116755728A
CN116755728A CN202311048249.5A CN202311048249A CN116755728A CN 116755728 A CN116755728 A CN 116755728A CN 202311048249 A CN202311048249 A CN 202311048249A CN 116755728 A CN116755728 A CN 116755728A
Authority
CN
China
Prior art keywords
service
module
cobbler server
operating system
client
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.)
Pending
Application number
CN202311048249.5A
Other languages
Chinese (zh)
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.)
Chengdu Baiwei Storage Technology Co ltd
Original Assignee
Chengdu Baiwei Storage Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chengdu Baiwei Storage Technology Co ltd filed Critical Chengdu Baiwei Storage Technology Co ltd
Priority to CN202311048249.5A priority Critical patent/CN116755728A/en
Publication of CN116755728A publication Critical patent/CN116755728A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a system deployment method, a device, a computer readable storage medium and electronic equipment, which are used for downloading an operating system, uploading the operating system to a built Cobbler server, connecting a network to a client, and installing the operating system to the client based on a dynamic host configuration protocol service, a simple file transfer protocol service, a domain name service, a pre-execution environment service and an unattended installation service in the built Cobbler server, so that the operating system installation efficiency is improved, and the manual installation cost is reduced.

Description

System deployment method and device, computer readable storage medium and electronic equipment
Technical Field
The present invention relates to the field of operating systems, and in particular, to a system deployment method, a device, a computer readable storage medium, and an electronic apparatus.
Background
Since the advent of the Windows operating system and the Linux operating system, a great deal of computer professional researchers and interested practitioners have been harvested for their advantages of being efficient and safe, being good at handling mixed work, and the like. In the cloud data era, various large companies and research institute server sites are currently limited to a mode of installing an operating system by using a USB flash disk and a system optical disk for single-machine system installation and personalized demand configuration by workers. The large companies or research needs to install the operating systems in large batches, so that the number is huge and the configuration is uniform. If an operating system is installed by adopting a manual single machine, the labor hour cost is high, and the requirement on platform hardware is high, so that a large number of old mainboards cannot install the system because the TPM2.0 hardware and the safe starting installation requirement are not met, and a large number of mainboards are wasted in resources and the application range of the system is shortened. And unexpected errors can be caused in the manual installation process, so that the working efficiency is low, and even project losses are serious.
Therefore, how to improve the installation efficiency of the operating system and reduce the hardware requirements of the platform, and widen the installation range of the system is a hot spot problem to be solved by those skilled in the art.
Disclosure of Invention
The technical problems to be solved by the invention are as follows: provided are a system deployment method, a system deployment device, a computer readable storage medium and an electronic device, which can improve the installation efficiency of an operating system.
In order to solve the technical problems, the invention adopts the following technical scheme:
a system deployment method, comprising the steps of:
downloading an operating system and uploading the operating system to a built Cobbler server, wherein the built Cobbler server integrates a dynamic host configuration protocol service, a simple file transfer protocol service, a domain name service, a pre-execution environment service and an unattended installation service;
the network is connected to the client;
and installing the operating system to the client based on the dynamic host configuration protocol service, the simple file transfer protocol service, the domain name service, the pre-execution environment service and the unattended installation service in the built Cobbler server.
In order to solve the technical problems, the invention adopts another technical scheme that:
a system deployment apparatus, comprising:
the system comprises a download module, a download module and a control module, wherein the download module is used for downloading an operating system and uploading the operating system to a built Cobbler server, and the built Cobbler server integrates dynamic host configuration protocol service, simple file transfer protocol service, domain name service, pre-execution environment service and unattended installation service;
The connection module is used for connecting to the client through a network;
and the installation module is used for installing the operating system to the client based on the dynamic host configuration protocol service, the simple file transfer protocol service, the domain name service, the pre-execution environment service and the unattended installation service in the built Cobbler server.
In order to solve the technical problems, the invention adopts another technical scheme that:
a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of the system deployment method described above.
In order to solve the technical problems, the invention adopts another technical scheme that:
an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the system deployment method described above when the computer program is executed.
The invention has the beneficial effects that: the operating system is downloaded and uploaded to the built Cobbler server, the network is connected to the client, the operating system is installed to the client based on a dynamic host configuration protocol service, a simple file transfer protocol service, a domain name service, a pre-execution environment service and an unattended installation service in the built Cobbler server, the operating system is not required to be installed in a single machine system by manually using a U disk and a system optical disk in the prior art, the built Cobbler server is utilized to integrate the dynamic host configuration protocol service (DHCP), the simple file transfer protocol service (TFTP), the Domain Name Service (DNS), the pre-execution environment service (PXE) and the unattended installation service (Kickstart) into a whole, and the operating system can be automatically deployed in batches at a remote time, so that the operating system installation efficiency is improved, and the manual installation cost is reduced.
Drawings
FIG. 1 is a flow chart of steps of a system deployment method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a system deployment device according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of auto-answer file configuration in a system deployment method according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of service integration of a Cobbler server in a system deployment method according to an embodiment of the present invention;
fig. 6 is an automatic deployment diagram in the system deployment method according to the embodiment of the present invention.
Detailed Description
In order to describe the technical contents, the achieved objects and effects of the present invention in detail, the following description will be made with reference to the embodiments in conjunction with the accompanying drawings.
Referring to fig. 1, a system deployment method includes the steps of:
downloading an operating system and uploading the operating system to a built Cobbler server, wherein the built Cobbler server integrates a dynamic host configuration protocol service, a simple file transfer protocol service, a domain name service, a pre-execution environment service and an unattended installation service;
the network is connected to the client;
and installing the operating system to the client based on the dynamic host configuration protocol service, the simple file transfer protocol service, the domain name service, the pre-execution environment service and the unattended installation service in the built Cobbler server.
From the above description, the beneficial effects of the invention are as follows: the operating system is downloaded and uploaded to the built Cobbler server, the network is connected to the client, the operating system is installed to the client based on a dynamic host configuration protocol service, a simple file transfer protocol service, a domain name service, a pre-execution environment service and an unattended installation service in the built Cobbler server, the operating system is not required to be installed in a single machine system by manually using a U disk and a system optical disk in the prior art, the built Cobbler server is utilized to integrate the dynamic host configuration protocol service (DHCP), the simple file transfer protocol service (TFTP), the Domain Name Service (DNS), the pre-execution environment service (PXE) and the unattended installation service (Kickstart) into a whole, and the operating system can be automatically deployed in batches at a remote time, so that the operating system installation efficiency is improved, and the manual installation cost is reduced.
Further, the downloading the operating system includes:
constructing an initial Cobbler server, and installing and configuring the initial Cobbler server to integrate domain name service, pre-execution environment service and unattended installation service;
Installing a dynamic host configuration protocol service to the initial Cobbler server, configuring the IP of the initial Cobbler server as the server IP of the dynamic host configuration protocol service, and setting a dynamic IP allocation range and a gateway network segment;
restarting the dynamic host configuration protocol service, and setting the starting self-starting of the dynamic host configuration protocol service to obtain a Cobbler server for installing the dynamic host configuration protocol service;
installing a simple file transfer protocol service to the Cobbler server for installing a dynamic host configuration protocol service, and configuring the guiding and starting parameters of the simple file transfer protocol service;
restarting the simple file transfer protocol service to obtain the built Cobbler server.
As can be seen from the above description, by installing and configuring the DHCP service, which is used to dynamically allocate an IP address to a client, and installing and configuring the TFTP service, which is used to obtain a startup file, the remote deployment of the operating system can be realized by using the built Cobbler server.
Further, before the network is connected to the client, the method includes:
customizing a mirror image corresponding to the operating system;
uploading the mirror image to the built Cobbler server;
Customizing an automatic response file corresponding to the operating system by using a system image manager according to the image;
uploading the automatic response file to the built Cobbler server;
and installing the file sharing service to the built Cobbler server, and setting a sharing directory of the file sharing service according to the mirror image and the automatic response file.
It can be seen from the above description that, before the network is connected to the client, the mirror image corresponding to the operating system and the auto-answer file corresponding to the operating system are customized for installation start and installation of the auto-configuration system, so as to implement automatic deployment of the operating system, and the installation configuration file sharing service (Samba) is used for sharing the mirror image and the auto-answer file for the system installation, so that the client is remotely controlled to complete the system deployment, and the automation level of the operating system deployment is improved.
Further, the installing the operating system to the client based on the dynamic host configuration protocol service, simple file transfer protocol service, domain name service, pre-execution environment service, and unattended installation service in the built Cobbler server includes:
Configuring the pre-execution environment of the client to be started as a first starting item based on a basic input/output system, and storing the setting of the basic input/output system;
sending a restarting instruction to the client;
receiving restart completion information corresponding to the restart instruction;
judging whether the client enters a pre-execution environment installation interface according to the restarting completion information, if yes, installing the operating system to the client based on the dynamic host configuration protocol service, the simple file transfer protocol service, the domain name service, the pre-execution environment service and the unattended installation service in the built Cobbler server.
As can be seen from the above description, after restarting the client, when the client enters the pre-execution environment installation interface, the operating system is installed, which can be realized even in a scenario where a large amount of operating systems are required to be installed, so that the installation efficiency of the operating system is improved, and meanwhile, the labor and time costs are reduced.
Further, the customizing the image corresponding to the operating system includes:
generating a base image based on a deployment in the operating system and an image tool environment run copy command;
Mounting the basic mirror image;
configuring a static IP address of the Cobbler server;
mapping the shared path of the Cobbler server as the partition path of the client;
judging whether the client supports TPM2.0 and a safety starting function, if not, modifying a registry of the client to obtain a modified registry, wherein the modified registry skips the system to check the TPM2.0 hardware and the safety starting function;
installing a preset execution file based on the shared path and the basic mirror image running system;
and canceling the mounting of the basic image and generating an image corresponding to the operating system.
As can be seen from the above description, when the client does not support the TPM2.0 and the secure boot function, the registry of the client is modified, so that the system skips checking on the TPM2.0 hardware and the secure boot function, thereby reducing the hardware requirement of the operating system installation platform and expanding the application range of the operating system.
Further, the customizing the automatic response file corresponding to the operating system according to the image using the system image manager includes:
starting a system image manager;
importing the install.wim file in the image to the system image manager;
And determining an account and a password, and customizing an automatic response file corresponding to the operating system in the system image manager according to the account and the password.
As can be seen from the above description, by customizing the automatic response file, the accuracy of the subsequent automatic installation of the operating system is ensured, and the installation error is avoided.
Further, the building the initial Cobbler server includes:
closing and disabling the Centos7 system firewall;
downloading a Cobbler server and related tools of the Cobbler server;
setting and checking the configuration of the Cobbler server;
restarting the Cobbler server, and setting the Cobbler server as a power-on self-start.
As can be seen from the above description, after the configuration of the Cobbler server is set, restarting the Cobbler server ensures that each configuration is synchronous and effective, and ensures that the automatic installation of the operating system is completed successfully.
Referring to fig. 2, another embodiment of the present invention provides a system deployment apparatus, including:
the system comprises a download module, a download module and a control module, wherein the download module is used for downloading an operating system and uploading the operating system to a built Cobbler server, and the built Cobbler server integrates dynamic host configuration protocol service, simple file transfer protocol service, domain name service, pre-execution environment service and unattended installation service;
The connection module is used for connecting to the client through a network;
and the installation module is used for installing the operating system to the client based on the dynamic host configuration protocol service, the simple file transfer protocol service, the domain name service, the pre-execution environment service and the unattended installation service in the built Cobbler server.
Further, the method further comprises the following steps:
the building module is used for building an initial Cobbler server, and installing and configuring the initial Cobbler server to integrate domain name service, pre-execution environment service and unattended installation service;
the first installation configuration module is used for installing a dynamic host configuration protocol service to the initial Cobbler server, configuring the IP of the initial Cobbler server as the server IP of the dynamic host configuration protocol service, and setting a dynamic IP distribution range and a gateway network segment;
the first restarting module is used for restarting the dynamic host configuration protocol service and setting the dynamic host configuration protocol service to start up and self-start to obtain a Cobbler server for installing the dynamic host configuration protocol service;
the second installation configuration module is used for installing the simple file transfer protocol service to the Cobbler server for installing the dynamic host configuration protocol service and configuring the guiding and starting parameters of the simple file transfer protocol service;
And the second restarting module is used for restarting the simple file transfer protocol service to obtain the built Cobbler server.
Further, the method further comprises the following steps:
the first definite module is used for customizing the mirror image corresponding to the operating system;
the first uploading module is used for uploading the mirror image to the built Cobbler server;
the second customizing module is used for customizing an automatic response file corresponding to the operating system by using a system image manager according to the image;
the second uploading module is used for uploading the automatic response file to the built Cobbler server;
and the third installation configuration module is used for installing the file sharing service to the built Cobbler server and setting a sharing directory of the file sharing service according to the mirror image and the automatic response file.
Further, the mounting module includes:
the configuration module is used for configuring the pre-execution environment of the client to be started as a first starting item based on a basic input/output system and storing the setting of the basic input/output system;
the sending module is used for sending a restarting instruction to the client;
the receiving module is used for receiving the restarting completion information corresponding to the restarting instruction;
The judging module is used for judging whether the client enters a pre-execution environment installation interface according to the restarting completion information, if yes, the operating system is installed to the client based on the dynamic host configuration protocol service, the simple file transfer protocol service, the domain name service, the pre-execution environment service and the unattended installation service in the built Cobbler server.
Further, the first definite module includes:
a base image generation module for generating a base image based on a deployment in the operating system and an image tool environment running copy command;
the mounting module is used for mounting the basic mirror image;
the configuration module is used for configuring the static IP address of the Cobbler server;
the mapping module is used for mapping the shared path of the Cobbler server to the partition path of the client;
the judging module is used for judging whether the client supports TPM2.0 and a safety starting function, if not, modifying a registry of the client to obtain a modified registry, and the modified registry skips the system to check the TPM2.0 hardware and the safety starting function;
the file installation module is used for installing a preset execution file based on the shared path and the basic mirror image running system;
And the image generation module is used for canceling the mounting of the basic image and generating an image corresponding to the operating system.
Further, the second customizing module includes:
the starting module is used for starting the system image manager;
the file importing module is used for importing the install.wim file in the image to the system image manager;
and the file customizing module is used for determining an account and a password, and customizing an automatic response file corresponding to the operating system in the system image manager according to the account and the password.
Further, the building module comprises:
the closing module is used for closing and disabling the firewall of the Centos7 system;
the downloading module is used for downloading the Cobbler server and related tools of the Cobbler server;
a setting module for setting and checking the configuration of the Cobbler server;
and the restarting module is used for restarting the Cobbler server and setting the Cobbler server as a starting self-starting module.
Another embodiment of the present invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the system deployment method described above.
Referring to fig. 3, another embodiment of the present invention provides an electronic device, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the processor implements the steps of the system deployment method described above when executing the computer program.
The system deployment method, the device, the computer readable storage medium and the electronic equipment of the invention can be applied to various companies, universities, research institutions and the like which need to install various Windows and Linux operating systems in large batches, and the following description is given by the specific embodiments:
referring to fig. 1 and fig. 4-6, a first embodiment of the present invention is as follows:
a system deployment method, comprising the steps of:
in an alternative embodiment, the operating system includes a Windows operating system or a Linux operating system, and in this embodiment, a Windows 11 operating system is illustrated as an example.
S1, an initial Cobbler server is built, and an initial Cobbler server integrated Domain Name Service (DNS), a pre-execution environment service (PXE) and an unattended installation service (Kickstart) are installed and configured, wherein the method specifically comprises the following steps:
in an alternative embodiment, the initial Cobbler server is built using Centos7 (open source server operating system for Centos project release) as the Cobbler server system.
S11, closing and disabling a firewall of the Centos7 system;
s12, downloading relevant tools of the Cobbler server;
s13, setting and checking the configuration of the Cobbler server;
s14, restarting the Cobbler server, setting the Cobbler server as a starting self-starting state, and enabling all configurations to be synchronous and effective.
S2, installing a Dynamic Host Configuration Protocol (DHCP) service to the initial Cobbler server, configuring the IP of the initial Cobbler server as the server IP of the dynamic host configuration protocol service, and setting a dynamic IP allocation range and a gateway network segment;
in an alternative embodiment, the static IP address and subnet mask of the Server need to be set, and the subnet, subnet mask, DNS Server address and dynamic IP address allocation range of the DHCP service need to be set, so that the setting of the subnet and subnet mask of the DHCP service must be consistent with the Server.
S3, restarting the dynamic host configuration protocol service, and setting the starting self-starting of the dynamic host configuration protocol service to obtain a Cobbler server for installing the dynamic host configuration protocol service;
s4, installing a simple file transfer protocol service (TFTP) to the Cobbler server for installing the dynamic host configuration protocol service, and configuring the guiding and starting parameters of the simple file transfer protocol service;
Wherein, the simple file transfer protocol service comprises TFTP-Server, httpd and xinetd service;
specifically, TFTP-Server, httpd and xinetd services are installed to the Cobbler Server for installing dynamic host configuration protocol services, TFTP is configured, and PXE Windows 11 boot and startup parameters are configured.
In an alternative embodiment, TFTP service configuration only needs to set disable to no, transport protocol to UDP, transport flags to IPV4, and the remaining parameters default, so that TFTP file transfer service may be used.
S5, restarting the simple file transfer protocol service to obtain the built Cobbler server.
Specifically, restarting the TFTP-Server, httpd and xinnetd services to obtain the built Cobbler Server.
S6, downloading an operating system, and uploading the operating system to a built Cobbler server, wherein the built Cobbler server integrates a dynamic host configuration protocol service, a simple file transfer protocol service, a domain name service, a pre-execution environment service and an unattended installation service;
specifically, the ISO file of the Windows 11 operating system is downloaded from the microsoft corporation network, and the ISO file is uploaded to the file transfer directory of the simple file transfer protocol service configuration in the built Cobbler server.
S7, customizing a mirror image corresponding to the operating system, wherein the method specifically comprises the following steps:
s71, generating a basic mirror image based on the deployment in the operating system and the image tool environment running copy command;
specifically, a Windows ADK tool and a WinPE tool are installed on a Windows 11 operating system, the deployment and image tool environment in the Windows 11 operating system is opened by an administrator identity, and a copy (copy) command is executed to generate a basic WinPE image.
S72, mounting the basic mirror image;
specifically, the running mirror image mounting command mounts the basic WinPE mirror image.
S73, configuring a static IP address of the Cobbler server;
specifically, the echo command is operated to configure the static IP address of the Cobbler server, so that the normal and communication between the client and the network of the server is ensured.
S74, mapping the shared path of the Cobbler server as the partition path of the client;
specifically, the running network mapping command maps the shared path of the Cobbler server to the partition path of the client so as to share the mirror image and the automatic response file.
S75, judging whether the client supports TPM2.0 and a safety starting function, if not, modifying a registry of the client to obtain a modified registry, wherein the modified registry skips the system to check the TPM2.0 hardware and the safety starting function;
Specifically, modifying the registry BypassTPMCheck (bypassing the TPM detection) and BypassSecureBootCheck (bypassing the secure boot detection) of the client, and skipping the Windows11 system to check the TPM2.0 hardware and secure boot functions.
S76, installing a preset execution file based on the shared path and the basic mirror image running system;
the preset execution file is a setup.exe execution file;
specifically, the run switch path command enters the shared path and the run switch path command enters the shared Windows11 mirror directory.
And S77, canceling the mounting of the basic mirror image and generating a mirror image corresponding to the operating system.
Specifically, the running imagex/unmount command cancels the mounting of the basic WinPE image, and the running MakeWinPEMedia command generates the WinPE image corresponding to the Windows11 operating system.
S8, uploading the mirror image to the built Cobbler server;
s9, customizing an automatic response file corresponding to the operating system by using a system image manager according to the image, wherein the automatic response file specifically comprises the following steps as shown in FIG. 4:
s91, starting a system image manager;
specifically, the Windows11 system image manager is turned on.
S92, importing the installment.wim file in the mirror image to the system image manager;
specifically, the install.wim file in the WinPE image is imported to the Windows 11 system image manager.
S93, determining an account and a password, and customizing an automatic response file corresponding to the operating system in the system image manager according to the account and the password.
In an alternative embodiment, as shown in fig. 4, the detailed configuration procedure of the auto-answer file is:
selecting an installation starting file in an ISO file of a Windows 11 system as a catalogue file; configuring regions and language options according to actual conditions; accepting EULA protocol; selecting a mirror version; configuring disk formatting and system partition size; setting a user name, a password and a computer name; setting a network and a time zone; and setting an automatic login user according to the requirement.
S10, uploading the automatic response file to the built Cobbler server;
s11, installing a file sharing service (Samba) to the built Cobbler server, and setting a sharing directory of the file sharing service according to the mirror image and the automatic response file;
specifically, a file sharing service is installed to the built Cobbler server, a shared directory of the file sharing service is set according to the WinPE mirror image and the automatic response file to be used for sharing the WinPE mirror image and the automatic response file of the Windows 11 system, the file sharing service is restarted, and the startup self-starting is set.
And S12, connecting a network to the client to ensure that the client and the Cobbler server of the server are in the same network segment.
S13, installing the operating system to the client based on the dynamic host configuration protocol service, the simple file transfer protocol service, the domain name service, the pre-execution environment service and the unattended installation service in the built Cobbler server, wherein the method specifically comprises the following steps of:
s131, configuring a pre-execution environment (PXE) start of the client based on a Basic Input Output System (BIOS) as a first start item, and saving the setting of the basic input output system;
specifically, the pre-execution environment of the client is configured to be started as a first starting item based on the basic input/output system, corresponding functions and features are correctly configured, and the setting of the basic input/output system is saved.
S132, sending a restarting instruction to the client.
S133, receiving restarting completion information corresponding to the restarting instruction.
And S134, judging whether the client enters a pre-execution environment installation interface according to the restarting completion information, if so, installing the operating system to the client based on the dynamic host configuration protocol service, the simple file transfer protocol service, the domain name service, the pre-execution environment service and the unattended installation service in the built Cobbler server.
Specifically, whether the client enters a pre-execution environment installation interface is judged according to the restarting completion information, if yes, the Windows 11 operating system is selected for automatic installation based on the dynamic host configuration protocol service, the simple file transfer protocol service, the domain name service, the pre-execution environment service and the unattended installation service in the built Cobbler server, and the automatically installed Windows 11 operating system can be used after the system installation is completed.
As shown in fig. 5, the Cobbler server set DHCP, DNS, TFTP, kickstart, samba, PXE and the like of the present invention serve one server more, which is convenient for managing DHCP, TFTP, DNS, kickstart and other services simultaneously, and saves server resources, and meanwhile, the client only needs to set PXE as the first start item, so that the client can enter the PXE start installation procedure after being started.
The following is an automatic deployment step of the Windows 11 operating system in the actual application scenario, as shown in fig. 6:
(1) Run systemctl start cobblerd commands start Cobbler service;
(2) Running a Cobbler check command to check whether the Cobbler service is running normally;
(3) Running cobbler sync command to synchronize DHCP service and TFTP service configuration;
(4) Copying the TFTP boot file;
(5) Run systemctl start dhcpd instructs start of DHCP dynamic IP allocation service;
(6) The control client sets PXE start in the BIOS start item as a first start item;
(7) The control client sends an IP obtaining request;
(8) After receiving the IP request acquired by the client, distributing dynamic IP to the client by a DHCP dynamic IP pool, and informing the client of TFTP file position information;
(9) Sending a TFTP start guide file to a client;
(10) Selecting a Windows 11 operating system on a system installation starting interface;
(11) Loading a TFTP starting guide file and a configuration file by a client;
(12) Receiving installation information requested by a client, and sending an installation mirror image and an automatic response file requested by the client to the client;
(13) The client loads the mirror image and an automatic response (KS) file to complete automatic system installation.
The built Cobbler server integrates DHCP, TFTP, DNS, PXE, kickstart and other multiple services into a whole, so that the services such as DHCP, TFTP, DNS, kickstart are convenient to manage simultaneously, server resources are saved, and the operating systems can be automatically deployed in batches in a remote mode at the same time in the occasions of large companies, universities, research facilities and the like where the operating systems (such as Windows operating systems or LINUX operating systems) are required to be installed in batches, the operating system installation efficiency is improved, and the manual installation cost is reduced; in addition, the requirement of the operating system on hardware installation is reduced, and the application range of the operating system on the old main board equipment is widened.
Referring to fig. 2, a second embodiment of the present invention is as follows:
a system deployment apparatus, comprising:
the system comprises a download module, a download module and a control module, wherein the download module is used for downloading an operating system and uploading the operating system to a built Cobbler server, and the built Cobbler server integrates dynamic host configuration protocol service, simple file transfer protocol service, domain name service, pre-execution environment service and unattended installation service;
the connection module is used for connecting to the client through a network;
and the installation module is used for installing the operating system to the client based on the dynamic host configuration protocol service, the simple file transfer protocol service, the domain name service, the pre-execution environment service and the unattended installation service in the built Cobbler server.
Further, the method further comprises the following steps: the building module is used for building an initial Cobbler server, and installing and configuring the initial Cobbler server to integrate domain name service, pre-execution environment service and unattended installation service; the first installation configuration module is used for installing a dynamic host configuration protocol service to the initial Cobbler server, configuring the IP of the initial Cobbler server as the server IP of the dynamic host configuration protocol service, and setting a dynamic IP distribution range and a gateway network segment; the first restarting module is used for restarting the dynamic host configuration protocol service and setting the dynamic host configuration protocol service to start up and self-start to obtain a Cobbler server for installing the dynamic host configuration protocol service; the second installation configuration module is used for installing the simple file transfer protocol service to the Cobbler server for installing the dynamic host configuration protocol service and configuring the guiding and starting parameters of the simple file transfer protocol service; and the second restarting module is used for restarting the simple file transfer protocol service to obtain the built Cobbler server.
Further, the method further comprises the following steps: the first definite module is used for customizing the mirror image corresponding to the operating system; the first uploading module is used for uploading the mirror image to the built Cobbler server; the second customizing module is used for customizing an automatic response file corresponding to the operating system by using a system image manager according to the image; the second uploading module is used for uploading the automatic response file to the built Cobbler server; and the third installation configuration module is used for installing the file sharing service to the built Cobbler server and setting a sharing directory of the file sharing service according to the mirror image and the automatic response file.
Further, the mounting module includes: the configuration module is used for configuring the pre-execution environment of the client to be started as a first starting item based on a basic input/output system and storing the setting of the basic input/output system; the sending module is used for sending a restarting instruction to the client; the receiving module is used for receiving the restarting completion information corresponding to the restarting instruction; the judging module is used for judging whether the client enters a pre-execution environment installation interface according to the restarting completion information, if yes, the operating system is installed to the client based on the dynamic host configuration protocol service, the simple file transfer protocol service, the domain name service, the pre-execution environment service and the unattended installation service in the built Cobbler server.
Further, the first definite module includes: a base image generation module for generating a base image based on a deployment in the operating system and an image tool environment running copy command; the mounting module is used for mounting the basic mirror image; the configuration module is used for configuring the static IP address of the Cobbler server; the mapping module is used for mapping the shared path of the Cobbler server to the partition path of the client; the judging module is used for judging whether the client supports TPM2.0 and a safety starting function, if not, modifying a registry of the client to obtain a modified registry, and the modified registry skips the system to check the TPM2.0 hardware and the safety starting function; the file installation module is used for installing a preset execution file based on the shared path and the basic mirror image running system; and the image generation module is used for canceling the mounting of the basic image and generating an image corresponding to the operating system.
Further, the second customizing module includes: the starting module is used for starting the system image manager; the file importing module is used for importing the install.wim file in the image to the system image manager; and the file customizing module is used for determining an account and a password, and customizing an automatic response file corresponding to the operating system in the system image manager according to the account and the password.
Further, the building module comprises: the closing module is used for closing and disabling the firewall of the Centos7 system; the downloading module is used for downloading the Cobbler server and related tools of the Cobbler server; a setting module for setting and checking the configuration of the Cobbler server; and the restarting module is used for restarting the Cobbler server and setting the Cobbler server as a starting self-starting module.
The third embodiment of the invention is as follows:
a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the system deployment method of the first embodiment.
Referring to fig. 3, a fourth embodiment of the present invention is as follows:
an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the system deployment method of embodiment one when the computer program is executed.
In summary, the system deployment method, the device, the computer readable storage medium and the electronic equipment provided by the invention download the operating system, upload the operating system to the built Cobbler server, connect the network to the client, install the operating system to the client based on the dynamic host configuration protocol service, the simple file transfer protocol service, the domain name service, the pre-execution environment service and the unattended installation service in the built Cobbler server, and do not need to manually use the U disk and the system optical disk to install a single machine system like the prior art, but use the Cobbler server, integrate the built Cobbler server into a whole with the dynamic host configuration protocol service, the simple file transfer protocol service, the domain name service, the pre-execution environment service and the unattended installation service, and can remotely and simultaneously automatically deploy the operating system in batches, thereby improving the installation efficiency of the operating system and reducing the manual installation cost; when the client does not support the TPM2.0 and the secure start function, the registry of the client is modified, and the system skips the examination of the TPM2.0 hardware and the secure start function, so that the hardware requirement of an operating system installation platform is reduced, and the application range of the operating system is enlarged.
In the foregoing embodiments of the present application, it should be understood that the disclosed method, apparatus, computer readable storage medium and electronic device may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, and for example, the division of the modules is merely a logical function division, and there may be additional divisions when actually implemented, for example, multiple components or modules may be combined or integrated into another apparatus, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with respect to each other may be an indirect coupling or communication connection via some interfaces, devices or components or modules, which may be in electrical, mechanical, or other forms.
The components illustrated as separate components may or may not be physically separate, and components shown as components may or may not be physical modules, i.e., may be located in one place, or may be distributed over multiple network modules. Some or all of the components may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional module in each embodiment of the present invention may be integrated into one processing module, or each component may exist alone physically, or two or more modules may be integrated into one module. The integrated modules may be implemented in hardware or in software functional modules.
The integrated modules, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
It should be noted that, for the sake of simplicity of description, the foregoing method embodiments are all expressed as a series of combinations of actions, but it should be understood by those skilled in the art that the present invention is not limited by the order of actions described, as some steps may be performed in other order or simultaneously in accordance with the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily all required for the present invention.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to the related descriptions of other embodiments.
The foregoing description is only illustrative of the present invention and is not intended to limit the scope of the invention, and all equivalent changes made by the specification and drawings of the present invention, or direct or indirect application in the relevant art, are included in the scope of the present invention.

Claims (16)

1. A system deployment method, comprising the steps of:
downloading an operating system and uploading the operating system to a built Cobbler server, wherein the built Cobbler server integrates a dynamic host configuration protocol service, a simple file transfer protocol service, a domain name service, a pre-execution environment service and an unattended installation service;
The network is connected to the client;
and installing the operating system to the client based on the dynamic host configuration protocol service, the simple file transfer protocol service, the domain name service, the pre-execution environment service and the unattended installation service in the built Cobbler server.
2. The system deployment method of claim 1, wherein the downloading of the operating system is preceded by:
constructing an initial Cobbler server, and installing and configuring the initial Cobbler server to integrate domain name service, pre-execution environment service and unattended installation service;
installing a dynamic host configuration protocol service to the initial Cobbler server, configuring the IP of the initial Cobbler server as the server IP of the dynamic host configuration protocol service, and setting a dynamic IP allocation range and a gateway network segment;
restarting the dynamic host configuration protocol service, and setting the starting self-starting of the dynamic host configuration protocol service to obtain a Cobbler server for installing the dynamic host configuration protocol service;
installing a simple file transfer protocol service to the Cobbler server for installing a dynamic host configuration protocol service, and configuring the guiding and starting parameters of the simple file transfer protocol service;
Restarting the simple file transfer protocol service to obtain the built Cobbler server.
3. A system deployment method according to claim 1, wherein before the network is connected to the client, comprising:
customizing a mirror image corresponding to the operating system;
uploading the mirror image to the built Cobbler server;
customizing an automatic response file corresponding to the operating system by using a system image manager according to the image;
uploading the automatic response file to the built Cobbler server;
and installing the file sharing service to the built Cobbler server, and setting a sharing directory of the file sharing service according to the mirror image and the automatic response file.
4. The system deployment method of claim 3 wherein said installing the operating system to the client based on the dynamic host configuration protocol service, simple file transfer protocol service, domain name service, pre-execution environment service, and unattended installation service in the built Cobbler server comprises:
configuring the pre-execution environment of the client to be started as a first starting item based on a basic input/output system, and storing the setting of the basic input/output system;
Sending a restarting instruction to the client;
receiving restart completion information corresponding to the restart instruction;
judging whether the client enters a pre-execution environment installation interface according to the restarting completion information, if yes, installing the operating system to the client based on the dynamic host configuration protocol service, the simple file transfer protocol service, the domain name service, the pre-execution environment service and the unattended installation service in the built Cobbler server.
5. A system deployment method according to claim 3, wherein customizing the image corresponding to the operating system comprises:
generating a base image based on a deployment in the operating system and an image tool environment run copy command;
mounting the basic mirror image;
configuring a static IP address of the Cobbler server;
mapping the shared path of the Cobbler server as the partition path of the client;
judging whether the client supports TPM2.0 and a safety starting function, if not, modifying a registry of the client to obtain a modified registry, wherein the modified registry skips the system to check the TPM2.0 hardware and the safety starting function;
Installing a preset execution file based on the shared path and the basic mirror image running system;
and canceling the mounting of the basic mirror image and generating a WinPE mirror image corresponding to the operating system.
6. A system deployment method according to claim 3, wherein said customizing an auto-answer file corresponding to said operating system using a system image manager according to said image comprises:
starting a system image manager;
importing the install.wim file in the image to the system image manager;
and determining an account and a password, and customizing an automatic response file corresponding to the operating system in the system image manager according to the account and the password.
7. The system deployment method of claim 2, wherein the constructing an initial Cobbler server comprises:
closing and disabling the Centos7 system firewall;
downloading a Cobbler server and related tools of the Cobbler server;
setting and checking the configuration of the Cobbler server;
restarting the Cobbler server, and setting the Cobbler server as a power-on self-start.
8. A system deployment apparatus, comprising:
The system comprises a download module, a download module and a control module, wherein the download module is used for downloading an operating system and uploading the operating system to a built Cobbler server, and the built Cobbler server integrates dynamic host configuration protocol service, simple file transfer protocol service, domain name service, pre-execution environment service and unattended installation service;
the connection module is used for connecting to the client through a network;
and the installation module is used for installing the operating system to the client based on the dynamic host configuration protocol service, the simple file transfer protocol service, the domain name service, the pre-execution environment service and the unattended installation service in the built Cobbler server.
9. The system deployment apparatus of claim 8 further comprising:
the building module is used for building an initial Cobbler server, and installing and configuring the initial Cobbler server to integrate domain name service, pre-execution environment service and unattended installation service;
the first installation configuration module is used for installing a dynamic host configuration protocol service to the initial Cobbler server, configuring the IP of the initial Cobbler server as the server IP of the dynamic host configuration protocol service, and setting a dynamic IP distribution range and a gateway network segment;
The first restarting module is used for restarting the dynamic host configuration protocol service and setting the dynamic host configuration protocol service to start up and self-start to obtain a Cobbler server for installing the dynamic host configuration protocol service;
the second installation configuration module is used for installing the simple file transfer protocol service to the Cobbler server for installing the dynamic host configuration protocol service and configuring the guiding and starting parameters of the simple file transfer protocol service;
and the second restarting module is used for restarting the simple file transfer protocol service to obtain the built Cobbler server.
10. The system deployment apparatus of claim 8 further comprising:
the first definite module is used for customizing the mirror image corresponding to the operating system;
the first uploading module is used for uploading the mirror image to the built Cobbler server;
the second customizing module is used for customizing an automatic response file corresponding to the operating system by using a system image manager according to the image;
the second uploading module is used for uploading the automatic response file to the built Cobbler server;
And the third installation configuration module is used for installing the file sharing service to the built Cobbler server and setting a sharing directory of the file sharing service according to the mirror image and the automatic response file.
11. The system deployment apparatus of claim 10 wherein the mounting module comprises:
the configuration module is used for configuring the pre-execution environment of the client to be started as a first starting item based on a basic input/output system and storing the setting of the basic input/output system;
the sending module is used for sending a restarting instruction to the client;
the receiving module is used for receiving the restarting completion information corresponding to the restarting instruction;
the judging module is used for judging whether the client enters a pre-execution environment installation interface according to the restarting completion information, if yes, the operating system is installed to the client based on the dynamic host configuration protocol service, the simple file transfer protocol service, the domain name service, the pre-execution environment service and the unattended installation service in the built Cobbler server.
12. The system deployment device of claim 10, wherein the first fixed module comprises:
A base image generation module for generating a base image based on a deployment in the operating system and an image tool environment running copy command;
the mounting module is used for mounting the basic mirror image;
the configuration module is used for configuring the static IP address of the Cobbler server;
the mapping module is used for mapping the shared path of the Cobbler server to the partition path of the client;
the judging module is used for judging whether the client supports TPM2.0 and a safety starting function, if not, modifying a registry of the client to obtain a modified registry, and the modified registry skips the system to check the TPM2.0 hardware and the safety starting function;
the file installation module is used for installing a preset execution file based on the shared path and the basic mirror image running system;
and the image generation module is used for canceling the mounting of the basic image and generating an image corresponding to the operating system.
13. The system deployment device of claim 10, wherein the second customization module comprises:
the starting module is used for starting the system image manager;
the file importing module is used for importing the install.wim file in the image to the system image manager;
And the file customizing module is used for determining an account and a password, and customizing an automatic response file corresponding to the operating system in the system image manager according to the account and the password.
14. A system deployment device according to claim 9, wherein the building module comprises:
the closing module is used for closing and disabling the firewall of the Centos7 system;
the downloading module is used for downloading the Cobbler server and related tools of the Cobbler server;
a setting module for setting and checking the configuration of the Cobbler server;
and the restarting module is used for restarting the Cobbler server and setting the Cobbler server as a starting self-starting module.
15. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of a system deployment method according to any of claims 1 to 7.
16. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of a system deployment method according to any of claims 1 to 7 when the computer program is executed.
CN202311048249.5A 2023-08-21 2023-08-21 System deployment method and device, computer readable storage medium and electronic equipment Pending CN116755728A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311048249.5A CN116755728A (en) 2023-08-21 2023-08-21 System deployment method and device, computer readable storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311048249.5A CN116755728A (en) 2023-08-21 2023-08-21 System deployment method and device, computer readable storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN116755728A true CN116755728A (en) 2023-09-15

Family

ID=87957639

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311048249.5A Pending CN116755728A (en) 2023-08-21 2023-08-21 System deployment method and device, computer readable storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN116755728A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106897093A (en) * 2017-02-24 2017-06-27 郑州云海信息技术有限公司 A kind of dispositions method and device of windows operating systems
CN115883348A (en) * 2022-12-07 2023-03-31 浪潮工业互联网股份有限公司 Cobbler-based automatic deployment method, device and medium for all-in-one machine

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106897093A (en) * 2017-02-24 2017-06-27 郑州云海信息技术有限公司 A kind of dispositions method and device of windows operating systems
CN115883348A (en) * 2022-12-07 2023-03-31 浪潮工业互联网股份有限公司 Cobbler-based automatic deployment method, device and medium for all-in-one machine

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
IMPLUSE: "Windows 7 SP1无人值守自动应答文件制作", pages 1 - 21, Retrieved from the Internet <URL:https://www.cnblogs.com/pluse/p/8528122.html> *
IMPLUSE: "使用Cobbler批量部署Linux和Windows:CentOS/Ubuntu批量安装(二)", pages 1 - 6, Retrieved from the Internet <URL:https://www.cnblogs.com/pluse/p/8508524.html> *
IMPLUSE: "使用Cobbler批量部署Linux和Windows:Cobbler服务端部署(一)", pages 1 - 7, Retrieved from the Internet <URL:《https://www.cnblogs.com/pluse/p/8316914.html》> *
IMPLUSE: "使用Cobbler批量部署Linux和Windows:Windows系统批量安装(三)", pages 1 - 12, Retrieved from the Internet <URL:https://www.cnblogs.com/pluse/p/8508538.html> *

Similar Documents

Publication Publication Date Title
US7650490B2 (en) Embedded device for implementing a boot process on a host
US7558867B2 (en) Automatic firmware upgrade for a thin client using one or more FTP servers
CN104932919A (en) Linux unattended installation implementation method
EP3518099B1 (en) Installation of operating system
CN107391193A (en) A kind of client, the system and method for configuration server
CN112328262A (en) Deployment method, system and device of operating system and electronic equipment
WO2004025486A2 (en) Use of off-motherboard resources in a computer system
CN103049295A (en) Network installation method for Linux operating systems with godson platforms
CN113741914B (en) Operating system installation mechanism
CN102662884B (en) Device driving program configuration method based on network
CN107066287A (en) The method and system of ESXI virtual machine automatic deployment installation systems
CN112130917A (en) Remote loading system mirroring method
CN110753088A (en) System deployment method and device
US20190205109A1 (en) Computer system, baseboard management controller, and os installation method
CN114138283A (en) Remote automatic deployment method, device, terminal and storage medium for operating system
CN114115917A (en) Operating system installation method and device
US20030120827A1 (en) Method and apparatus for automatically detecting machine states during an operating system installation through a network
CN111200527B (en) Method for automatically discovering and deploying bare computer based on ironic
CN112486508B (en) Deployment method of operating system, server and computer storage medium
CN109471665B (en) Method for automatically installing Windows operating system
CN112130953A (en) Application deployment method for Windows Hyper-V virtualization
CN109445803A (en) A kind of method of automated quick deployment installation K-UX operating system
CN107659621B (en) RAID control card configuration method and device
CN116755728A (en) System deployment method and device, computer readable storage medium and electronic equipment
CN103475694A (en) Parallel configuration method of cloud computing system

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20230915