CN112860325B - Automatic and rapid hardware drive preassembling method and system in diskless environment - Google Patents

Automatic and rapid hardware drive preassembling method and system in diskless environment Download PDF

Info

Publication number
CN112860325B
CN112860325B CN202110135067.6A CN202110135067A CN112860325B CN 112860325 B CN112860325 B CN 112860325B CN 202110135067 A CN202110135067 A CN 202110135067A CN 112860325 B CN112860325 B CN 112860325B
Authority
CN
China
Prior art keywords
hardware
client
operating system
driver
server
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
CN202110135067.6A
Other languages
Chinese (zh)
Other versions
CN112860325A (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.)
Chengdu Lingzhifeng Network Technology Co.,Ltd.
Original Assignee
Chengdu Lingwo Network Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chengdu Lingwo Network Technology Co ltd filed Critical Chengdu Lingwo Network Technology Co ltd
Priority to CN202110135067.6A priority Critical patent/CN112860325B/en
Publication of CN112860325A publication Critical patent/CN112860325A/en
Application granted granted Critical
Publication of CN112860325B publication Critical patent/CN112860325B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4406Loading of operating system

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a method and a system for automatically and quickly pre-installing a hardware drive in a diskless environment, wherein the method comprises the following steps: a client Bootloader module guides an operating system; the client is started, and after the operating system loads the core process ntoskrnl, a PNP configuration driver module of the client is loaded; the module identifies the installation of a hardware instance through registry callback and a hook bus driver, reads and analyzes hardware driver configuration information written by a server side at a fixed position, writes the analyzed registry data into a corresponding position of an operating system registry, and links a hardware driver file and a related software program thereof to a corresponding directory of the operating system in a soft link mode or copies the hardware driver file and the related software program thereof to the corresponding directory of the operating system in a hard copy mode. The invention has little influence (within 2 seconds) on the normal starting speed of the operating system even if the hardware drive with large installation size (more than 20M) is installed, and is stable and reliable.

Description

Automatic and rapid hardware drive preassembling method and system in diskless environment
Technical Field
The invention relates to a method and a system for automatically and quickly pre-installing a hardware drive in a diskless environment.
Background
Diskless systems, broadly referred to as local area networks, are comprised of diskless workstations. Compared with a common PC, the diskless workstation can start and run an operating system without any external memory (a floppy disk, a hard disk, an optical disk and the like) support.
The diskless software principle is that a server provides read-write service for a disk image, the image only stores an original operating system initially and does not contain any client hardware drive (different clients need different hardware drives), the client simulates a disk when starting, and data of the disk is read (through a network) from the disk image of the server.
In the prior art, after a system is started, a network maintenance worker needs to manually install a hardware driver of each client and store the hardware driver to a server, and clients with different configurations need to store different disk images, that is, different disk images need to be manufactured for different clients.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provides a method and a system for automatically and quickly pre-installing a hardware drive in a diskless environment.
The purpose of the invention is realized by the following technical scheme: a hardware drive automatic rapid preassembling method in a diskless environment comprises the following steps:
after the Boot loader module of the client is loaded, the Boot loader module communicates with the server to determine a Boot image which the client should use, and then starts to Boot an operating system; before guiding, reading related hardware elements from the PCI bus and reporting to a server;
the client is started, and after the operating system loads the core process ntoskrnl, a PNP configuration driver module of the client is loaded; the PNP configuration driver module of the client identifies the installation of a hardware instance through registry callback and hook bus drive, reads and analyzes hardware drive configuration information written in a fixed position by the server, writes the analyzed registry data into a corresponding position of an operating system registry, and links a hardware drive file and a related software program thereof to a corresponding directory of the operating system in a soft link mode or copies the hardware drive file and the related software program thereof to the corresponding directory of the operating system in a hard copy mode.
Further, the hardware elements include vendor ID, device ID, subsystem ID, and version ID.
Further, the method also comprises the following steps:
and the operating system loads the virtual disk driver module of the client, continuously reads the mirror image data from the server and enters the desktop.
The invention also provides a system for automatically and quickly preassembling the hardware drive in the diskless environment, which comprises the following components:
the client Boot loader module is used for providing identification and report of hardware elements, starting a Boot operating system and reading and writing of a disk mirror image before loading of an operating system core;
and the PNP configuration driver module of the client identifies the installation of a hardware instance through registry callback and hook bus drive after being loaded, reads and analyzes the hardware driver configuration information written in a fixed position by the server, writes the analyzed registry data into the corresponding position of the registry of the operating system, and links the hardware driver file and the related software program thereof to the corresponding directory of the operating system in a soft link mode or copies the hardware driver file and the related software program thereof to the corresponding directory of the operating system in a hard copy mode.
Further, the hardware elements include vendor ID, device ID, subsystem ID, and version ID.
Further, the client further includes:
and after the client virtual disk driver module is loaded, continuously reading the mirror image data from the server and entering the desktop.
The beneficial effects of the invention are: the invention realizes the full automation of the installation of the driver, and maintainers do not need to search different hardware drivers by themselves, thereby avoiding the problems of high maintenance amount and low construction efficiency caused by the fact that the hardware is different and the images need to be made in a targeted manner; meanwhile, even if the hardware drive with large installation size (more than 20M) is installed, the influence on the conventional starting speed of the operating system is extremely small (within 2 seconds), and the method is stable and reliable.
Drawings
FIG. 1 is a flow chart of the method of the present invention;
FIG. 2 is a schematic diagram of a client module according to the present invention.
Detailed Description
The technical scheme of the invention is further described in detail by combining the attached drawings: as shown in fig. 1, an automatic and fast pre-installing method for hardware drivers in a diskless environment includes the following steps:
(1) After the Boot loader module of the client is loaded, the Boot loader module communicates with the server to determine a Boot image which the client should use, and then starts to Boot an operating system; before the guiding, relevant hardware elements are read from the PCI bus and reported to the server. In this embodiment, the hardware elements include Vendor ID, device ID, subsystem ID, and version Revision ID. Boot loader refers to a diskless Boot program.
After reporting to the server, the server will make the corresponding hardware driver into a format recognizable by the client PNP configuration driver module according to the hardware information reported by the client, and store the format, and at the same time, dynamically analyze the partition and the file system of the startup image selected by the client, and write the hardware driver configuration information recognizable by the client PNP configuration driver and the related file into a fixed position in the file system (if the server does not have the hardware driver information of the same type, download from the cloud).
(2) The client is started, and after the operating system loads the core process ntoskrnl, a PNP configuration driver module of the client is loaded; the PNP configuration driver module of the client identifies the installation of a hardware instance through registry callback and a hook bus driver, reads and analyzes hardware driver configuration information written at a fixed position by the server, writes the analyzed registry data into a corresponding position of an operating system registry, and links a hardware driver file and a related software program thereof to a corresponding directory of the operating system in a soft link mode or copies the hardware driver file and the related software program thereof to the corresponding directory of the operating system in a hard copy mode. Wherein, PNP is Plug & Play (Plug and Play).
In this step, the PNP configuration driver module at the client end scans devices on the PCI bus (and other buses) when the system is started, and creates a corresponding registry entry (four elements of PCI hardware and instance ID for distinguishing the same type of devices) for the device if the scanned devices do not provide corresponding drivers; by registering registry callback and hooking PCI bus driver, the time point of operating system device program creation and installation can be detected, and the effect can be achieved only by pre-installing the operating system device when the operating system device is to be created but not created. Therefore, the client PNP configuration driver module recognizes the installation of the hardware through the registry callback and the bus driver, and is a key point for pre-installing the hardware driver. And the hardware driver files and related software programs thereof are linked to the corresponding directories of the operating system in a soft link mode or copied to the corresponding directories of the operating system in a hard copy mode, so that the speed of starting and pre-installing the massive hardware driver is not influenced, and even if the massive hardware driver (more than 20M) is installed, the influence on the conventional starting speed of the operating system is extremely small (within 2 seconds), and the method is stable and reliable.
(3) And the operating system loads the client virtual disk driver module, continuously reads the mirror image data from the server and enters a desktop. At this time, the user can normally use the client system because the installation of the various hardware drivers is successfully processed in step (2).
Based on the implementation of the foregoing method, this embodiment further provides a system for automatically and quickly pre-installing a hardware driver in a diskless environment, as shown in fig. 2, including:
the client Boot loader module is used for providing identification and report of hardware elements, starting a Boot operating system and reading and writing of a disk mirror image before loading of an operating system core;
and the PNP configuration driver module of the client identifies the installation of a hardware instance through registry callback and hook bus drive after being loaded, reads and analyzes the hardware driver configuration information written in a fixed position by the server, writes the analyzed registry data into the corresponding position of the registry of the operating system, and links the hardware driver file and the related software program thereof to the corresponding directory of the operating system in a soft link mode or copies the hardware driver file and the related software program thereof to the corresponding directory of the operating system in a hard copy mode.
Correspondingly, in the present embodiment, the hardware elements include a vendor ID, a device ID, a subsystem ID, and a version ID.
Correspondingly, in this embodiment, the client further includes:
and after the client virtual disk driver module is loaded, continuously reading the mirror image data from the server and entering the desktop.
While the present invention has been described by way of examples, and not by way of limitation, other variations of the disclosed embodiments, as would be readily apparent to one of skill in the art, are intended to be within the scope of the present invention, as defined by the claims.

Claims (6)

1. A hardware drive automatic rapid preassembling method in a diskless environment is characterized by comprising the following steps: the method comprises the following steps:
after a Boot loader module of the client is loaded, communicating with a server to determine a Boot mirror image which should be used by the client, and then starting to Boot an operating system; before guiding, reading related hardware elements from the PCI bus and reporting to a server;
after reporting to the server, the server will make the corresponding hardware driver into a format recognizable by the client PNP configuration driver module according to the hardware information reported by the client and store the format, and at the same time, dynamically analyze the partition and the file system of the starting mirror image selected by the client, and write the hardware driver configuration information recognizable by the client PNP configuration driver and the related file into a fixed position in the file system; if the server side does not have the same type of hardware driving information, downloading from the cloud side;
the client is started, and after the operating system loads the core process ntoskrnl, a PNP configuration driver module of the client is loaded; the PNP configuration driver module of the client identifies the installation of a hardware instance through registry callback and a hook bus driver, reads and analyzes hardware driver configuration information written at a fixed position by the server, writes the analyzed registry data into a corresponding position of an operating system registry, and links a hardware driver file and a related software program thereof to a corresponding directory of the operating system in a soft link mode or copies the hardware driver file and the related software program thereof to the corresponding directory of the operating system in a hard copy mode.
2. The method of claim 1, wherein the method comprises the following steps: the hardware elements include vendor ID, device ID, subsystem ID, and version ID.
3. The method of claim 1, wherein the method comprises: the method further comprises the following steps:
and the operating system loads the virtual disk driver module of the client, continuously reads the mirror image data from the server and enters the desktop.
4. The utility model provides a system of automatic quick pre-installation of hardware drive under diskless environment which characterized in that: the method comprises the following steps:
the client Boot loader module is used for providing identification and report of hardware elements, starting a Boot operating system and reading and writing of a disk mirror image before loading of an operating system core;
the server is used for making the corresponding hardware driver into a format which can be identified by a client PNP configuration driver module according to the hardware information reported by the client, storing the format, dynamically analyzing the partition and the file system of the starting mirror image selected by the client, and writing the hardware driver configuration information which can be identified by the client PNP configuration driver and the related file into a fixed position in the file system; if the server side does not have the same type of hardware driving information, downloading from the cloud side;
and the PNP configuration driver module of the client identifies the installation of a hardware instance through registry callback and hook bus drive after being loaded, reads and analyzes the hardware driver configuration information written in a fixed position by the server, writes the analyzed registry data into the corresponding position of the registry of the operating system, and links the hardware driver file and the related software program thereof to the corresponding directory of the operating system in a soft link mode or copies the hardware driver file and the related software program thereof to the corresponding directory of the operating system in a hard copy mode.
5. The system of claim 4, wherein the hardware driver is automatically and quickly pre-installed in a diskless environment, and the system comprises: the hardware elements include vendor ID, device ID, subsystem ID, and version ID.
6. The system of claim 4, wherein the hardware driver is automatically and quickly pre-installed in a diskless environment, and the system comprises: the client further comprises:
and after the client virtual disk driver module is loaded, continuously reading the mirror image data from the server and entering the desktop.
CN202110135067.6A 2017-09-21 2017-09-21 Automatic and rapid hardware drive preassembling method and system in diskless environment Active CN112860325B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110135067.6A CN112860325B (en) 2017-09-21 2017-09-21 Automatic and rapid hardware drive preassembling method and system in diskless environment

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110135067.6A CN112860325B (en) 2017-09-21 2017-09-21 Automatic and rapid hardware drive preassembling method and system in diskless environment
CN201710861175.5A CN107665131B (en) 2017-09-21 2017-09-21 Automatic and rapid client hardware drive preassembling method and client in diskless environment

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201710861175.5A Division CN107665131B (en) 2017-09-21 2017-09-21 Automatic and rapid client hardware drive preassembling method and client in diskless environment

Publications (2)

Publication Number Publication Date
CN112860325A CN112860325A (en) 2021-05-28
CN112860325B true CN112860325B (en) 2022-10-21

Family

ID=61098209

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201710861175.5A Active CN107665131B (en) 2017-09-21 2017-09-21 Automatic and rapid client hardware drive preassembling method and client in diskless environment
CN202110135067.6A Active CN112860325B (en) 2017-09-21 2017-09-21 Automatic and rapid hardware drive preassembling method and system in diskless environment

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN201710861175.5A Active CN107665131B (en) 2017-09-21 2017-09-21 Automatic and rapid client hardware drive preassembling method and client in diskless environment

Country Status (1)

Country Link
CN (2) CN107665131B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110618822B (en) * 2019-08-26 2023-02-07 杭州顺网科技股份有限公司 Method for pre-installing network card drive in starting stage of diskless workstation
CN110764831B (en) * 2019-10-30 2023-06-30 杭州顺网科技股份有限公司 Method for pre-installing display card drive in starting stage of diskless workstation
CN111221542B (en) * 2019-12-27 2023-10-20 福建升腾资讯有限公司 Method, device, system, equipment and medium for generating and installing system mirror image
CN111309387B (en) * 2020-01-22 2023-04-18 阿里巴巴集团控股有限公司 Method and device for loading drive, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101794235A (en) * 2010-03-05 2010-08-04 中国人民解放军国防科学技术大学 Diskless computer starting method based on operating system network drive
CN102209082A (en) * 2010-03-29 2011-10-05 联想(北京)有限公司 Terminal operation method and terminal
CN102385523A (en) * 2011-10-12 2012-03-21 中山爱科数字科技有限公司 Method for installing and managing driver of cloud operating system
CN106897093A (en) * 2017-02-24 2017-06-27 郑州云海信息技术有限公司 A kind of dispositions method and device of windows operating systems

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040024580A1 (en) * 2002-02-25 2004-02-05 Oak Technology, Inc. Server in a media system
US8898355B2 (en) * 2007-03-29 2014-11-25 Lenovo (Singapore) Pte. Ltd. Diskless client using a hypervisor
DE112008003910T5 (en) * 2008-06-20 2011-06-09 Lenovo (Singapore) Pte. Ltd. Diskless client using a hypervisor
CN102662884B (en) * 2012-04-16 2015-02-11 湖北盛天网络技术股份有限公司 Device driving program configuration method based on network
CN102750164B (en) * 2012-05-29 2016-01-20 湖北盛天网络技术股份有限公司 A kind of method of automatic configuration device driver
CN105162833B (en) * 2015-07-29 2019-09-13 杭州顺网科技股份有限公司 Client management system and method applied to non-disk workstation

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101794235A (en) * 2010-03-05 2010-08-04 中国人民解放军国防科学技术大学 Diskless computer starting method based on operating system network drive
CN102209082A (en) * 2010-03-29 2011-10-05 联想(北京)有限公司 Terminal operation method and terminal
CN102385523A (en) * 2011-10-12 2012-03-21 中山爱科数字科技有限公司 Method for installing and managing driver of cloud operating system
CN106897093A (en) * 2017-02-24 2017-06-27 郑州云海信息技术有限公司 A kind of dispositions method and device of windows operating systems

Also Published As

Publication number Publication date
CN107665131B (en) 2021-02-12
CN107665131A (en) 2018-02-06
CN112860325A (en) 2021-05-28

Similar Documents

Publication Publication Date Title
CN107577510B (en) Automatic and rapid hardware drive preassembling method and system in diskless environment
CN112860325B (en) Automatic and rapid hardware drive preassembling method and system in diskless environment
US9386079B2 (en) Method and system of virtual desktop infrastructure deployment studio
US6681323B1 (en) Method and system for automatically installing an initial software configuration including an operating system module from a library containing at least two operating system modules based on retrieved computer identification data
US8701110B2 (en) Efficient volume manager hot swapping
US8468522B2 (en) Virtual machine system, system for forcing policy, method for forcing policy, and virtual machine control program
JP4592814B2 (en) Information processing device
US20090271442A1 (en) Selectively Modifying Files of a Container File
CN110135130B (en) Method and system for preventing embedded equipment software from being modified
US20230266958A1 (en) Method for creating private image in public cloud and related device
CN106528226B (en) Installation method and device of operating system
CN111694604A (en) Method, device and equipment for installing drivers in batches and machine-readable storage medium
CN103064767A (en) Driver backup method, driver backup device, driver restoring method and driver restoring device
CN110618908B (en) Method for quickly verifying screen and machine display interface
JP3348430B2 (en) Automatic environment setting method of preinstalled application and storage medium
US9087040B2 (en) Method and apparatus for performing host based diagnostics using a service processor
CN113900693A (en) Firmware upgrading method, device and system, electronic equipment and storage medium
US9141565B2 (en) Memory bus attached input/output (‘I/O’) subsystem management in a computing system
CN116028100B (en) Software version upgrading method and electronic equipment
TWI401603B (en) Method and system for installing driver and compiling apparatus
CN113157287B (en) File burning method and device and computer readable storage medium
CN101236495A (en) Second generation personal system device recognition method and its method for loading driver
CN118051240A (en) Method, device, equipment, medium and product for installing computer operating system
CN117806665A (en) Method, device, equipment and medium for accelerating display card drive installation
CN105786652B (en) The method and device of driving backup, recovery

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230914

Address after: Room 704, 7th Floor, Block B, No. 199 Tianfu Third Street, Chengdu High tech Zone, China (Sichuan) Pilot Free Trade Zone, Chengdu City, Sichuan Province, 610041

Patentee after: Chengdu Lingzhifeng Network Technology Co.,Ltd.

Address before: 7 / F, area B, 199 Tianfu 3rd Street, Chengdu hi tech Zone, China (Sichuan) pilot Free Trade Zone, Chengdu, Sichuan 610041

Patentee before: CHENGDU LINGWO NETWORK TECHNOLOGY CO.,LTD.