TW201118593A - Method for configuring server - Google Patents

Method for configuring server Download PDF

Info

Publication number
TW201118593A
TW201118593A TW98140885A TW98140885A TW201118593A TW 201118593 A TW201118593 A TW 201118593A TW 98140885 A TW98140885 A TW 98140885A TW 98140885 A TW98140885 A TW 98140885A TW 201118593 A TW201118593 A TW 201118593A
Authority
TW
Taiwan
Prior art keywords
server
configuring
virtual
core code
code module
Prior art date
Application number
TW98140885A
Other languages
Chinese (zh)
Inventor
Town Chen
Qiu-Yue Duan
Tom Chen
Original Assignee
Inventec 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 Inventec Corp filed Critical Inventec Corp
Priority to TW98140885A priority Critical patent/TW201118593A/en
Publication of TW201118593A publication Critical patent/TW201118593A/en

Links

Landscapes

  • Computer And Data Communications (AREA)

Abstract

A method for configuring server is adapted to configure a server with a firmware interface. The method for configuring server includes the steps of packaging a kernel code module executed on the server into a configuring package; executing a check process to check whether the kernel code module communicates with the server only via the firmware interface or not; and configuring the server by the configuring package if the kernel code module communicates with the server only via the firmware interface. The step of configuring the server by the configuring package further includes the steps of initiating the server; downloading the configuring package to the server by a network; decompressing the configuring package to get the kernel code module; and executing the kernel code module to configure the server.

Description

201118593 六、發明說明: 【發明所屬之技術領域】 本發明係關於一種配置伺服器的方法,特別是一種以僅透過 韌體介面與伺服器溝通之核心代碼模組配置伺服器的方法。 【先前技術】 隨著電腦的普及與網珞技術的快速發展,經由網路可以快速 的獲取所需的資訊’更可以得到多樣化的服務。也由於應用於網 路的技術越來越進步,僅由普通電腦或設備所能提供的服務以不 敷使用,故發展出了伺服器的技術。伺服器係為一種善於處理網 路技術之電腦平台,其可連結至各種網路系統,諸如網際網路 (Internet)、組織内部網路(intranet)、組織間網路(饮如net)、 區域網路(LocalAreaNetwork,LAN)。伺服器並對透過網路系統 相連結的電腦提供各種的應用服矛务。戴爾(Deu)或是英特爾() 等伺服器大廠近年來甚至推出智能平台管理介面(化访出明故BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method of configuring a server, and more particularly to a method of configuring a server by a core code module that communicates with a server only through a firmware interface. [Prior Art] With the popularization of computers and the rapid development of network technology, it is possible to quickly obtain the required information via the Internet, and more diverse services are available. Also, as the technology applied to the network is progressing more and more, the service that can be provided by ordinary computers or devices is not enough, so the technology of the server has been developed. The server is a computer platform that is good at handling network technology. It can be connected to various network systems, such as the Internet, intranet, inter-organizational networks (drinks such as net), and regions. Network (LocalAreaNetwork, LAN). The server provides a variety of application services for computers connected to the network system. Dell (Deu) or Intel () and other server manufacturers have even launched intelligent platform management interface in recent years.

Platform Management Interface ’ IMPI)的技術,用以提供使用者 能夠整合管理多個伺服器。 為了確保伺服器於提供服務時的穩定性,伺服器出被出貨前 出經過各種測試,例如伺服器中各個硬體部件的測試或是壓力測 試。而伺服器在測試或是出貨之前,需經過適當的配置才能得到 正確的測試結果。例如欲對伺服器進行壓力測試前,需確認待測 之祠服器已能正確地連上網路。 但待測的伺服器可能蓮行不同的作業系統,而使得配置伺服 201118593 益的過程相當n舉例而言,在諸如LinuxRH47 、RHEL5.3、 SUSE10、SUSE11、Wind〇ws2〇〇3 或是 Wind〇ws2_ 等伺服器之 業系統中對於同―張網路卡的支援或是適用的網路卡驅動程 序可此有所不同。因此在配置多個制的舰科,需逐一確認 每-個伺服H運行之作㈣統,並使得這些作㈣關時能夠支 心因此例如緖網路卡的驅動程序便須絲—種作料統準備 不同的版本不麻須還增力。多^^版本的成本以及維護飼服器的 成本。-旦職程序所需預先進行的配置項目例如硬體的驅動程 序或執行/1 辦所㈣常駐料(Da_n)增加,傳統的配置方法 所具有的問題更是嚴重。 一匕外傳統的配置方法對伺服器之系統供應商依賴程度4 \亦造成配置以及測試不易關題。製造商需在出貨前就對4 r進订測》式,但疋一般系統供應商提供官方的伺服器測試系矣 的時間點都錢。因此傳統湘祕供應商提供之伺服器測試^ 統的配置以H丨枝十分受限於纟祕應商。再者,若發現奪 統供應商所提供之峨彡統驗何元件有問題,都可 =器的測試結果以及即時出貨的與否。此外,系統供應料 ^供執行m Μ树執狀件)讀造商,喊法對這^ 〃仃即時編相及無法將其修改後制帛。 Β 【發明内容】 為解決上述問題’本發明提供一種配置飼服器的方法。配 飼服器的方法择用以两 置 -置具有-157體介面之-舰H,而配置词 201118593 封裝用以運行於伺服器的-核心代碼模組,以 透德r人〇 ’執订一檢測程序用以檢測核心代妈模組是否僅 ==翻服器溝通’而當核心代碼模組僅透·體介面 溝撕,執行下齡驟以個配置封包配置伺服哭。使 用配置封包峨服姆驟包括:初糊服器;透過^路 下載配置封包於_ ; _配置封包,以得到核心代補組; 以及執行核心代碼模組以配置伺服器。 根據本發明之-實施範例,核心代碼模組可包括一驅動程序 (driver)以及一服務程序(seryice)。而根據本發明之另一實施範 例,核心代碼模組係可包括一編#器以及一函式庫⑽卿)。此 外’配置飼服器的方法之+,於「解壓縮配置封包」的步驟之後 另可包括··編譯核心代碼模組。 較佳的是’上述檢測程序係透過對應飼服器的一虛擬機 (virtual machine)進行_。根據本發明之一實施範例,虛擬機 具有至少一虛擬硬體模組’且檢測程序可包括:讀取虛擬機的一 系統官理列表,依據系統f理列表,得到每_個虛擬硬體模組的 一虛擬驅動以及至少一虛擬服務;以及判斷核心代碼模組是否支 援虛擬驅動以及虛擬服務。更佳的是,系統管理列表可包括每一 個虛擬硬體模組的一虛擬硬體名稱、一虛擬硬體資源、虛擬驅動 以及虛擬服務。 而根據本發明之另一實施範例,配置伺服器的方法之.「初始 化伺服器」的步驟之後,另可包括:於一作業系統選擇列表中選 201118593 擇一作業系統;以及於伺服器上執行作業系統。 口口綜上所述’本發明所提供之配置飼服器的方法可 益時所需的核心代碼模组封裝為配置 ° 哭下載以及_ $ ,,、、I’越供戴配置的伺服 二下載以及崎。配置值騎綠並可透過檢顺序確認核心 代碼她關僅細觀_财面_職溝通。因此即使 f數個伺服器運行不同的作業系統,配置他器的方法亦能夠簡 單地依照需求配置這些飼服器。 【實施方式】 以下在實施方式中詳細敘述本發明之詳細特徵以 1 内容足以使任何熟習相關技藝者了解本發明之技術内容並據以實 施’且根據本說明書所揭露之内容、申請專利範圍及圖式,任何 熟習相關技藝者可輕易地理解本發明相關之目的及優點。 本發明提供一種配置伺服器的方法用以配置具有一韌體介面 之-伺服器。請參照「第1圖」’其係為根據本發明一實施範例之 φ 伺服器之方塊示意圖。飼服器40包括執體介面42,並可包括一作 業糸統44以及一飼服器管理系統(server Management System) 46。伺服器40並可透過一網路30與一版本控制系統(revision control system ) 20 相連。 .版本控制糸統20例如可以利用Subversion ( SVN)、Visual SourceSafe (VSS)或是 Concurrent Versions System (CVS)等應 用程式。此外’本說明書所述之版本控制系統20亦可代表運行版 本控制系統20的平台或計鼻機糸統。 飼服器40可使用Unix的Linux 'FreeBSD或是微軟(Microsoft ) 201118593 的Windows Server施等作業系、統44,亦可為磁碟作業系統⑽企 Operating System ’ DOS)或是使用可延伸韌體介面(取_^ Firmware Interface,EFI)的作業系統44。且伺服器4〇與作業系 統44亦可各種麟之各種舰||產品,本發縣不對其限制。 祠服器40的勒體介面42係為與飼服器4〇的多個硬體相對應 之韌體的總稱,而韌體介面42能使作業係統44簡單地存取伺服 器40的硬體。伺服器管理系統46亦被稱之為智能平台管理介面 (Intelligem Platform Management Interface ’ IMP〗),其係能透過作 業系統44以及韌體介面42存取伺服器4〇的硬體。伺服器管理系 統46並可透過一基板管理控制器(Baseb〇ard Managemem Controller,BMC)對伺服器40提供遠端監視、管理、錯誤診斷和 系統恢復等功能,且伺服器管理系統46可透過網路3〇或其他種 連接方式來通知管理伺服器40的管理人員。 其中網路30可以是用以連接版本控制系統2〇與伺服器4〇的 網際網路(Internet)或是區域網路(LocalAreaNetwork,LAN); 但版本控制系統20與伺服器4〇亦可直接經由一集線器(hub)相 連。 藉由上述硬體結構’對飼服器40本發明提供之配置飼服器的 方法。睛參照「第2圖」’其係為根據本發明一實施範例之配置飼 服器的方法之流程示意圖。 首先封裝一核心代碼模組(kernel code module ),以得到配置 於版本控制器統20的一配置封包(configuringpackage) 22 (步驟 Sl〇〇)。換句話說’於步騾S100中核心代碼模組被封裝為配置封 201118593 包22。其中核心代碼模組可包括至少一驅動程序(driver)以及至 少一服務程序(service) ’而驅動程序以及服務程序係對應於伺服 器40的其中一個硬體。舉例而言,驅動程序可以是伺服器的 網路卡(Network Interface Card,NIC)於韌體介面42中所需的驅 動程序。 服務程序係為韌體介面42能提供之各種系統上的服務,而有 些服務程序的運行方式類似常駐程序。舉例而言「w〇rkstati如」 φ之服務程序提供伺服器40網路連件及通訊的功能,而「Task Scheduler」之服務程序則可讓伺服器4〇内的程式可以在安排好的 時間中執行。服務程序中亦可包括網路卡等硬體所支援的傳輸協 定(protocol)類型以及傳輸協定名稱’例如用戶數據報協議⑺财 Datagram Protoc〇l,UDP)。而核心代碼模組需包括的服務程序係 實際上之伺服器40的型號或是系統供應商而異。舉例而言,惠普 (HP)的伺服器40在配置時可能需要HpASM或是等二 務程序。 •除了驅動程序以及服務程序之外,核心代碼模組並可封裝有 調用伺服器40之至少一連接埠(port)等所需的底層支持。 被封裝為配置封&22的核心代碼模組接著被執行一檢測程序 (步驟S120)。檢測程序係檢查核心代碼模組是否能不透過词服器 40的作業系統44 ’而僅透過體介面42與飼服器4〇的各個硬體 溝通。換句話說,檢測程序可檢測核心代碼模組中的驅動程序以 及服務程序是否可在沒有作業系統44的情況下令伺服器管理系統 46直接透過韌體介面42來存取伺服器4〇的硬體。 201118593 請同時參照「第3圖」以及「第4圖」,其分別為根據本發明 -實施範例之檢靡序之練示意圖錢虛_之 根據本剌之-實施範例,檢難縣麵朗制捕服器4〇 的-虛擬機(Virtual Machine,VM) 5G進行檢測。更詳細的說, 虛擬機50可包括至少一虛擬硬體模組52,且每一個虛擬硬體模組 52對應有一虛擬驅動54以及至少一虛擬服務%。 虛擬機50係模擬以配置完成之伺服器4〇,且每一個虛擬機 50的虛擬硬體模組52都職於舰㈣的—個硬體。於檢測程 序中,首先讀取虛擬機50的一系統管理列表(步驟S122),其中 系統管理列表可以透過運行於虛擬機5〇中的—虛擬作業系統讀 取。 較佳的是,系統管理列表中包括虛擬機5〇中的每一個虛擬硬 體模組52的-虛擬硬體名稱、一虛擬硬體資源、虛擬驅動%以 及虛擬服務56。舉例而言,對應於飼服器4〇之網路卡的虛擬硬體 模組52的虛擬硬體名稱、虛擬硬體資源、虛擬驅動54以及虛擬 服務56可以個別是飼服器4〇之網路卡的名稱、網路卡的存取位 址(address)與網路傳輪速率、網路卡的驅動程序名稱以及網路 卡提供的服務程序。 因此藉由讀取虛擬機5〇的系統管理酿,便可得到每一個虛 擬硬體模組52的虛擬縣54以及虛擬贿% (步驟si24卜接 著則判斷核心代碼模組巾的驅動程序以及服務程序是否支援對應 之虛擬硬體模組52的虛擬驅動54以及虛擬服務%(步驟a%)。 當伺服器40被配置完成時’伺服器40的-個硬體所需要的 201118593 擬驅= 乂及服務程序即為這個硬體對應之虛擬硬體模組52的虛 爾崎56°㈣餘物_及核心代碼 ° 1斷核、代竭模組是否足夠支援虛擬驅動 54 iU AM. 擬機50對廡換句話5兄,便可判斷核心代碼模組是$足夠支援與虛 伺㈣4G’响触朗鶴餅錢服務程序等 韌體㈤42的元件與伺服器4〇溝通。 接下來請回到「第2圖」。確認核心代碼模組能僅透過勤體介 面42與伺服器4〇的各個硬體溝通後接著初始化飼服器卯(步 驟〇)而在初始化伺服器4〇之前,可先將飼服器插上網路 線並確保飼服器40能順暢地透過網路30與版本控制系統20連 線,亦可湘服器40的―基本輸人輸出纽(Β_邮義㈣Platform Management Interface ' IMPI' technology to provide users with the ability to integrate and manage multiple servers. In order to ensure the stability of the server when providing the service, the server is subjected to various tests before being shipped, such as testing of various hardware components in the server or stress testing. Before the server is tested or shipped, it needs to be properly configured to get the correct test results. For example, before performing a stress test on the server, make sure that the server under test is properly connected to the network. However, the server to be tested may be lining up different operating systems, so that the process of configuring the servo 201118593 is quite n. For example, in such as LinuxRH47, RHEL5.3, SUSE10, SUSE11, Wind〇ws2〇〇3 or Wind〇 The support for the same network card or the applicable network card driver in the server system such as ws2_ can be different. Therefore, in the configuration of a plurality of ship systems, it is necessary to confirm each of the servo H operations (four) one by one, and make these (four) off when the support can be taken. Therefore, for example, the driver of the network card is required. Prepare different versions without hesitation and increase your strength. The cost of multiple versions and the cost of maintaining the feeder. - The pre-configured items required for the service program, such as the hardware driver or the execution of the (4) resident materials (Da_n), the problems with the traditional configuration method are even more serious. A traditional external configuration method relies on the server's system supplier level 4 \ also causes configuration and testing is not easy. Manufacturers need to order 4 r before shipment, but the average system vendor provides the official server test system at all points in time. Therefore, the configuration of the server test system provided by the traditional Chinese secret resource provider is very limited by the secret business. Furthermore, if you find that there are problems with the components of the system provided by the OEM, you can test the results of the device and whether it is shipped immediately. In addition, the system supplies materials for the execution of m Μ 执 ) ) ) 读 读 读 读 读 读 读 读 读 读 读 读 读 读 读 读 读 读 读 读 读 读 读 读 读 读 读 读SUMMARY OF THE INVENTION In order to solve the above problems, the present invention provides a method of configuring a feeding device. The method of matching the feeding device is to use two-position------H-H, and the configuration word 201118593 is packaged to run on the server-core code module, A detection program is used to detect whether the core generation mother module only ==transfer device communication' and when the core code module only tears through the body interface groove, the next age is configured with a configuration packet to configure the server to cry. The configuration package is used to include: the initial paste server; download the configuration package to the _; _ configuration package to obtain the core replacement group; and execute the core code module to configure the server. In accordance with an embodiment of the present invention, the core code module can include a driver and a seryice. According to another embodiment of the present invention, the core code module may include a program and a library (10). In addition, the method of configuring the feeder may be followed by the step of "decompressing the configuration packet" to compile the core code module. Preferably, the above detection procedure is performed by a virtual machine corresponding to the feeder. According to an embodiment of the present invention, the virtual machine has at least one virtual hardware module' and the detecting program may include: reading a system official list of the virtual machine, and obtaining each virtual hard phantom according to the system f list a virtual drive of the group and at least one virtual service; and determining whether the core code module supports the virtual drive and the virtual service. More preferably, the system management list can include a virtual hardware name, a virtual hardware resource, a virtual drive, and a virtual service for each virtual hardware module. According to another embodiment of the present invention, after the step of "initializing the server" of the method for configuring the server, the method further includes: selecting an operating system in the operating system selection list; and executing the operation on the server; working system. The above-mentioned method of configuring the feeding device provided by the present invention can be used to package the core code module as a configuration. The crying download and the _ $ , , , , and I are more suitable for the servo configuration. Download and Saki. The configuration value is green and the core code can be confirmed through the inspection sequence. Therefore, even if f servers are running different operating systems, the method of configuring the other devices can simply configure the feeders according to requirements. [Embodiment] Hereinafter, the detailed features of the present invention are described in detail in the embodiments, and the content of the present invention is sufficient for any skilled person to understand the technical contents of the present invention and to implement the contents of the present invention, the scope of the patent application, and The related objects and advantages of the present invention will be readily understood by those skilled in the art. The present invention provides a method of configuring a server for configuring a server having a firmware interface. Please refer to "FIG. 1", which is a block diagram of a φ server according to an embodiment of the present invention. The applicator 40 includes a body interface 42 and may include a work system 44 and a server management system 46. The server 40 can be coupled to a revision control system 20 via a network 30. The version control system 20 can use, for example, an application such as Subversion (SVN), Visual SourceSafe (VSS), or Concurrent Versions System (CVS). Further, the version control system 20 described in this specification may also represent a platform or a counter system that runs the version control system 20. The feeder 40 can use the Unix Linux 'FreeBSD or Microsoft (Microsoft) 201118593 Windows Server application system, the system 44, can also be the disk operating system (10) Enterprise Operating System 'DOS) or use the extendable firmware Interface (take _^ Firmware Interface, EFI) operating system 44. And the server 4〇 and the operating system 44 can also be used for various kinds of ships||products, and this county does not limit it. The body interface 42 of the server 40 is a general term for the firmware corresponding to the plurality of hardware of the feeder 4, and the firmware interface 42 enables the operating system 44 to simply access the hardware of the server 40. . The server management system 46 is also referred to as an intelligent platform management interface (Intelligem Platform Management Interface' IMP), which is capable of accessing the hardware of the server through the job system 44 and the firmware interface 42. The server management system 46 can provide remote monitoring, management, error diagnosis, and system recovery functions to the server 40 through a BaseBard Management Controller (BMC), and the server management system 46 can access the network. The administrator of the management server 40 is notified by way of a connection or other connection. The network 30 may be an Internet (Internet) or a Local Area Network (LAN) for connecting the version control system 2 to the server 4; however, the version control system 20 and the server 4 may also be directly Connected via a hub. The method of configuring a feeder provided by the present invention to the feeder 40 by the above-described hardware structure. The eye is referred to as "Fig. 2", which is a schematic flow chart of a method of arranging a feeder according to an embodiment of the present invention. First, a kernel code module is packaged to obtain a configuration package 22 (step Sl〇〇) configured in the version controller system 20. In other words, the core code module in Step S100 is packaged as a configuration block 201118593 package 22. The core code module may include at least one driver and at least one service program, and the driver and the service program correspond to one of the hardware of the server 40. For example, the driver can be the driver required by the server's Network Interface Card (NIC) in the firmware interface 42. The service program is a service on various systems that the firmware interface 42 can provide, while some service programs operate in a similar manner to resident programs. For example, the service program "w〇rkstati" φ provides the server 40 network connection and communication functions, and the "Task Scheduler" service program allows the program in the server 4 to be scheduled. Executed in. The service program may also include a transport protocol type supported by a hardware such as a network card and a transport protocol name such as a User Datagram Protocol (7) Datagram Protoc〇l, UDP. The service program to be included in the core code module differs from the actual server 40 model or system vendor. For example, HP's server 40 may require HpASM or a peer-to-peer program when configured. • In addition to the driver and the service program, the core code module can be packaged with the underlying support required to invoke at least one port of the server 40. The core code module packaged as the configuration package & 22 is then executed with a detection program (step S120). The test program checks whether the core code module can communicate with the hardware of the feeder 4 through the body interface 42 only through the operating system 44' of the word processor 40. In other words, the detection program can detect whether the driver in the core code module and the service program can cause the server management system 46 to directly access the hardware of the server through the firmware interface 42 without the operating system 44. . 201118593 Please also refer to "3rd" and "4th", which are respectively a schematic diagram of the inspection procedure according to the present invention - an example of the practice of the imaginary _ according to the embodiment - the implementation of the test The virtual machine (VM) 5G is detected by the capture device. In more detail, the virtual machine 50 can include at least one virtual hardware module 52, and each virtual hardware module 52 corresponds to a virtual drive 54 and at least one virtual service %. The virtual machine 50 simulates the server 4 that is configured to be completed, and the virtual hardware module 52 of each virtual machine 50 functions as a hardware of the ship (four). In the detection program, a system management list of the virtual machine 50 is first read (step S122), wherein the system management list can be read by the virtual operating system running in the virtual machine 5?. Preferably, the system management list includes a virtual hardware name, a virtual hardware resource, a virtual drive %, and a virtual service 56 of each of the virtual hardware modules 52 in the virtual machine 5 . For example, the virtual hardware name, the virtual hardware resource, the virtual driver 54, and the virtual service 56 of the virtual hardware module 52 corresponding to the network card of the server can be a network of the server. The name of the road card, the address and address of the network card, the network transmission rate, the driver name of the network card, and the service program provided by the network card. Therefore, by reading the system management of the virtual machine 5, the virtual county 54 of each virtual hardware module 52 and the virtual bribe % can be obtained (step si24 then judge the driver and service of the core code module towel). Whether the program supports the virtual driver 54 and the virtual service % of the corresponding virtual hardware module 52 (step a%). When the server 40 is configured to be completed, the server 18 requires a hardware to be used. And the service program is the virtual virtual hardware module 52 of the virtual virtual module 52 of the virtual arsenal 56 ° (four) remnant _ and core code ° 1 core, exhaustive module is enough to support the virtual drive 54 iU AM. For the 5 brothers, you can judge that the core code module is enough to support and the virtual (4) 4G' ringing the firmware (5) 42 and other components of the firmware (5) 42 to communicate with the server 4. Next, please return "Picture 2". Confirm that the core code module can communicate with the hardware of the server 4 through the hard-working interface 42 and then initialize the feeder (step 〇) before the server 4 is initialized. Plug the feeder into the internet route and make sure the feeder 40 It can be smoothly connected to the version control system 20 through the network 30, or the basic input output of the shoji 40 (Β_邮义(四)

System,BIOS)進行設定。 。根據本發明之一實施範例,初始化飼服器4〇之後,並可於飼 服,40的-作業系統選擇表中選擇欲安裝的作業系統44,並在祠 服器40上執行被選擇的作業系統44。 接著利㈣業系統44,透過網路30下載版本控㈣統2〇之 中的配置封包22 (步驟S16G),麟壓祕置封包22以得到配置 封包22内的核心代碼模組(步驟sl8〇)。較佳的是待測的伺服 器40中配置有一腳本(script),而腳本能自動連接版本控制系統 2〇並自動下載配置封包22。配置封包22被下载後可由腳本自動 進行解壓縮的步驟,而配置封包22亦可是二個自解壓縮檔 (SelF-eXtracting,SFX) 〇 得到配置封包22内的核心代碼模組之後,便可執行核心代碼 201118593 模組(步驟S200)。更詳細的說’核心代碼模組中的驅動程序以及 服務程序個別被掛載給伺服器4〇中其個別對應的硬體。如此一 來,伺服器40的硬體獲得進行伺服器40之測試等情况所需要的 驅動程序以及服務程序’而完成配置伺服器40。 根據本發明之另—實施範例,核心代碼模_所包括的驅動 程序以及服務料係為由細語謂寫成的程式碼。刺服器4〇 解壓縮配置封包22獲得㈣代碼歡之後,另將驅触序以及服 務程序編譯或為可執行的二進位檔(binarycode)。 而為了能將驅動程序以及服務程序編譯,核心代碼模組另可 包括-編譯器(eGmpilei·)以及-函式庫〇ibrary)。舉例而言,於 步驟 S1〇〇 時,可將一硬體介面接續(Hardware Interface Accessing) 封裝成C或是C++語言的函式庫。 綜上所述,本發明所提供之配置伺服器的方法可將配置伺服 器時所需的驅動程序以舰務程料核心代補崎裝為配置封 包,並提供戴配置的伺服器下載後自動進行配置。且配置伺服器 的方法亦透過檢測程序確認核心代碼模組能夠僅透過伺服器的韌 體;ι面與伺服器溝通。因此即使多數個伺服器運行不同的作業系 配置飼服器的方法亦能夠簡單地依照需求配置這些词服器。 因此本發明所提供之配置伺服器的方法能夠避免傳統的配置 方法之繁瑣的配置程序,亦能即時編譯使用之核心代碼模組。此 卜本發明所提供之配置伺服器的方法亦不需使用伺服器的供應 商斤提供的配置或測試系統,而解決對系統供應商過度依賴的問 12 201118593 題。System, BIOS) to make settings. . According to an embodiment of the present invention, after the feeder 4 is initialized, the operating system 44 to be installed can be selected in the operating system selection table of the feeding suit 40, and the selected job is executed on the server 40. System 44. Then, the system 44 downloads the configuration packet 22 in the version control system (step S16G) through the network 30, and obtains the core code module in the configuration package 22 (step s18). ). Preferably, a script is configured in the server 40 to be tested, and the script can automatically connect to the version control system 2 and automatically download the configuration packet 22. After the configuration packet 22 is downloaded, the script can be automatically decompressed, and the configuration packet 22 can also be two self-decompressing files (SelF-eXtracting, SFX). After the core code module in the configuration packet 22 is obtained, the configuration can be performed. Core code 201118593 module (step S200). In more detail, the drivers and service programs in the core code module are individually mounted to their respective corresponding hardware in the server. In this manner, the hardware of the server 40 obtains the driver and the service program required for the test of the server 40 and the like, and completes the configuration of the server 40. According to another embodiment of the present invention, the driver and the service material included in the core code module are code code written by the verb. The sniper 4 〇 decompresses the configuration packet 22 to obtain the (4) code, and then compiles the driver and the service program into an executable binary code. In order to compile the driver and the service program, the core code module may include a compiler (eGmpilei) and a library (ibrary). For example, in step S1, a hardware interface accessing can be packaged into a library of C or C++ languages. In summary, the method for configuring the server provided by the present invention can automatically install the driver required for configuring the server into the configuration package of the ship's core material, and provide the server with the configuration configuration automatically after downloading. Configure it. And the method of configuring the server also confirms that the core code module can communicate with the server only through the firmware of the server through the detection program; Therefore, even if a large number of servers run different operating systems, the method of configuring the feeder can simply configure the word processors as needed. Therefore, the method for configuring the server provided by the present invention can avoid the cumbersome configuration procedure of the conventional configuration method, and can also compile and use the core code module in real time. The method of configuring the server provided by the present invention does not require the use of a configuration or test system provided by the vendor of the server, but solves the problem of excessive dependence on the system supplier.

Lh之較佳實施例揭露如上,然其並非用以限 疋,Ιβ ’任何熟f相像技藝者,在不脫離本發明之精神和範圍 内〜、田可作持之更動細飾’因此本發明之專利保護範圍須視 本說明書所附之中請專利範圍所界定者為準。 【圖式簡單說明】 第1圖係為根據本發明一實施範例之伺服器之方塊示意圖; 第2圖係為根據本發明一實施範例之配置伺服器的方法之流 程示意圖; , 第3圖係為根據本發明一實施範例之檢測程序之流程示意 圖;以及 第4圖係為根據本發明一實施範例之虛擬機之方塊示意圖。 【主要元件符號說明】 20 版本控制系統 22 配置封包 30 網路 40 伺服器 42 韌體介面 44 作業系統 46 伺服器管理系統 50 虛擬機 52 虛擬硬體模組 13 201118593 54 虛擬驅動 虛擬服務 56The preferred embodiment of Lh is as disclosed above, but it is not intended to limit the invention, and the present invention may be modified without departing from the spirit and scope of the present invention. The scope of patent protection shall be subject to the definition of the scope of patents attached to this specification. BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram of a server according to an embodiment of the present invention; FIG. 2 is a flow chart showing a method for configuring a server according to an embodiment of the present invention; A schematic flowchart of a detection procedure according to an embodiment of the present invention; and FIG. 4 is a block diagram of a virtual machine according to an embodiment of the present invention. [Key component symbol description] 20 Version control system 22 Configuration packet 30 Network 40 Server 42 Firmware interface 44 Operating system 46 Server management system 50 Virtual machine 52 Virtual hardware module 13 201118593 54 Virtual drive Virtual service 56

Claims (1)

201118593 七、申請專利範圍: 1. -種配置鑛器的方法,用以配置具有—祕介面之一飼服 器,該配置伺服器的方法包括: 封裝用以運行於該伺服器的一核心代碼模組,以得到一配 置封包;以及 執行一檢測程序用以檢測該核心代碼模組是否僅透過該韌 體介面與該伺服器溝通’當該核心代碼模組僅透過該韌體介面 與該伺服益溝通時,執行下列步驟: 初始化該伺服器; 透過一網路下載該配置封包於該伺服器; 解壓縮該配置封包,以得到該核心代碼模組;以及 執行該核心代碼模組以配置該伺服器。 2. 如申請專利範圍第〗項所述之配置伺服器的方法,其中該核心 代碼模組係包括:一驅動程序以及一服程序。 3. 如申請專利範圍第1項所述之配置伺服器的方法,其中該解壓 縮該配置封包的步驟之後,另包括: 編澤該核心代碼模組。 4. 如申請專利範圍第1項所述之配置伺服器的方法,其中該核心 代碼模組係包括:一編譯器以及一函式庫(library)。 5. 如申請專利範圍第1項所述之配置司服器的方法,其中該檢測 程序係透過對應該伺服器的一虛擬機(virtual machine)進行檢 測0 15 201118593 且專β範圍第5項所述之配置飼服器的方法,其中該虛擬 機一有至少一虛擬硬體模組,且該檢測程序包括: 讀取該虛擬機的一系統管理列表; 依據該系統官理列表’制每—該虛擬硬體模組的一虛擬 驅動以及至少一虛擬服務 :以及 判斷該核心代碼歡是否支援該虛擬购以及該虛擬服 務。 7. 如申請專概㈣6梢述之配置舰器的方法’其中該系統 s理列表包括每一該虛擬硬體模組的一虛擬硬體名稱、一虛擬 硬體資源、該虛擬驅動以及該虛擬服務。 8. 如申請專利範圍第i項所狀配置飼服器的方法,其中該初始 化該伺服器的步驟之後·,另包括: 於一作業系統選擇列表中選擇一作業系統:;以及 於該伺服器上執行該作業系統。201118593 VII. Patent application scope: 1. A method for configuring a mine device for configuring a feeding device having a secret interface, the method for configuring the server includes: packaging a core code for running on the server The module is configured to obtain a configuration packet; and execute a detection program to detect whether the core code module communicates with the server only through the firmware interface. When the core code module only passes through the firmware interface and the servo In the case of communication, the following steps are performed: initializing the server; downloading the configuration packet to the server through a network; decompressing the configuration packet to obtain the core code module; and executing the core code module to configure the server. 2. The method for configuring a server according to the scope of the patent application, wherein the core code module comprises: a driver program and a service program. 3. The method of configuring a server according to claim 1, wherein the step of decompressing the configuration packet further comprises: compiling the core code module. 4. The method of configuring a server according to claim 1, wherein the core code module comprises: a compiler and a library. 5. The method of configuring a server as described in claim 1, wherein the detecting program detects a virtual machine corresponding to the server 0 15 201118593 and the fifth item of the special β range The method for configuring a feeding device, wherein the virtual machine has at least one virtual hardware module, and the detecting program comprises: reading a system management list of the virtual machine; according to the system official list, each system is configured A virtual driver of the virtual hardware module and at least one virtual service: and determining whether the core code supports the virtual purchase and the virtual service. 7. The method of claiming a configuration of a ship (wherein the system list includes a virtual hardware name of each of the virtual hardware modules, a virtual hardware resource, the virtual drive, and the virtual service. 8. The method of configuring a feeding device according to item ii of the patent application, wherein the step of initializing the server, further comprising: selecting an operating system in an operating system selection list; and Execute the operating system on it.
TW98140885A 2009-11-30 2009-11-30 Method for configuring server TW201118593A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW98140885A TW201118593A (en) 2009-11-30 2009-11-30 Method for configuring server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW98140885A TW201118593A (en) 2009-11-30 2009-11-30 Method for configuring server

Publications (1)

Publication Number Publication Date
TW201118593A true TW201118593A (en) 2011-06-01

Family

ID=44935741

Family Applications (1)

Application Number Title Priority Date Filing Date
TW98140885A TW201118593A (en) 2009-11-30 2009-11-30 Method for configuring server

Country Status (1)

Country Link
TW (1) TW201118593A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI613594B (en) * 2016-12-22 2018-02-01 財團法人工業技術研究院 Method for assigning central processing units and server using the same

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI613594B (en) * 2016-12-22 2018-02-01 財團法人工業技術研究院 Method for assigning central processing units and server using the same
US11126470B2 (en) 2016-12-22 2021-09-21 Industrial Technology Research Institute Allocation method of central processing units and server using the same

Similar Documents

Publication Publication Date Title
JP5362974B2 (en) How to use virtualization software for shipping software products
US6487608B2 (en) Method for automatically configuring network interface card and capable of randomizing a media access controller address of the network interface card
US7441113B2 (en) Method and apparatus for virtualization of appliances
US9292312B2 (en) Simulated network boot environment for bootstrap redirection
US7363482B2 (en) Method and apparatus to support remote configuration code
US20130103380A1 (en) System and method for controlling multiple computer peripheral devices using a generic driver
US20100318961A1 (en) Parametric Build of UEFI Firmware
US20090077551A1 (en) Virtual machine image builder for automated installation of fully-virtualized operating system
US20060242280A1 (en) Out-of-band platform initialization
US8082436B2 (en) Enhanced UEFI framework layer
JP6262870B2 (en) Selectively enable platform-specific features
US10747526B2 (en) Apparatus and method to execute prerequisite code before delivering UEFI firmware capsule
JP2022553860A (en) runtime container
Jangla Accelerating development velocity using docker: Docker across microservices
Sally Pro Linux embedded systems
EP3207453B1 (en) Api versioning independent of product releases
TW201118593A (en) Method for configuring server
Dalheimer et al. Running Linux: A Distribution-Neutral Guide for Servers and Desktops
Ye Android System Programming
US11899602B2 (en) Smart network interface controller operating system binding
CN102081529A (en) Method for configuring server
Armstrong Professional Microsoft Virtual Server 2005
CN111273946A (en) Method and system for automatic device driver configuration
Oram et al. SILICON ENABLING IN A MODULAR ARCHITECTURE.
SERIES Windows Installation and Update Troubleshooting