A kind of server operating system dispositions method and serverTechnical field
The present invention relates to network technique field, in particular to a kind of server disposition method and server.
Background technique
With the extensive development of internet, large-scale operator is also increasing to server count purpose demand, every updateThe new server of a batch, it is necessary to relevant rapid deployment and management are carried out to new server, such as newly purchase server systemThe operating system of system is installed, however since number of servers is huge, it is impossible to a tableland is gone to install by hand, then unattendedQuick large scale system deployment come into being.
It in the prior art, is to utilize PXE (preboot to the mode of most mainstream in the deployment techniques of aggregated server systemExecute environment, Pre-boot Execution Environment) technology, that is, it works under the network mode of Client/Server, props upIt holds server and image file is downloaded from remote server by network, and thus support to come the starting of the operating system of automatic networkJourney.Specifically, all cluster servers to be installed require to configure corresponding PXE network interface card, and need to be equipped with one speciallyPXE server guides the installation of cluster server, and needs the professional to OS's (Operating System)Mirror image is particularly configured and modified and the manual configuration configuration file in the form of script, can just make to install source file and configurationThe installation of file support PXE mode.
Present inventor during technical solution, has found the above-mentioned prior art at least in invention the embodiment of the present applicationIt has the following technical problems:
Due in the prior art, each server in cluster server will be by installation PXE network interface card and necessaryPXE is started as the first boot sequence, under the guidance of PXE server, server to be installed could be obtained in networkInstallation source file and configuration file are installed, so, in the prior art, there are server to be installed presence to configurePXE network interface card and the technical issues of need particular server to be installed come the server for guiding other to be installed.
Since the configuration file of operating system is matched by hand in the form of script by professional in the prior artIt sets, the mirror image of OS needs to carry out special modification by professional to support PXE mode for the installation requirements of different clientsStarting, so, requiring user that must have certain professional knowledge just in the prior art can be carried out installation, and then influence user'sExperience effect.
Summary of the invention
The embodiment of the present application provides a kind of server operating system dispositions method and server, for solving in the prior artPXE network interface card must be configured there are cluster server to be installed and needs particular server to guide cluster server to be pacifiedThe technical issues of dress, realizing still can be easily to cluster server operating system under conditions of not depending on PXE network interface cardThe technical effect installed.
According to the first aspect of the invention, a kind of server operating system dispositions method is provided, is applied to be located at same netIn first server in network N platform server, wherein further include N-1 platform second server in the N platform server, N be greater thanInteger equal to 2, which comprises the deployment module being embedded in the BIOS of the first server judge whether there is withThe corresponding installation source file of operating system and configuration file corresponding with the operating system obtain the first judging result;InstituteStating the first judging result is when being, the deployment module sends the first request instruction to the BMC of the first server;It is describedIt is a virtual disk drive that BMC, which is based on first request instruction for the installation source file and the configuration file carry,An or virtual optical disk driver;The deployment module runs the installation source file and the configuration file, by the behaviourIt is mounted in the first server as system.
Optionally, described before or after the deployment module runs the installation source file and the configuration fileMethod further include: the deployment module by it is described installation source file first network address and the configuration file the second networkAddress is sent to the N-1 platform second server by the network interface card in the BMC.
Optionally, the deployment module in the BIOS for being embedded in the first server judges whether there is and operating systemCorresponding installation source file and configuration file corresponding with the operating system, before obtaining the first judging result, the methodFurther include: the BIOS detection of the first server obtains the first starting for starting the deployment module that user carries out and refers toIt enables;The BIOS executes first enabled instruction, into the deployment module;The CPU of first server is obtained from removableThe display command of the operation interface for showing the deployment module data in dynamic storage equipment, wherein the operation interfaceUpper at least one icon comprising characterization operating system parameter;The CPU handles the display command, so that describedThe display unit of one server shows the configuration interface of the installation operating system.
Optionally, after the configuration interface that the display unit of the first server shows the installation operating system,The method also includes: the CPU obtains user's matching to the M parameter progress of the operating system on the display interfaceSet operation, wherein M is the integer more than or equal to 1;The CPU responds the configuration operation, generates corresponding with the configuration operationThe configuration file.
Optionally, the deployment module in the BIOS for being embedded in the first server is judged whether there is is with operationIt unites corresponding installation source file and configuration file corresponding with the operating system, obtains the first judging result, specifically include: instituteIt states deployment module and obtains the Disposition Instructions for being used to dispose the operating system from user in the operation interface;The deployment moduleThe Disposition Instructions are executed, to judge whether the first server obtains the installation source file and the configuration file, are obtainedObtain the first judging result.
Optionally, the BMC is based on first request instruction for the installation source file and the configuration file carryFor a virtual disk drive or a virtual optical disk driver, specifically: the BMC executes first request instruction,It is by the installation source file positioned at first network address and the configuration file carry positioned at the second network addressThe disc driver or the virtual optical disk driver, wherein the first network address is in the first serverNetwork share address or local disc drives address provide the ground of the server for installing source file in the networkLocation, second network address are address that user specifies in the hard disk or that operating system is defaulted.
Optionally, first request instruction is based in the BMC to hang the installation source file and the configuration fileAfter load is a virtual disk drive or a virtual optical disk driver, the method also includes: it is anti-that the BMC generates oneFeedforward information is simultaneously sent to the deployment module, wherein the feedback information shows the installation source file and the configuration fileBe used as virtual optical disk driver and virtual disk drive carry so that the deployment module load the installation source file withThe configuration file.
On the other hand, the embodiment of the present application also provides a kind of server operating system dispositions method, is applied to be located at sameIn N-1 platform second server in network N platform server, wherein further include a first server, N in the N platform serverFor the integer more than or equal to 2, which comprises
After the second server powers on, it is embedded in described in the deployment module judgement in the BIOS of the second serverWith the presence or absence of the first network of the installation source file corresponding with the operating system sent by the first server in networkSecond network address of address and configuration file corresponding with the operating system obtains the first judging result;Described firstJudging result is when being, the deployment module sends the first request instruction to the BMC of the second server;The BMC is based onThe installation source file and the configuration file carry are a virtual disk drive or one by first request instructionVirtual optical disk driver;Deployment module operation virtual optical disk driver and installation source file in virtual disk drive andThe configuration file, the operating system is mounted in the second server.
On the other hand, the embodiment of the present application also provides a kind of server operating system dispositions method, is applied to be located at sameIt include a first server and N-1 platform second server in the server cluster, wherein N in the server cluster of networkFor the integer more than or equal to 2, which comprises the first deployment module judgement being embedded in the BIOS of the first serverWith the presence or absence of a corresponding installation source file of operating system and the corresponding configuration file of the operating system, obtains first and sentenceDisconnected result;When first judging result, which is, is, the deployment module sends the first request to the BMC of the first serverInstruction;The BMC of the first server is based on first request instruction and hangs the installation source file and the configuration fileCarry is a virtual disk drive or a virtual optical disk driver;The deployment module runs the installation source file and instituteConfiguration file is stated, the operating system is mounted in the first server;Network interface card in the BMC of the first serverSecond network address of the first network address of the installation source file and the configuration file is sent to the N-1 platform secondServer;The second deployment module being embedded in the BIOS of the N-1 platform second server judges to whether there is in the networkThe first network address and second network address obtain the second judging result;When second judging result, which is, is,The deployment module sends N-1 the second request instructions to the BMC of the N-1 platform second server;The N-1 platform second serviceIt is a virtual magnetic that device BMC, which is based on the N-1 the second request instructions for the installation source file and the configuration file carry,Disk drive or a virtual optical disk driver;By second deployment module operation virtual optical disk driver and virtuallyThe operating system is mounted on the N-1 platform second and taken by installation source file and the configuration file in disc driverIt is engaged in device.
On the other hand, the embodiment of the present application also provides a kind of server, comprising: deployment module is embedded in the serverBIOS in, for judging whether there is and the corresponding installation source file of operating system and configuration corresponding with the operating systemFile obtains the first judging result;BMC;When first judging result, which is, is, the deployment module is also used to describedBMC sends the first request instruction;The BMC is also used to the installation source file based on first request instruction and described matchesSetting file mount is a virtual disk drive or a virtual optical disk driver;The deployment module is also used to run describedSource file and the configuration file are installed, the operating system is mounted in the server.
Optionally, the deployment module is also used to: by the first network address of the installation source file and configuration textSecond network address of part is sent to server described in the N platform in network by the network interface card in the BMC, wherein N be greater than etc.In 1 integer.
Optionally, the BIOS is also used to: detection obtains opening for starting the first of the deployment module for user's progressDynamic instruction;First enabled instruction is executed, into the deployment module.
Optionally, the server further include: CPU, the deployment module in the BIOS for being embedded in the first serverAnd the corresponding installation source file of operating system and configuration file corresponding with the operating system is judged whether there is, obtains firstBefore judging result, for obtaining the operation interface for being used to show the deployment module data in movable memory equipmentDisplay command, wherein in the operation interface comprising characterization operating system parameter at least one icon;The display is orderedOrder is handled, so that the display unit of server shows the configuration interface of the installation operating system.In the first serviceIt is right on the display interface for obtaining user after the display unit of device shows the configuration interface of the installation operating systemThe configuration operation that M parameter of the operating system carries out, wherein M is the integer more than or equal to 1;The configuration operation is responded,Generate the configuration file corresponding with the configuration operation.
Optionally, the deployment module is also used to: being obtained from user in the operation interface for disposing the operation systemThe Disposition Instructions of system;The Disposition Instructions are executed, to judge whether the first server obtains the installation source file and instituteConfiguration file is stated, the first judging result is obtained.
Optionally, the BMC is also used to: first request instruction is executed, by the institute positioned at first network addressState installation source file and positioned at the second network address the configuration file carry be the disc driver or the virtual opticalDisk drive, wherein the first network address is network share address or local disc drives in the first serverAddress provides the address of the server for installing source file in the network, and second network address is positioned at instituteState the address of user in hard disk specifies or operating system default.
Optionally, the BMC is also used to: the BMC be based on first request instruction by the installation source file andAfter the configuration file carry is a virtual disk drive or a virtual optical disk driver, a feedback information is generated simultaneouslyIt is sent to the deployment module, wherein the feedback information shows that the installation source file and the configuration file have been used as voidQuasi- CD drive and virtual disk drive carry, so that the deployment module loads the installation source file and the configurationFile.
Said one or multiple technical solutions in the embodiment of the present application at least have following one or more technology effectsFruit:
Due to using the built-in deployment mould in the BIOS of first server in the technical solution in the embodiment of the present applicationInstallation source file and the configuration file carry are one by sending the first request instruction to the BMC of first server by blockVirtual disk drive or a virtual optical disk driver, and first server realize operating system installation before or itAfterwards, deployment module passes through the second network address of the first network address of the installation source file and the configuration file describedNetwork interface card in BMC is sent to the technological means of the N-1 platform second server, it may be assumed that the technical solution in the embodiment of the present application,After first server in cluster server obtains installation source file and configuration file, by installation source file and configuration fileAddress be sent to the second server in network segment, in turn, all second servers can listen to network by deployment module and obtainThe network address of operating system installation source file and configuration file is obtained, after obtaining installation source file and configuration file, automaticallyCarry out the installation of all second server operating systems.And in the prior art, each server in cluster server all needsPXE network interface card is configured, and PXE must be started as the first boot sequence, under the guidance of PXE server, needs to be pacifiedThe server of dress could obtain installation source file in network and configuration file is installed, so, in the embodiment of the present applicationTechnical solution, which can efficiently solve, exists in the prior art server to be installed in the presence of must configure PXE network interface card and needsThe technical issues of particular server is installed come the server for guiding other to be installed realizes and is not depending on PXE network interface cardUnder the conditions of technical effect that still conveniently and effectively cluster server operating system can be disposed.
The installation source file of first network address will be located at since the technical solution in the embodiment of the present application usesBe located at the second network address the configuration file carry be the disc driver or the virtual optical disk driver,In, first network address can be local disc drives address, and match in graphical operation interface to operating systemThe technological means set, and the mirror image of operating system needs different installation requirements to carry out spy by professional in the prior artOther modification could support ad hoc fashion to start, and the configuration file of operating system is also required to by professional the hand in the form of scriptWork configuration, so, the technical solution in the embodiment of the present application does not need additional configuration and customization, and can be realized general user canWith the original image or CD that are directly provided using operating system manufacturer and operating system is configured, and can according toThe desired configuration in family carries out the effect of the configuration of system to be installed, further enhances the experience of user.
It is set since the CPU that the technical solution in the embodiment of the present application uses first server is obtained from removable StorageThe technological means of the display command of the operation interface for showing the deployment module data in standby, and then user can be obtainedThe configuration that M parameter of the operating system carries out is operated on the display interface, and is generated and configuration operation pairThe configuration file answered, it may be assumed that the technical solution in the embodiment of the present application, will provide the necessary configuration of installation system for user canDepending on change graphical interfaces order in being stored in movable memory equipment, so, the technical solution in the embodiment of the present application, noIt needs each in cluster server to require to provide an operation interface for user, realizes and effectively save server B IOSThe effect of the memory space of chip.
Detailed description of the invention
Fig. 1 is a kind of method flow diagram of server operating system dispositions method in the embodiment of the present application one;
Fig. 2 is the method flow diagram executed before step S101 in the embodiment of the present application one;
Fig. 3 is the method flow diagram that step S101 is executed in the embodiment of the present application one;
Fig. 4 is the configuration that the display unit in the embodiment of the present application one in first server shows the installation operating systemMethod flow diagram after interface;
Fig. 5 is a kind of method flow diagram of server operating system dispositions method in the embodiment of the present application two;
Fig. 6 is a kind of method flow diagram of server operating system dispositions method in the embodiment of the present application three;
Fig. 7 is a kind of structural schematic diagram of server in the embodiment of the present application four.
Specific embodiment
The embodiment of the present application provides a kind of server operating system dispositions method and server, for solving in the prior artPXE network interface card must be configured there are cluster server to be installed and needs particular server to guide cluster server to be pacifiedThe technical issues of dress, realizing still can conveniently and effectively not operate cluster server under conditions of depending on PXE network interface cardThe technical effect that system is disposed.
In order to solve the above technical problems, general thought is as follows for technical solution in the embodiment of the present application:
A kind of server operating system dispositions method, applied to the first server being located in consolidated network N platform serverIn, wherein it further include N-1 platform second server in the N platform server, N is the integer more than or equal to 2, which comprisesThe deployment module being embedded in the BIOS of the first server judges whether there is installation source file corresponding with operating systemWith configuration file corresponding with the operating system, the first judging result is obtained;It is described when first judging result, which is, isDeployment module sends the first request instruction to the BMC of the first server;The BMC is based on first request instruction for instituteIt states installation source file and the configuration file carry is a virtual disk drive or a virtual optical disk driver;The portionIt affixes one's name to module and runs the installation source file and the configuration file, the operating system is mounted on the first serverIn.
Due to using the built-in deployment mould in the BIOS of first server in the technical solution in the embodiment of the present applicationInstallation source file and the configuration file carry are one by sending the first request instruction to the BMC of first server by blockVirtual disk drive or a virtual optical disk driver, and first server realize operating system installation before or itAfterwards, deployment module passes through the second network address of the first network address of the installation source file and the configuration file describedNetwork interface card in BMC is sent to the technological means of the N-1 platform second server, it may be assumed that the technical solution in the embodiment of the present application,After first server in cluster server obtains installation source file and configuration file, by installation source file and configuration fileAddress be sent to the second server in network segment, in turn, all second servers can listen to network by deployment module and obtainThe network address of operating system installation source file and configuration file is obtained, after obtaining installation source file and configuration file, automaticallyCarry out the installation of all second server operating systems.And in the prior art, each server in cluster server all needsPXE network interface card is configured, and PXE must be started as the first boot sequence, under the guidance of PXE server, needs to be pacifiedThe server of dress could obtain installation source file in network and configuration file is installed, so, in the embodiment of the present applicationTechnical solution, which can efficiently solve, exists in the prior art server to be installed in the presence of must configure PXE network interface card and needsThe technical issues of particular server is installed come the server for guiding other to be installed realizes and is not depending on PXE network interface cardUnder the conditions of technical effect that still easily cluster server operating system can be installed.
In order to better understand the above technical scheme, in conjunction with appended figures and specific embodiments to upperTechnical solution is stated to be described in detail.
Embodiment one
The embodiment of the present application provides a kind of server operating system dispositions method and is applied to be located at consolidated network N platform serverIn first server in, wherein further include N-1 platform second server in the N platform server, N is whole more than or equal to 2Number.In the description of the embodiment of the present application, " first " and " second " in first server and second server is for describing mesh, indication or suggestion relative importance can not be interpreted as, for the ordinary skill in the art, first server andSecond server can be all identical servers of configuration, and being also possible to configuration, there are some Differentiated services devices.
Referring to FIG. 1, the embodiment of the present application provides a kind of server operating system dispositions method, in the embodiment of the present applicationOperating system can be Linux, Unix, Windows, can also be other operating system certainly, herein with regard to different an exampleIt lifts.The server operating system dispositions method is applied in the first server being located in consolidated network N platform server,In, it further include N-1 platform second server in the N platform server, N is the integer more than or equal to 2.For example, if cluster serviceIt include 100 servers in device, by Dynamic Host Configuration Protocol server, for the management network ports of this 100 servers, (network interface is under the jurisdiction of firstBMC system on server) network address is distributed, this 100 servers can be carried out data transmission by management network port, whereinAny one server in 100 servers can be considered first server, remaining 99 server can be considered second serviceDevice.It in the following embodiments, will be to dispose (SuSE) Linux OS in the cluster server comprising 100 servers, whereinAssuming that the IP address that first server is assigned to is illustrated for being 193.323.1.2.
In the embodiment of the present application, specific dispositions method includes:
S101: be embedded in the first server BIOS (Basic Input and Output system, it is substantially defeatedEnter output system) in deployment module judge whether there is installation source file corresponding with operating system and with the operating systemCorresponding configuration file obtains the first judging result;
S102: when first judging result, which is, is, BMC of the deployment module to the first server(Baseboard Management Controller, baseboard management controller) sends the first request instruction;
The installation source file and the configuration file carry are by S103: the BMC based on first request instructionOne virtual disk drive or a virtual optical disk driver;
S104: the deployment module runs the installation source file and the configuration file, and the operating system is pacifiedIn the first server.
Referring to FIG. 2, in the embodiment of the present application, before executing step S101, further comprising the steps of:
S201: what the BIOS detection acquisition user of the first server carried out is used to start the first of the deployment moduleEnabled instruction;
S202: the BIOS executes first enabled instruction, into the deployment module;
S203: the CPU acquisition of first server is used to show the deployment module number in movable memory equipmentAccording to operation interface display command, wherein in the operation interface comprising characterization operating system parameter at least one icon;
S204: the CPU handles the display command, so that the display unit of the first server shows instituteState the configuration interface of installation operating system.
Referring to FIG. 3, in the embodiment of the present application, the specific implementation process of step S101 are as follows:
S301: the deployment module is obtained to be referred to from the deployment that user in the operation interface is used to dispose the operating systemIt enables;
S302: the deployment module executes the Disposition Instructions, to judge whether the first server obtains the peaceLoading of source file and the configuration file obtain the first judging result.
For continuing the example above, in the specific implementation process, before executing step S101, step S201~S204Specific implementation process are as follows: user to first server carry out (SuSE) Linux OS installation before, firstly, user can issue tuneIt in the embodiment of the present application include two kinds of situations with the order of deployment module, the first situation calls the order of deployment module canTo be stored in moveable storage medium, such as USB, mobile hard disk, memory stick, SD card, it just different one schematically illustrates herein.Certainly, those skilled in the art can according to need, and will movably store equipment replacement is such as storage chip storage unit,Storage chip is built on server master board and is started by the way that corresponding quickly starting mode is arranged, in turn, first serviceDevice CPU can be obtained for show the display command for disposing the operation interface of module data in the storage chip, and can be withDeployment program is called directly by quickly starting mode individually to dispose first server.
By accessing mobile memory medium in first server, user can star first server BIOS, into theThe BIOS of one server, then BIOS obtains the instruction that user starts deployment module in BIOS, calls deployment mould by operationThe order of block starts deployment module.Second case, call deployment module order can by being specifically arranged, for example,One flag bit is set in CMOS in the server production last test stage, BIOS is detected during electrifying startup next timeDeployment module will be loaded automatically after the completion of POST to the flag bit, and configures master by the mark bit clear or by BMCAs soon as the IO pin, BIOS on plate detect that the pin is high level load deployment module automatically during startup, and sendIt orders and pin foot is set low into level to BMC, can thus be opened automatically after the BIOS of first server powers on POST completionDynamic deployment module, certainly, those skilled in the art can also carry out other starting settings as needed, herein with regard to different one actionExample.
In embodiments herein, for the first situation, first server CPU acquisition is set from removable StorageIt is standby, such as the display command of the operation interface for showing deployment module data in USB, mobile hard disk, in CPU to the orderAfter being handled, deployment module data are shown in a patterned operation interface, can in the patterned operation interfaceSystem relevant parameter to be installed is carried out to provide, the path in source, disk partition, area, language, user name password, net are such as installedThe setting of parameter etc. is arranged in network.
Referring to FIG. 4, after the display unit of first server shows the configuration interface of the installation operating system,In specific implementation process, further comprise the steps of:
S401: the CPU obtains the configuration that user carries out M parameter of the operating system on the display interfaceOperation, wherein M is the integer more than or equal to 1;
S402: the CPU responds the configuration operation, generates the configuration file corresponding with the configuration operation.
Next, the first step, the CPU of first server obtains user's display interface user to the multiple parameters of operating systemThe configuration of progress operates, and the effect for carrying out configuration operation is to provide the information needed when server starting, for example is designated mountingThe path in source, language, password and the network parameter that the area where subregion, setting user is carried out to the disk of server, is usedSetting etc., just do not enumerate herein.Servers-all in cluster server is intended to obtain same configurationIn the case of, only the operating system of a server can be configured, be configured with area in first server and other serversUnder the conditions of other, those skilled in the art be can according to need, and is adjusted to the parameter in other servers.Second step, CPUThe configuration operation of user is responded, first server generates configuration file corresponding with configuration operation, can be stored in the first clothesIn the data source file of business device or other positions.
Next, deployment module obtains the instruction that user carries out Linux deployment in operation interface to first server, portionIt affixes one's name to module and executes the Disposition Instructions, to judge whether the first server obtains installation source file and configuration file, obtainFirst judging result.Specifically, deployment module installs the IP address of source file and configuration file by detection linux system,To judge the installation source file and configuration file that whether obtain linux system in server.
After executing step S101, when the first judging result, which is, is, step S102 is executed, deployment module takes to firstThe BMC being engaged in device sends the instruction of the installation source file and configuration file of a request (SuSE) Linux OS, and the application is realThe firmware BMC applied in example supports media to redirect, can be by the mirror image of the (SuSE) Linux OS of distal end or Linux operation systemDisk file carry of uniting is that local CD-ROM drive or local USB disk unit use.
After executing step S102, executes step S103: the BMC and be based on first request instruction for the installationSource file and the configuration file carry are a virtual disk drive or a virtual optical disk driver, are implemented in the applicationIn example, the specific implementation process of step S103 are as follows:
The BMC executes first request instruction, by the installation source file positioned at first network address withThe configuration file carry positioned at the second network address is the disc driver or the virtual optical disk driver, whereinThe network share address or local disc drives address in the first server is in the first network address or are located at describedThe address of the server of the installation source file is provided in network, second network address is that user refers in the hard diskThe address of fixed or operating system default.
In the embodiment of the present application, the address of first network address, that is, (SuSE) Linux OS installation source file can be theThe address of fie share directory in one server or the address of local CD-ROM drive, in turn, the scheme energy in the embodiment of the present applicationEnough original images or CD directly provided using (SuSE) Linux OS manufacturer.Certainly it can also be and the peace be provided in networkThe address of the file server of loading of source file.Second network address, that is, (SuSE) Linux OS configuration file address can be useFamily is when carrying out configuration operation, the given network address that (SuSE) Linux OS configuration file is saved, in the not specified configuration of userIt is also possible to the storage address of Server Default when the storage address of file.Certainly, first network address here and the second netNetwork address can be identical network address or be different network address, be not specifically limited in this application.In this ShenIt please be in embodiment, it is assumed that user is C by the network address that source file and configuration file save is installed :/.../path/ installs source documentPart & configuration file .iso@193.323.1.2.It is had sent in deployment module to BMC and obtains (SuSE) Linux OS installation source fileAfter instruction with (SuSE) Linux OS configuration file, BMC executes the instruction, will be located at the (SuSE) Linux OS of the first addressInstall source file and two address (SuSE) Linux OS configuration file carry be a local virtual disk drive orVirtual optical disk driver uses.
In the specific implementation process, after executing step S103, further includes: it is concurrent that the BMC generates a feedback informationGive the deployment module, wherein the feedback information shows that the installation source file and the configuration file have been used as virtuallyCD drive and virtual disk drive carry, so that the deployment module loads the installation source file and configuration textPart.And execute step S104: the deployment module runs the installation source file and the configuration file, by the operationSystem is mounted in the first server.
In the embodiment of the present application, in the (SuSE) Linux OS installation source file that will be located at the first address and the second address(SuSE) Linux OS configuration file carry be a local virtual disk drive after, BMC generates a feedback information simultaneouslyBe sent to deployment module, feedback information show the installation source file and the configuration file be used as virtual optical disk driver andVirtual disk drive carry, after deployment module obtains feedback information, so that it may which loading Linux operating system installs sourceFile and configuration file.
Before or after executing step S104, further includes:
The deployment module is by the second network of the first network address of the installation source file and the configuration fileLocation is sent to the N-1 platform second server by the network interface card in the BMC.In the specific implementation process, in first serverAfter obtaining installation (SuSE) Linux OS installation source file and configuration file, appointing before completing (SuSE) Linux OS installationIt anticipates the moment, or after first server installs (SuSE) Linux OS, the deployment module of first server operates LinuxSystem installs source file and profile address C :/... it is logical that/path/ installs source file & configuration file .iso@193.323.1.2The management network port crossed in BMC is sent to other 99 second servers, certainly, it will be apparent to those skilled in the art that thisApply for that in the management network port insertion BMC in embodiment be a preferred embodiment in the application, in actual application, thisField those of ordinary skill can according to the inner mold of network interface card and other need be arranged the shared network interface card used in system of BMC asManagement network port.
Embodiment two
Based on inventive concept same as server operating system dispositions method a kind of in the embodiment of the present application one, Fig. 5 is mentionedA kind of server operating system dispositions method for having supplied the embodiment of the present application, applied to the server cluster for being located at consolidated networkIn, similarly, operating system in the embodiment of the present application can be Linux, Unix, Windows, can also be other certainlyOperating system does not just enumerate herein.Applied to the N-1 platform second server being located in consolidated network N platform serverIn, wherein it further include a first server in the N platform server, N is the integer more than or equal to 2, for example, if clusterInclude 100 servers in server, is that this 100 servers distribute network address by Dynamic Host Configuration Protocol server, this 100 servers are justIt can be carried out data transmission by network interface card, wherein any one server in 100 servers can be considered first server,Remaining 99 server can be considered second server.It in the following embodiments, will be with visual to remaining 99 serverIt disposes for (SuSE) Linux OS and is illustrated for second server.
During specific implementation, any one server in 100 servers is configured in user, this clothesBusiness device is first server, after first server obtains the installation source file and configuration file of (SuSE) Linux OS,Second network of the first network address and configuration file of source file will will be installed by the deployment module of first serverLocation is broadcast in network, it is assumed that the install source file and the IP address of configuration file of (SuSE) Linux OS are C :/.../path/ peaceLoading of source file & configuration file .iso@193.323.1.2, the dispositions method for 99 second servers, in the present embodimentStep includes:
S501: after the second server powers on, the deployment module being embedded in the BIOS of the second server is sentencedBreak in the network with the presence or absence of the of the installation source file corresponding with the operating system sent by the first serverSecond network address of one network address and configuration file corresponding with the operating system obtains the first judging result;
S502: when first judging result, which is, is, the deployment module sends the to the BMC of the second serverOne request instruction;
The installation source file and the configuration file carry are by S503: the BMC based on first request instructionOne virtual disk drive or a virtual optical disk driver;
S504: the deployment module operation virtual optical disk driver and installation source file and institute in virtual disk driveConfiguration file is stated, the operating system is mounted in the second server.
In the embodiment of the present application, the Starting mode of deployment module can be by specifically setting in 99 second serversIt sets, for example, a flag bit is arranged in CMOS in the server production last test stage, BIOS is in electrifying startup mistake next timeIt detects that the flag bit will load automatically deployment module after the completion of POST in journey, and by the mark bit clear or passes throughAs soon as the IO pin, BIOS on BMC configuration mainboard detect that the pin is high level load deployment mould automatically during startupBlock, and send commands to BMC and pin foot is set low into level, thus POST can be powered in the BIOS of first server complete itAfterwards, start deployment module automatically.Those skilled in the art can also be as needed, will be built in storage chip in second serverStart on server master board and by the way that corresponding quickly starting mode is arranged, in turn, second server CPU can be comeFrom in the storage chip for showing the display command of the operation interface of deployment module data, and quickly starting mode can be passed throughDeployment program is called directly individually to dispose separate unit second server.
After starting deployment module in second server, deployment module installs source document by detection (SuSE) Linux OSThe IP address of part and configuration file, come in the network where judging with the presence or absence of (SuSE) Linux OS installation source file and configurationFile.There is (SuSE) Linux OS installation source file in a network and when configuration file, deployment module is to second serverBMC sends the instruction of request of loading (SuSE) Linux OS installation source file and configuration file, will be located at C :/.../path/ installationThe (SuSE) Linux OS installation source file and configuration file carry of source file & configuration file .iso@193.323.1.2 is oneVirtual disk drive or a virtual optical disk driver, and then automatic running virtual optical disk driver or virtual disk driveIn installation source file and the configuration file, (SuSE) Linux OS is just mounted in 99 second servers.In turn, 99Second server may be implemented to obtain and install (SuSE) Linux OS installation source file automatically and configuration file realizes Linux behaviourMake the installation of system.
Embodiment three
Based on inventive concept same as server operating system dispositions method a kind of in the embodiment of the present application one, Fig. 6 is mentionedHaving supplied Fig. 5 of the embodiment of the present application is a kind of method flow of server operating system dispositions method in the embodiment of the present application twoFigure;The embodiment of the present application provides a kind of server operating system dispositions method, and operating system in the embodiment of the present application can be withIt is Linux, Unix, Windows, can also be other operating system certainly, just do not enumerate herein.Applied to being located atIn the server cluster of consolidated network, in the server cluster include a first server and N-1 platform second server,In, N is the integer more than or equal to 2, for example, passing through Dynamic Host Configuration Protocol server first if including 100 servers in cluster serverNetwork address is distributed for this 100 servers, this 100 servers can be carried out data transmission by network interface card, wherein 100 clothesAny one server in business device can be considered first server, remaining 99 server can be considered second server.UnderIn the embodiment in face, it will be illustrated by for comprising the cluster server of 100 servers deployment (SuSE) Linux OS.
In the embodiment of the present application, specific dispositions method includes:
S601: the first deployment module being embedded in the BIOS of the first server judges whether there is an operationThe corresponding installation source file of system and the corresponding configuration file of the operating system obtain the first judging result;
S602: when first judging result, which is, is, the deployment module sends the to the BMC of the first serverOne request instruction;
S603: the BMC of the first server by the installation source file and described is matched based on first request instructionSetting file mount is a virtual disk drive or a virtual optical disk driver;
S604: the deployment module runs the installation source file and the configuration file, and the operating system is pacifiedIn the first server;
S605: network interface card in the BMC of the first server is by the first network address of the installation source file and describedSecond network address of configuration file is sent to the N-1 platform second server;
S606: the second deployment module being embedded in the BIOS of the N-1 platform second server judge be in the networkNo there are the first network addresses and second network address, obtain the second judging result;
S607: when second judging result, which is, is, BMC of the deployment module to the N-1 platform second serverSend N-1 the second request instructions;
S608: the N-1 platform second server BMC is based on the N-1 the second request instructions for the installation source fileAnd the configuration file carry is a virtual disk drive or a virtual optical disk driver;
S609: the peace in the virtual optical disk driver and virtual disk drive is run by second deployment moduleLoading of source file and the configuration file, the operating system is mounted in the N-1 platform second server.
Specifically, first server deployment module installs the IP of source file and configuration file by detection linux systemAddress, to judge the installation source file and configuration file that whether obtain linux system in first server.Assuming that user will pacifyThe network address that loading of source file and configuration file save is C :/.../path/ installs source file & configuration file .iso@193.323.1.2, first server IP are as follows: 193.323.1.2, then first server deployment module judges first serviceThere is installation source file and configuration file in device.When the first judging result, which is, is, the deployment module of first server is to firstBMC in server sends the instruction of the installation source file and configuration file of a request (SuSE) Linux OS, the applicationFirmware BMC in embodiment supports media to redirect, and the mirror image of the (SuSE) Linux OS of distal end or Linux can be operatedSystem disc file carry is that local CD-ROM drive or local USB disk unit use, naturally it is also possible to directly by local LinuxThe mirror image or (SuSE) Linux OS disk file of operating system carry out carry.Acquisition is had sent to BMC in deployment moduleAfter (SuSE) Linux OS installs the instruction of source file and (SuSE) Linux OS configuration file, BMC executes the instruction, will be located atC :/... it is a local virtual disk drive that/path/, which installs source file & configuration file .iso@193.323.1.2 carry,Or virtual optical disk driver uses.Deployment module runs the installation source file and the configuration file, and Linux is operatedSystem is mounted in first server.First server deployment module obtain (SuSE) Linux OS installation source file andAfter configuration file, will be by the network address for installing source file and configuration file by the deployment module of first serverC :/.../path/ installation source file & configuration file .iso@193.323.1.2 is broadcast in network, and 99 in network second takeBusiness device is after BIOS powers on POST completion, the automatic deployment module for starting second server.Next, in second serverAfter starting deployment module, the deployment module of second server installs source file and configuration text by detection (SuSE) Linux OSThe IP address of part, come in the network where judging with the presence or absence of (SuSE) Linux OS installation source file and configuration file.In networkIn there are (SuSE) Linux OS installation source file and when configuration file, the deployment module of second server is to second serverBMC sends the instruction of request of loading (SuSE) Linux OS installation source file and configuration file, will be located at C :/.../path/ installationThe (SuSE) Linux OS installation source file and configuration file carry of source file & configuration file .iso@193.323.1.2 is oneVirtual disk drive or a virtual optical disk driver, and then driven by automatic running virtual optical disk driver or virtual diskInstallation source file and the configuration file in dynamic device, (SuSE) Linux OS are just mounted in 99 second servers.SoAfter any one in 100 servers of user configures and install, remaining 99 server may be implemented to obtain automaticallyAnd (SuSE) Linux OS installation source file and configuration file is installed, i.e., user only need to carry out First server configuration andThe process of the installation of operating system, the deployment of subsequent 99 server operating systems does not need the intervention of user, can realize pairThe installation of operating system in all cluster servers.
Certain those skilled in the art can according to need, and the graphics display command of deployment module can be passed through storage coreDuring piece is stored on the cluster server mainboard, and started by the way that corresponding quickly starting mode is arranged, in turn, cluster serviceEvery server can call directly deployment program by shortcut and individually be disposed in device.
Example IV
Based on inventive concept same as information processing method a kind of in the embodiment of the present application one, it is illustrated in figure 7 this ShenPlease embodiment provide a kind of server, comprising:
Deployment module 101, be embedded in the server BIOS (Basic Input and Output system, substantiallyInput-output system) in, for judge whether there is installation source file corresponding with operating system and with the operating system pairThe configuration file answered obtains the first judging result;
BMC (Baseboard Management Controller, baseboard management controller);
When first judging result, which is, is, deployment module 101 is also used to send the first request instruction to BMC;
The BMC is also used toOne virtual disk drive or a virtual optical disk driver 103;
Deployment module 101 is also used to run the installation source file and the configuration file, and the operating system is pacifiedIn the server.
Optionally, deployment module 101 is also used to:
Second network address of the first network address of the installation source file and the configuration file is passed through into the BMCIn network interface card be sent to the N-1 platform second server 20 in network, wherein N is integer more than or equal to 2.
Optionally, the BIOS is also used to: detection obtains the first starting for starting deployment module 101 that user carries outInstruction;First enabled instruction is executed, into the deployment module 101.
Optionally, server 10 further include:
CPU, the deployment module 101 in the BIOS for being embedded in the first server judges whether there is and operating systemCorresponding installation source file and configuration file corresponding with the operating system, before obtaining the first judging result, for obtainingThe operation interface for showing 101 data of deployment module in movable memory equipment or built-in storage chip 102 it is aobviousShow order, wherein at least one icon comprising characterization operating system parameter in the operation interface;
The display command is handled, so that the display unit of server shows the configuration of the installation operating systemInterface.
After the display unit of the first server shows the configuration interface of the installation operating system, for obtainingUser operates the configuration that M parameter of the operating system carries out on the display interface, wherein M is more than or equal to 1Integer;
The configuration operation is responded, the configuration file corresponding with the configuration operation is generated.
Optionally, deployment module 101 is also used to:
Obtain the Disposition Instructions for being used to dispose the operating system from user in the operation interface;
The Disposition Instructions are executed, to judge whether the first server obtains the installation source file and the configurationFile obtains the first judging result.
Optionally, the BMC is also used to: first request instruction is executed, by the institute positioned at first network addressState installation source file and positioned at the second network address the configuration file carry be disc driver or virtual optical disk driver103, wherein the first network address be network share address in the first server or local disc drives address orThe address of the server of the installation source file is provided in the network, second network address is positioned at the hard diskThe address of middle user specifies or operating system default.
Optionally, the BMC is also used to: the BMC be based on first request instruction by the installation source file andThe configuration file carry is one feedback letter of generation after a virtual disk drive or a virtual optical disk driver 103It ceases and is sent to deployment module 101, wherein the feedback information shows the installation source file and configuration file conduct103 carry of virtual optical disk driver and virtual disk drive, so that deployment module 101 loads the installation source file and describedConfiguration file.
By one or more technical solutions in the embodiment of the present application, following one or more technology effects may be implementedFruit:
Due to using the built-in deployment mould in the BIOS of first server in the technical solution in the embodiment of the present applicationInstallation source file and the configuration file carry are one by sending the first request instruction to the BMC of first server by blockVirtual disk drive or a virtual optical disk driver, and first server realize operating system installation before or itAfterwards, deployment module passes through the second network address of the first network address of the installation source file and the configuration file describedNetwork interface card in BMC is sent to the technological means of the N-1 platform second server, it may be assumed that the technical solution in the embodiment of the present application,After first server in cluster server obtains installation source file and configuration file, by installation source file and configuration fileAddress be sent to the second server in network segment, in turn, all second servers can listen to network by deployment module and obtainThe network address of operating system installation source file and configuration file is obtained, after obtaining installation source file and configuration file, automaticallyCarry out the installation of all second server operating systems.And in the prior art, each server in cluster server all needsPXE network interface card is configured, and PXE must be started as the first boot sequence, under the guidance of PXE server, needs to be pacifiedThe server of dress could obtain installation source file in network and configuration file is installed, so, in the embodiment of the present applicationTechnical solution, which can efficiently solve, exists in the prior art server to be installed in the presence of must configure PXE network interface card and needsThe technical issues of particular server is installed come the server for guiding other to be installed realizes and is not depending on PXE network interface cardUnder the conditions of technical effect that still conveniently and effectively cluster server operating system can be disposed.
The installation source file of first network address will be located at since the technical solution in the embodiment of the present application usesBe located at the second network address the configuration file carry be the disc driver or the virtual optical disk driver,In, first network address can be local disc drives address, and match in graphical operation interface to operating systemThe technological means set, and the mirror image of operating system needs different installation requirements to carry out spy by professional in the prior artOther modification could support ad hoc fashion to start, and the configuration file of operating system is also required to by professional the hand in the form of scriptWork configuration, so, the technical solution in the embodiment of the present application does not need additional configuration and customization, and can be realized general user canWith the original image or CD that are directly provided using operating system manufacturer and operating system is configured, and can according toThe desired configuration in family carries out the effect of the configuration of system to be installed, further enhances the experience of user.
It is set since the CPU that the technical solution in the embodiment of the present application uses first server is obtained from removable StorageThe technological means of the display command of the operation interface for showing the deployment module data in standby, and then user can be obtainedThe configuration that M parameter of the operating system carries out is operated on the display interface, and is generated and configuration operation pairThe configuration file answered, it may be assumed that the technical solution in the embodiment of the present application, will provide the necessary configuration of installation system for user canDepending on change graphical interfaces order in being stored in movable memory equipment, so, the technical solution in the embodiment of the present application, noIt needs each in cluster server to require to provide an operation interface for user, realizes and effectively save server B IOSThe effect of the memory space of chip.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer programProduct.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present inventionApply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more,The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) producesThe form of product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program productFigure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructionsThe combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programsInstruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produceA raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for realThe device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spyDetermine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram orThe function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that countingSeries of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer orThe instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram oneThe step of function of being specified in a box or multiple boxes.
Specifically, the corresponding computer program of one of the embodiment of the present application server operating system dispositions method refers toOrder can be stored in CD, hard disk, on the storage mediums such as USB flash disk, when in storage medium with a kind of server operating system portionThe corresponding computer program instructions of arranging method are read or are performed by an electronic equipment, include the following steps:
The deployment module being embedded in the BIOS of the first server judges whether there is peace corresponding with operating systemLoading of source file and configuration file corresponding with the operating system obtain the first judging result;
When first judging result, which is, is, the deployment module sends first to the BMC of the first server and asksAsk instruction;
It is a void that the BMC, which is based on first request instruction for the installation source file and the configuration file carry,Quasi- disc driver or a virtual optical disk driver;
The deployment module runs the installation source file and the configuration file, and the operating system is mounted on instituteIt states in first server.
Optionally, stored in the storage medium and step: the deployment module run the installation source file andBefore or after the configuration file, corresponding computer instruction further includes following steps: described during being specifically performedSecond network address of the first network address of the installation source file and the configuration file is passed through the BMC by deployment moduleIn network interface card be sent to the N-1 platform second server.
Optionally, stored in the storage medium and step: the portion in the BIOS for being embedded in the first serverAdministration's module judges whether there is and the corresponding installation source file of operating system and configuration file corresponding with the operating system, obtainsBefore obtaining the first judging result, corresponding computer instruction further includes following steps: described first during being specifically performedThe BIOS detection of server obtains the first enabled instruction for being used to start the deployment module that user carries out;The BIOS is executedFirst enabled instruction, into the deployment module;The CPU of first server obtains the use in movable memory equipmentIn the display command for the operation interface for showing the deployment module data, wherein include characterization operation system in the operation interfaceAt least one icon for parameter of uniting;The CPU handles the display command, so that the display list of the first serverThe configuration interface of the member display installation operating system.
Optionally, stored in the storage medium and step: described in being shown in the display unit of the first serverFurther include following steps after the configuration interface for installing operating system: the CPU obtains user on the display interface to instituteState the configuration operation that M parameter of operating system carries out, wherein M is the integer more than or equal to 1;The CPU responds the configurationOperation generates the configuration file corresponding with the configuration operation.
Optionally, stored in the storage medium and step: in the BIOS for being embedded in the first serverDeployment module judges whether there is and the corresponding installation source file of operating system and configuration file corresponding with the operating system,The first judging result is obtained, corresponding computer instruction specifically comprises the following steps: the deployment during being specifically performedModule obtains the Disposition Instructions for being used to dispose the operating system from user in the operation interface;The deployment module executes instituteDisposition Instructions are stated, to judge whether the first server obtains the installation source file and the configuration file, obtain firstJudging result.
Optionally, store in the storage medium and step: the BMC is based on first request instruction for the peaceLoading of source file and the configuration file carry are a virtual disk drive or a virtual optical disk driver, corresponding calculatingMachine instruction specifically comprises the following steps: that the BMC executes first request instruction during being specifically performed, will be describedThe installation source file positioned at first network address and the configuration file carry positioned at the second network address are the magneticDisk drive or the virtual optical disk driver, wherein the first network address is that the network in the first server is totalIt enjoys address or local disc drives address or the address of the server of the installation source file is provided in the network, it is describedSecond network address is address that user specifies in the hard disk or that operating system is defaulted.
Optionally, store in the storage medium and step: being based on first request instruction in the BMC will be describedIt is corresponding after source file and the configuration file carry are installed for a virtual disk drive or a virtual optical disk driverComputer instruction during being specifically performed, specifically comprise the following steps: that the BMC generates a feedback information and is sent toThe deployment module, wherein the feedback information shows that the installation source file and the configuration file have been used as virtual optical diskDriver and virtual disk drive carry, so that the deployment module loads the installation source file and the configuration file.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basicProperty concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted asIt selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the artMind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologiesWithin, then the present invention is also intended to include these modifications and variations.