CN107621956B - Method for starting operating system based on network - Google Patents
Method for starting operating system based on network Download PDFInfo
- Publication number
- CN107621956B CN107621956B CN201710928663.3A CN201710928663A CN107621956B CN 107621956 B CN107621956 B CN 107621956B CN 201710928663 A CN201710928663 A CN 201710928663A CN 107621956 B CN107621956 B CN 107621956B
- Authority
- CN
- China
- Prior art keywords
- operating system
- client
- file
- server
- network
- 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
Links
Images
Abstract
The invention discloses a method for starting an operating system based on a network, which sequentially comprises the following steps: s1, the client acquires the IP address for the computer needing to be started; s2, downloading the kernel file of the first operating system from the first server; s3, executing and mounting the kernel file of the first operating system on the file system of the first operating system, starting the first operating system by the client through the file system, reading the menu file on the second server by the first operating system, and providing the menu of the second operating system to be operated for the client; s4, selecting a second operating system to be operated by the client; and S5, downloading the first operating system from the second server and simultaneously running the second operating system selected by the client. The method can solve the problem that the network starter is incompatible with machines with different instruction sets and architectures under the condition of not increasing extra expenditure or hardware investment, and realizes generalized multi-system selective starting.
Description
Technical Field
The present invention relates to a method for starting an operating system, and more particularly, to a method for starting an operating system based on a network.
Background
In order to facilitate centralized management and maintenance of operating systems for desktop and thin clients, a network mode is often used to start the operating systems, and a common network start mode is that a PXE protocol is used for a BIOS, and the protocol can start the operating systems from a server by obtaining a server address and a start file in a network environment, downloading the start file and executing the start file. The started operating system can be directly used for work or system installation and deployment, and the management and maintenance work of the whole computer network can be simplified.
Typically the PXE protocol requires several classes of services to be contained in the connected network: IP address services, file download services, network file services, PXE protocols are initiated by a computer that needs to be booted, which typically boots to an operating system as follows:
1. acquiring a reasonable IP address from an IP address service through a network for a computer needing to be started;
2. downloading a designated network starter program through a network;
3. the machine to be started executes the network starter program and acquires a starting menu from the network;
4. the user starts by selecting the operating system required for starting.
At present, a network boot mainly adopts a mode of loading a special network starter (Net Bootloader) from a network through a PXE protocol to select a boot system, and the mode needs the network starter to support an instruction set and an architecture of a computer, so that the network starter is difficult to be applied to machines with different instruction sets and architectures, and lacks of universality.
In addition, a method for downloading an interpreted execution script to support a plurality of network system start schemes is adopted, but the scheme needs to additionally add a Read Only Memory (ROM) or an erasable Programmable Read Only Memory (PROM) on a client, and needs to burn a system or an interpreter for executing the script in advance in a memory, so that the cost of the client is increased, and the complexity of the start stage of the client is increased.
Disclosure of Invention
The invention aims to provide a method for starting an operating system based on a network, which is suitable for the starting problem of multiple operating systems of hardware platforms with different instruction sets and architectures and simultaneously supports the selective starting of different operating systems.
The technical scheme of the invention is as follows: a method for starting an operating system based on a network sequentially comprises the following steps:
s1, the client acquires the IP address;
s2, downloading the kernel file of the first operating system from the first server;
s3, executing and mounting the kernel file of the first operating system on the file system of the first operating system, starting the first operating system by the client through the file system, reading the menu file on the second server by the first operating system, and providing the menu of the second operating system to be operated for the client;
s4, selecting a second operating system to be operated by the client;
and S5, downloading the first operating system from the second server and simultaneously running the second operating system selected by the client.
Further, the first operating system only includes an application program for providing an automatic or user interactive selection start-up menu, a support library file for supporting the application program to run, and a relevant operation command for executing a selection system kernel or a start-up file.
Further, when the IP address is obtained, the BIOS supporting the PXE obtains the IP through the PXE protocol, and does not support the BIOS of the PXE to manually set the IP.
Further, when the kernel file of the first operating system is downloaded from the first server, the PXE protocol provides the first server IP address and the file name of the kernel file to the client.
Further, the first server and the second server are the same server.
Further, the first server and the second server are different servers.
Further, the client is selected by the user via an input device of the client when selecting the second operating system.
The technical scheme provided by the invention has the advantages that: the selection of a starting system of a user is provided by downloading an operating system kernel and operating a first operating system on a network instead of a network starter, the first operating system is a micro operating system, the problem that the network starter is possibly incompatible with machines with different instruction sets and architectures is effectively solved, meanwhile, any additional hardware equipment is not required to be added to a client, the starting mechanism of a CPU is not required to be modified, and the problems of network starting and network starting of multiple operating systems can be solved as long as the network is supported. The method can eliminate the extra expense caused by other starting modes and increase the universality of the scheme of the network starting system, and can achieve the generalized multi-system selective starting without adding any hardware equipment.
Drawings
FIG. 1 is a diagram of a network-based method for booting an operating system.
Detailed Description
The present invention is further illustrated by the following examples, which are not to be construed as limiting the invention thereto.
Referring to fig. 1, a method for booting an operating system based on a network includes the following steps:
s1, aiming at the BIOS which supports PXE or does not support PXE, the former can set the IP address of the client machine through the PXE protocol, and the latter can set the IP address of the client machine through a direct setting mode;
the PXE protocol is to obtain IP address information through a DHCP protocol, the DHCP protocol is that a client broadcasts DHCP Discovery information to the whole local area network, a DHCP server in the local area network sends DHCP Offer information after receiving the information, the information comprises the IP address provided for the client, if the client receives the DHCP Request information and broadcasts the DHCP Request information to the network, the DHCP server determines whether to distribute the IP address after receiving the information, if the distribution is determined, the client sets the IP address information, and if the information has a PXE mark, the DHCP server provides a download file to the client.
The manual setting of the IP is simple, and the BIOS is required to support the manual setting function of the network, and fill in the corresponding network information such as the IP according to the requirement in the BIOS to make the network available.
S2, the first server of the former may be directly the DHCP server for the BIOS supporting PXE or not supporting PXE. The client acquires the downloaded file from the DHCP server, and the PXE protocol provides the DHCP server IP address and the downloaded file name of the downloaded file for the client, wherein the kernel file of the first operating system is required to be downloaded by the client;
the non-PXE mode needs the BIOS to provide support for downloading network files, a user can specify the IP address of the first server and download specific files for the client, namely, a download path and a file name, and kernel files of the first operating system need to be downloaded in the invention.
S3, the step is the main content of the present invention, after the client downloads and executes the kernel file of the first operating system, the kernel of the first operating system mounts the file system of the first operating system, the client directly starts the first operating system therein through the file system, the first operating system continuously reads the menu file on the second server, and the function realized by the first operating system can provide the client with the menu of the second operating system to be operated. The file system is a network file system, and the kernel of the first operating system mounts and executes the first operating system stored in the first operating system. The first operating system should contain at least: 1. an application program for providing an automatic or user interactive selection start menu and a support library file for supporting the operation of the application program; 2. for executing the relevant operation command of selecting the system kernel or starting the file.
And S4, selecting the second operating system to be run by the client through a keyboard, a mouse or other input devices from the menu.
S5, after the user selects, the first operating system may continue to load and start the second operating system on the selected second server.
Claims (6)
1. A method for starting an operating system based on a network is characterized by sequentially comprising the following steps:
s1, the client acquires the IP address;
s2, downloading the kernel file of the first operating system from the first server;
s3, executing and mounting the kernel file of the first operating system on the file system of the first operating system, starting the first operating system by the client through the file system, reading the menu file on the second server by the first operating system, and providing the menu of the second operating system to be operated for the client;
s4, selecting a second operating system to be operated by the client;
and S5, downloading and simultaneously running the second operating system selected by the client from the second server by the first operating system, wherein the first operating system only comprises an application program for providing an automatic or user interactive selection starting menu, a supporting library file for supporting the running of the application program and a relevant operating command for executing the selection of the system kernel or the starting file.
2. The method for booting an operating system over a network as claimed in claim 1, wherein when the IP address is obtained, the PXE-capable BIOS obtains the IP through the PXE protocol, and the PXE-incapable BIOS manually sets the IP.
3. The network-based method for booting an operating system as claimed in claim 1, wherein the PXE protocol provides the IP address of the client server and the file name of the kernel file when the kernel file of the first operating system is downloaded from the first server.
4. The network-based method of booting an operating system as claimed in claim 1 wherein the first server and the second server are the same server.
5. The network-based method of booting an operating system as claimed in claim 1 wherein the first server and the second server are different servers.
6. The network-based method of booting an operating system as claimed in claim 1 wherein the client selects the second operating system by a user through an input device of the client.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710928663.3A CN107621956B (en) | 2017-10-09 | 2017-10-09 | Method for starting operating system based on network |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710928663.3A CN107621956B (en) | 2017-10-09 | 2017-10-09 | Method for starting operating system based on network |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107621956A CN107621956A (en) | 2018-01-23 |
CN107621956B true CN107621956B (en) | 2021-11-30 |
Family
ID=61091380
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710928663.3A Active CN107621956B (en) | 2017-10-09 | 2017-10-09 | Method for starting operating system based on network |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107621956B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112068889A (en) * | 2020-07-31 | 2020-12-11 | 江苏航天龙梦信息技术有限公司 | Network starting realization of Loongson host |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101232400A (en) * | 2008-02-25 | 2008-07-30 | 浪潮电子信息产业股份有限公司 | Method for allocating operating system through network guide |
CN102262546A (en) * | 2010-05-28 | 2011-11-30 | 鸿富锦精密工业(深圳)有限公司 | Method for booting operating system in diskless way, electronic device and server |
CN106569842A (en) * | 2015-10-09 | 2017-04-19 | 中兴通讯股份有限公司 | Startup method and device for operating system |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6810478B1 (en) * | 2000-12-12 | 2004-10-26 | International Business Machines Corporation | System for remote booting of muntliple operating systems using chained bootstrap mechanism in a network |
US6684327B1 (en) * | 2000-12-12 | 2004-01-27 | International Business Machines Corporation | Extensible, flexible, memory efficient technique for network boot without special DHCP/PXE hardware |
CN101763277B (en) * | 2009-11-30 | 2013-01-30 | 英业达股份有限公司 | Method for automatically mounting operating system |
-
2017
- 2017-10-09 CN CN201710928663.3A patent/CN107621956B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101232400A (en) * | 2008-02-25 | 2008-07-30 | 浪潮电子信息产业股份有限公司 | Method for allocating operating system through network guide |
CN102262546A (en) * | 2010-05-28 | 2011-11-30 | 鸿富锦精密工业(深圳)有限公司 | Method for booting operating system in diskless way, electronic device and server |
CN106569842A (en) * | 2015-10-09 | 2017-04-19 | 中兴通讯股份有限公司 | Startup method and device for operating system |
Also Published As
Publication number | Publication date |
---|---|
CN107621956A (en) | 2018-01-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
RU2421785C2 (en) | Automated control of device drivers | |
JP5307706B2 (en) | Operating system gradual boot process | |
RU2417415C2 (en) | Method and system for deploying software, software deployment server and user server | |
US6963981B1 (en) | Method and apparatus for remote installation of an operating system over a network connection | |
CN109840096B (en) | Installation method and device of operating system | |
US20110296159A1 (en) | Pxe server and electronic device and method of diskless booting electronic device | |
JPH06222910A (en) | Method and apparatus for automatic installation of pluralityof software products pn computer device and for arrangement of operating environment of computer device | |
CN104639378A (en) | Automatic server deployment method based on PXE (pre-boot execution environment) | |
US20140325513A1 (en) | Dynamic Configuration of Virtual Appliances | |
CN106549789B (en) | Method and system for realizing server installation | |
CN102662884B (en) | Device driving program configuration method based on network | |
CN111966384B (en) | System updating method, device, equipment and computer readable storage medium | |
CN102141924A (en) | Batch production method of Linux boards and production server | |
CN112130917A (en) | Remote loading system mirroring method | |
CN109600439B (en) | PaaS platform and deployment method thereof based on microservice | |
CN107621956B (en) | Method for starting operating system based on network | |
CN108255500B (en) | Cobbler-based operating system automatic installation method compatible with virtualization architecture | |
CN112256351B (en) | Method for realizing Feign component, method and device for calling micro-service | |
CN111200527B (en) | Method for automatically discovering and deploying bare computer based on ironic | |
CN111475210A (en) | Method and system for booting PXE (PCI extensions for instrumentation) by using memory without disk | |
CN112416446B (en) | Linux network starting method and device based on Microsoft deployment system | |
CN112463173B (en) | Method, device and medium for remotely installing customized web application by bare metal server | |
CN111240589A (en) | Partition isolation-based system management method, device, equipment and storage medium | |
CN110830550A (en) | Computer cluster and diskless starting method thereof | |
KR100463838B1 (en) | Method for downloading and supporting nfs for uia boot loader |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |