CN102053845A - Electronic device for automatically and continuously mounting operating system and related method and system thereof - Google Patents

Electronic device for automatically and continuously mounting operating system and related method and system thereof Download PDF

Info

Publication number
CN102053845A
CN102053845A CN2009102105721A CN200910210572A CN102053845A CN 102053845 A CN102053845 A CN 102053845A CN 2009102105721 A CN2009102105721 A CN 2009102105721A CN 200910210572 A CN200910210572 A CN 200910210572A CN 102053845 A CN102053845 A CN 102053845A
Authority
CN
China
Prior art keywords
measured
operating system
installation
module
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.)
Granted
Application number
CN2009102105721A
Other languages
Chinese (zh)
Other versions
CN102053845B (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.)
Wistron Corp
Original Assignee
Wistron Corp
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 Wistron Corp filed Critical Wistron Corp
Priority to CN200910210572.1A priority Critical patent/CN102053845B/en
Publication of CN102053845A publication Critical patent/CN102053845A/en
Application granted granted Critical
Publication of CN102053845B publication Critical patent/CN102053845B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention provides a method for automatically and continuously mounting an operating system which is operated in an electronic device of the operating system to save the labor cost. The method comprises the following steps of: eliminating a boot sector of the electronic device to generate a state without boot record during operating the operating system; and after the electronic device is restarted, mounting a target operating system according to the state without boot record and a mounting process corresponding to the target operating system.

Description

The electronic installation of the continuous installing operating system of robotization and correlation technique thereof and system
Technical field
The present invention is meant a kind of electronic installation and correlation technique and system, but refers to a kind of robotization electronic installation and the correlation technique and the system of a plurality of operating systems of installation continuously especially.
Background technology
Computer product must be tested at the software and hardware function before shipment, to guarantee product quality.Because manufacturer is large quantities of volume productions and the computer product that can produce different qualities, therefore need have the high test macro of high-level efficiency, robotization and application.
At present, the network type test macro has higher efficient and application, and it possesses a server and a test database usually.Operating personnel can be according to working as batch Design of device to be measured, test file and test environment file on server, have been set up in advance, download for device to be measured and to carry out test jobs, and test database can provide the dependence test parameter and collect the test result of device to be measured.
To the device to be measured of computer product class, operating personnel need carry out the test under the various different operating system environment, can be working properly under the operating system that the consumer may install to guarantee product.In the network type test macro, device to be measured need download and install process module (Answer File) from server end by long-range field engineering, and the operating system to be measured on the build-in services device in view of the above.Current industry on the network type test macro the most long-range installation environment of normal use for the preceding execution environment of starting shooting (PrebootExecution Environment, PXE).Please refer to Fig. 1, Fig. 1 is the schematic flow sheet that becomes known for a testing process 10 of a device to be measured.Testing process 10 comprises the following step:
Step 100: power-on.
Step 102: press the F12 key by operating personnel and enter a network boot program with carry PXE network installation function.
Step 104: enter the PXE functional menu.
Step 106: choose an operating system to be measured by operating personnel.
Step 108: from an installation procedure module of this operating system to be measured of downloaded.
Step 110:, this operating system to be measured is installed according to the installation procedure module.
Step 112: in this plant network to be measured install be selected operating system to be measured after, from a test module of this this operating system of downloaded.
Step 114: the test parameter of calling out a test database.
Step 116:, carry out this test module and carry out a testing process according to test parameter.
Step 118: after this testing process is finished, transmit test result and give this test database.
Step 120: finish.
By known testing process 10, operating personnel once can install an operating system to be measured on device to be measured, yet device to be measured need be tested dozens of operating system usually, to guarantee product quality.Therefore in known test system, operating personnel whenever finish testing process 10 one time, must restart device to be measured earlier, carry out testing process 10 once again, to install and to test next operating system to be measured, up to the test jobs end of all operating system to be measured.These expression operating personnel must treat often on device to be measured next door, determine whether current operating system to be measured tests to finish, and the next operating system to be measured of manual installation again, and this also means operating personnel after next, device to be measured can't continue test jobs.In other words, such test macro must expend higher human cost.
In addition, the publication number CN 1504880A of the People's Republic of China (PRC) has disclosed the automatic method of installing of a kind of Linux of utilization complete operation system, it is mainly according to the hardware actual conditions of destination apparatus, script (Answer File) is replied in the corresponding installation of generation and system is provided with script, automatically install to reach operating system, but the method only is used for installing automatically a destination OS, if another destination OS need be installed automatically, still needs the user manually to repeat related procedure.
Summary of the invention
Therefore, but the present invention mainly is to provide a kind of robotization that electronic installation and the correlation technique and the system of a plurality of operating systems are installed continuously, to save human cost.
The present invention discloses a kind of electronic installation of robotization installing operating system, and it comprises a system operation unit, a receiving element, an installation procedure module, installation oriented module and system's installation unit.This system operation unit is used for operating in an operating system.This receiving element is used for receiving a destination OS.This installation procedure module is used to provide the installation procedure corresponding to this destination OS.This installation oriented module is used under the environment of this operating system, removes a start sector of this electronic installation, does not have the start recording status to produce one.This system's installation unit is used for after this electronic installation restarts, and does not have start recording status and this installation procedure according to this, and this destination OS is installed.
The present invention also discloses an a kind of electronic installation that is used to operate in an operating system, but the method for the continuous installing operating system of robotization, it includes when operating in this operating system, removes a start sector of this electronic installation, does not have the start recording status to produce one; And after this electronic installation restarts, do not have start recording status and, this destination OS is installed corresponding to an installation procedure of this destination OS according to this.
But the present invention also discloses a kind of method that is used for a test macro robotization installing operating system, and it includes provides a server, and it comprises a plurality of operating systems to be measured and a long-range installation environment; One device to be measured is provided, be coupled to this server, operate in one the 3rd operating system to be measured of these a plurality of operating systems to be measured, wherein this device to be measured is compatible with this long-range installation environment, and has corresponding to one the 3rd of the 3rd operating system to be measured oriented module and one the 4th installation procedure module corresponding to one the 4th operating system to be measured of these a plurality of operating systems to be measured are installed; Utilize this installation oriented module to remove a start sector of this device to be measured, do not have the start recording status to produce one; Restart this device to be measured that operates in the 3rd operating system to be measured; This is to be measured be installed on restart after, enter a network boot program according to this nothing start recording status, with this long-range installation environment of carry; Under this long-range installation environment, the 4th operating system to be measured is mounted to this device to be measured from this server according to this installation procedure module; And after this device installation the 4th operating system to be measured to be measured, carry out one the 4th testing process corresponding to the 4th operating system to be measured.
Description of drawings
Fig. 1 is the schematic flow sheet of a known testing process.
But Fig. 2 is the synoptic diagram of an electronic installation of embodiment of the invention robotization installing operating system.
Fig. 3 is the schematic flow sheet of the embodiment of the invention one flow process.
Fig. 4 is the synoptic diagram of the embodiment of the invention one test macro.
Fig. 5 A and 5B are the schematic flow sheet of the embodiment of the invention one testing process.
[main element label declaration]
20 electronic installations, 200 system operation unit
202 operating systems, 210 receiving elements
220 installation procedure modules, 222 destination OSs
230 install oriented module 232 start sectors
240 system's installation units, 260 hardware testing modules
NUL_BR does not have start recording status SEP_Pr installation procedure
40 test macros, 400 servers
410 device 420 test databases to be measured
Execution environment before 402 starts of 430 control and monitor consoles
OS (1)~OS (n) operating system to be measured
TES (1)~TES (n) test module
AsF (1)~AsF (n) installation procedure module
CMF (1)~CMF (n) installs oriented module
404 network initiation module, 406 files are shared and transport module
Carry out enactment document 412 network element before 408 starts
414 system operation unit, 416 system's installation units
30 flow processs, 10,50 testing processs
250, SYSIM (1)~SYSIM (n) system indicating module
300,310,320,330,100,102,104,106,108,110,112,114,116,118,120,502,504,506,508,510,512,514,516,518,520,522,524,526,528,530,532,534,536 steps
Embodiment
Please refer to Fig. 2, but Fig. 2 is the synoptic diagram of an electronic installation 20 of embodiment of the invention robotization installing operating system.Electronic installation 20 can carry out hard disk start and non-hand disk start (as network or CD start), and the selection cis-position of hard disk start has precedence over the non-hand disk start, for example: the power-up sequence of floppy drive → Winchester disk drive → CD-ROM drive → network.In addition, electronic installation 20 comprises a system operation unit 200, a receiving element 210, an installation procedure module (Answer File) 220, one installation oriented module 230, system's installation unit 240, system's indicating module 250 and a hardware testing module 260.System operation unit 200 is used for allowing electronic installation 20 operate in an operating system 202 of installation.When operating in this operating system 202, every hardware unit of hardware testing module 260 beginning testing electronic devices 20, for example Basic Input or Output System (BIOS) (Basic Input/Output System, BIOS), test such as hard drive program, network card driver, power supply.After the end of job to be tested, the start sector 232 that oriented module 230 is removed the hard disk of electronic installation 20 is installed, does not have start recording status NUL_BR to produce one.In preferred embodiment of the present invention, the start sector be a main start record (Master Boot Record, MBR).Hard disk on the electronic installation 20 can be Integrated Device Electronics (Integrated DeviceElectronics, IDE) or small computer system interface (Small Computer SystemInterface, SCSI), SAS, SSD, the SATA hard disk of 2.5 o'clock or 3.5 o'clock, or the disk array card, as: RAID0, RAID1 and RAID6.Therefore, electronic installation 20 utilizes installation oriented module 230 can remove operating system cut section loading data (Boot Partition Loader) or the hard disk partition data (Partition Data) of start with hard disk.After not having start recording status NUL_BR generation, system's indicating module 250 can be produced by system's installation unit 240, to indicate the next operating system that needs to install to system operation unit 200.Installation procedure module 220 is used to provide the installation procedure SEP_Pr corresponding to a destination OS 222.After electronic installation 20 restarted, system's installation unit 240 was not according to having start recording status NUL_BR and installation procedure SEP_Pr, installation targets operating system 222, and wherein destination OS 222 is to obtain by receiving element 210.After this, 200 of system operation unit operate in the destination OS 222 of new installation.In other words, because the start data of hard disk are eliminated, so electronic installation 20 can't carry out the hard disk start after restarting, and adopts the non-hand disk start and change, and then utilizes installation procedure module 220 that new operating system is installed.
Therefore, in the present invention, can build in the electronic installation 20 and put installation oriented module and the installation procedure module of many groups corresponding to different operating system, thus, electronic installation 20 can be installed the respective operations system according to the installation procedure module, and removes the start sector during operating in this operating system, with after restarting, another operating system is not installed automatically according to there being the start recording status.Thus, electronic installation 20 can reach the purpose that a plurality of operating systems are installed in robotization continuously.
In addition, the installation procedure module 220 of electronic installation 20, installation oriented module 230 and hardware testing module 260 can obtain by receiving element 210.For instance, if the non-hand disk that electronic installation 20 is carried out start is CD start, then receiving element 210 can be a data transmission interface, for example IDE or SCSI are with from light memory device receiving target operating system 222, hardware testing module 260, installation procedure module 220 and oriented module 230 is installed.Or if receiving element 210 is a network element, it is started shooting by network, is connected in server, and shares or host-host protocol by network file, obtains destination OS 222, installation procedure module 220 and oriented module 230 is installed.Under the situation of using the network automatic remote to install, system operation unit 200 can produce system's indicating module 250, and is sent to server by receiving element 210, with the operating system of indicating next desire to install.
Please refer to Fig. 3, Fig. 3 is the schematic flow sheet of the embodiment of the invention one flow process 30.Flow process 30 is used for realizing the operation of electronic installation 20, and it comprises the following step:
Step 300: beginning.
Step 310: when operating in operating system 202, remove start sector 232, do not have start recording status NUL_BR to produce.
Step 320: after electronic installation 20 restarts, according to not having start recording status NUL_BR and installation procedure SEP_Pr, installation targets operating system 222.
Step 330: finish.
Flow process 30 is explanation electronic installation 20 initiatively is installed as another operating system from an operating system operation stepss.Electronic installation 20 installations and operating in when destination OS, execution in step 310 once again, promptly remove the start sector once again, so that another destination OS to be installed.In other words, by repeating flow process 30 automatically, but a plurality of operating systems are installed in electronic installation 20 robotizations continuously.Because flow process 30 is used for realizing the operation of electronic installation 20, therefore principle please refer to above stated specification in detail.
In addition, notion of the present invention can be applied in the industry test macro, allows tested computer installation can carry out the test jobs of different operating system automatically continuously, does not need operating personnel's manual installation operating system one by one.Please refer to Fig. 4, Fig. 4 is the synoptic diagram of the embodiment of the invention one test macro 40.Test macro 40 comprises a server 400, one device 410 to be measured, a test database 420 and a control and monitor console 430, and it links to each other by zone or Wide Area Network.The method of testing of test macro 40 is mainly server 400 a plurality of operating systems to be measured is provided, and allows device to be measured 410 install automatically by network, and finishes laggard line correlation testing process in each operating system installation.Database 420 is used to provide the project and the parameter of testing process, and the test result of collecting device 410 to be measured.The tester can utilize control and monitor console 430 change test event and parameters.The detailed principle and the demand of whole method of testing please refer to " server setting ", " device setting to be measured " and " installing and testing process " explanation.
" server setting ":
Server 400 comprise execution environment before the start (Preboot Execution Environment, PXE) 402, operating system OS to be measured (1)~OS (n), test module TES (1)~TES (n), installation procedure module (Answer File) AsF (1)~AsF (n) and oriented module CMF (1)~CMF (n) is installed.Server 400 can operate in Microsoft or (SuSE) Linux OS, utilizes PXE environment Long-distance Control device 410 to be measured that the test of operating system OS to be measured (the 1)~OS (n) and the software and hardware of being correlated with is installed automatically continuously.Operating system OS to be measured (1)~OS (n) can the image file pattern be stored in the server 400, can be DOS (Disk Operating system), Linux and Microsoft (Microsoft, MS) or the like operating system.
In order to realize the PXE environment, server 400 must possess a network initiation module 404 at least, a file is shared and transport module 406 and the preceding enactment document 408 of carrying out of a start.Network initiation module 404 is used to dispose device to be measured 410 1 network addresss; File is shared and transport module 406 is used for setting up a network file with device 410 to be measured and shares and transmit line, with transmission and share operating system, test and system relevant module is installed; When carrying out enactment document 408 before the start and being used for before device 410 carries start to be measured execution environment, provide the menu of starting shooting to device 410 to be measured.
For instance, before the start of (SuSE) Linux OS under the execution environment, server 400 need possess a DHCP (Dynamic Host Configuration Protocol, DHCP) servo module, a network file system(NFS) (Network File System, NFS) (Trivial File Transfer Protocol TFTP) carries out enactment document pxelinux.cfg/default before a servo module and the start for servo module, a skeleton symbol file transfer protocol (FTP).The DHCP servo module is used to provide device to be measured 410 1 dynamic network addresses, to allow device 410 to be measured become a network node of test macro 40; The network file system(NFS) servo module provides the file sharing service; Skeleton symbol file transfer protocol (FTP) servo module is used to provide one and is based upon user's data element agreement (User Datagram Protocol, UDP) the file transfer binding on; Carrying out enactment document pxelinux.cfg/default before the start is the default file that is based upon under the pxelinux.cfg catalogue, one example following (# represents explanation):
The default installing operating system of default rh5u3x32# is the rh5u3x32 of following label
Timeout 60#60 not selection operation system of user in second then uses default the installation
prompt?1
The display display.msg# show message of starting shooting can be used to show the option of operating system to be measured
F1 test.msg # presses the show message of F1 key
F2 test2.msg # presses the show message of F2 key
The option that label localboot # uses the hard disk of device 410 to be measured directly to start shooting
LOCALBOOT?0
Label rh5u3x32 # operating system Red Hat 5 Update 3 to be measured, and the installation procedure module and the network card of the Kickstart type that need import
kernel rh5u3x32/rh5u3x32
append initrd=rh5u3x32/rh5u3x32.img ramdisk_size=256000method=nfs:192.168.100.1:/opt/iso/rh5u3x32 ip=dhcp?vga=80x25
Label sles10sp1x32 # operating system SUSE Enterprise to be measured Linux 10 SP2x32, and the installation procedure module of the AutoYast type that need import
kernel?sles10sp1x32/sles10sp1x32
append?initrd=sles10sp1x32/sles10sp1x32.img?ramdisk_size=256000insmode=nfs netconfig=dhcp
install=nfs://192.168.100.1/opt/iso/sles10sp1x32 vga=0x314
splash=verbose
Label win # operating system Windows to be measured and associated core thereof and installation are set
kernel?pxeboot.0
If before the start of microsoft operation system under the execution environment, except carrying out enactment document before aforementioned DHCP, network file system(NFS) servo module, skeleton symbol file transfer protocol (FTP) servo module and the start, its setting content can be with reference to carrying out outside the enactment document pxelinux.cfg/default before the aforementioned start, and server 400 possesses following condition at least to reach the function of automatic installation:
One, need possess simultaneously the subordinate of Microsoft service (Windows Deployment Service, WDS) and remote installation service (Remote Install Service, RIS) servo function, or Microsoft's external member of other equal effect;
Two, welcome.osg in remote installation service, welcome.osg, warning.osg, oschoice.osg, in install.osg and the login.osg enactment document<TITLE〉add instruction<META ACTION=AUTOENTER between the instruction area 〉, and in login.osg, add instruction<INPUTNAME=" USERNAME " MAXLENGTH=255 TYPE=TEXT VALUE=administrator〉and<INPUT NAME=" * PASSWORD " TYPE=PASSWORD MAXLENGTH=20〉<BR 〉, to skip manual input manager person's number of the account, the normal process of the operating system that password and desire are installed;
Three, the pxeboot.n12 filename under the microsoft operation system i386 catalogue changes pxeboot.0 into, is used for skipping the manual step that the user needs to open by F12 the preceding execution environment of start.
In addition, in server 400, the corresponding respectively test module of each operating system to be measured, installation procedure module and installation oriented module.Test module TES (1)~TES (n) is used to provide the testing process of operating system OS to be measured (1)~OS (n) respectively and gives device 410 to be measured, test event can comprise start again, pressure test, Basic Input or Output System (BIOS), hard drive program, network card driver, power supply, baseboard management controller (Baseboard Management Controller, BMC), temperature survey, remote opening function (Wake On LAN, WOL) or the like.Installation procedure modules A sF (1)~AsF (n) is used to provide the installation procedure of operating system OS to be measured (1)~OS (n) respectively and gives device 410 to be measured.Because the installation procedure module extensively is well known to those skilled in the art, and for example can utilize Kickstart or AutoYast configuration file under the Linux environment, can utilize the ristndrd.sif file under the i386 templates catalogue to realize under microsoft environment.Below be the program example (# represents explanation) that is used for importing test module in the installation procedure module:
Example one, operating system Red Hat/Kickstart grammer to be measured:
%post# guides device 410 to be measured to carry out follow procedure in installing after operating system to be measured is finished
Figure B2009102105721D0000081
Figure B2009102105721D0000091
Example two, operating system SUSE Linux/XML to be measured (Extens ible Markup Language) grammer:
Figure B2009102105721D0000092
Figure B2009102105721D0000101
Oriented module CMF (1)~CMF (n) is installed is used for allowing device 410 to be measured respectively under operating system OS to be measured (1)~OS (n) environment, and removing one main start record (Master boot Record, MBR).The present invention is in a little installation oriented module example (# represents explanation) hereinafter is provided:
In example one, the relevant operating system to be measured of Linux, be used for removing main start record to give an order:
dd?if=/dev/zero?of=/dev/sda?bs=512?count=1
Example two, operating system Windows to be measured:
Run(″cmd.exe″)
Send (" mbrwiz/Part=0/Del/Confirm ") # calls out a mbrwiz application program and removes main start record
Send (" { Enter} ") # transmits input validation instruction
" device setting to be measured ":
Device 410 to be measured comprises a network element 412, a system operation unit 414, system's installation unit 416.When PXE network installation function is used in device 410 starts to be measured, the network address that network element 412 is disposed according to server 400, the network address of setting itself, to add the network of test macro 40, also be used in addition setting up file transfer and sharing line with server 400, with obtain and use the start of server 400 before carry out enactment document, operating system OS to be measured (1)~OS (n), test module TES (1)~TES (n), installation procedure modules A sF (1)~AsF (n) and oriented module CMF (1)~CMF (n) is installed, and the test data that provided of test database 420.System operation unit 414 is used for operating in mounted operating system to be measured, and according to test module that is received and test data, carries out testing process.After testing process finished, system operation unit 414 was reported test result by network element 412 and is given test database 420.In addition, system operation unit 414 can be carried out oriented module CMF (1)~CMF (n) is installed, and under operating system OS to be measured (the 1)~OS (n) in operation respectively, removes the start sector, does not have the start recording status to produce.Under operating system OS to be measured (1)~OS (n) environment, system operation unit 414 produces and reading system indicating module SYSIM (1)~SYSIM (n), is used to refer to next operating system to be measured and gives system's installation unit 416 and server 400.System's installation unit 416 comprises the BIOS of device 410 to be measured, it after starting shooting at every turn again, not can not find hard disk owing to there is the start recording status, thereby turn to and carry out network start, then system's installation unit 416 is respectively according to the indicating module SYSIM of system (1)~SYSIM (n), receive installation procedure modules A sF (1)~AsF (n), to download and to install operating system OS to be measured (1)~OS (n).
" install and testing process ":
Please also refer to Fig. 5 A and 5B, Fig. 5 A and 5B are the schematic flow sheet that is used for a testing process 50 of device 410 to be measured.Suppose in the testing process 50, the power-up sequence of device 410 to be measured be hard disk start formerly, the network start after.By testing process 50, operating system to be measured can be installed and test to device 410 to be measured automatically continuously.Testing process 50 comprises the following step:
Step 502: power-on.
Step 504: enter a network boot program, with carry PXE network installation function.
Step 506: enter the PXE functional menu.
Step 508: choose an operating system to be measured (, then choosing operating system OS to be measured (1)) if first operating system to be measured that need install is OS (1).
Step 510: download the installation procedure module that is selected operating system to be measured and oriented module is installed from server 400.
Step 512:, install and be selected operating system to be measured according to the installation procedure module.
Step 514: in device 410 network installations to be measured are intact be selected operating system to be measured after, download the test module of operating system to be measured from server 400.
Step 516: the test parameter of call testing database 420.
Step 518:, carry out test module and carry out testing process according to test parameter.
Step 520: after testing process is finished, transmit test result and give test database 420.
Step 522:, judge that tested operating system to be measured is last operating system to be measured according to test parameter? if then carry out step 536; If not, then carry out step 524.
Step 524:, produce the tested pairing system of operating system to be measured indicating module to server 400, to indicate next operating system to be measured according to test parameter.
Step 526: utilize oriented module is installed, remove the start sector, do not have the start recording status to produce one.
Step 528:, restart according to the installation procedure module.
Step 530: do not have the start recording status according to this, enter the network boot program with carry PXE network installation function.
Step 532: enter the PXE functional menu.
Step 534:, choose operating system next to be measured indicated in this system's indicating module automatically, and then carry out step 510 according to the predetermined system of PXE functional menu.
Step 536: finish.
Step 504~508 are used for carry PXE network installation function and first operating system to be measured is installed, i.e. OS (1); Relatively, in step 530~534, device 410 automatic carry PXE network installation functions to be measured and automatic selection operating system to be measured.Wherein, in step 504~506 and 530~532, the network address that device 410 to be measured is disposed according to server 400, and share and transmit line by setting up a network file, carry PXE network installation function, and the content according to carrying out enactment document pxelinux.cfg/default before the start shows the PXE menu.In step 532~534, device 410 to be measured is to wait for that pxelinux.cfg/default sets timeout after the time, selects default operating system to be measured.
In step 522~524, according to test parameter, whether device 410 to be measured can be learnt the next operating system to be measured that needs installation, and the title of Next operating system to be measured.On the other hand, server 400 can be monitored the system's indicating module in the device 410 to be measured always, for instance, when operating in operating system OS to be measured (1) as if device 410 to be measured, server 400 supervisory system indicating module SYSIM (1); When if device 410 to be measured operates in operating system OS to be measured (2), server 400 supervisory system indicating module SYSIM (2), by that analogy.When the operating system contents of a project to be measured in the system's indicating module that is produced changed, server 400 was followed the predetermined system of default project among the modification/tftpboot/pxelinux.cfg/default, and restarted this tftp service.Thus, carry out step 530 by the time~at 534 o'clock, device 410 to be measured can be chosen the indicated operating system to be measured of previous system's indicating module.Below be one of example of system's indicating module (# represents explanation):
One of example of system's indicating module can be the procedure code (shell script) of the system indicating module of server 400 under the Linux environment:
Figure B2009102105721D0000121
Figure B2009102105721D0000131
The procedure code (shell script) of system's indicating module on device 410 to be measured:
Figure B2009102105721D0000132
In step 526~530, the operating system to be measured that the present invention installs as required, utilize corresponding installation oriented module, remove the start sector, thus, device 410 to be measured can be judged hard disk format as yet (promptly not having the start recording status) after restarting, thereby gives up the hard disk start and turn to network start, carry PXE network installation function at last.
In simple terms, if the order of operating system to be measured is OS (1)~OS (8), only need to select first operating system OS to be measured (1), and select first listed operating system OS that need test (1) among the installation procedure modules A sF (1), with automatic installing operating system OS (1).Test jobs can be installed and carry out to after this all operating system to be measured all automatically.After installing operating system OS (1) by installation procedure modules A sF (1), server 400 and test database 420 can automatically and be inserted and oriented module CMF (1) and test module TES (1) will be installed on device 410 to be measured, and after all tests are finished.Device 410 to be measured can produce and reading system indicating module SYSIM (1), in the indicating module SYSIM of system (1), be used for guiding the corresponding flag of next operating system OS (2) with first carry server 400 and calling, and server can be according to this flag, and producing the installation procedure module is AsF (2).In addition, behind the device 410 executive system indicating module SYSIM (1) to be measured, can use the start sector that oriented module CMF (1) removes to delete device 410 to be measured is installed, and then start again, and then according to aforementioned repeated call installation procedure modules A sF (2)~AsF (8), installation oriented module CMF (2)~CMF (8), the indicating module SYSIM of system (2)~SYSIM (8) and hardware testing module TES (2)~TES (8), to finish all tests automatically.
Therefore, by testing process 50, first operating system OS to be measured (1) is being installed afterwards, device 410 to be measured can be installed all operating system OS to be measured (2)~OS (n) automatically, and carry out the dependence test flow process, operating personnel return test macro 40 after can waiting until that all testing processs finish, and study the test result of device 410 to be measured.What pay special attention to is, Fig. 4 only draws a device to be measured for asking convenient explanation, but in fact server 400 can once carry out operating system installation with a plurality of devices to be measured, correlation parameter and module (as installation procedure module and installation oriented module) can be by point-to-point or broadcast mode transmission, with testing progress indivedual or centralized control device to be measured.
What pay special attention to is, installation procedure module of the present invention can with other module, as oriented module or system's indicating module are installed, be merged into a module, with the Internet resources of saving test macro and the system resource of actuating station (as electronic installation 20 or device to be measured 410).
In sum, but the invention provides the device and method of automatic installing operating system, and this notion is applied on the test macro, make the device to be measured of test macro of the present invention automatically to install continuously and Test Operating System, thus, only need on server, build in advance and put device to be measured required test environment file and operating system, not need each operating system to be measured of manual installation.In other words, even operating personnel are next, test macro can carry out test jobs voluntarily.Therefore, test macro of the present invention can be saved great deal of labor, and then promotes testing efficiency.
The above only is preferred embodiment of the present invention, and all equalizations of being done according to claim scope of the present invention change and modify, and all should belong to covering scope of the present invention.

Claims (25)

1. the electronic installation of the continuous installing operating system of robotization includes:
One system operation unit operates in an operating system;
One receiving element is used for receiving a destination OS;
One installation procedure module is used to provide the installation procedure corresponding to this destination OS;
One installs oriented module, is used under the environment of this operating system, removes a start sector of this electronic installation, does not have the start recording status to produce one; And
One system's installation unit is used for after this electronic installation restarts, and does not have start recording status and this installation procedure according to this, and this destination OS is installed.
2. electronic installation according to claim 1, wherein this system operation unit operates in this destination OS after this system's installation unit is installed this destination OS.
3. electronic installation according to claim 1, wherein this electronic installation has hard disk start formerly, the non-hand disk start after power-up sequence.
4. electronic installation according to claim 1, wherein this receiving element is a network element, couples a server, and this receiving element hardware testing module of also receiving this installation procedure module, this installation oriented module and being used for testing this electronic installation.
5. electronic installation according to claim 4, wherein this system operation unit also produces system's indicating module, gives this server to indicate this destination OS.
6. electronic installation according to claim 1, wherein this receiving element is a data transmission interface, and this receiving element hardware testing module of receiving this installation procedure module, this installation oriented module in addition and being used for testing this electronic installation.
7. the method for the continuous installing operating system of robotization is used to operate in an electronic installation of an operating system, and this method includes:
When operating in this operating system, remove a start sector of this electronic installation, there is not the start recording status to produce one; And
After this electronic installation restarts, do not have start recording status and, this destination OS is installed corresponding to an installation procedure of a destination OS according to this.
8. the method for the continuous installing operating system of robotization according to claim 7, it also is contained in after this destination OS installation, operates in this destination OS.
9. the method for the continuous installing operating system of robotization according to claim 7, wherein this electronic installation has hard disk start formerly, the non-hand disk start after power-up sequence.
10. the method for the continuous installing operating system of robotization according to claim 7, it also comprises:
Utilize network-coupled one server; And
Reception is from this destination OS of this server, an installation procedure module that is used to provide this installation procedure and an installation oriented module.
11. the method for the continuous installing operating system of robotization according to claim 10, wherein when operating in this operating system, this start sector of removing this electronic installation comprises to produce this nothing start recording status: when operating in this operating system, according to this oriented module is installed, remove this start sector of this electronic installation, to produce this nothing start recording status.
12. the method for the continuous installing operating system of robotization according to claim 11, it also comprises:
Produce system's indicating module, give this server to indicate this destination OS.
13. the method for the continuous installing operating system of robotization according to claim 7, it also comprises and utilizes a data transmission interface, and an installation procedure module and that receive this destination OS, is used to provide this installation procedure is installed oriented module.
14. the method for the continuous installing operating system of robotization according to claim 13, wherein when operating in this operating system, this start sector of removing this electronic installation comprises to produce this nothing start recording status: when operating in this operating system, according to this oriented module is installed, remove this start sector of this electronic installation, to produce this nothing start recording status.
15. the method for the continuous installing operating system of robotization is used for a test macro, this method includes:
One server is provided, and it comprises a plurality of operating systems to be measured and a long-range installation environment;
One device to be measured is provided, be coupled to this server, operate in one the 3rd operating system to be measured of these a plurality of operating systems to be measured, wherein this device to be measured is compatible with this long-range installation environment, and has corresponding to one the 3rd of the 3rd operating system to be measured oriented module and one the 4th installation procedure module corresponding to one the 4th operating system to be measured of these a plurality of operating systems to be measured are installed;
Utilize the 3rd the start sector that oriented module is removed this device to be measured is installed, do not have the start recording status to produce one;
Restart this device to be measured that operates in the 3rd operating system to be measured;
This is to be measured be installed on restart after, enter a network boot program according to this nothing start recording status, with this long-range installation environment of carry;
Under this long-range installation environment, the 4th operating system to be measured is mounted to this device to be measured from this server according to the 4th installation procedure module; And
After this device installation the 4th operating system to be measured to be measured, carry out one the 4th testing process corresponding to the 4th operating system to be measured.
16. the method for the continuous installing operating system of robotization according to claim 15, it also is contained in this device to be measured and operates in during the 3rd operating system to be measured, carries out one the 3rd testing process corresponding to the 3rd operating system to be measured.
17. the method for the continuous installing operating system of robotization according to claim 15, wherein the 3rd operating system to be measured is that first is installed on the operating system to be measured in this device to be measured in these a plurality of operating systems to be measured.
18. the method for the continuous installing operating system of robotization according to claim 17, it also comprises:
This long-range installation environment of carry is on this device to be measured; And
Under this long-range installation environment, one the 3rd installation procedure module according to corresponding to the 3rd operating system to be measured is mounted to the 3rd operating system to be measured this device to be measured from this server.
19. the method for the continuous installing operating system of robotization according to claim 18 wherein is mounted to the 3rd operating system to be measured this device to be measured from this server according to the 3rd installation procedure module under this long-range installation environment and comprises:
Give this device to be measured by this server configures one network address;
Between this server and this device to be measured, set up a network file and share and transmit line; And
Utilize this network file to share and transmit line, transmitting that the 3rd operating system to be measured gives should device installation to be measured.
20. the method for the continuous installing operating system of robotization according to claim 15, wherein the 3rd operating system to be measured is in these a plurality of operating systems to be measured second or be installed on operating system to be measured in this device to be measured afterwards.
21. the method for the continuous installing operating system of robotization according to claim 20, it also comprises:
When this device to be measured operates in one the 5th operating system to be measured, according to oriented module being installed corresponding to one the 5th of the 5th operating system to be measured, remove a start sector of this device to be measured, do not have the start recording status to produce one, wherein the 5th operating system to be measured is the previous operating system to be measured that is installed in this device to be measured of the 3rd operating system to be measured;
Restart this device to be measured that operates in the 5th operating system to be measured;
This is to be measured be installed on restart after, enter a network boot program according to this nothing start recording status, with this long-range installation environment of carry; And
Under this long-range installation environment, one the 3rd installation procedure module according to corresponding to the 3rd operating system to be measured is mounted to the 3rd operating system to be measured this device to be measured from this server.
22. the method for the continuous installing operating system of robotization according to claim 15 wherein under this long-range installation environment, is mounted to the 4th operating system to be measured this device to be measured from this server according to this installation procedure module and comprises:
Give this device to be measured by this server configures one network address;
Between this server and this device to be measured, set up a network file and share and transmit line; And
Utilize this network file to share and transmit line, transmitting that the 4th operating system to be measured gives should device installation to be measured.
23. the method for the continuous installing operating system of robotization according to claim 15, wherein the 3rd installation oriented module and the 4th installation procedure module are to be sent to this device to be measured after being produced by this server.
24. the method for the continuous installing operating system of robotization according to claim 23, it also comprises this device to be measured that operates in the 3rd operating system to be measured and produces system's indicating module, is the 4th operating system to be measured to indicate next target of this server operating system to be measured.
25. the method for the continuous installing operating system of robotization according to claim 15, it also comprises provides a test database, is coupled to this server and this device to be measured, is used to provide the test parameter of the 4th testing process.
CN200910210572.1A 2009-11-10 2009-11-10 Electronic device for automatically and continuously mounting operating system and related method and system thereof Expired - Fee Related CN102053845B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910210572.1A CN102053845B (en) 2009-11-10 2009-11-10 Electronic device for automatically and continuously mounting operating system and related method and system thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910210572.1A CN102053845B (en) 2009-11-10 2009-11-10 Electronic device for automatically and continuously mounting operating system and related method and system thereof

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN201410166603.9A Division CN103902344A (en) 2009-11-10 2009-11-10 Electronic device for installation of operating system automatically and continuously and related method thereof

Publications (2)

Publication Number Publication Date
CN102053845A true CN102053845A (en) 2011-05-11
CN102053845B CN102053845B (en) 2014-05-07

Family

ID=43958201

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910210572.1A Expired - Fee Related CN102053845B (en) 2009-11-10 2009-11-10 Electronic device for automatically and continuously mounting operating system and related method and system thereof

Country Status (1)

Country Link
CN (1) CN102053845B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105094929A (en) * 2015-09-07 2015-11-25 浪潮(北京)电子信息产业有限公司 PXE based linux operating system installation method and system
CN106803800A (en) * 2015-11-26 2017-06-06 昆达电脑科技(昆山)有限公司 Network Auto Power On test system and its method
CN109656573A (en) * 2018-11-26 2019-04-19 Oppo(重庆)智能科技有限公司 System installation method and device, electronic equipment, computer readable storage medium
CN110187895A (en) * 2019-05-24 2019-08-30 深圳前海微众银行股份有限公司 Allocating operating system method, apparatus, equipment and computer readable storage medium
TWI697772B (en) * 2019-05-08 2020-07-01 立端科技股份有限公司 Automatic test host operating system test method and test system thereof

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105094929A (en) * 2015-09-07 2015-11-25 浪潮(北京)电子信息产业有限公司 PXE based linux operating system installation method and system
CN106803800A (en) * 2015-11-26 2017-06-06 昆达电脑科技(昆山)有限公司 Network Auto Power On test system and its method
CN106803800B (en) * 2015-11-26 2020-05-01 昆达电脑科技(昆山)有限公司 Network automatic starting test system and method thereof
CN109656573A (en) * 2018-11-26 2019-04-19 Oppo(重庆)智能科技有限公司 System installation method and device, electronic equipment, computer readable storage medium
CN109656573B (en) * 2018-11-26 2022-03-15 Oppo(重庆)智能科技有限公司 System installation method and device, electronic equipment and computer readable storage medium
TWI697772B (en) * 2019-05-08 2020-07-01 立端科技股份有限公司 Automatic test host operating system test method and test system thereof
CN110187895A (en) * 2019-05-24 2019-08-30 深圳前海微众银行股份有限公司 Allocating operating system method, apparatus, equipment and computer readable storage medium
CN110187895B (en) * 2019-05-24 2023-01-24 深圳前海微众银行股份有限公司 Operating system deployment method, device, equipment and computer-readable storage medium

Also Published As

Publication number Publication date
CN102053845B (en) 2014-05-07

Similar Documents

Publication Publication Date Title
US8904160B2 (en) Electronic device which automatically sets up multiple operating systems for a test system by generating an emptied boot record status and loading a target operating system according to the emptied boot record status
CN103164238A (en) Method for automatically and continuously installing operating system
US8997090B2 (en) Installing an operating system in a host system
US20150358392A1 (en) Method and system of virtual desktop infrastructure deployment studio
CN102141924A (en) Batch production method of Linux boards and production server
CN102073513B (en) Method, device and system for installing operating system
CN105242875A (en) Server raid batch configuration method
CN103746833A (en) PXE-based RAID automatic configuration method and system
CN101393524A (en) Firmware update method and system using the same
CN110753088B (en) System deployment method and device
CN102053845B (en) Electronic device for automatically and continuously mounting operating system and related method and system thereof
CN105183520A (en) Automatic remote installing and debugging method and system for computer software
US20120131179A1 (en) Method and system for remote os installation capable of monitoring an installation procedure
CN111427624A (en) Method, device and system for batch automatic deployment and configuration of servers
CN110266540A (en) A method of realizing that automation installation is configured with cloud computing platform
CN103997684A (en) Method and device for updating operating system
CN103902344A (en) Electronic device for installation of operating system automatically and continuously and related method thereof
CN108733398B (en) Software upgrading processing method and device
CN110737444A (en) Remote self-adaptive dynamic deployment method and system for operating system based on firmware
US20030120827A1 (en) Method and apparatus for automatically detecting machine states during an operating system installation through a network
CN111045695A (en) WebLogic middleware deployment device, method, equipment and medium
CN115913913A (en) Network card pre-starting execution environment function fault positioning method and device
CN101582038A (en) Installation method of operating system for test
CN112083964B (en) Method for deploying an operating system
CN105094885A (en) Component installation method and apparatus

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20140507

Termination date: 20181110