1. Technical Field
Embodiments of the present disclosure relate to cloud computing technology, and more particularly to a computing device and a method of installing hardware specification files in hosts.
2. Description of Related Art
In a process of establishing a virtualized environment, files containing hardware specifications for hosts (host hardware specification (HHS) files) need to be installed in hundreds of host computers. Presently, installation of the HHS files is repetitively performed by engineers. There is room for improvement.
The present disclosure, including the accompanying drawings, is illustrated by way of examples and not by way of limitation. It should be noted that references to “an” or “one” embodiment in this disclosure are not necessarily to the same embodiment, and such references mean “at least one.”
In general, the word “module”, as used herein, refers to logic embodied in hardware or firmware, or to a collection of software instructions, written in a programming language. One or more software instructions in the modules may be embedded in firmware, such as in an erasable programmable read only memory (EPROM). The modules described herein may be implemented as either software and/or hardware modules and may be stored in any type of non-transitory computer-readable medium or other storage device. Some non-limiting examples of non-transitory computer-readable media include CDs, DVDs, BLU-RAY, flash memory, and hard disk drives.
In one embodiment, the system 10 creates HHS files 20 for hosts 1 with different hardware specifications, and stores the HHS files 20 in the storage device 2. Each host 1 includes a baseboard management controller (BMC) 30 and a basic input/output system (BIOS) 40. To configure operating systems for the host 1, an HHS file needs to be installed. An HHS file is a type of disk image composed of data contents of every written sector of an optical disc, which includes configuration information in relation to hardware components of the host 1.
The system 10 monitors the DHCP server 3. If an IP address has been newly allocated by the DHCP server 3 to any host 1, the system 10 accesses the host 1 based on the newly allocated IP address, to obtain a hardware specification of the host 1. Furthermore, the system 10 determines an HHS file 20 for the host 1 according to the hardware specification of the host 1, and installs the HHS file 20 in the host 1 by controlling the BMC 30 of the host 1.
As shown in
In step S10, the creation module 11 creates HHS files 20 for the hosts 1 with different hardware specifications and stores the HHS files 20 in the storage device 2. A hardware specification of a host 1 includes configuration information of hardware components of the host 1. For example, the hardware specification may include central processing unit (CPU) configuration information, memory configuration information, non-transitory storage device configuration information, network card configuration information, and graphic processing unit (GPU) configuration information. The CPU configuration information may include a number of kernels of a CPU and a type of the CPU. The memory configuration information and the non-transitory storage device configuration information may include a type of memory, such as volatile or non-transitory, and storage capacities of different types of memories or storage devices. The network card configuration information may include a number of network cards, one or more interface types supported by each network card, and a speed of each network card.
According to the hardware specification of the host 1, the creation module 11 sets storage partitions of the memory of the host 1, sets a network card to take charge of communications between the host 1 and other network devices (such as the DHCP server 3 or other host 1), sets access authorities of the host 1, and packetizes the set information to generate the HHS file 20. A partition is logical division of a hard disk, so that different operating systems may be installed in the same storage device.
In step S20, the monitoring module 12 periodically queries the DHCP server 3, and checks if the DHCP server 3 has newly allocated an IP address to a host 1. When a host 1 is first connected to the network 4, the BMC 30 of the host 1 will send a request to the DHCP server 3 for an IP address.
In step S30, on condition that the DHCP server 3 has newly allocated an IP address to a host 1, the query module 13 accesses the host 1 according to the IP address allocated to the host 1 by the DHCP server 3, and obtains a hardware specification of the host 1 by querying the BIOS 40 of the host 1.
In step S40, the query module 13 determines if the hardware specification of the host 1 is in fact new by querying the HHS files 20 that are stored in the storage device 2. As mentioned above, the HHS files 20 stored in the storage device 2 are created according to the hardware specifications of the hosts 1, so that associations between the HHS files 20 and the hardware specifications of the hosts 1 can be determined according to the HHS files 20. If the hardware specification of the host 1 is not new, a matching HHS file 20 can be found from the storage device 2, in step S50, the distribution module 14 reads the matching HHS file 20 from the storage device 2, and the procedure goes to step S70. Otherwise, if the hardware specification of the host 1 is new, no matching HHS file 20 can be found from the storage device 2, and the procedure goes to step S60.
In step S60, the creation module 11 newly creates an HHS file 20 for the host 1 according to the new hardware specification, and stores the created HHS file 20 into the storage device 2.
In step S70, the distribution module 14 distributes the HHS file 20 (e.g., the matching ISO file 20 or the newly created ISO file 20) to the host 1 via the network 4, and installs the HHS file 20 in the host 1 by remotely controlling the BMC 30 of the host 1.
Although certain disclosed embodiments of the present disclosure have been specifically described, the present disclosure is not to be construed as being limited thereto. Various changes or modifications may be made to the present disclosure without departing from the scope and spirit of the present disclosure.
Number | Date | Country | Kind |
---|---|---|---|
101150829 | Dec 2012 | TW | national |