CN108848155A - A kind of method and apparatus for the function controlling physical machine - Google Patents

A kind of method and apparatus for the function controlling physical machine Download PDF

Info

Publication number
CN108848155A
CN108848155A CN201810586421.5A CN201810586421A CN108848155A CN 108848155 A CN108848155 A CN 108848155A CN 201810586421 A CN201810586421 A CN 201810586421A CN 108848155 A CN108848155 A CN 108848155A
Authority
CN
China
Prior art keywords
physical machine
function
bmc
address
openstack
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
Application number
CN201810586421.5A
Other languages
Chinese (zh)
Inventor
陈显桂
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology Co Ltd
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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201810586421.5A priority Critical patent/CN108848155A/en
Publication of CN108848155A publication Critical patent/CN108848155A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1073Registration or de-registration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Multimedia (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a kind of method and apparatus of function of controlling physical machine.This method includes:It is configured for physical machine and saves baseboard management controller BMC IP address and username and password;It is configured to the template of the function of management physical machine;Template is imported into the cloud computing management platform project OpenStack environment of open source;According to BMC IP address and username and password, physical machine is registered in OpenStack environment;When receiving the instruction of function of control physical machine, the function of physical machine is controlled by template in OpenStack environment.

Description

A kind of method and apparatus for the function controlling physical machine
Technical field
The present invention relates to cloud computing technology, the method and dress of espespecially a kind of function based on OpenStack control physical machine It sets.
Background technique
In recent years, IT (Information Technology, information technology) industry welcomes the change using cloud computing as core Leather, cloud calculation service demand is quickly grown, and between a few years, cloud computing forms product from a concept gradually and incorporates us Daily life in, among current change, OpenStack (cloud computing of open source manages platform project) arises spontaneously. OpenStack is the cloud computing management platform project of an open source, is combined by several components and completes specific works. OpenStack supports almost all kinds of cloud environment, provides that implementation is simple, can extend, enrich on a large scale, the cloud that standard is unified Management of computing platform.OpenStack technology is serviced by the service of the various complementations facility that provides the foundation The solution of (Infrastructure as a Service, IaaS), each service provide API to be integrated.
Virtualization is that one kind can make full use of physical resource, and the shared physics mould of computing resource is realized by internet Type is widely used in cloud computing system.It can provide on-demand resource and service, can dynamically distribute to resource.Virtual machine It is the central point that virtualization technology is realized, in traditional method for establishing virtual machine, only considers the object for establishing virtual machine Reason host can satisfy the hsrdware requirements of established virtual machine.
OpenStack is one for constructing the open source projects of public cloud or private clound, its original design intention is for user Cloud application resource high-efficiency secret sharing based on virtualization technology is provided, is that user is dynamic by pond infrastructure resources The service such as calculating, storage, network is provided.But under application scenes, the service only virtualized be it is inadequate, such as in high property Can calculate under service, the scenes such as database host, client need it is direct carry out meet demand using physical server resource, however mesh Preceding OpenStack can only be managed the virtual machine based on virtualization as a cloud computing management platform.
Summary of the invention
In order to solve the above-mentioned technical problems, the present invention provides a kind of functions based on OpenStack control physical machine Method and apparatus can be managed physical machine resource.
In order to reach the object of the invention, the present invention provides a kind of sides of function based on OpenStack control physical machine Method, this method include:
It is configured for physical machine and saves baseboard management controller BMC IP address and username and password;
It is configured to the template of the function of management physical machine;
Template is imported into the cloud computing management platform project OpenStack environment of open source;
According to BMC IP address and username and password, physical machine is registered in OpenStack environment;
When receiving the instruction of function of control physical machine, controlled in OpenStack environment by template The function of physical machine.
Further, in an alternative embodiment, the function of physical machine include the booting of physical machine, it is shutdown, soft heavy It opens, restart firmly, console is supported and service mode.
Further, in an alternative embodiment, the step of the function of physical machine is controlled in OpenStack environment Suddenly, including:
When receiving the instruction of function of control physical machine, the targeted physical machine that will include in instruction BMC IP address and the keyword of operation pass to the storage unit of OpenStack environment;
The corresponding user name of BMC IP address and password, and root are inquired from the storage unit of OpenStack environment Go out this according to the keyword query of operation and operates corresponding order;
Using BMC IP address, user name and password come the corresponding parameter in assignment directive;
Execute the instruction of assignment.
Further, in an alternative embodiment, template include action name for managing the function of physical machine, Keyword and order.
In order to reach the object of the invention, the present invention also provides a kind of functions based on OpenStack control physical machine Device, the device include:
Configuration and preserving module, configuration are used to configure for physical machine and save baseboard management controller with preserving module BMC IP address and username and password;
Configuration template module, configuration template module are used to be configured to the template of the function of management physical machine;
Import modul, the cloud computing that import modul is used to for template importeding into open source manage platform project OpenStack ring In border;
Registration module, registration module are used to be registered to physical machine according to BMC IP address and username and password In OpenStack environment;
Control module, control module are used for when receiving the instruction of function of control physical machine, in OpenStack The function of physical machine is controlled in environment by template.
Further, in an alternative embodiment, the function of physical machine include the booting of physical machine, it is shutdown, soft heavy It opens, restart firmly, console is supported and service mode.
Further, in an alternative embodiment, control module is used for:
When receiving the instruction of function of control physical machine, the targeted physical machine that will include in instruction BMC IP address and the keyword of operation pass to the storage unit of OpenStack environment;
The corresponding user name of BMC IP address and password, and root are inquired from the storage unit of OpenStack environment Go out this according to the keyword query of operation and operates corresponding order;
Using BMC IP address, user name and password come the corresponding parameter in assignment directive;
Execute the instruction of assignment.
Further, in an alternative embodiment, template include action name for managing the function of physical machine, Keyword and order.
The beneficial effect of the embodiment of the present invention is, obtains physical machine by information such as the BMC IP that configures physical machine Essential information;It, can be with and since OpenStack environment can read the template of the function for managing physical machine automatically OpenStack environment is set to control the function of physical machine by being configured to the template of the function of management physical machine, due to Physical machine resource is included in OpenStack environment, therefore can be to original virtual resource and physical machine in OpenStack environment Resource is managed collectively, and has thus been achieved the purpose that improve efficiency of operation, has been saved O&M cost.And by using institute as above The technologies such as BMC, the IPMI stated are realized, therefore this method can be suitable for most of physical machine, improve The applicability of the method for OpenStack environmental Kuznets Curves physical machine function.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification It obtains it is clear that understand through the implementation of the invention.The objectives and other advantages of the invention can be by specification, right Specifically noted structure is achieved and obtained in claim and attached drawing.
Detailed description of the invention
Attached drawing is used to provide to further understand technical solution of the present invention, and constitutes part of specification, with this The embodiment of application technical solution for explaining the present invention together, does not constitute the limitation to technical solution of the present invention.
Fig. 1 is the flow chart of the method for the function provided in an embodiment of the present invention that physical machine is controlled based on OpenStack;
Fig. 2 is the method for the function that physical machine is controlled based on OpenStack that optional embodiment of the invention provides Flow chart;
Fig. 3 is the exemplary diagram of template provided in an embodiment of the present invention;
Fig. 4 is the block diagram of the device of the function provided in an embodiment of the present invention that physical machine is controlled based on OpenStack.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention Embodiment be described in detail.It should be noted that in the absence of conflict, in the embodiment and embodiment in the application Feature can mutual any combination.
Step shown in the flowchart of the accompanying drawings can be in a computer system such as a set of computer executable instructions It executes.Also, although logical order is shown in flow charts, and it in some cases, can be to be different from herein suitable Sequence executes shown or described step.
As shown in Figure 1, on the one hand, the embodiment of the invention provides a kind of functions based on OpenStack control physical machine Method, the method comprising the steps of S101- step S109.
Step S101 is configured for physical machine and is saved BMC (Baseboard Management Controller, substrate Management Controller) IP address and username and password.
Here, BMC IP address, user face and password are saved in the storage unit in OpenStack environment.Relatively It is commonly referred to as " front end " in the input terminal and output end of the interactive operation of OpenStack environment and user, OpenStack Storage unit in environment is commonly referred to as " rear end ".The BMC IP address and username and password of physical machine are stored in In storage unit in OpenStack environment.It can be in BIOS (Basic Input Output System, basic input and output System) in " Advanced "-" IPMI Configuration "-" Set LAN Configuration "-" IP BMC IP address, subnet mask, the user name of physical machine, the letter such as password are checked and are arranged in Address "-" static " menu Breath.
Step S103 is configured to the template of the function of management physical machine.
Template is imported into OpenStack environment by step S105.
There is the function of importing physical machine functional template file in OpenStack environment, imported into OpenStack in template After environment, OpenStack environment reads template automatically, to obtain the function of physical machine.OpenStack environment is according in template In the function that defines generate corresponding function button automatically, according to the sequence of template definition before OpenStack environment End is shown on interface.
Physical machine is registered in OpenStack environment by step S107 according to BMC IP address and username and password.
Step S109 passes through mould in OpenStack environment when receiving the instruction of function of control physical machine Plate controls the function of physical machine.
The beneficial effect of the embodiment of the present invention is, obtains physical machine by information such as the BMC IP that configures physical machine Essential information;It, can be with and since OpenStack environment can read the template of the function for managing physical machine automatically OpenStack environment is set to control the function of physical machine by being configured to the template of the function of management physical machine, due to Physical machine resource is included in OpenStack environment, therefore can be to original virtual resource and physical machine in OpenStack environment Resource is managed collectively, and has thus been achieved the purpose that improve efficiency of operation, has been saved O&M cost.And by using institute as above The technologies such as BMC, the IPMI stated are realized, therefore this method can be suitable for most of physical machine, improve The applicability of the method for OpenStack environmental Kuznets Curves physical machine function.
Further, in an alternative embodiment, the function of physical machine include the booting of the physical machine, shutdown, Soft reboot, restart firmly, console support and service mode.By controlling these functions of physical machine, physical machine is enabled to Domination as the virtual resource in OpenStack environment by OpenStack environment.
Further, in an alternative embodiment, as shown in Fig. 2, step S109 includes step S1091- step S1097。
Step S1091, when receiving the instruction of function of control physical machine, the instruction institute that will include in instruction For the BMC IP address of physical machine and the keyword of operation pass to the storage unit of OpenStack environment.
Step S1093 inquires the corresponding user name of BMC IP address and close from the storage unit of OpenStack environment Code, and this is gone out according to the keyword query of operation and operates corresponding order.
Step S1095, using BMC IP address, user name and password come the corresponding parameter in the assignment instruction.
Step S1097 executes the instruction of assignment.
Fig. 3 is the example of template, which includes operator, key and command, wherein operator column display Value is the title of the operation shown in the user interface of OpenStack environment, and key is the keyword of respective operations, command For the order that respective operations finally execute, this column of command $ host, $ user, $ password are parametrization occupy-place in template Symbol, wherein $ host is the BMC IP address for wanting operating physical machine, and $ user is the user name of physical machine BMC, and $ password is object The password of the correspondence user name of reason machine BMC.
On the other hand, the embodiment provides it is a kind of based on OpenStack control physical machine function device, As shown in figure 4, the device includes configuration and preserving module 201, configuration template module 203, import modul 205, registration module 207 With control module 209.
Configuration is used to configure for physical machine and saves baseboard management controller BMC IP address and use with preserving module 201 Name in an account book and password.
Configuration template module 203 is used to be configured to manage the template of the function of the physical machine.
Import modul 205 is used to for template importeding into the cloud computing management platform project OpenStack environment of open source.
Registration module 207 is used to that physical machine to be registered to OpenStack ring according to BMC IP address and username and password In border.
Control module 209 is used for when receiving the instruction of function of control physical machine, in OpenStack environment The function of physical machine is controlled by template.
The beneficial effect of the embodiment of the present invention is, obtains physical machine by information such as the BMC IP that configures physical machine Essential information;It, can be with and since OpenStack environment can read the template of the function for managing physical machine automatically OpenStack environment is set to control the function of physical machine by being configured to the template of the function of management physical machine, due to Physical machine resource is included in OpenStack environment, therefore can be to original virtual resource and physical machine in OpenStack environment Resource is managed collectively, and has thus been achieved the purpose that improve efficiency of operation, has been saved O&M cost.And by using institute as above The technologies such as BMC, the IPMI stated are realized, therefore this method can be suitable for most of physical machine, improve The applicability of the method for OpenStack environmental Kuznets Curves physical machine function.
Further, in an alternative embodiment, the function of physical machine include the booting of physical machine, it is shutdown, soft heavy It opens, restart firmly, console is supported and service mode.
Further, in an alternative embodiment, control module 209 is used for:
When receiving the instruction of function of control physical machine, the targeted physical machine that will include in instruction BMC IP address and the keyword of operation pass to the storage unit of OpenStack environment;
The corresponding user name of BMC IP address and password, and root are inquired from the storage unit of OpenStack environment Go out this according to the keyword query of the operation and operates corresponding order;
Using the BMC IP address, user name and password come the corresponding parameter in assignment directive;
Execute the instruction of assignment.
Further, in an alternative embodiment, template include action name for managing the function of physical machine, Keyword and order.
Although disclosed herein embodiment it is as above, above-mentioned content only for ease of understanding the present invention and use Embodiment is not intended to limit the invention.Technical staff in any fields of the present invention is taken off not departing from the present invention Under the premise of the spirit and scope of dew, any modification and variation, but the present invention can be carried out in the form and details of implementation Scope of patent protection, still should be subject to the scope of the claims as defined in the appended claims.

Claims (8)

1. a kind of method of the function based on OpenStack control physical machine, which is characterized in that the method includes:
It is configured for physical machine and saves baseboard management controller BMC IP address and username and password;
It is configured to manage the template of the function of the physical machine;
The template is imported into the cloud computing management platform project OpenStack environment of open source;
According to the BMC IP address and username and password, the physical machine is registered in the OpenStack environment;
When receiving the instruction for controlling the function of the physical machine, pass through the mould in the OpenStack environment Plate controls the function of the physical machine.
2. according to the method described in claim 1, wherein, the function of the physical machine include the booting of the physical machine, shutdown, Soft reboot, restart firmly, console support and service mode.
3. according to the method described in claim 1, wherein, the step of the function that physical machine is controlled in OpenStack environment Suddenly, including:
When receiving the instruction of function of control physical machine, the targeted physical machine that will include in described instruction BMC IP address and the keyword of operation pass to the storage unit of the OpenStack environment;
The corresponding user name of the BMC IP address and password are inquired from the storage unit of the OpenStack environment, and And this is gone out according to the keyword query of the operation and operates corresponding order;
Using the BMC IP address, user name and password come the corresponding parameter in assignment described instruction;
Execute the instruction of assignment.
4. according to the method described in claim 1, wherein, the template includes the operation for managing the function of the physical machine Title, keyword and order.
5. a kind of device of the function based on OpenStack control physical machine, which is characterized in that described device includes:
Configuration and preserving module, the configuration are used to configure for physical machine and save baseboard management controller with preserving module BMC IP address and username and password;
Configuration template module, the configuration template module are used to be configured to manage the template of the function of the physical machine;
Import modul, the cloud computing that the import modul is used to for the template importeding into open source manage platform project In OpenStack environment;
Registration module, the registration module are used to be infused the physical machine according to the BMC IP address and username and password Volume is into the OpenStack environment;
Control module, the control module is used for when receiving the instruction for controlling the function of the physical machine, described The function of the physical machine is controlled in OpenStack environment by the template.
6. device according to claim 5, wherein the function of the physical machine include the booting of the physical machine, shutdown, Soft reboot, restart firmly, console support and service mode.
7. device according to claim 5, wherein the control module is used for:
When receiving the instruction of function of control physical machine, the targeted physical machine that will include in described instruction BMC IP address and the keyword of operation pass to the storage unit of the OpenStack environment;
The corresponding user name of the BMC IP address and password are inquired from the storage unit of the OpenStack environment, and And this is gone out according to the keyword query of the operation and operates corresponding order;
Using the BMC IP address, user name and password come the corresponding parameter in assignment described instruction;
Execute the instruction of assignment.
8. device according to claim 5, wherein the template includes the operation for managing the function of the physical machine Title, keyword and order.
CN201810586421.5A 2018-06-08 2018-06-08 A kind of method and apparatus for the function controlling physical machine Pending CN108848155A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810586421.5A CN108848155A (en) 2018-06-08 2018-06-08 A kind of method and apparatus for the function controlling physical machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810586421.5A CN108848155A (en) 2018-06-08 2018-06-08 A kind of method and apparatus for the function controlling physical machine

Publications (1)

Publication Number Publication Date
CN108848155A true CN108848155A (en) 2018-11-20

Family

ID=64210637

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810586421.5A Pending CN108848155A (en) 2018-06-08 2018-06-08 A kind of method and apparatus for the function controlling physical machine

Country Status (1)

Country Link
CN (1) CN108848155A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110955537A (en) * 2019-11-25 2020-04-03 北京奇艺世纪科技有限公司 Method and device for containing pipes by physical machine
CN111679862A (en) * 2020-05-22 2020-09-18 平安普惠企业管理有限公司 Cloud host shutdown method and device, electronic equipment and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102681899A (en) * 2011-03-14 2012-09-19 金剑 Virtual computing resource dynamic management system of cloud computing service platform
CN105306225A (en) * 2015-11-03 2016-02-03 国云科技股份有限公司 Openstack-based physical machine remote shutdown method
CN105426243A (en) * 2015-11-19 2016-03-23 国云科技股份有限公司 Openstack based physical machine remote maintenance method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102681899A (en) * 2011-03-14 2012-09-19 金剑 Virtual computing resource dynamic management system of cloud computing service platform
CN105306225A (en) * 2015-11-03 2016-02-03 国云科技股份有限公司 Openstack-based physical machine remote shutdown method
CN105426243A (en) * 2015-11-19 2016-03-23 国云科技股份有限公司 Openstack based physical machine remote maintenance method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110955537A (en) * 2019-11-25 2020-04-03 北京奇艺世纪科技有限公司 Method and device for containing pipes by physical machine
CN110955537B (en) * 2019-11-25 2022-11-04 北京奇艺世纪科技有限公司 Method and device for containing pipes by physical machine
CN111679862A (en) * 2020-05-22 2020-09-18 平安普惠企业管理有限公司 Cloud host shutdown method and device, electronic equipment and medium

Similar Documents

Publication Publication Date Title
US10095539B2 (en) Automated data structure-driven orchestration of complex server provisioning tasks
US9195854B2 (en) System and method for controlling the on and off state of features at runtime
US9021005B2 (en) System and method to provide remote device management for mobile virtualized platforms
CN107689882A (en) The method and apparatus of service deployment in a kind of virtualization network
CN108984272A (en) The control method and device of OpenStack cloud computing management platform
CN109314713B (en) System, device and method for mobile device management supporting multiple virtual containers
WO2018191849A1 (en) Cloud management platform, virtual machine management method and system thereof
CN106878334A (en) The automatically dispose system and method for cloud
CN105306225B (en) A kind of physical machine remote power-off method based on Openstack
CN103595809A (en) Account information management method and device in intelligent television
CN103150202B (en) Method for allowing CloudStack to be compatible with virtual machine existing in vCenter
CN104714823B (en) Newly-built main frame collocation method based on OpenStack
US20120303654A1 (en) Methods and systems to automatically extract and transport data associated with workload migrations to cloud networks
CN109542475A (en) Data-updating method, device, storage medium and the server of system multi version
US20150040125A1 (en) Allowing management of a virtual machine by multiple cloud providers
CN109474467B (en) Network automation management method and device, storage medium and electronic equipment
CN109857466A (en) BIOS collocation method, device, server and computer readable storage medium
CN103118030A (en) Desktop cloud based identity authentication method
CN105099997A (en) Virtual infrastructure-based multimedia desktop delivery method and system
CN111638961A (en) Resource scheduling system and method, computer system, and storage medium
CN108848155A (en) A kind of method and apparatus for the function controlling physical machine
JP2013183405A (en) Information processing apparatus and client management method
CN114281444B (en) Arrangement method for implementing cloud desktop client
JP2013186793A (en) Information processing device, image file generation method and program
CN111767149B (en) Scheduling method, device, equipment and storage equipment

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20181120