CN107193605A - The installation method and system of a kind of operating system - Google Patents
The installation method and system of a kind of operating system Download PDFInfo
- Publication number
- CN107193605A CN107193605A CN201710383601.9A CN201710383601A CN107193605A CN 107193605 A CN107193605 A CN 107193605A CN 201710383601 A CN201710383601 A CN 201710383601A CN 107193605 A CN107193605 A CN 107193605A
- Authority
- CN
- China
- Prior art keywords
- information
- bare machine
- machine equipment
- script
- configuration
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4406—Loading of operating system
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Stored Programmes (AREA)
Abstract
The invention provides a kind of installation method of operating system and system, method:S100 according to the hardware information of bare machine equipment register obtaining hardware log-on message;S200 creates node corresponding with the bare machine equipment according to the hardware log-on message;The bare machine equipment of S300 control open states installs automatic installation script, is configured the configuration script in automatic installation script described in the bare machine equipment calls;The automatic installation script includes the configuration script of destination OS;S400, which is restarted, installs the bare machine equipment that configuration is completed.Destination OS of the present invention with openstack is seamless merges, enable to be provided with destination OS bare machine equipment can image tube reason virtual machine equally manage physical host, automation size deployment reduces the work of manual installation operation system and configuration.
Description
Technical field
The present invention relates to computer control field, the installation method and system of espespecially a kind of operating system.
Background technology
With the Fast Growth of calculator technology and efficiency, application of the calculator in each field is more and more extensive.Especially
The change of software and hardware, is also inconjunction with the efficiency of influence computer operation.Openstack is the cloud computing an increased income management
Platform, is IaaS (infrastructure is serviced) component, allows anyone voluntarily can set up and provide high in the clouds computational service.
Openstack covers the various aspects such as network, virtualization, operating system, server.Project objective be to provide implementation it is simple,
Can on a large scale extend, enrich, the cloud computing management platform that standard is unified.Openstack is provided by various complementary services
Infrastructure is the solution for servicing (IaaS), and it is integrated to carry out that each service provides API.
At present, the deployment of openstack cloud platforms needs artificially to manage multiple devices, and error rate is high, less efficient, nothing
Method meets the demand of rapid deployment, time-consuming considerably long, and operation and maintenance cost are high.For personal use person, use
Person only needs to carry out the installation of operating system and the adjustment of hardware in face of single calculator.But for needing to install many meters
For the manufacturer for calculating device, needed due to generating new operating system file by the driver of all peripheral devices and setting behaviour
Make the ambient parameter of system, therefore, previous operations must still be decided in its sole discretion by user.If these work are all by artificial complete
Into such workload is big and extremely inefficient.
The content of the invention
It is an object of the invention to provide a kind of installation method of operating system and system, the peace for completing operating system is realized
Dress, accelerates and simplifies installment work, improve production efficiency.
The technical scheme that the present invention is provided is as follows:
The present invention provides a kind of installation method of operating system, including step:S100 is according to the hardware information of bare machine equipment
Progress, which is registered, obtains hardware log-on message;S200 creates section corresponding with the bare machine equipment according to the hardware log-on message
Point;The bare machine equipment of S300 control open states installs automatic installation script, makes to install automatically described in the bare machine equipment calls
Configuration script in script is configured;The automatic installation script includes the configuration script of destination OS;S400 is restarted
The bare machine equipment that configuration is completed is installed.
Further, after the S200, step is included before S300:S210 sends control open command to the bare machine
Equipment, controls the bare machine device power-up to start.
Further, the step S300 includes step:S310 installs the automatic installation script, the automatic installation foot
This includes destination OS and open stack configuration script;S320 calls the configuration script, respectively in node correspondence
Bare machine device configuration activation bit, node attribute information, serve port information, template types information and service network information.
Further, the step S320 includes step:S321 configures the activation bit, and the activation bit includes
Ipmi-username, ipmi-password, ipmi-address, deploy_kernel, deploy_ramdisk and ipmi-
port;S322 configures the node attribute information, and the node attribute information includes memory, RAM, DISK and CPU;S323 matches somebody with somebody
The serve port information is put, the serve port information includes NODE_UUID and NODE_MAC_ADDRESS;S324 configures institute
State template types information so that the configuration consistency of the template types information and the bare machine equipment;The template types information
Including RAM, DISK, CORE;S325 configures the service network information so that the bare machine equipment is with open stack at one
In broadcast domain.
Further, step is included before the S100:S010 obtains the hardware information of all control equipments to be controlled;It is described hard
Part information includes mac address information, RAM information, DISK information, CORE information and CPU information;S020 believes according to the hardware
Whether breath, it is bare machine to judge the control equipment to be controlled;If so, performing step S100.
The present invention also provides a kind of installation system of operating system, including:Bare machine equipment, control device, the bare machine is set
It is standby to be communicated to connect with the control device;The control device includes:Registering modules, are carried out according to the hardware information of bare machine equipment
Registration obtains hardware log-on message;Creation module, node is created according to the hardware log-on message of the Registering modules;Control
Module, the bare machine equipment of control open state installs automatic installation script, makes automatic installation foot described in the bare machine equipment calls
Configuration script in this is configured, and is restarted and is installed the bare machine equipment that configuration is completed;Wherein, the automatic installation script includes mesh
Mark the configuration script of operating system.
Further, in addition to:Sending module, sends control open command to the bare machine equipment, controls the bare machine
Device power-up starts.
Further, the control module includes:Submodule is installed, the automatic installation script, the automatic peace are installed
Filling script includes the destination OS and open stack configuration script;Submodule is configured, the installation submodule is called
The configuration script in block, respectively in the corresponding bare machine device configuration activation bit of node, node attribute information, serve port
Information, template types information and service network information.
The further configuration submodule includes:First dispensing unit, configures the activation bit, the activation bit
Including ipmi-username, ipmi-password, ipmi-address, deploy_kernel, deploy_ramdisk and
ipmi-port;Second dispensing unit, configures the node attribute information, and the node attribute information includes memory, RAM,
DISK and CPU;3rd dispensing unit, configures the serve port information, the serve port information include NODE_UUID and
NODE_MAC_ADDRESS;4th dispensing unit, configures the template types information so that the template types information with it is described
The configuration consistency of bare machine equipment;The template types information includes RAM, DISK, CORE;5th dispensing unit, configures the clothes
The business network information so that the bare machine equipment is with open stack in a broadcast domain.
Further, in addition to:Acquisition module, obtains the hardware information of all control equipments to be controlled;The hardware information bag
Include mac address information, RAM information, DISK information, CORE information and CPU information;Judge module, is obtained according to the acquisition module
Whether the hardware information taken, it is bare machine to judge the control equipment to be controlled;If so, sending register instruction to the Registering modules
Registered.
The installation method and system of a kind of operating system provided by the present invention, can bring following at least one beneficial
Effect:
1) present invention due to destination OS with openstack is seamless merges, enable to that object run system is installed
The bare machine equipment of system can image tube reason virtual machine equally manage physical host, automation size deployment.
2) present invention due to destination OS with openstack is seamless merges, by destination OS with
Openstack automates carry out installation and deployment, the step of simplifying installation, it is not necessary to individually needing the bare machine of installation system
A system is activated individually in equipment, accelerates and simplifies installment work, improve production efficiency.
3) present invention due to destination OS with openstack is seamless merge, using automatic installation script, control accordingly
The installation parameter of operating system, can realize that batch is installed, and can also realize that customization is installed.
4) present invention due to destination OS with openstack is seamless merges, need to plug electricity to bare machine equipment, connect
Netting twine, other work are all automatically completed the addition, deletion, power supply pipe of physical host by destination OS and openstack
Reason, operating system and application system deployment, and network configuration and flexible networking, the manual installation operation system of reduction and configuration
Work.
Brief description of the drawings
Below by clearly understandable mode, preferred embodiment is described with reference to the drawings, to a kind of installation of operating system
Above-mentioned characteristic, technical characteristic, advantage and its implementation of method and system are further described.
Fig. 1 is a kind of flow chart of one embodiment of the installation method of operating system of the invention;
Fig. 2 is a kind of flow chart of another embodiment of the installation method of operating system of the invention;
Fig. 3 is a kind of flow chart of another embodiment of the installation method of operating system of the invention;
Fig. 4 is a kind of structural representation of one embodiment of the installation system of operating system of the invention;
Fig. 5 is a kind of structural representation of another embodiment of the installation system of operating system of the invention.
Embodiment
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, control is illustrated below
The embodiment of the present invention.It should be evident that drawings in the following description are only some embodiments of the present invention, for
For those of ordinary skill in the art, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings
Accompanying drawing, and obtain other embodiments.
To make only to schematically show part related to the present invention in simplified form, each figure, they are not represented
Its as product practical structures.In addition, so that simplified form is readily appreciated, there is identical structure or function in some figures
Part, only symbolically depicts one of those, or has only marked one of those.Herein, " one " is not only represented
" only this ", can also represent the situation of " more than one ".
IPMI (IntelligentPlatform Management Interface) is IPMI, and it is
One is applied to the standard that server management system is designed, and is contributed to using the design of this interface standard in Multiple type servers system
Implement system administration on hardware, make it possible the centralized management of different platform.
Broadcast domain (Broadcast Domain) refers to the set of all devices on the network segment.These equipment, which are listened to, is sent to that
All broadcast of the network segment.
UUID purpose, is all elements allowed in distributed system, can have unique identification information, without saturating
Central control terminal is crossed to do specifying for identification information.Consequently, it is possible to which everyone could set up the UUID not conflicted with other people.
In this case, just it is not required to title replication problem during consideration Database.The UUID being widely used at present, be
GUIDs, Linuxext2/ext3 archives economy, LUKS encryptions cut section, GNOME, KDE, MacOSX etc..
UUID refers to the numeral generated on a machine, and it ensures that to aerial all machines when same be all unique
's.Usual platform can provide the API of generation.The criterion calculation formulated according to Open Software Foundation (OSF), has used Ethernet
Card address, nsec, chip id code and many possible numerals.UUID by following sections combination:
(1) current date and time, UUID first part is relevant with the time, if you one UUID of generation it
Afterwards, a UUID is generated again within several seconds excessively, then first part is different, and remaining is identical.
(2) clock sequence.
(3) globally unique IEEE machine recognitions number, if network interface card, are obtained from MAC Address of Network Card, without network interface card with it
He obtains mode.
Fig. 1 is a kind of one embodiment of the installation of operating system of the invention, including:
S100 according to the hardware information of bare machine equipment register obtaining hardware log-on message;
S200 creates node corresponding with the bare machine equipment according to the hardware log-on message;
The bare machine equipment of S300 control open states installs automatic installation script, makes automatic described in the bare machine equipment calls
Configuration script in installation script is configured;The automatic installation script includes the configuration script of destination OS;
S400, which is restarted, installs the bare machine equipment that configuration is completed.
Specifically, in the present embodiment, user can carry out registering each at the interface of control device such as cloud computing management platform
The hardware information of individual bare machine equipment, can also the direct hardware letter that each bare machine equipment is uploaded according to mobile terminals such as mobile phones of user
Cease to control device.Then control device carries out the establishment of node, according to node and the mapping relations of bare machine equipment, control device
Automatic installation script is issued to the corresponding bare machine equipment of the node by network, bare machine equipment is received pacifies after automatic installation script
Automatic installation script is filled, performs automatic installation script to carry out node category automatically according to the configuration script in automatic installation script
Property configuration, install configuration after the completion of, it is necessary to which the installation of operating system could be completed by restarting.Due to object run in the present invention
System with openstack is seamless merges, enable to the bare machine equipment for being provided with destination OS being capable of image tube reason virtual machine
Equally manage physical host, automation size deployment.
It is preferred that, S210 sends control open command to the bare machine equipment, controls the bare machine device power-up to start.
In the present embodiment, by sending control open command to the bare machine equipment, it is ensured that all bare machine equipment are in and opened
Machine state, reduces the troublesome operation artificially started shooting, it is to avoid the unnecessary time wastes.
Fig. 2 is a kind of another embodiment of the installation of operating system of the invention, including:
S100 according to the hardware information of bare machine equipment register obtaining hardware log-on message;
S200 creates node corresponding with the bare machine equipment according to the hardware log-on message;
S310 installs the automatic installation script, and the automatic installation script includes destination OS and open stack
Configuration script;
S320 calls the configuration script, believes respectively in the corresponding bare machine device configuration activation bit of node, nodal community
Breath, serve port information, template types information and service network information;
S400, which is restarted, installs the bare machine equipment that configuration is completed.
Specifically, in the present embodiment, specifically teach which content of configuration, only by control device issue it is automatic
Installation script carries out installation targets operating system, installs after destination OS, carries out configuration and to be provided with target control
The equipment of system is set up one with control device and is connected, and concrete configuration is activation bit, node attribute information, service end message
Breath, template types information and service network information, configuration, which completes to restart, installs the bare machine equipment that configuration is completed, then control device
Such as operating system update version can be worked as to issue a series of control command to the bare machine equipment that operating system is installed is completed
Afterwards, control device can be controlled to complete the bare machine equipment progress system upgrade that operating system is installed with sending system upgrade command, this
In an example give one example, this similar example of other examples, simply control instruction differ the same.The present invention enables to install
Have destination OS bare machine equipment can image tube reason virtual machine equally manage physical host, automation size deployment.Due to
Destination OS with openstack is seamless merges, only need to plug electricity to bare machine equipment, connect netting twine, other work are all by mesh
Mark operating system and openstack automatically complete addition, deletion, power management, operating system and the application system of physical host
System deployment, and network configuration and flexible networking, reduce the work of manual installation operation system and configuration.
The activation bit is configured, the activation bit includes ipmi-username, ipmi-password, ipmi-
Address, deploy_kernel, deploy_ramdisk and ipmi-port;Configure the node attribute information, the node
Attribute information includes memory, RAM, DISK and CPU;The serve port information is configured, the serve port information includes
NODE_UUID and NODE_MAC_ADDRESS;Configure the template types information so that the template types information with it is described naked
The configuration consistency of machine equipment;The template types information includes RAM, DISK, CORE;Configure the service network information so that
The bare machine equipment is with open stack in a broadcast domain
Specifically, in the present embodiment due to destination OS with openstack is seamless merges, enable to that mesh is installed
Mark operating system bare machine equipment can image tube reason virtual machine equally manage physical host, automation size deployment.Pass through target
Operating system and openstack automate carry out installation and deployment, the step of simplifying installation, it is not necessary to individually needing to install
A system is activated individually in the bare machine equipment of system, accelerates and simplifies installment work, improve production efficiency.Destination OS
Can be OS operating systems, Windows operating system, a series of operating system of (SuSE) Linux OS etc..
It is preferred that, in above-described embodiment, judge that the step of whether physical host is bare machine is illustrated in fig. 3 shown below:
S010 obtains the hardware information of all control equipments to be controlled;The hardware information include mac address information, RAM information,
DISK information, CORE information and CPU information;
S020 is according to the hardware information, and whether judge the control equipment to be controlled is bare machine;If so, performing step S100.
Specifically, in this implementation, if control device detection judges that control equipment to be controlled is bare machine, then just can according to
Family needs any all operating systems installed in control device database, and carries out installation configuration so that operating system it is naked
Machine equipment and control device connection, so as to realize the purpose of follow-up batch control.In addition if control equipment to be controlled no
Bare machine, but the operating system installed is other operating systems rather than destination OS, then user can be as needed
Refitting destination OS is carried out, or the configuration information for other operating systems being called in database is configured, and is held
Row S100-S400, thus without carrying out installation targets operating system again.
Below, installed and be described with the automation of the operating system of bare machine:Bare machine managing security policies are to be based on
The initialization service aid collaboration Openstack associated components of Phicloud independent researches are completed from " bare machine " to independent " cloud clothes
The transformation of business device ";Repair, managed just as management virtual machine from physical host restocking installation operation system to physical host undercarriage
Manage physical host (including without OS and installation OS physical host).Creating the physical node of a bearer service system no longer needs
The very important person Ministry of worker affixes one's name to, and only need to tell PhicloudOS, and then automation loads operating system to physical host installation.When
Before, the physical environment of bearer service system is built, it is necessary to artificially manage multiple devices, thus, PhicloudOS bare machine pipes
Reason is arisen at the historic moment, the problems such as solving the addition of physical host, deletion, power management, allocating operating system.Call
PhicloudOS bare machine management services, register physical server hardware information, import PhicloudOS, complete " bare machine " registration
Afterwards, send control open command to start physical host to dedicated substrate Management Controller BMC by IPMI interfaces, create
" bare machine " service message is sent to message queue, and dispatch service receives the message in message queue, determines whether " naked
Machine " node, if it is, the host node information after scheduling and establishment message are put into message queue, calculate service monitoring and disappears
Queue is ceased, finds to start to create after establishment message.
Calculate service and API acquisition hardware log-on messages, PhicloudOS initialization service aids association are serviced by " bare machine "
Network related information is set with Openstack associated components, mirror image is obtained, issue deployment request activates bootloader, passed through
PXE loads bootloader, exposure iSCSI, and the information in mirror image is write into physical host, physical host is restarted, passes through
After PhicloudOS Configuration networks, one is equipped with operating system, and " Cloud Server " that can be communicated with Intranet, public network is created into
Work(.So far, it is possible to which image tube reason virtual machine equally manages this physical server, various softwares is disposed on demand, flexible networking is complete
Resource virtualizing into software definition hardware is managed.
Comprise the following steps that:
1st, node nodes are created
ironic node-create-dpxe_ipmitool-nnode210
Driving must be specified when creating node, driving must be the driving list specified inside configuration script, can
To check the driving list of enable by ironic driver-list.
2nd, nodal information is configured
Configuration driven information
Ironic node-update $ NODE_UUID add driver_info/ipmi_username=$ USER
Driver_info/ipmi_password=$ PASS
Driver_info/ipmi_address=$ IPMI_ADDRESS
Driver_info/deploy_kernel=$ DEPLOY_VMLINUX_UUID
Driver_info/deploy_ramdisk=$ DEPLOY_INITRD_UUID
The IPMI port of acquiescence are 623, if change, also need addition driver_info/ipmi_port=$ PORT_
NUMBER, listed above is essential option, and the configuration information of driving can pass through ironic driver-properties pxe_
Ipmitool is viewed, and other pxe_ipmitool attribute also has:ipmi_bridging、ipmi_force_boot_
device、ipmi_local_address、ipmi_priv_level、ipmi_protocol_version、ipmi_target_
address、ipmi_target_channel、ipmi_transit_address、ipmi_transit_channel。
Configuration node attribute
Ironic node-update $ NODE_UUID addproperties/cpus=$ CPU
Properties/memory (internal memory) _ mb=$ RAM_MB properties/local_gb=$ DISK_GB
Properties/cpu_arch=$ ARCH
Note:The value of cpus above is that (bare metal, computer bare machine, refer to and be configured without operating system and other BM
The electronic computer of software) cpu numbers, these final values can all collect by nova-compute and be used as nova
Hypervisor attribute.
3rd, port is created
ironic port-create-n$NODE_UUID-a$NODE_MAC_ADDRESS
It may finally confirm whether a node is ready to by validate:ironic node-validate$
NODE_UUID
4th, flavor is created
Flavor is to remove the suitable host of filter with flavor when nova schedule, and ironic is supported
Configure (scheduler_use_baremetal_filters) whether the filter options carried using ironic, carry
Filter have:RetryFilter、AvailabilityZoneFilter、ComputeFilter、
ComputeCapabilitiesFilter、ImagePropertiesFilter、ExactRamFilter、
ExactDiskFilter, ExactCoreFilter, so if using the filter items carried, when establishment flavor is obtained
Require ram, disk, core must and node configuration consistency just can be with.
5th, flat networks are created
Requirement for network is exactly that BM and openstack will be in a broadcast domain, because can be sent out when electric on BM
Dhcp broadcast IP address requesting.[neutron] for the uuid of network being added to after network ironic.conf is created
In cleaning_network_uuid=$ NET_UUID, ironic api and conductor service are restarted.
6th, example is created
Novaboot--flavorbaremetal--nic net-id=$ net_id--image $ image testing
The process of installation can be checked by JViewer
Specifically, in the present embodiment, using PhicloudOS as example, being installed by openstack on bare machine
PhicloudOS and configure correlation bare machine node attribute information, install configuration after the completion of PhicloudOS with
Fusion that openstack is seamless, has been truly realized image tube reason virtual machine and has equally managed physical host, automation size deployment.Work as rule
When mould disposes physical host, only electricity need to be plugged to physical host, connect netting twine, other work have all been automated by PhicloudOS
Into the deployment of the addition of physical host, deletion, power management, operating system and application system, and network configuration and flexible networking,
The work for traditionally needing manual installation operation system and other application systems, configuration to exchange route and safety means is all handed over
To PhicloudOS.
With reference to shown in Fig. 4, the present invention provides a kind of one embodiment of the installation system 1000 of operating system, including:It is naked
Machine equipment 1200, control device 1100, the bare machine equipment 1200 is communicated to connect with the control device 1100;The control is set
Standby 1100 include:
Registering modules 1110, according to the hardware information of bare machine equipment 1200 register obtaining hardware log-on message;
Creation module 1120, node is created according to the hardware log-on message of the Registering modules 1110;
Control module 1130, the bare machine equipment 1200 of control open state installs automatic installation script, sets the bare machine
Standby 1200 call the configuration script in the automatic installation script to be configured, and restart and install the bare machine equipment that configuration is completed
1200。
Specifically, in the present embodiment so that be not required to during installation operation system by user's setting operation system
Ambient parameter and its peripheral device.The present invention, PhicloudOS is installed on bare machine by openstack and the naked of correlation is configured
The attribute information of machine node, installs PhicloudOS after the completion of configuration and openstack is seamless merges, can make operation maintenance personnel
The process of the installation of the operating system of bare machine only can be just completed by control device 1100.Utilize the configuration data preserved
Other nodes of the establishment of automation, are allowed to be connected to become a complete control system.
With reference to shown in Fig. 5, the present invention provides a kind of another embodiment, this implementation of the installation system 1000 of operating system
Other parts are identical with a upper embodiment in example, and the control device 1100 includes:Registering modules 1110, creation module 1120,
The module of control module 1130;In addition the control module 1130 includes:
Submodule 1131 is installed, the automatic installation script is installed, the automatic installation script includes the object run
The configuration script of system and open stack;
Submodule 1132 is configured, the configuration script in the installation submodule 1131 is called, respectively in node correspondence
The configuration driven information of bare machine equipment 1200, node attribute information, serve port information, template types information and service network letter
Breath.
The configuration submodule 1132 includes:
First dispensing unit 11321, configures the activation bit, and the activation bit includes ipmi-username,
Ipmi-password, ipmi-address, deploy_kernel, deploy_ramdisk and ipmi-port;
Second dispensing unit 11322, configures the node attribute information, and the node attribute information includes memory,
RAM, DISK and CPU;
3rd dispensing unit 11323, configures the serve port information, and the serve port information includes NODE_UUID
And NODE_MAC_ADDRESS;
4th dispensing unit 11324, configures the template types information so that the template types information and the bare machine
The configuration consistency of equipment 1200;The template types information includes RAM, DISK, CORE;
5th dispensing unit 11325, configures the service network information so that the bare machine equipment 1200 and open
Stack is in a broadcast domain.
Specifically, in this implementation, destination OS and openstack various configuration parameters are integrated, write
In configuration script, the tedious steps for allowing staff to be manually entered each configuration parameter successively are improved.It can be directed to different
Operating system gives different configurations, so as to shorten the time of installation operation system.It can solve the problem that institute of computing system exploitation enterprise
The manual batch faced install in the problem of, it is adaptable to large-scale computer system is installed, using existing computing resource, than
Such as existing network, existing control system, existing operating system is aided with the configuration script for production environment and product,
So that install convenient, cost-effectivenes are low, different products can be tackled.Ironic is one of openstack tent project, mainly
For disposing and managing bare machine there is provided unified interface, facilitate nova while managing bare machine, after ironic installations, matched somebody with somebody
Put bare machine service and HOST_IP is substituted for actual ip (node i p) where ironic-conductor services, it is necessary to configure
Driving after enabled_drivers is according to actual interpolation, used here as pxe_ipmitool.After installation ironic, enter
Row configuration nova and neutron.Because a nova-compute can only once use a kind of driving, deployment physical machine is desirable
Driven using ironic.Bridge is created, network is created, mirror image is created, wherein, Ironic, which disposes a physical machine, needs two groups of mirrors
Picture:Deploy images and user images.This two groups of mirror images can pass through diskimage-builder instrument creations.
Cpu in the hardware information in flavor, flavor is created, internal memory, hard disk and the bare machine hardware information to be disposed will be consistent.
Configure PXE.Using ironic node-validate $ NODE_UUID judge node whether can dispose ensure boot,
Deploy, management and power relevant interface are True states.Explanation:Typically having created needs after ironic node
Wait general 1min to carry out novaboot operations, no valid host mistakes otherwise occur.Because nova-
Compute can periodically desynchronize ironic node information into nova databases.Check nova hypervisor-list and
Nova hypervisor-show $ ID, it is ensured that information presses configuration modification.Do not wait for a period of time then.Create example at this time
Kvm can be used to connect our bare machines to be disposed, bare machine can start from network interface, download deployment mirror image.
It is preferred that, the installation system of the operating system also includes:
Sending module, sends control open command to the bare machine equipment, controls the bare machine device power-up to start.
Specifically, by sending control open command to the bare machine equipment, it is ensured that all bare machine equipment are in start shape
State, reduces the troublesome operation artificially started shooting, it is to avoid the unnecessary time wastes.
It is preferred that, the installation system of the operating system also includes:
Acquisition module, obtains the hardware information of all control equipments to be controlled;The hardware information includes mac address information, RAM
Information, DISK information, CORE information and CPU information;
Judge module, according to the acquisition module obtain the hardware information, judge the control equipment to be controlled whether be
Bare machine;Registered if so, sending register instruction to the Registering modules.
Specifically, in above-mentioned all embodiments, after installation configuration terminates, detection example checking bare machine can also be created whether
Configuration successful is installed, can help after the completion of user's installation configuration, the working order for grasping bare machine be understood in time, to problematic
Place remind in time, it is to avoid installing can not use with the bare machine that postpones.
It should be noted that above-described embodiment can independent assortment as needed.Described above is only the preferred of the present invention
Embodiment, it is noted that for those skilled in the art, is not departing from the premise of the principle of the invention
Under, some improvements and modifications can also be made, these improvements and modifications also should be regarded as protection scope of the present invention.
Claims (10)
1. a kind of installation method of operating system, it is characterised in that including step:
S100 according to the hardware information of bare machine equipment register obtaining hardware log-on message;
S200 creates node corresponding with the bare machine equipment according to the hardware log-on message;
The bare machine equipment of S300 control open states installs automatic installation script, makes to install automatically described in the bare machine equipment calls
Configuration script in script is configured;The automatic installation script includes the configuration script of destination OS;
S400, which is restarted, installs the bare machine equipment that configuration is completed.
2. the installation method of operating system according to claim 1, it is characterised in that after the S200, is wrapped before S300
Include step:
S210 sends control open command to the bare machine equipment, controls the bare machine device power-up to start.
3. the installation method of operating system according to claim 1, it is characterised in that the step S300 includes step:
S310 installs the automatic installation script, and the automatic installation script includes matching somebody with somebody for destination OS and open stack
Put script;
S320 calls the configuration script, respectively in the corresponding bare machine device configuration activation bit of node, node attribute information, clothes
Business port information, template types information and service network information.
4. the installation method of operating system according to claim 4, it is characterised in that the step S320 includes step:
S321 configures the activation bit, and the activation bit includes ipmi-username, ipmi-password, ipmi-
Address, deploy_kernel, deploy_ramdisk and ipmi-port;
S322 configures the node attribute information, and the node attribute information includes memory, RAM, DISK and CPU;
S323 configures the serve port information, and the serve port information includes NODE_UUID and NODE_MAC_ADDRESS;
S324 configures the template types information so that the configuration consistency of the template types information and the bare machine equipment;Institute
Stating template types information includes RAM, DISK, CORE;
S325 configures the service network information so that the bare machine equipment is with open stack in a broadcast domain.
5. according to the installation method of any one of the claim 1-4 operating systems, it is characterised in that include before the S100
Step:
S010 obtains the hardware information of all control equipments to be controlled;The hardware information includes mac address information, RAM information, DISK
Information, CORE information and CPU information;
S020 is according to the hardware information, and whether judge the control equipment to be controlled is bare machine;If so, performing step S100.
6. a kind of installation system of operating system, it is characterised in that using the operating system described in claim any one of 1-5
Installation method, including:Bare machine equipment, control device, the bare machine equipment is communicated to connect with the control device;The control is set
It is standby to include:
Registering modules, according to the hardware information of bare machine equipment register obtaining hardware log-on message;
Creation module, node is created according to the hardware log-on message of the Registering modules;
Control module, the bare machine equipment of control open state installs automatic installation script, makes described in the bare machine equipment calls certainly
Configuration script in dynamic installation script is configured, and is restarted and is installed the bare machine equipment that configuration is completed;
Wherein, the automatic installation script includes the configuration script of destination OS.
7. the installation system of operating system according to claim 6, it is characterised in that also include:
Sending module, sends control open command to the bare machine equipment, controls the bare machine device power-up to start.
8. the installation system of operating system according to claim 6, it is characterised in that the control module includes:
Submodule is installed, the automatic installation script is installed, the automatic installation script include the destination OS and
Open stack configuration script;
Submodule is configured, the configuration script in the installation submodule is called, matches somebody with somebody respectively in the corresponding bare machine equipment of node
Put activation bit, node attribute information, serve port information, template types information and service network information.
9. the installation system of operating system according to claim 8, it is characterised in that the configuration submodule includes:
First dispensing unit, configures the activation bit, and the activation bit includes ipmi-username, ipmi-
Password, ipmi-address, deploy_kernel, deploy_ramdisk and ipmi-port;
Second dispensing unit, configures the node attribute information, and the node attribute information includes memory, RAM, DISK and
CPU;
3rd dispensing unit, configures the serve port information, and the serve port information includes NODE_UUID and NODE_
MAC_ADDRESS;
4th dispensing unit, configures the template types information so that the template types information is matched somebody with somebody with the bare machine equipment
Put consistent;The template types information includes RAM, DISK, CORE;
5th dispensing unit, configures the service network information so that the bare machine equipment is with open stack in a broadcast
In domain.
10. according to the installation system of any one of the claim 6-9 operating systems, it is characterised in that also include:
Acquisition module, obtains the hardware information of all control equipments to be controlled;The hardware information, which includes mac address information, RAM, to be believed
Breath, DISK information, CORE information and CPU information;
Judge module, the hardware information obtained according to the acquisition module, whether judge the control equipment to be controlled is bare machine;
Registered if so, sending register instruction to the Registering modules.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710383601.9A CN107193605A (en) | 2017-05-26 | 2017-05-26 | The installation method and system of a kind of operating system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710383601.9A CN107193605A (en) | 2017-05-26 | 2017-05-26 | The installation method and system of a kind of operating system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107193605A true CN107193605A (en) | 2017-09-22 |
Family
ID=59875057
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710383601.9A Pending CN107193605A (en) | 2017-05-26 | 2017-05-26 | The installation method and system of a kind of operating system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107193605A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109245917A (en) * | 2018-08-20 | 2019-01-18 | 郑州云海信息技术有限公司 | A kind of method and device of the bare machine management based on cloud platform |
CN109684033A (en) * | 2018-12-11 | 2019-04-26 | 武汉烽火信息集成技术有限公司 | Cloud platform bare machine management method, storage medium, electronic equipment and system |
CN109889582A (en) * | 2019-01-29 | 2019-06-14 | 郑州云海信息技术有限公司 | A kind of network installation method and system based on unattended operating system |
CN111324496A (en) * | 2020-02-20 | 2020-06-23 | 山东汇贸电子口岸有限公司 | Method and device for detecting bare machine |
CN111475172A (en) * | 2020-02-29 | 2020-07-31 | 新华三大数据技术有限公司 | Bare machine deployment method and device |
CN112559006A (en) * | 2020-12-11 | 2021-03-26 | 携程旅游网络技术(上海)有限公司 | Enterprise client automatic upgrading method, system, equipment and storage medium |
CN112835592A (en) * | 2019-11-25 | 2021-05-25 | 厦门网宿有限公司 | Equipment reinstallation method and system, console, server and electronic equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006024169A (en) * | 2004-07-09 | 2006-01-26 | Nobutaka Okugawa | Installation method, operation setting method, and medium recording programs thereof |
TW201118736A (en) * | 2009-11-30 | 2011-06-01 | Inventec Corp | An auto install OS method |
CN104754032A (en) * | 2015-02-27 | 2015-07-01 | 浪潮集团有限公司 | Method and device for deploying OpenStack |
CN105426208A (en) * | 2015-11-16 | 2016-03-23 | 山东超越数控电子有限公司 | OpenStack offline automatic installation method of cloud computing system |
CN106598559A (en) * | 2015-10-19 | 2017-04-26 | 中兴通讯股份有限公司 | Rapid deployment method and system of cloud platform |
-
2017
- 2017-05-26 CN CN201710383601.9A patent/CN107193605A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006024169A (en) * | 2004-07-09 | 2006-01-26 | Nobutaka Okugawa | Installation method, operation setting method, and medium recording programs thereof |
TW201118736A (en) * | 2009-11-30 | 2011-06-01 | Inventec Corp | An auto install OS method |
CN104754032A (en) * | 2015-02-27 | 2015-07-01 | 浪潮集团有限公司 | Method and device for deploying OpenStack |
CN106598559A (en) * | 2015-10-19 | 2017-04-26 | 中兴通讯股份有限公司 | Rapid deployment method and system of cloud platform |
CN105426208A (en) * | 2015-11-16 | 2016-03-23 | 山东超越数控电子有限公司 | OpenStack offline automatic installation method of cloud computing system |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109245917A (en) * | 2018-08-20 | 2019-01-18 | 郑州云海信息技术有限公司 | A kind of method and device of the bare machine management based on cloud platform |
CN109684033A (en) * | 2018-12-11 | 2019-04-26 | 武汉烽火信息集成技术有限公司 | Cloud platform bare machine management method, storage medium, electronic equipment and system |
CN109684033B (en) * | 2018-12-11 | 2021-04-27 | 武汉烽火信息集成技术有限公司 | Cloud platform bare metal management method, storage medium, electronic device and system |
CN109889582A (en) * | 2019-01-29 | 2019-06-14 | 郑州云海信息技术有限公司 | A kind of network installation method and system based on unattended operating system |
CN112835592A (en) * | 2019-11-25 | 2021-05-25 | 厦门网宿有限公司 | Equipment reinstallation method and system, console, server and electronic equipment |
CN111324496A (en) * | 2020-02-20 | 2020-06-23 | 山东汇贸电子口岸有限公司 | Method and device for detecting bare machine |
CN111324496B (en) * | 2020-02-20 | 2023-05-26 | 山东汇贸电子口岸有限公司 | Method and device for detecting bare metal |
CN111475172A (en) * | 2020-02-29 | 2020-07-31 | 新华三大数据技术有限公司 | Bare machine deployment method and device |
CN111475172B (en) * | 2020-02-29 | 2023-05-16 | 新华三大数据技术有限公司 | Bare metal deployment method and device |
CN112559006A (en) * | 2020-12-11 | 2021-03-26 | 携程旅游网络技术(上海)有限公司 | Enterprise client automatic upgrading method, system, equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107193605A (en) | The installation method and system of a kind of operating system | |
CN104253866B (en) | Software deployment method, system and the relevant device of virtual network function network element | |
TWI649657B (en) | Cloud service management method | |
CN107580083A (en) | A kind of method and system of container IP address distribution | |
US7386698B2 (en) | Apparatus and method for automatically defining, deploying and managing hardware and software resources in a logically-partitioned computer system | |
CN108809722A (en) | A kind of method, apparatus and storage medium of deployment Kubernetes clusters | |
CN107357660A (en) | The distribution method and device of a kind of virtual resource | |
CN108206847A (en) | CDN management system, method and device | |
CN103441867B (en) | A kind of method updating virtual machine internal Network resource allocation | |
CN108737463A (en) | A kind of software deployment method, server and system | |
CN106708597A (en) | Method, device and system for creating cluster environment on the basis of Openstack | |
CN108089913B (en) | Virtual machine deployment method of super-fusion system | |
CN105306225B (en) | A kind of physical machine remote power-off method based on Openstack | |
CN110719209B (en) | Cluster network configuration method, system, equipment and readable storage medium | |
CN108958742A (en) | A kind of method of batch installing operating system, relevant device and system | |
CN105487892A (en) | Inter-cloud GIS service deploying system in Linux environment | |
CN105553741A (en) | Automatic deployment method for application system based on cloud computing | |
CN111198696B (en) | OpenStack large-scale deployment method and system based on bare computer server | |
CN106789327A (en) | The automatic method and system that host is added for cloud platform | |
CN108984272A (en) | The control method and device of OpenStack cloud computing management platform | |
CN109445801A (en) | A kind of method and apparatus detecting bare machine network interface card information | |
CN104104720A (en) | Server cluster management method and system | |
CN104113430A (en) | Cloud computing data center automatic deployment software framework design | |
CN104935455A (en) | Cluster construction method and device therefor | |
CN106657444A (en) | Method and device for configuring IP address of BMC |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20201102 Address after: 318015 no.2-3167, zone a, Nonggang City, no.2388, Donghuan Avenue, Hongjia street, Jiaojiang District, Taizhou City, Zhejiang Province Applicant after: Taizhou Jiji Intellectual Property Operation Co.,Ltd. Address before: 201616 Shanghai city Songjiang District Sixian Road No. 3666 Applicant before: Phicomm (Shanghai) Co.,Ltd. |
|
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170922 |