CN110737479A - 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 PDFInfo
- Publication number
- CN110737479A CN110737479A CN201910833639.0A CN201910833639A CN110737479A CN 110737479 A CN110737479 A CN 110737479A CN 201910833639 A CN201910833639 A CN 201910833639A CN 110737479 A CN110737479 A CN 110737479A
- Authority
- CN
- China
- Prior art keywords
- boot
- operating system
- mode
- file
- starting
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 50
- 238000009434 installation Methods 0.000 claims description 12
- 238000013515 script Methods 0.000 claims description 12
- 238000012546 transfer Methods 0.000 description 4
- 241000109539 Conchita Species 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 238000006467 substitution reaction Methods 0.000 description 2
- 238000012360 testing method Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4406—Loading of operating system
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4416—Network booting; Remote initial program loading [RIPL]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
Abstract
The invention provides methods for starting an operating system without a disk, a server and a readable storage medium, wherein the method comprises the steps of receiving an operating system starting instruction, entering a PXE disk-free starting mode according to the operating system starting instruction, receiving a boot mode selection instruction in the PXE disk-free starting mode, determining the type of the boot mode according to the boot mode selection instruction, loading a kernel corresponding to the type of the boot mode to a memory through a boot file according to the type of the boot mode, entering the operating system and starting the operating system, combining two different kernels into disk-free systems, enabling the two different kernel versions to share a set configuration file, enabling the server to automatically enter BOOTos from the PXE starting of any modes, enabling the server not to enter the server for corresponding configuration, and simultaneously providing convenience for initialization of all servers, effectively improving deployment efficiency and saving time cost.
Description
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 diskless boot of an operating system.
Background
With the development of computers, particularly with the advent of large data, companies will increase the number of servers on shelves, from the first few to the later hundreds of thousands, which will put pressure on the server deployers, consuming a lot of time in installing operating systems.
PXE is an abbreviation for english preboot execution environment, that is, a preboot execution environment, is a latest technology developed by Intel corporation, works in a Client/Server network mode, supports a workstation to download images from a remote Server through a network, and thus supports starting an operating system through the network, during the starting process, a terminal requires the Server to allocate an IP address, then downloads startup software packages into a local memory for execution by using tftp (virtual file transfer protocol) or mtftp (multicast file transfer protocol) protocols, and completes the setting of the terminal basic software by using the startup software packages, thereby guiding the terminal operating system pre-installed in the Server.
At present, the PXE mainly adopts a BIOS mode or UEFI mode to boot an operating system, however, only modes correspond to diskless systems, which is not beneficial to initialization operation of the server, and deployment efficiency of the server is not high.
Disclosure of Invention
In order to solve at least technical problems, the invention provides diskless boot operating system methods, servers and computer readable storage media.
In order to achieve the above object, the aspect of the present invention provides a method for starting an operating system without a disk, including:
receiving an operating system starting instruction;
entering a PXE diskless starting mode according to the operating system starting instruction;
receiving a boot mode selection instruction in the PXE diskless start mode;
determining a guidance mode type according to the guidance mode selection instruction;
loading a kernel corresponding to the boot mode type to a memory through a boot file according to the boot mode type;
and entering an operating system and starting the operating system.
In this scheme, loading, according to the boot mode type and through a boot file, a kernel corresponding to the boot mode type to a memory further includes:
loading vmlinux to a memory through a boot file of PXE;
and after the vmlinux runs, loading initrd. img or initramfs to switch the root directory.
In this scheme, the boot mode includes a BIOS mode and a UEFI mode.
Further , the kernel includes two versions, and the two versions correspond to the BIOS mode and the UEFI mode , respectively.
In this scheme, the method for starting an operating system without a disk further includes:
receiving and storing a newly added kernel version in a lib directory in an original system;
receiving an added module file for the newly added kernel version;
and receiving a written driver installation script according to the added module file.
In this scheme, after receiving the written driver installation script, the method further includes:
and adding a drive name of a new hardware device in a dirverlist.con configuration file, or putting a driven ko file into a corresponding directory and adding the driven ko file into the dirverlist.con configuration file to realize the loading of the drive.
The second aspect of the present invention further provides kinds of servers, where the servers include a memory and a processor, the memory includes kinds of method programs for booting an operating system without a disk, and when executed by the processor, the method programs for booting the operating system without a disk implement the following steps:
receiving an operating system starting instruction;
entering a PXE diskless starting mode according to the operating system starting instruction;
receiving a boot mode selection instruction in the PXE diskless start mode;
determining a guidance mode type according to the guidance mode selection instruction;
loading a kernel corresponding to the boot mode type to a memory through a boot file according to the boot mode type;
and entering an operating system and starting the operating system.
In this scheme, loading, according to the boot mode type and through a boot file, a kernel corresponding to the boot mode type to a memory further includes:
loading vmlinux to a memory through a boot file of PXE;
and after the vmlinux runs, loading initrd. img or initramfs to switch the root directory.
In this embodiment, when executed by the processor, the method for starting the operating system without the disk further includes:
receiving and storing a newly added kernel version in a lib directory in an original system;
receiving an added module file for the newly added kernel version;
and receiving a written driver installation script according to the added module file.
The third aspect of the present invention further proposes computer-readable storage media, where the computer-readable storage media includes methods of the diskless boot os, and when the methods of the diskless boot os are executed by a processor, the methods of the methods of the diskless boot os are implemented.
The method comprises the steps of receiving an operating system starting instruction, entering a PXE diskless starting mode according to the operating system starting instruction, receiving a boot mode selection instruction in the PXE diskless starting mode, determining a boot mode type according to the boot mode selection instruction, loading a kernel corresponding to the boot mode type to a memory according to the boot mode type and a boot file, entering the operating system and starting the operating system, combining two different kernels into diskless systems, enabling two different kernel versions to share a set configuration file, and enabling to enable the server to automatically enter BOOTos from the PXE starting of any mode and enable the server not to enter the server for corresponding configuration.
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 for starting an operating system without a disk according to of the present invention;
FIG. 2 is a flow chart illustrating a method for booting an operating system in a diskless boot operating system of the present invention;
FIG. 3 is a flow chart illustrating a method for entering an operating system based on PXE mode in accordance with the present invention at ;
FIG. 4 is a server block diagram illustrating diskless boot operating systems of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention more clearly understandable, the present invention is described in detail in below with reference to the accompanying drawings and detailed description.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention, however, the present invention may be practiced in other ways than those specifically described herein, and therefore the scope of the present invention is not limited by the specific embodiments disclosed below.
FIG. 1 is a flow chart of a method for starting an operating system without a disk according to of the present invention.
As shown in fig. 1, the aspect of the present invention provides a method for kinds of diskless boot operating systems, including:
s102, receiving an operating system starting instruction;
s104, entering a PXE diskless start mode according to the operating system start instruction;
s106, receiving a boot mode selection instruction in the PXE diskless start mode;
s108, determining the type of the guide mode according to the guide mode selection instruction;
s110, loading a kernel corresponding to the boot mode type to a memory through a boot file according to the boot mode type;
and S112, entering an operating system and starting the operating system.
It should be noted that, when entering the PXE diskless boot mode, after the client on the workstation side is booted, a self-test is performed before obtaining control right through the network card PXE bootrom program, and then boot request FIND frames are sent in the form of broadcasts, which contain the network card number of the client.
After the workstation allocates an IP address, a TFTP (Trivial File transfer protocol) provided by the server is used to receive the complete startup File, then the startup program in the File is executed, the execution point is turned to the entry of the startup block, the operating system is guided, and the remote startup is completed.
According to an embodiment of the invention, the boot modes include a BIOS mode and a UEFI mode.
It is noted that BIOS (basic Input Output system) is sets of programs that are fixed on ROM chips on a main board in a computer, and it stores the most important basic Input and Output programs of the computer, a POST-power-on self-test program and a system self-start program, and it can read and write specific information of system settings from CMOS.
UEFI (unified Extensible Firmware interface) is a standard of detailed description type interfaces, the interfaces are used for automatically loading an operating system from a pre-started operating environment to operating systems, concretely, the UEFI running pre-loading environment directly initializes a CPU and a memory, if the CPU and the memory have problems, the CPU and the memory directly blank a screen, then a PXE is started, various hardware is searched in an enumeration mode and a drive is loaded, and the starting process of the operating system is started after the hardware is initialized.
According to an embodiment of the invention, the kernel includes two versions, and the two versions correspond to the BIOS mode and the UEFI mode , respectively.
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 the versions 2.6.32-573.el6.x86_64 correspond to the BIOS mode and the versions 3.10.0-862.el7.x86_64 correspond to the UEFI mode.
It should be noted that, the conventional diskless system does not achieve the purpose of configuring two kernel versions redhat7.5 and centros 6.7 at , and each mode (BIOS mode or UEFI mode) has only kernel versions corresponding to each other, which fails to achieve the purpose of configuring two kernel versions in diskless systems, and each kernel version corresponds to a different mode (BIOS mode or UEFI mode), however, the diskless system of the present invention combines the conventional BIOS mode and UEFI mode into , and the kernel versions with two different modes share configuration files, so , the e boot of whatever px mode the server selects can automatically enter diskless boots, without entering the server to perform corresponding configuration, and simplifying configuration.
FIG. 2 is a flow chart illustrating a method for booting an operating system in a diskless boot operating system of the present invention.
As shown in fig. 2, loading the kernel corresponding to the boot mode type into the memory through the boot file according to the boot mode type further includes:
s202, loading vmlinux to a memory through a boot file of the PXE;
s204, after the vmlinux runs, loading initrd. img or initramfs switching 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.
It should be noted 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 directory in an original system;
receiving an added module file for the newly added kernel version;
and receiving a written driver installation script according to the added module file.
And , adding kernel version files (namely, the kernel version is 3.10.0-862.el7.x86_64) in the lib directory under the premise of a normal diskless system (namely, the kernel version is 2.6.32-573.el6.x86_64), then adding corresponding module files, and writing drive automatic installation scripts, so that the starting and the use of the added kernel version can be realized.
According to the embodiment of the present invention, after receiving the written driver installation script, the method further includes:
and adding a drive name of a new hardware device in a dirverlist.con configuration file, or putting a driven ko file into a corresponding directory and adding the driven ko file into the dirverlist.con configuration file to realize the loading of the drive.
It should be noted that, in the UEFI mode, the loading of the driver is implemented by dirverlist.con configuration files, if the server has new hardware devices, only the driver name of the hardware device needs to be added to the configuration files of the server, if the driver of the hardware device is not installed, only the ko file of the driver needs to be put into the corresponding directory and added to the dirverlist.con configuration files, and the driver can be automatically loaded.
To better illustrate the technical solution of the present invention, the cores of the 2.6.32-573.el6.x86_64 and 3.10.0-862.el7.x86_64 versions are placed under the same directories in the following specific placement manner:
[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 illustrating a method for entering an operating system based on PXE mode in accordance with the present invention at .
As shown in fig. 3, the client is turned on and the system starts up; then, a corresponding PXE start mode (LEGACY mode or UEFI mode) is selected according to user requirements or system defaults. When LEGACY mode is selected, then gpxelinux.0 is pointed to; then, loading vmlinux and initrd.img into a memory through a default.cfg file, and automatically entering a corresponding kernel (the kernel version is 2.6.32-573.el6.x86_ 64); and then enters diskless Bootos. When the UEFI mode is selected, pointing to a boot BOOTX64.EFI file; then, loading vmlinux and initramfs into a memory through a grub.cfg file, and automatically entering a corresponding kernel (the kernel version is 3.10.0-862.el7.x86_ 64); and then enters diskless Bootos.
It should be noted that the diskless bootes is os including two cores (the core versions are 2.6.32-573.el6.x86_64 and 3.10.0-862.el7.x86_64, respectively) starting at .
It should be noted that the PXE automatically enters the corresponding kernel version (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 that the user needs to achieve.
To further illustrate the technical solution of the present invention, the following describes the flow of installing the system by the server to be installed specifically:
firstly, setting a startup starting item of a system server to be installed with a PEX function as network startup;
secondly, the system server to be installed enters a network for starting after starting up, the system server to be installed does not have an IP address at the moment, broadcast messages need to be sent, and the DHCP server responds to the request of the system server to be installed and distributes information such as the corresponding IP address, mask code and the like to the system server to be installed;
thirdly, after the system server to be installed obtains the IP address, the system server communicates with the TFTP server, the pxelinux.0 and the default file are downloaded, the system kernel is started according to vmlinux and initrd.img specified by the default, and the specified ks.cfg file is downloaded;
finally, the RPM pack is downloaded on a file sharing server (http/ftp/nfs) according to the ks.cfg file, and the system is installed.
It should be noted that, before installing the system, an environment required by the PXE is to be deployed, where the PXE server side needs DHCP servers, TFTP servers, and file servers, where the file servers may be ftp, http, nfs, and other file servers.
FIG. 4 is a server block diagram illustrating diskless boot operating systems of the present invention.
As shown in fig. 4, the second aspect of the present invention further provides an server 4 for booting an operating system without a disk, where the server 4 includes a memory 41 and a processor 42, the memory 41 includes method programs for booting the operating system without a disk, and the method programs for booting the operating system without a disk when executed by the processor 42 implement the following steps:
receiving an operating system starting instruction;
entering a PXE diskless starting mode according to the operating system starting instruction;
receiving a boot mode selection instruction in the PXE diskless start mode;
determining a guidance mode type according to the guidance mode selection instruction;
loading a kernel corresponding to the boot mode type to a memory through a boot file according to the boot mode type;
and entering an operating system and starting the operating system.
the display can be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an Organic Light-Emitting Diode (OLED) touch screen, etc. 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 (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Array (FPGA) or other Programmable logic device, discrete or transistor logic, discrete hardware components, etc.
It should be noted that, when entering the PXE diskless boot mode, after the client on the workstation side is booted, a self-test is performed before obtaining control right through the network card PXE bootrom program, and then boot request FIND frames are sent in the form of broadcasts, which contain the network card number of the client.
After the workstation allocates an IP address, a TFTP (Trivial File transfer protocol) provided by the server is used to receive the complete startup File, then the startup program in the File is executed, the execution point is turned to the entry of the startup block, the operating system is guided, and the remote startup is completed.
According to an embodiment of the invention, the boot modes include a BIOS mode and a UEFI mode.
It is noted that BIOS (basic Input Output system) is sets of programs that are fixed on ROM chips on a main board in a computer, and it stores the most important basic Input and Output programs of the computer, a POST-power-on self-test program and a system self-start program, and it can read and write specific information of system settings from CMOS.
UEFI (unified Extensible Firmware interface) is a standard of detailed description type interfaces, the interfaces are used for automatically loading an operating system from a pre-started operating environment to operating systems, concretely, the UEFI running pre-loading environment directly initializes a CPU and a memory, if the CPU and the memory have problems, the CPU and the memory directly blank a screen, then a PXE is started, various hardware is searched in an enumeration mode and a drive is loaded, and the starting process of the operating system is started after the hardware is initialized.
According to an embodiment of the invention, the kernel includes two versions, and the two versions correspond to the BIOS mode and the UEFI mode , respectively.
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 the versions 2.6.32-573.el6.x86_64 correspond to the BIOS mode and the versions 3.10.0-862.el7.x86_64 correspond to the UEFI mode.
It should be noted that, the conventional diskless system does not achieve the purpose of configuring two kernel versions redhat7.5 and centros 6.7 at , and each mode (BIOS mode or UEFI mode) has only kernel versions corresponding to each other, which fails to achieve the purpose of configuring two kernel versions in diskless systems, and each kernel version corresponds to a different mode (BIOS mode or UEFI mode), however, the diskless system of the present invention combines the conventional BIOS mode and UEFI mode into , and the kernel versions with two different modes share configuration files, so , the e boot of whatever px mode the server selects can automatically enter diskless boots, without entering the server to perform corresponding configuration, and simplifying configuration.
Further , loading, according to the boot mode type and through a boot file, a kernel corresponding to the boot mode type to a memory, further includes:
loading vmlinux to a memory through a boot file of PXE;
and after the vmlinux runs, loading initrd. img or initramfs 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.
It should be noted that vmlinux is a bootable, compressed kernel, initramfs corresponds to UEFI mode, and initrd.
According to an embodiment of the present invention, when executed by the processor, the method program for booting an operating system without a disk further implements the following steps:
receiving and storing a newly added kernel version in a lib directory in an original system;
receiving an added module file for the newly added kernel version;
and receiving a written driver installation script according to the added module file.
And , adding kernel version files (namely, the kernel version is 3.10.0-862.el7.x86_64) in the lib directory under the premise of a normal diskless system (namely, the kernel version is 2.6.32-573.el6.x86_64), then adding corresponding module files, and writing drive automatic installation scripts, so that the starting and the use of the added kernel version can be realized.
According to the embodiment of the present invention, after receiving the written driver installation script, the method further includes:
and adding a drive name of a new hardware device in a dirverlist.con configuration file, or putting a driven ko file into a corresponding directory and adding the driven ko file into the dirverlist.con configuration file to realize the loading of the drive.
It should be noted that, in the UEFI mode, the loading of the driver is implemented by dirverlist.con configuration files, if the server has new hardware devices, only the driver name of the hardware device needs to be added to the configuration files of the server, if the driver of the hardware device is not installed, only the ko file of the driver needs to be put into the corresponding directory and added to the dirverlist.con configuration files, and the driver can be automatically loaded.
To better illustrate the technical solution of the present invention, the cores of the 2.6.32-573.el6.x86_64 and 3.10.0-862.el7.x86_64 versions are placed under the same directories in the following specific placement manner:
[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 the embodiment of the invention, the steps of entering the operating system based on the PXE mode are as follows:
opening a client and starting a system; then, a corresponding PXE start mode (LEGACY mode or UEFI mode) is selected according to user requirements or system defaults. When LEGACY mode is selected, then gpxelinux.0 is pointed to; then, loading vmlinux and initrd.img into a memory through a default.cfg file, and automatically entering a corresponding kernel (the kernel version is 2.6.32-573.el6.x86_ 64); and then enters diskless Bootos. When the UEFI mode is selected, pointing to a boot BOOTX64.EFI file; then, loading vmlinux and initramfs into a memory through a grub.cfg file, and automatically entering a corresponding kernel (the kernel version is 3.10.0-862.el7.x86_ 64); and then enters diskless Bootos.
It should be noted that the diskless bootes is os including two cores (the core versions are 2.6.32-573.el6.x86_64 and 3.10.0-862.el7.x86_64, respectively) starting at .
It should be noted that the PXE automatically enters the corresponding kernel version (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 that the user needs to achieve.
To further illustrate the technical solution of the present invention, the following describes the flow of installing the system by the server to be installed specifically:
firstly, setting a startup starting item of a system server to be installed with a PEX function as network startup;
secondly, the system server to be installed enters a network for starting after starting up, the system server to be installed does not have an IP address at the moment, broadcast messages need to be sent, and the DHCP server responds to the request of the system server to be installed and distributes information such as the corresponding IP address, mask code and the like to the system server to be installed;
thirdly, after the system server to be installed obtains the IP address, the system server communicates with the TFTP server, the pxelinux.0 and the default file are downloaded, the system kernel is started according to vmlinux and initrd.img specified by the default, and the specified ks.cfg file is downloaded;
finally, the RPM pack is downloaded on a file sharing server (http/ftp/nfs) according to the ks.cfg file, and the system is installed.
It should be noted that, before installing the system, an environment required by the PXE is to be deployed, where the PXE server side needs DHCP servers, TFTP servers, and file servers, where the file servers may be ftp, http, nfs, and other file servers.
The third aspect of the present invention further proposes computer-readable storage media, where the computer-readable storage media includes methods of the diskless boot os, and when the methods of the diskless boot os are executed by a processor, the methods of the methods of the diskless boot os are implemented.
The method comprises the steps of receiving an operating system starting instruction, entering a PXE diskless starting mode according to the operating system starting instruction, receiving a boot mode selection instruction in the PXE diskless starting mode, determining a boot mode type according to the boot mode selection instruction, loading a kernel corresponding to the boot mode type to a memory according to the boot mode type and a boot file, entering the operating system and starting the operating system, combining two different kernels into diskless systems, enabling two different kernel versions to share a set configuration file, and enabling to enable the server to automatically enter BOOTos from the PXE starting of any mode and enable the server not to enter the server for corresponding configuration.
The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units into only logical functional divisions, and other divisions may be possible in actual practice, e.g., multiple units or components may be combined, or may be integrated into another systems, or features may be omitted or not executed.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in places, may be distributed on a plurality of network units, and may select some or all of the units according to actual needs to achieve the purpose of the embodiment.
In addition, all the functional units in the embodiments of the present invention may be integrated into processing units, or each unit may be used as units individually, or two or more units may be integrated into units, and the integrated units may be implemented in the form of hardware, or in the form of hardware and software functional units.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a computer readable storage medium, and the program executes the steps comprising the method embodiments when executed; and the aforementioned storage medium includes: a mobile storage device, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Based on the understanding, the technical solution of the embodiments of the present invention or the portions contributing to the prior art may be embodied in the form of a software product stored in storage media, which includes several instructions for making computer devices (which may be personal computers, servers, or network devices) execute all or part of the methods described in the embodiments of the present invention.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.
Claims (10)
1, A method for starting an operating system without a disk, comprising:
receiving an operating system starting instruction;
entering a PXE diskless starting mode according to the operating system starting instruction;
receiving a boot mode selection instruction in the PXE diskless start mode;
determining a guidance mode type according to the guidance mode selection instruction;
loading a kernel corresponding to the boot mode type to a memory through a boot file according to the boot mode type;
and entering an operating system and starting the operating system.
2. The method of kinds of diskless boot operating systems of claim 1, wherein loading the kernel corresponding to the boot mode type into the memory through a boot file according to the boot mode type comprises:
loading vmlinux to a memory through a boot file of PXE;
and after the vmlinux runs, loading initrd. img or initramfs to switch the root directory.
3. The method of diskless boot of an operating system, wherein the boot modes include a BIOS mode and a UEFI mode.
4. The method of diskless boot of an operating system, wherein the kernel includes two versions, and wherein the two versions correspond to a BIOS mode and a UEFI mode , respectively.
5. The method of diskless boot of an operating system of claim 1, further comprising:
receiving and storing a newly added kernel version in a lib directory in an original system;
receiving an added module file for the newly added kernel version;
and receiving a written driver installation script according to the added module file.
6. The method of diskless boot of an operating system of claim 5, wherein after receiving a written driver installation script, the method further comprises:
and adding a drive name of a new hardware device in a dirverlist.con configuration file, or putting a driven ko file into a corresponding directory and adding the driven ko file into the dirverlist.con configuration file to realize the loading of the drive.
7, kinds of servers, characterized in that, the server includes a memory and a processor, the memory includes kinds of method programs for booting operating system without disk, when the method program for booting operating system without disk is executed by the processor, the following steps are realized:
receiving an operating system starting instruction;
entering a PXE diskless starting mode according to the operating system starting instruction;
receiving a boot mode selection instruction in the PXE diskless start mode;
determining a guidance mode type according to the guidance mode selection instruction;
loading a kernel corresponding to the boot mode type to a memory through a boot file according to the boot mode type;
and entering an operating system and starting the operating system.
8. The server according to claim 7, wherein the loading, according to the boot mode type and through a boot file, a kernel corresponding to the boot mode type to a memory further comprises:
loading vmlinux to a memory through a boot file of PXE;
and after the vmlinux runs, loading initrd. img or initramfs to switch the root directory.
9. The server according to claim 7, wherein the method program for diskless booting of an operating system, when executed by the processor, further implements the steps of:
receiving and storing a newly added kernel version in a lib directory in an original system;
receiving an added module file for the newly added kernel version;
and receiving a written driver installation script according to the added module file.
10, computer-readable storage media, wherein the computer-readable storage media contains method programs for a diskless boot operating system, which when executed by a processor implement the method steps of the diskless boot operating system as claimed in any of of claims 1-6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910833639.0A CN110737479A (en) | 2019-09-04 | 2019-09-04 | method for starting operating system without disk, server and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910833639.0A CN110737479A (en) | 2019-09-04 | 2019-09-04 | method for starting operating system without disk, server and readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110737479A true CN110737479A (en) | 2020-01-31 |
Family
ID=69267435
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910833639.0A Pending CN110737479A (en) | 2019-09-04 | 2019-09-04 | method for starting operating system without disk, server and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110737479A (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111371610A (en) * | 2020-02-29 | 2020-07-03 | 苏州浪潮智能科技有限公司 | Network card firmware batch refreshing method, system, terminal and storage medium |
CN111475175A (en) * | 2020-04-03 | 2020-07-31 | 苏州浪潮智能科技有限公司 | Method, device and medium for installing and guiding operation system based on ARM server |
CN111831346A (en) * | 2020-07-20 | 2020-10-27 | 平安科技(深圳)有限公司 | Starting method and device of memory operating system for data acquisition |
CN112433771A (en) * | 2020-11-27 | 2021-03-02 | 中电科技(北京)有限公司 | Automatic guiding method, client, server and system based on domestic platform |
WO2021120830A1 (en) * | 2020-06-24 | 2021-06-24 | 平安科技(深圳)有限公司 | Method and apparatus for launching operating system, computer device, and storage medium |
CN113064602A (en) * | 2021-03-08 | 2021-07-02 | 山东英信计算机技术有限公司 | Method, system and medium for filling operation system based on NFS |
CN113254091A (en) * | 2021-06-09 | 2021-08-13 | 广东睿江云计算股份有限公司 | Ceph block device-based diskless system starting method |
CN114003452A (en) * | 2021-10-29 | 2022-02-01 | 苏州浪潮智能科技有限公司 | Device testing method, control device, testing device, and storage medium |
CN114546501A (en) * | 2022-01-28 | 2022-05-27 | 郑州信大捷安信息技术股份有限公司 | Method for starting Linux operating system in physical read-only disk |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070214348A1 (en) * | 2006-03-07 | 2007-09-13 | Sun Microsystems, Inc. | Method and apparatus for operating system deployment |
CN102262546A (en) * | 2010-05-28 | 2011-11-30 | 鸿富锦精密工业(深圳)有限公司 | Method for booting operating system in diskless way, electronic device and server |
CN103744695A (en) * | 2013-12-25 | 2014-04-23 | 新浪网技术(中国)有限公司 | Method and system for operating system remote installation on basis of PXE |
CN104850437A (en) * | 2015-05-19 | 2015-08-19 | 曙光信息产业(北京)有限公司 | Installation method and apparatus of operating system |
CN109408124A (en) * | 2018-10-26 | 2019-03-01 | 紫光华山信息技术有限公司 | Store equipment and preparation method thereof, operating system double mode bootstrap technique and device |
CN109783117A (en) * | 2019-01-18 | 2019-05-21 | 中国人民解放军国防科技大学 | Mirror image file making and starting method of diskless system |
CN110045991A (en) * | 2019-03-08 | 2019-07-23 | 平安科技(深圳)有限公司 | RAID configuration method, device, computer equipment and the storage medium of server |
-
2019
- 2019-09-04 CN CN201910833639.0A patent/CN110737479A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070214348A1 (en) * | 2006-03-07 | 2007-09-13 | Sun Microsystems, Inc. | Method and apparatus for operating system deployment |
CN102262546A (en) * | 2010-05-28 | 2011-11-30 | 鸿富锦精密工业(深圳)有限公司 | Method for booting operating system in diskless way, electronic device and server |
CN103744695A (en) * | 2013-12-25 | 2014-04-23 | 新浪网技术(中国)有限公司 | Method and system for operating system remote installation on basis of PXE |
CN104850437A (en) * | 2015-05-19 | 2015-08-19 | 曙光信息产业(北京)有限公司 | Installation method and apparatus of operating system |
CN109408124A (en) * | 2018-10-26 | 2019-03-01 | 紫光华山信息技术有限公司 | Store equipment and preparation method thereof, operating system double mode bootstrap technique and device |
CN109783117A (en) * | 2019-01-18 | 2019-05-21 | 中国人民解放军国防科技大学 | Mirror image file making and starting method of diskless system |
CN110045991A (en) * | 2019-03-08 | 2019-07-23 | 平安科技(深圳)有限公司 | RAID configuration method, device, computer equipment and the storage medium of server |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111371610A (en) * | 2020-02-29 | 2020-07-03 | 苏州浪潮智能科技有限公司 | Network card firmware batch refreshing method, system, terminal and storage medium |
CN111475175A (en) * | 2020-04-03 | 2020-07-31 | 苏州浪潮智能科技有限公司 | Method, device and medium for installing and guiding operation system based on ARM server |
WO2021120830A1 (en) * | 2020-06-24 | 2021-06-24 | 平安科技(深圳)有限公司 | Method and apparatus for launching operating system, computer device, and storage medium |
CN111831346A (en) * | 2020-07-20 | 2020-10-27 | 平安科技(深圳)有限公司 | Starting method and device of memory operating system for data acquisition |
WO2021139355A1 (en) * | 2020-07-20 | 2021-07-15 | 平安科技(深圳)有限公司 | Method and apparatus for starting ram os for data collection |
CN112433771A (en) * | 2020-11-27 | 2021-03-02 | 中电科技(北京)有限公司 | Automatic guiding method, client, server and system based on domestic platform |
CN113064602A (en) * | 2021-03-08 | 2021-07-02 | 山东英信计算机技术有限公司 | Method, system and medium for filling operation system based on NFS |
CN113254091A (en) * | 2021-06-09 | 2021-08-13 | 广东睿江云计算股份有限公司 | Ceph block device-based diskless system starting method |
CN114003452A (en) * | 2021-10-29 | 2022-02-01 | 苏州浪潮智能科技有限公司 | Device testing method, control device, testing device, and storage medium |
CN114546501A (en) * | 2022-01-28 | 2022-05-27 | 郑州信大捷安信息技术股份有限公司 | Method for starting Linux operating system in physical read-only disk |
CN114546501B (en) * | 2022-01-28 | 2023-10-24 | 郑州信大捷安信息技术股份有限公司 | Method for starting Linux operating system in physical read-only disk |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110737479A (en) | method for starting operating system without disk, server and readable storage medium | |
RU2421785C2 (en) | Automated control of device drivers | |
US7379982B2 (en) | System and method for custom installation of an operating system on a remote client | |
US9501289B2 (en) | Method of a UEFI firmware and computer system thereof | |
US7360072B1 (en) | iSCSI system OS boot configuration modification | |
US7506144B2 (en) | Dynamic pre-operating system billboard service | |
US20160210168A1 (en) | Reconfiguring virtual machines | |
US8560822B1 (en) | Pre-boot operating environment | |
CN106911729B (en) | Remote installation method of operating system suitable for domestic processor | |
US8489871B2 (en) | Preboot execution environment test device and method | |
US20190339986A1 (en) | Uefi boot mode os provisioning system | |
US20110296159A1 (en) | Pxe server and electronic device and method of diskless booting electronic device | |
US20080077784A1 (en) | Electronic marketing on a computing device during select time windows | |
US20070168905A1 (en) | Networked linux machine and windows software development system | |
CN109426527B (en) | Computer system and method for sharing Bluetooth data between UEFI firmware and operating system | |
US20050160256A1 (en) | [remote boot method and device thereof and server device using remote boot method] | |
CN112771489A (en) | Method of controlling execution of heterogeneous operating system and electronic device and storage medium thereof | |
US7257704B2 (en) | Method of selectively loading a pre-boot execution extension determined based on an identifier | |
CN112068892A (en) | Diskless workstation starting method based on UEFI technology | |
US11256519B2 (en) | Using a single process to install a UEFI-supported OS or a non-UEFI supported OS on a hardware platform | |
CN111078305A (en) | Information acquisition method and device, server and information management system | |
US9342316B1 (en) | Installing digital signage device operating system from flash memory and registering signage device to a global network | |
US20150212866A1 (en) | Management system for service of multiple operating environments, and methods thereof | |
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 |
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 |