Movatterモバイル変換


[0]ホーム

URL:


CN110737479B - Method for starting operating system without disk, server and readable storage medium - Google Patents

Method for starting operating system without disk, server and readable storage medium
Download PDF

Info

Publication number
CN110737479B
CN110737479BCN201910833639.0ACN201910833639ACN110737479BCN 110737479 BCN110737479 BCN 110737479BCN 201910833639 ACN201910833639 ACN 201910833639ACN 110737479 BCN110737479 BCN 110737479B
Authority
CN
China
Prior art keywords
mode
starting
operating system
file
boot
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910833639.0A
Other languages
Chinese (zh)
Other versions
CN110737479A (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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co LtdfiledCriticalPing An Technology Shenzhen Co Ltd
Priority to CN201910833639.0ApriorityCriticalpatent/CN110737479B/en
Publication of CN110737479ApublicationCriticalpatent/CN110737479A/en
Application grantedgrantedCritical
Publication of CN110737479BpublicationCriticalpatent/CN110737479B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

The invention provides a method, a server and a readable storage medium for starting an operating system without a disk, wherein the method comprises the following steps: receiving an operating system starting instruction; according to an operating system starting instruction, entering a PXE diskless starting mode; in a PXE diskless starting mode, receiving a guide mode selection instruction; determining a guide mode type according to the guide mode selection instruction; loading the kernel corresponding to the boot mode type into the memory according to the boot mode type and through the boot file; entering an operating system and starting the operating system; according to the invention, two different kernels are combined in one diskless system, and two different kernel versions share one set of configuration file, so that the server can automatically enter BOOTos no matter which mode of PXE is started, and the server can be not required to enter for corresponding configuration; meanwhile, the method and the system can provide convenience for initializing all servers, effectively improve deployment efficiency and save time cost.

Description

Method for starting operating system without disk, server and readable storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, a server, and a readable storage medium for starting an operating system without a disk.
Background
With the development of computers, especially the arrival of big data, the number of servers on the shelf will be increasing for companies, from the first few to the later hundreds of thousands of servers, which will put a certain stress on the deployment personnel of the servers, and consume a lot of time on installing the operating system.
PXE is an English preboot execute environment abbreviation, namely a pre-boot execution environment, is the latest technology developed by Intel corporation, works in a network mode of Client/Server, supports a workstation to download images from a remote Server through a network, and thus supports the operation system to be started through the network, in the starting process, a terminal requests the Server to allocate an IP address, and then downloads a starting software package to a local memory for execution by using a TFTP (TRIVIAL FILE TRANSFER protocol) or MTFTP (multi-cast TRIVIAL FILE TRANSFER protocol), and the starting software package completes terminal basic software setting, thereby guiding the terminal operation system pre-installed in the Server.
At present, the PXE mainly adopts a BIOS mode or a UEFI mode to boot an operating system, however, only one mode corresponds to a diskless system, which is not beneficial to the initialization operation of the server, and the deployment efficiency of the server is not high.
Disclosure of Invention
To solve at least one of the above technical problems, the present invention proposes a diskless boot operating system method, a server, and a computer readable storage medium.
To achieve the above object, a first aspect of the present invention provides a method for starting an operating system without disk, including:
receiving an operating system starting instruction;
According to the operating system starting instruction, entering a PXE diskless starting mode;
receiving a boot mode selection instruction in the PXE diskless starting mode;
determining a guide mode type according to the guide mode selection instruction;
Loading a kernel corresponding to the guide mode type into a memory according to the guide mode type and through a guide file;
And entering an operating system and starting the operating system.
In this scheme, according to the boot mode type and through a boot file, loading a kernel corresponding to the boot mode type into a memory, further includes:
loading vmlinux to the memory through the boot file of the PXE;
after the vmlinux runs, the initrd. Img or initramfs switch root directory is loaded.
In this solution, the boot mode includes a BIOS mode and a UEFI mode.
Further, the kernel includes two versions, and the two versions are respectively in one-to-one correspondence with the BIOS mode and the UEFI mode.
In this solution, the method for starting the operating system without a disk further includes:
Receiving and storing a newly added kernel version in a lib catalog in an original system;
Receiving an added module file for the newly added kernel version;
And receiving the written drive installation script according to the added module file.
In this scheme, after receiving the drive installation script of writing, still include:
And adding the drive name of the new hardware device in the dirverlist. Con configuration file, or placing the ko file of the drive in a corresponding directory and adding the ko file into the dirverlist. Con configuration file to realize loading of the drive.
The second aspect of the present invention also proposes a server comprising: the memory comprises a method program for starting the operating system without disk, and the method program for starting the operating system without disk realizes the following steps when being executed by the processor:
receiving an operating system starting instruction;
According to the operating system starting instruction, entering a PXE diskless starting mode;
receiving a boot mode selection instruction in the PXE diskless starting mode;
determining a guide mode type according to the guide mode selection instruction;
Loading a kernel corresponding to the guide mode type into a memory according to the guide mode type and through a guide file;
And entering an operating system and starting the operating system.
In this scheme, according to the boot mode type and through a boot file, loading a kernel corresponding to the boot mode type into a memory, further includes:
loading vmlinux to the memory through the boot file of the PXE;
after the vmlinux runs, the initrd. Img or initramfs switch root directory is loaded.
In this solution, when the method program of the diskless start operating system is executed by the processor, the following steps are further implemented:
Receiving and storing a newly added kernel version in a lib catalog in an original system;
Receiving an added module file for the newly added kernel version;
And receiving the written drive installation script according to the added module file.
The third aspect of the present invention also proposes a computer readable storage medium, in which a method program for starting an operating system without a disk is included, which method program, when executed by a processor, implements the method steps of starting an operating system without a disk as described above.
The method and the device receive the starting instruction of the operating system; according to the operating system starting instruction, entering a PXE diskless starting mode; receiving a boot mode selection instruction in the PXE diskless starting mode; determining a guide mode type according to the guide mode selection instruction; loading a kernel corresponding to the guide mode type into a memory according to the guide mode type and through a guide file; and entering an operating system and starting the operating system. According to the invention, two different kernels are combined in one diskless system, and the two different kernel versions share one set of configuration file, so that the server can automatically enter BOOTos no matter which mode of PXE is started, and the corresponding configuration can be performed without entering the server. Meanwhile, the method and the system can provide convenience for initializing all servers, effectively improve deployment efficiency and save time cost.
Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
Drawings
FIG. 1 is a flow chart of a method of the present invention for starting an operating system without disk;
FIG. 2 is a flow chart of a method of booting an operating system in a diskless boot operating system of the present invention;
FIG. 3 is a flow chart of a method for entering an operating system based on a PXE mode of the present invention;
FIG. 4 illustrates a block diagram of a server of a diskless boot operating system of the present invention.
Detailed Description
In order that the above-recited objects, features and advantages of the present application will be more clearly understood, a more particular description of the application will be rendered by reference to the appended drawings and appended detailed description. It should be noted that, without conflict, the embodiments of the present application and features in the embodiments may be combined with each other.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention, but the present invention may be practiced in other ways than those described herein, and therefore the scope of the present invention is not limited to the specific embodiments disclosed below.
FIG. 1 is a flow chart of a method for starting an operating system without disk according to the present invention.
As shown in fig. 1, a first aspect of the present invention proposes a method for starting an operating system without a disk, including:
s102, receiving an operating system starting instruction;
s104, entering a PXE diskless starting mode according to the operating system starting instruction;
s106, receiving a guide mode selection instruction in the PXE diskless starting mode;
s108, determining a guide mode type according to the guide mode selection instruction;
s110, loading a kernel corresponding to the guide mode type into a memory according to the guide mode type and through a guide file;
s112, entering an operating system and starting the operating system.
It should be noted that, when the client at the workstation end is started in the PXE diskless start mode, a self test is performed before the control right is obtained by the network card PXE bootrom program, and then a boot request FIND frame is sent in a broadcast form, which includes the network card number of the client. If the server receives the request field frame, a BOOTP (boot protocol) or DHCP (Dynamic Host Configuration Protocol ) is called to assign the machine name, IP address, and image file at the time of startup, etc. of the workstation side.
After the workstation is allocated to the IP address, after receiving the complete startup file, the workstation starts to execute the startup program in the file by using the TFTP (TRIVIAL FILE TRANSFER Protocol) provided by the server, and turns the execution point to the entry of the startup block to guide the operating system, thereby completing the remote startup.
According to an embodiment of the invention, the boot mode includes a BIOS mode and a UEFI mode.
It should be noted that BIOS (Basic Input Output System) is a set of programs solidified on a ROM chip on the motherboard in the computer, which stores the most important programs of basic input and output, self-checking program after starting up and system self-starting program, and can read and write specific information set by the system from CMOS. Its main function is to provide the lowest, most direct hardware setup and control for the computer. Specifically, the BIOS firstly initializes the CPU, then jumps to the BIOS starting position to carry out POST self-test, if the process has serious errors, the computer can be reminded by different alarm sounds, then loads various hardware in a read interrupt mode, and enters the starting process of the operating system after the hardware initialization is completed.
UEFI (Unified Extensible FIRMWARE INTERFACE) is a standard that describes type interfaces in detail. The interface is used for the operating system to automatically load from a pre-boot operating environment onto an operating system. Specifically, the UEFI runs the pre-loading environment to directly initialize the CPU and the memory, if the CPU and the memory have problems, the CPU and the memory are directly blacked out, then the PXE is started, various hardware is searched in an enumeration mode, the driver is loaded, and the starting process of the operating system is entered after the hardware initialization is completed.
According to the embodiment of the invention, the kernel comprises two versions, and the two versions are respectively in one-to-one correspondence with the BIOS mode and the UEFI mode.
It should be noted that the two versions are 2.6.32-573.el6.x86_64 and 3.10.0-862.el7.x86_64, respectively, where versions 2.6.32-573.el6.x86_64 correspond to the BIOS mode and versions 3.10.0-862.el7.x86_64 correspond to the UEFI mode.
It should be noted that conventional diskless systems do not have to bring together two kernel versions redhat 7.5.5 and cents 6.7. And each mode (BIOS mode or UEFI mode) only has one kernel version corresponding, the purpose of configuring two kernel versions in a diskless system cannot be achieved, and each kernel version corresponds to a different mode (BIOS mode or UEFI mode) respectively. However, the diskless system of the present invention combines the conventional BIOS mode and the UEFI mode, and the kernel versions with different modes share a set of configuration files, so that no matter which mode of PXE is selected by the server, the PXE can automatically enter the diskless Bootos, no need to enter the server to perform corresponding configuration, and the configuration is simplified. It will be appreciated that so-called diskless systems operate with vmlinux and initrd. Img in memory, and do not require hard disk storage. It is understood that the server is a server to which an operating system is to be installed.
FIG. 2 is a flow chart of a method for booting an operating system in a diskless boot operating system of the present invention.
As shown in fig. 2, according to the boot mode type and through a boot file, loading a kernel corresponding to the boot mode type into a memory, and further includes:
s202, loading vmlinux to a memory through a guide file of PXE;
s204, after vmlinux runs, the initrd. Img or initramfs is loaded to switch the root directory.
It should be noted that, the boot file includes a BOOTX64.EFI file and a gpxelinux.0 file, and the BOOTX64.EFI file corresponds to a UEFI mode, and the gpxelinux.0 file corresponds to a BIOS mode.
Note that vmlinux is a bootable, compressed kernel, initramfs corresponds to UEFI mode, and initrd.
According to the embodiment of the invention, on the premise of a normal diskless system, the method for realizing the multi-core diskless system comprises the following steps:
Receiving and storing a newly added kernel version in a lib catalog in an original system;
Receiving an added module file for the newly added kernel version;
And receiving the written drive installation script according to the added module file.
Furthermore, on the premise of a normal diskless system (namely, the kernel version is 2.6.32-573.el6.x86_64), a file of the kernel version is newly added in the lib directory (namely, the kernel version is 3.10.0-862.el7.x86_64), then corresponding module files are added, and then some automatic driver installation scripts are written, so that the starting and the use of the newly added kernel version can be realized.
According to an embodiment of the present invention, after receiving the written driver installation script, further comprising:
And adding the drive name of the new hardware device in the dirverlist. Con configuration file, or placing the ko file of the drive in a corresponding directory and adding the ko file into the dirverlist. Con configuration file to realize loading of the drive.
It should be noted that, in the UEFI mode, the loading of the driver is implemented through a dirverlist. Con configuration file, if the server has a new hardware device, only the driver name of the hardware device needs to be added in the configuration file of the server; if the driver of the hardware device is not installed, the driver can be automatically loaded only by putting the ko file of the driver into a corresponding directory and adding the ko file into the dirverlist. It can be understood that the normal device can remove unnecessary drive loading, so as to improve the starting speed of the diskless system and shorten the starting time of the diskless system. It can be understood that the server is a server to which the operating system is to be installed, and all servers need to perform some initialization operations before installation through Bootos, and the initialization is mainly to enter Bootos for collecting relevant data.
In order to better explain the technical scheme of the invention, two versions of kernels 2.6.32-573.el6.x86_64 and 3.10.0-862.el7.x86_64 are placed under the same catalog, and the specific placement modes are as follows:
[root@CNSZ049051 modules]#ll
total 12
drwxr-xr-x 7 root root 4096 Sep 20 15:54 2.6.32-573.el6.x86_64
drwxr-xr-x 7 root root 4096 Nov 13 09:47 3.10.0-862.el7.x86_64
-rw-r--r--1 root root 637 Sep 20 15:56 driver.sh
[root@CNSZ049051 modules]#。
FIG. 3 is a flow chart of a method for entering an operating system based on a PXE mode of the present invention.
As shown in fig. 3, the client is turned on and a system start-up is performed; the corresponding PXE start mode (legalcy mode or UEFI mode) is then selected according to user requirements or system defaults. When the LEGACY mode is selected, then gpxelinux.0 is pointed to; then, loading vmlinux and initrd. Img to the memory through the default. Cfg file, and automatically entering a corresponding kernel (the kernel version is 2.6.32-573.el6.x86_64); then, the diskless Bootos is re-entered. When the UEFI mode is selected, then the boot BOOTX64.EFI file is pointed to; then, loading vmlinux, initramfs to the memory through grub.cfg files, and automatically entering the corresponding kernel (the kernel version is 3.10.0-862.el7.x86_64); then, the diskless Bootos is re-entered.
It should be noted that the diskless Bootos is an operating system including two kernels (kernel versions 2.6.32-573.el6.x86_64 and 3.10.0-862.el7.x86_64, respectively) together.
It should be noted that, the PXE automatically enters the corresponding kernel versions (2.6.32-573.el6.x86_64 and 3.10.0-862.el7.x86_64) according to the loading of vmlinux, so as to achieve the purpose required by the user.
In order to further explain the technical scheme of the invention, the following specifically describes the flow of the server installation system to be installed:
Firstly, setting a starting item of a system server to be installed, which has a PEX function, as network starting;
secondly, entering a network to start after the system server to be installed is started, wherein the system server to be installed has no IP address and needs to send a broadcast message, and the DHCP server responds to the request of the system server to be installed and distributes corresponding IP address, mask and other information to the system server to be installed;
thirdly, after the system server to be installed obtains an IP address, communicating with a TFTP server, downloading a pxerinux.0 and default file, starting a system kernel according to vmlinuz and initrd. Img appointed by default, and downloading an appointed ks. Cfg file;
Finally, the RPM package is downloaded onto a file sharing server (http/ftp/nfs) according to the ks.cfg file, and the system is started to be installed.
It should be noted that, before installing the system, the environment required by PXE should be deployed: the PXE server needs to have a DHCP server, a TFTP server, and a file server, where the file server may be a file server such as ftp, http, nfs.
FIG. 4 illustrates a block diagram of a server of a diskless boot operating system of the present invention.
As shown in fig. 4, the second aspect of the present invention further proposes a server 4 for a diskless boot operating system, the server 4 comprising: a memory 41 and a processor 42, wherein the memory 41 includes a method program for starting an operating system without disk, and the method program for starting the operating system without disk realizes the following steps when executed by the processor 42:
receiving an operating system starting instruction;
According to the operating system starting instruction, entering a PXE diskless starting mode;
receiving a boot mode selection instruction in the PXE diskless starting mode;
determining a guide mode type according to the guide mode selection instruction;
Loading a kernel corresponding to the guide mode type into a memory according to the guide mode type and through a guide file;
And entering an operating system and starting the operating system.
Preferably, the server may further comprise a display, which may be referred to as a display screen or a display unit. In some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an Organic Light-Emitting Diode (OLED) touch, or the like. The display is used for displaying information processed in the server and displaying a visual work interface.
Preferably, the Processor may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processing (DIGITAL SIGNAL Processor, DSP), application SPECIFIC INTEGRATED Circuit (ASIC), off-the-shelf Programmable gate array (Field-Programmable GATE ARRAY, FPGA) or other Programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
It should be noted that, when the client at the workstation end is started in the PXE diskless start mode, a self test is performed before the control right is obtained by the network card PXE bootrom program, and then a boot request FIND frame is sent in a broadcast form, which includes the network card number of the client. If the server receives the request field frame, a BOOTP (boot protocol) or DHCP (Dynamic Host Configuration Protocol ) is called to assign the machine name, IP address, and image file at the time of startup, etc. of the workstation side.
After the workstation is allocated to the IP address, after receiving the complete startup file, the workstation starts to execute the startup program in the file by using the TFTP (TRIVIAL FILE TRANSFER Protocol) provided by the server, and turns the execution point to the entry of the startup block to guide the operating system, thereby completing the remote startup.
According to an embodiment of the invention, the boot mode includes a BIOS mode and a UEFI mode.
It should be noted that BIOS (Basic Input Output System) is a set of programs solidified on a ROM chip on the motherboard in the computer, which stores the most important programs of basic input and output, self-checking program after starting up and system self-starting program, and can read and write specific information set by the system from CMOS. Its main function is to provide the lowest, most direct hardware setup and control for the computer. Specifically, the BIOS firstly initializes the CPU, then jumps to the BIOS starting position to carry out POST self-test, if the process has serious errors, the computer can be reminded by different alarm sounds, then loads various hardware in a read interrupt mode, and enters the starting process of the operating system after the hardware initialization is completed.
UEFI (Unified Extensible FIRMWARE INTERFACE) is a standard that describes type interfaces in detail. The interface is used for the operating system to automatically load from a pre-boot operating environment onto an operating system. Specifically, the UEFI runs the pre-loading environment to directly initialize the CPU and the memory, if the CPU and the memory have problems, the CPU and the memory are directly blacked out, then the PXE is started, various hardware is searched in an enumeration mode, the driver is loaded, and the starting process of the operating system is entered after the hardware initialization is completed.
According to the embodiment of the invention, the kernel comprises two versions, and the two versions are respectively in one-to-one correspondence with the BIOS mode and the UEFI mode.
It should be noted that the two versions are 2.6.32-573.el6.x86_64 and 3.10.0-862.el7.x86_64, respectively, where versions 2.6.32-573.el6.x86_64 correspond to the BIOS mode and versions 3.10.0-862.el7.x86_64 correspond to the UEFI mode.
It should be noted that conventional diskless systems do not have to bring together two kernel versions redhat 7.5.5 and cents 6.7. And each mode (BIOS mode or UEFI mode) only has one kernel version corresponding, the purpose of configuring two kernel versions in a diskless system cannot be achieved, and each kernel version corresponds to a different mode (BIOS mode or UEFI mode) respectively. However, the diskless system of the present invention combines the conventional BIOS mode and the UEFI mode, and the kernel versions with different modes share a set of configuration files, so that no matter which mode of PXE is selected by the server, the PXE can automatically enter the diskless Bootos, no need to enter the server to perform corresponding configuration, and the configuration is simplified. It will be appreciated that so-called diskless systems operate with vmlinux and initrd. Img in memory, and do not require hard disk storage. It is understood that the server is a server to which an operating system is to be installed.
Further, loading the kernel corresponding to the boot mode type into the memory according to the boot mode type and through the boot file, and further comprising:
loading vmlinux to the memory through the boot file of the PXE;
after the vmlinux runs, the initrd. Img or initramfs switch root directory is loaded.
It should be noted that, the boot file includes a BOOTX64.EFI file and a gpxelinux.0 file, and the BOOTX64.EFI file corresponds to a UEFI mode, and the gpxelinux.0 file corresponds to a BIOS mode.
Note that vmlinux is a bootable, compressed kernel, initramfs corresponds to UEFI mode, and initrd.
According to an embodiment of the present invention, the method program for starting up an operating system without disk further comprises the following steps when executed by the processor:
Receiving and storing a newly added kernel version in a lib catalog in an original system;
Receiving an added module file for the newly added kernel version;
And receiving the written drive installation script according to the added module file.
Furthermore, on the premise of a normal diskless system (namely, the kernel version is 2.6.32-573.el6.x86_64), a file of the kernel version is newly added in the lib directory (namely, the kernel version is 3.10.0-862.el7.x86_64), then corresponding module files are added, and then some automatic driver installation scripts are written, so that the starting and the use of the newly added kernel version can be realized.
According to an embodiment of the present invention, after receiving the written driver installation script, further comprising:
And adding the drive name of the new hardware device in the dirverlist. Con configuration file, or placing the ko file of the drive in a corresponding directory and adding the ko file into the dirverlist. Con configuration file to realize loading of the drive.
It should be noted that, in the UEFI mode, the loading of the driver is implemented through a dirverlist. Con configuration file, if the server has a new hardware device, only the driver name of the hardware device needs to be added in the configuration file of the server; if the driver of the hardware device is not installed, the driver can be automatically loaded only by putting the ko file of the driver into a corresponding directory and adding the ko file into the dirverlist. It can be understood that the normal device can remove unnecessary drive loading, so as to improve the starting speed of the diskless system and shorten the starting time of the diskless system. It can be understood that the server is a server to which the operating system is to be installed, and all servers need to perform some initialization operations before installation through Bootos, and the initialization is mainly to enter Bootos for collecting relevant data.
In order to better explain the technical scheme of the invention, two versions of kernels 2.6.32-573.el6.x86_64 and 3.10.0-862.el7.x86_64 are placed under the same catalog, and the specific placement modes are as follows:
[root@CNSZ049051 modules]#ll
total 12
drwxr-xr-x 7 root root 4096 Sep 20 15:54 2.6.32-573.el6.x86_64
drwxr-xr-x 7 root root 4096 Nov 13 09:47 3.10.0-862.el7.x86_64
-rw-r--r--1 root root 637 Sep 20 15:56 driver.sh
[root@CNSZ049051 modules]#。
According to an embodiment of the invention, the steps for entering an operating system based on a PXE mode are as follows:
Opening a client and starting a system; the corresponding PXE start mode (legalcy mode or UEFI mode) is then selected according to user requirements or system defaults. When the LEGACY mode is selected, then gpxelinux.0 is pointed to; then, loading vmlinux and initrd. Img to the memory through the default. Cfg file, and automatically entering a corresponding kernel (the kernel version is 2.6.32-573.el6.x86_64); then, the diskless Bootos is re-entered. When the UEFI mode is selected, then the boot BOOTX64.EFI file is pointed to; then, loading vmlinux, initramfs to the memory through grub.cfg files, and automatically entering the corresponding kernel (the kernel version is 3.10.0-862.el7.x86_64); then, the diskless Bootos is re-entered.
It should be noted that the diskless Bootos is an operating system including two kernels (kernel versions 2.6.32-573.el6.x86_64 and 3.10.0-862.el7.x86_64, respectively) together.
It should be noted that, the PXE automatically enters the corresponding kernel versions (2.6.32-573.el6.x86_64 and 3.10.0-862.el7.x86_64) according to the loading of vmlinux, so as to achieve the purpose required by the user.
In order to further explain the technical scheme of the invention, the following specifically describes the flow of the server installation system to be installed:
Firstly, setting a starting item of a system server to be installed, which has a PEX function, as network starting;
secondly, entering a network to start after the system server to be installed is started, wherein the system server to be installed has no IP address and needs to send a broadcast message, and the DHCP server responds to the request of the system server to be installed and distributes corresponding IP address, mask and other information to the system server to be installed;
thirdly, after the system server to be installed obtains an IP address, communicating with a TFTP server, downloading a pxerinux.0 and default file, starting a system kernel according to vmlinuz and initrd. Img appointed by default, and downloading an appointed ks. Cfg file;
Finally, the RPM package is downloaded onto a file sharing server (http/ftp/nfs) according to the ks.cfg file, and the system is started to be installed.
It should be noted that, before installing the system, the environment required by PXE should be deployed: the PXE server needs to have a DHCP server, a TFTP server, and a file server, where the file server may be a file server such as ftp, http, nfs.
The third aspect of the present invention also proposes a computer readable storage medium, in which a method program for starting an operating system without a disk is included, which method program, when executed by a processor, implements the method steps of starting an operating system without a disk as described above.
The method and the device receive the starting instruction of the operating system; according to the operating system starting instruction, entering a PXE diskless starting mode; receiving a boot mode selection instruction in the PXE diskless starting mode; determining a guide mode type according to the guide mode selection instruction; loading a kernel corresponding to the guide mode type into a memory according to the guide mode type and through a guide file; and entering an operating system and starting the operating system. According to the invention, two different kernels are combined in one diskless system, and the two different kernel versions share one set of configuration file, so that the server can automatically enter BOOTos no matter which mode of PXE is started, and the corresponding configuration can be performed without entering the server. Meanwhile, the method and the system can provide convenience for initializing all servers, effectively improve deployment efficiency and save time cost.
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above described device embodiments are only illustrative, e.g. the division of the units is only one logical function division, and there may be other divisions in practice, such as: multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. In addition, the various components shown or discussed may be coupled or directly coupled or communicatively coupled to each other via some interface, whether indirectly coupled or communicatively coupled to devices or units, whether electrically, mechanically, or otherwise.
The units described above as separate components may or may not be physically separate, and components shown as units may or may not be physical units; can be located in one place or distributed to a plurality of network units; some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present invention may be integrated in one processing unit, or each unit may be separately used as one unit, or two or more units may be integrated in one unit; the integrated units may be implemented in hardware or in hardware plus software functional units.
Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the above method embodiments may be implemented by hardware related to program instructions, and the foregoing program may be stored in a computer readable storage medium, where the program, when executed, performs steps including the above method embodiments; and the aforementioned storage medium includes: a mobile storage device, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk or optical disk, or the like, which can store program codes.
Or the above-described integrated units of the invention may be stored in a computer-readable storage medium if implemented in the form of software functional modules and sold or used as separate products. Based on such understanding, the technical solutions of the embodiments of the present invention may be embodied in essence or a part contributing to the prior art in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage device, ROM, RAM, magnetic or optical disk, or other medium capable of storing program code.
The foregoing is merely illustrative of the present invention, and the present invention is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (6)

CN201910833639.0A2019-09-042019-09-04Method for starting operating system without disk, server and readable storage mediumActiveCN110737479B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201910833639.0ACN110737479B (en)2019-09-042019-09-04Method for starting operating system without disk, server and readable storage medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201910833639.0ACN110737479B (en)2019-09-042019-09-04Method for starting operating system without disk, server and readable storage medium

Publications (2)

Publication NumberPublication Date
CN110737479A CN110737479A (en)2020-01-31
CN110737479Btrue CN110737479B (en)2024-06-28

Family

ID=69267435

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201910833639.0AActiveCN110737479B (en)2019-09-042019-09-04Method for starting operating system without disk, server and readable storage medium

Country Status (1)

CountryLink
CN (1)CN110737479B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN111371610A (en)*2020-02-292020-07-03苏州浪潮智能科技有限公司 A network card firmware batch refresh method, system, terminal and storage medium
CN111475175B (en)*2020-04-032022-08-12苏州浪潮智能科技有限公司 Operating system installation and booting method, device and medium based on ARM server
CN111736909B (en)*2020-06-242023-07-14平安科技(深圳)有限公司Method and device for starting operating system, computer equipment and storage medium
CN111831346B (en)*2020-07-202023-06-09平安科技(深圳)有限公司Method and device for starting memory operating system for data acquisition
CN112433771A (en)*2020-11-272021-03-02中电科技(北京)有限公司Automatic guiding method, client, server and system based on domestic platform
CN113064602A (en)*2021-03-082021-07-02山东英信计算机技术有限公司 A method, system and medium based on NFS filling operating system
CN113254091B (en)*2021-06-092021-11-02广东睿江云计算股份有限公司 A diskless system startup method based on ceph block device
CN113900722A (en)*2021-10-212022-01-07深圳忆联信息系统有限公司 Automatic deployment method, device, computer equipment and storage medium of Xinchuang platform
CN114003452A (en)*2021-10-292022-02-01苏州浪潮智能科技有限公司Device testing method, control device, testing device, and storage medium
CN114546501B (en)*2022-01-282023-10-24郑州信大捷安信息技术股份有限公司Method for starting Linux operating system in physical read-only disk
CN115033299B (en)*2022-07-062024-06-14福州创实讯联信息技术有限公司Method and terminal for starting production test system
CN116048552A (en)*2022-12-272023-05-02苏州浪潮智能科技有限公司Method and system for installing operating system through PXE, electronic equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN109408124A (en)*2018-10-262019-03-01紫光华山信息技术有限公司Store equipment and preparation method thereof, operating system double mode bootstrap technique and device
CN110045991A (en)*2019-03-082019-07-23平安科技(深圳)有限公司RAID configuration method, device, computer equipment and the storage medium of server

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US7546450B2 (en)*2006-03-072009-06-09Sun Microsystems, Inc.Method and apparatus for operating system deployment
CN102262546A (en)*2010-05-282011-11-30鸿富锦精密工业(深圳)有限公司Method for booting operating system in diskless way, electronic device and server
CN103744695B (en)*2013-12-252017-11-03新浪网技术(中国)有限公司Operating system remote installation method and system based on PXE
CN104850437A (en)*2015-05-192015-08-19曙光信息产业(北京)有限公司Installation method and apparatus of operating system
CN109783117B (en)*2019-01-182023-01-10中国人民解放军国防科技大学 Method for making and starting image file of a diskless system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN109408124A (en)*2018-10-262019-03-01紫光华山信息技术有限公司Store equipment and preparation method thereof, operating system double mode bootstrap technique and device
CN110045991A (en)*2019-03-082019-07-23平安科技(深圳)有限公司RAID configuration method, device, computer equipment and the storage medium of server

Also Published As

Publication numberPublication date
CN110737479A (en)2020-01-31

Similar Documents

PublicationPublication DateTitle
CN110737479B (en)Method for starting operating system without disk, server and readable storage medium
US11513809B2 (en)Kernel-integrated instance-specific operational resources with virtualization
US6816963B1 (en)Platform level initialization using an image generated automatically by a remote server based upon description automatically generated and transmitted thereto by a processor-based system
US10853087B2 (en)UEFI boot mode OS provisioning system
US8489871B2 (en)Preboot execution environment test device and method
US10353713B2 (en)Method to facilitate rapid deployment and rapid redeployment of an information handling system
CN111966384B (en)System updating method, device, equipment and computer readable storage medium
CN110908753A (en)Intelligent fusion cloud desktop server, client and system
US11010152B2 (en)Systems and methods to stage external device firmware for an external device in an information handling system
US20070157017A1 (en)Embedded device for implementing a boot process on a host
US20230229481A1 (en)Provisioning dpu management operating systems
US11256519B2 (en)Using a single process to install a UEFI-supported OS or a non-UEFI supported OS on a hardware platform
US9342316B1 (en)Installing digital signage device operating system from flash memory and registering signage device to a global network
US11726852B2 (en)Hardware-assisted paravirtualized hardware watchdog
CN111078305A (en)Information acquisition method and device, server and information management system
US11675601B2 (en)Systems and methods to control software version when deploying OS application software from the boot firmware
CN106897064A (en)A kind of method and device of configuration BIOS
US11899602B2 (en)Smart network interface controller operating system binding
US20240020103A1 (en)Parallelizing data processing unit provisioning
CN117850815A (en) Installation method and system of Linux operating system based on PXE adaptive hard disk drive
CN113094108B (en)Starting method and electronic equipment
CN115291951A (en)UEFI (unified extensible firmware interface) starting method and device, electronic equipment and storage medium
CN112433771A (en)Automatic guiding method, client, server and system based on domestic platform
CN101207565B (en)Network communication method
CN115827072A (en)Multi-system PXE installation method and device

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp