CN105306225A - Openstack-based physical machine remote shutdown method - Google Patents
Openstack-based physical machine remote shutdown method Download PDFInfo
- Publication number
- CN105306225A CN105306225A CN201510745585.4A CN201510745585A CN105306225A CN 105306225 A CN105306225 A CN 105306225A CN 201510745585 A CN201510745585 A CN 201510745585A CN 105306225 A CN105306225 A CN 105306225A
- Authority
- CN
- China
- Prior art keywords
- physical machine
- ipmi
- openstack
- destination node
- remote power
- 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.)
- Granted
Links
Landscapes
- Power Sources (AREA)
Abstract
The invention relates to the technical field of physical machine power supply control, in particular to an Openstack-based physical machine remote shutdown method. The method comprises the following steps: firstly, building a cloud platform of Openstack, and setting an IPMI (Intelligent Platform Management Interface) address, an IPMI login user name and a password of a physical machine; secondly, sending a request of shutting down virtual machines to a target physical machine through an assembly by an Openstack cloud platform control node, and sending a command of starting up, shutting down or restarting to a baseboard management controller (BMC) of the target physical machine after all the virtual machines are shut down successfully; and lastly, executing the request by the BMC of the physical machine, and returning an execution result. Through adoption of the method, the problems that the physical machine can only be shut down after the virtual machines are shut down and deployed application services exit normally, the physical machine cannot be shut down remotely on an Openstack open-source cloud platform (Juno version), power supply states of the physical machine and the virtual machines cannot be managed uniformly, and the like are solved. The method can be applied to power supply control of the physical machine of the cloud platform.
Description
Technical field
The present invention relates to physical machine Energy control technical field, particularly a kind of physical machine remote power-off method based on Openstack.
Background technology
Along with Openstack cloud platform of increasing income is fast-developing, there are more and more service provider and enterprise by the service of the publicly-owned cloud of the similar Amazon of the IasS that increases income (namely infrastructure serve) cloud platform building, included the users such as Sina, China Mobile, China Telecom, national grid, Japan Telecom Co. Ltd operator KDDI and also use Openstack cloud platform of increasing income.But Openstack cloud platform side overweights and carries out remote-control to virtual machine, and ignore physical machine remote-control importance.Continuous expansion along with business causes cloud platform to increase increasing physical machine node to provide virtualization services, thing followed problem:
One is that tradition cloud platform of increasing income does not have the function of physical machine telemanagement usually, not by cloud platform universal remote managing physical machine, need other a set of physical machine management system come managing physical machine, particularly server free need not, need long-rangely to carry out power-off operation to physical machine.
Two is application service quality problems.As everyone knows, the application be concerned about most of user is all deployed in inside virtual machine, and virtual machine is physically based deformation machine then.If shut down to physical machine, in order to ensure that application can data integrity, just need first to close all virtual machines in this physical machine by cloud platform, ensure that application is normally exited, Cai carry out physical machine power-off operation by other system.
In order to the power supply status of Openstack cloud platform uniform management physical machine and virtual machine, improve application service quality, need a kind of method of the physical machine remote power-off based on Openstack, the power supply status of unified management virtual machine and physical machine.
Summary of the invention
The technical problem that the present invention solves is a kind of method providing physical machine remote power-off based on Openstack, first close virtual machine before solving physical machine shutdown, improve dispose application program service quality on a virtual machine, meet Openstack increase income cloud platform Juno version can not remote physical office machine, can not the problem such as unified management physical machine and virtual machine power supply status.
The technical scheme that the present invention solves the problems of the technologies described above is:
Described method comprises the steps:
Step 1: the IPMI IPMI address of physical machine, login username and password are set;
Step 2: user's request is to destination node remote power-off;
Step 3: send request " closing the virtual machine that destination node is all ";
Step 4: destination node performs closes all virtual machines in the machine;
Step 5: perform shutdown by IPMI IPMI.
Described IPMI is a kind of generic server hardware management interface of open standard, not only allows to carry out being with outer server admin, and does not need to process request by operating system.
Described user, by the Web interface of Openstack, clicks destination node, and request is to destination node remote power-off.
Judge that the power supply status of destination node meets the requirement of shutdown by Web server, if meet the requirements, the request that issues is to background service.
After described destination node receives request, be in just in the virtual machine list of running status by this ground of Libvirt interface polls is all, circulate to the operation of each virtual machine execution powered-down, and return results.
Described background service receives the result of virtual machine powered-down, and the address of IPMI, login username and password, call the order of IPMI command-line tool, send to the BMC of destination node to perform shutdown by IPMI IPMI.
Described Openstack is also initiated by NASA (US National Aeronautics and Space Administration) and Rackspace R & D Cooperation, with the free software of Apache license authorizes and open source code project; Be a cloud computing management platform project of increasing income, combined specific works by multiple main assembly
Described Libvirt is the C function library of the virtual instrument of main flow that is free, that increase income of (SuSE) Linux OS, its objective is that the various virtual instrument comprising Kvm, Xen provides a set of convenience, reliably DLL (dynamic link library), support the multiple main flow programming languages such as C, C++, Java and Python.
The present invention, by Libvirt interface and IPMI, supports to shut down to the Server remote of various main brand, and unification successively carries out powered-down operation to virtual machine and physical machine on platform, and the present invention is also for user provides very large convenience.The present invention is different from general cloud platform of increasing income can not the power supply status of unified management physical machine and virtual machine, not by the restriction of server brand and operating system, closes physical machine and virtual machine as required, effectively controls electric cost expenditure.
Accompanying drawing explanation
Below in conjunction with accompanying drawing, the present invention is further described:
Fig. 1 is the inventive method flow chart;
Fig. 2 is deployment diagram of the present invention.
Embodiment
As shown in Figure 1, 2, first the present invention arranges the IPMI IPMI address of physical machine, login username and password
#Theipmiipofthephysicalnode
ipmi_ip=20.251.36.116
#Theipmiuserofthephysicalnode
ipmi_user=ADMIN
#Theipmipasswordofthephysicalnode
ipmi_password=ADMIN
Here define the configuration item of IPMI IPMI address, login username and password, be saved in the configuration item file of destination node.
Send request " closing the virtual machine that destination node is all ":
Step 4: destination node performs closes all virtual machines in the machine
Perform the shutdown process of single virtual machine:
Shutdown is performed by IPMI IPMI
Here judged the state of physical machine, if the state of physical machine meets shutdown, could shutdown have been performed.
Finally, physical machine remote power-off completes.
Claims (9)
1. based on a physical machine remote power-off method of Openstack, it is characterized in that: described method comprises the steps:
Step 1: the IPMI IPMI address of physical machine, login username and password are set;
Step 2: user's request is to destination node remote power-off;
Step 3: send request " closing the virtual machine that destination node is all ";
Step 4: destination node performs closes all virtual machines in the machine;
Step 5: perform shutdown by IPMI IPMI.
2. the physical machine remote power-off method based on Openstack according to claim 1, it is characterized in that: described IPMI is a kind of generic server hardware management interface of open standard, not only allow to carry out being with outer server admin, and do not need to process request by operating system.
3. the method for the physical machine remote power-off based on Openstack according to claim 1, is characterized in that: described user, by the Web interface of Openstack, clicks destination node, and request is to destination node remote power-off.
4. the method for the physical machine remote power-off based on Openstack according to claim 2, is characterized in that: described user, by the Web interface of Openstack, clicks destination node, and request is to destination node remote power-off.
5. the method for the physical machine remote power-off based on Openstack according to any one of Claims 1-4, it is characterized in that: judge that the power supply status of destination node meets the requirement of shutdown by Web server, if meet the requirements, the request that issues is to background service.
6. the method for the physical machine remote power-off based on Openstack according to any one of Claims 1-4, it is characterized in that: after described destination node receives request, be in just in the virtual machine list of running status by this ground of Libvirt interface polls is all, circulate to the operation of each virtual machine execution powered-down, and return results.
7. the method for the physical machine remote power-off based on Openstack according to claim 5, it is characterized in that: after described destination node receives request, be in just in the virtual machine list of running status by this ground of Libvirt interface polls is all, circulate to the operation of each virtual machine execution powered-down, and return results.
8. the method for the physical machine remote power-off based on Openstack according to claim 6, it is characterized in that: described background service receives the result of virtual machine powered-down, the address of IPMI, login username and password, call the order of IPMI command-line tool, send to the BMC of destination node to perform shutdown by IPMI IPMI.
9. the method for the physical machine remote power-off based on Openstack according to claim 7, it is characterized in that: described background service receives the result of virtual machine powered-down, the address of IPMI, login username and password, call the order of IPMI command-line tool, send to the BMC of destination node to perform shutdown by IPMI IPMI.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510745585.4A CN105306225B (en) | 2015-11-03 | 2015-11-03 | A kind of physical machine remote power-off method based on Openstack |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510745585.4A CN105306225B (en) | 2015-11-03 | 2015-11-03 | A kind of physical machine remote power-off method based on Openstack |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105306225A true CN105306225A (en) | 2016-02-03 |
CN105306225B CN105306225B (en) | 2018-09-07 |
Family
ID=55203020
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510745585.4A Active CN105306225B (en) | 2015-11-03 | 2015-11-03 | A kind of physical machine remote power-off method based on Openstack |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105306225B (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107018032A (en) * | 2017-06-08 | 2017-08-04 | 山东超越数控电子有限公司 | A kind of monitoring system server and method |
CN107179957A (en) * | 2016-03-10 | 2017-09-19 | 阿里巴巴集团控股有限公司 | Physical machine failure modes processing method, device and virtual machine restoration methods, system |
CN108228315A (en) * | 2017-12-06 | 2018-06-29 | 顺丰科技有限公司 | virtual machine command line management method and device |
CN108848155A (en) * | 2018-06-08 | 2018-11-20 | 郑州云海信息技术有限公司 | A kind of method and apparatus for the function controlling physical machine |
CN109194732A (en) * | 2018-08-28 | 2019-01-11 | 郑州云海信息技术有限公司 | A kind of the High Availabitity dispositions method and device of OpenStack |
WO2020061805A1 (en) * | 2018-09-26 | 2020-04-02 | Intel Corporation | Power Off and Power On Method and Apparatus For an In-Vehicle System |
CN111679862A (en) * | 2020-05-22 | 2020-09-18 | 平安普惠企业管理有限公司 | Cloud host shutdown method and device, electronic equipment and medium |
CN111752695A (en) * | 2020-06-28 | 2020-10-09 | 北京百度网讯科技有限公司 | Offline method, device, equipment and storage medium |
CN112783603A (en) * | 2021-01-18 | 2021-05-11 | 深圳市科思科技股份有限公司 | Cluster shutdown control method and system and storage medium |
CN115904635A (en) * | 2023-02-16 | 2023-04-04 | 江西联创精密机电有限公司 | Virtual machine management method and system based on server |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070050766A1 (en) * | 2005-09-01 | 2007-03-01 | Ori Pomerantz | Method for operating software configured for internet access on a remote computer |
CN101650666A (en) * | 2009-08-31 | 2010-02-17 | 曙光信息产业(北京)有限公司 | Computer management system and method |
CN103092326A (en) * | 2013-01-25 | 2013-05-08 | 浪潮电子信息产业股份有限公司 | Host energy saving method based on time |
CN103473139A (en) * | 2013-09-26 | 2013-12-25 | 四川中电启明星信息技术有限公司 | Virtual machine cluster resource allocation and scheduling method |
CN104079434A (en) * | 2014-07-07 | 2014-10-01 | 用友软件股份有限公司 | Device and method for managing physical devices in cloud computing system |
CN104270430A (en) * | 2014-09-19 | 2015-01-07 | 国云科技股份有限公司 | Server remote dispatching method suitable for cloud computing |
-
2015
- 2015-11-03 CN CN201510745585.4A patent/CN105306225B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070050766A1 (en) * | 2005-09-01 | 2007-03-01 | Ori Pomerantz | Method for operating software configured for internet access on a remote computer |
CN101650666A (en) * | 2009-08-31 | 2010-02-17 | 曙光信息产业(北京)有限公司 | Computer management system and method |
CN103092326A (en) * | 2013-01-25 | 2013-05-08 | 浪潮电子信息产业股份有限公司 | Host energy saving method based on time |
CN103473139A (en) * | 2013-09-26 | 2013-12-25 | 四川中电启明星信息技术有限公司 | Virtual machine cluster resource allocation and scheduling method |
CN104079434A (en) * | 2014-07-07 | 2014-10-01 | 用友软件股份有限公司 | Device and method for managing physical devices in cloud computing system |
CN104270430A (en) * | 2014-09-19 | 2015-01-07 | 国云科技股份有限公司 | Server remote dispatching method suitable for cloud computing |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107179957A (en) * | 2016-03-10 | 2017-09-19 | 阿里巴巴集团控股有限公司 | Physical machine failure modes processing method, device and virtual machine restoration methods, system |
CN107179957B (en) * | 2016-03-10 | 2020-08-25 | 阿里巴巴集团控股有限公司 | Physical machine fault classification processing method and device and virtual machine recovery method and system |
CN107018032A (en) * | 2017-06-08 | 2017-08-04 | 山东超越数控电子有限公司 | A kind of monitoring system server and method |
CN108228315A (en) * | 2017-12-06 | 2018-06-29 | 顺丰科技有限公司 | virtual machine command line management method and device |
CN108848155A (en) * | 2018-06-08 | 2018-11-20 | 郑州云海信息技术有限公司 | A kind of method and apparatus for the function controlling physical machine |
CN109194732A (en) * | 2018-08-28 | 2019-01-11 | 郑州云海信息技术有限公司 | A kind of the High Availabitity dispositions method and device of OpenStack |
WO2020061805A1 (en) * | 2018-09-26 | 2020-04-02 | Intel Corporation | Power Off and Power On Method and Apparatus For an In-Vehicle System |
CN111679862A (en) * | 2020-05-22 | 2020-09-18 | 平安普惠企业管理有限公司 | Cloud host shutdown method and device, electronic equipment and medium |
CN111752695A (en) * | 2020-06-28 | 2020-10-09 | 北京百度网讯科技有限公司 | Offline method, device, equipment and storage medium |
CN112783603A (en) * | 2021-01-18 | 2021-05-11 | 深圳市科思科技股份有限公司 | Cluster shutdown control method and system and storage medium |
CN115904635A (en) * | 2023-02-16 | 2023-04-04 | 江西联创精密机电有限公司 | Virtual machine management method and system based on server |
Also Published As
Publication number | Publication date |
---|---|
CN105306225B (en) | 2018-09-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105306225A (en) | Openstack-based physical machine remote shutdown method | |
US10678526B2 (en) | Method and system for managing the end to end lifecycle of a virtualization environment | |
US10003672B2 (en) | Apparatus, systems and methods for deployment of interactive desktop applications on distributed infrastructures | |
US9509553B2 (en) | System and methods for management virtualization | |
US9489227B2 (en) | Apparatus and method for virtual desktop service | |
US9304752B2 (en) | Software deployment in a distributed virtual machine environment | |
US10129344B2 (en) | Integrated user interface for consuming services across different distributed networks | |
US10367714B2 (en) | Apparatus for testing and developing products of network computing based on open-source virtualized cloud | |
US8875124B2 (en) | In-band hypervisor-managed firmware updates | |
CN102427481B (en) | System for managing cloud computing service and cloud computing management method | |
KR101929048B1 (en) | Apparatus and method for virtual desktop service based on in-memory | |
CN108089913B (en) | Virtual machine deployment method of super-fusion system | |
CN102567075B (en) | Virtual machine context setting method in cloud computing environment | |
US8677454B2 (en) | Utilization of virtual machines by a community cloud | |
CN103412768A (en) | Zookeeper cluster automatic-deployment method based on script program | |
CN103885833A (en) | Method and system for managing resources | |
EP3442203B1 (en) | Method for migrating a virtual machine, and system | |
US20200301690A1 (en) | Method and system for managing the end to end lifecycle of a cloud-hosted desktop virtualization environment | |
CN105426243A (en) | Openstack based physical machine remote maintenance method | |
CN106209445B (en) | A kind of Visualized data centre disposed by network | |
US20110179169A1 (en) | Special Values In Oracle Clusterware Resource Profiles | |
CN112968929A (en) | Server management method and system | |
US9207928B2 (en) | Computer-readable medium, apparatus, and methods of automatic capability installation | |
US10635467B1 (en) | Deployable console-based virtual application deployment and configuration systems and methods | |
US20210357239A1 (en) | Methods and systems for managing computing virtual machine instances |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP02 | Change in the address of a patent holder |
Address after: 523808 19th Floor, Cloud Computing Center, Chinese Academy of Sciences, No. 1 Kehui Road, Songshan Lake Hi-tech Industrial Development Zone, Dongguan City, Guangdong Province Patentee after: G-Cloud Technology Co., Ltd. Address before: 523808 No. 14 Building, Songke Garden, Songshan Lake Science and Technology Industrial Park, Dongguan City, Guangdong Province Patentee before: G-Cloud Technology Co., Ltd. |
|
CP02 | Change in the address of a patent holder |