CN105306225B - A kind of physical machine remote power-off method based on Openstack - Google Patents

A kind of physical machine remote power-off method based on Openstack Download PDF

Info

Publication number
CN105306225B
CN105306225B CN201510745585.4A CN201510745585A CN105306225B CN 105306225 B CN105306225 B CN 105306225B CN 201510745585 A CN201510745585 A CN 201510745585A CN 105306225 B CN105306225 B CN 105306225B
Authority
CN
China
Prior art keywords
physical machine
machine
openstack
ipmi
virtual
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.)
Active
Application number
CN201510745585.4A
Other languages
Chinese (zh)
Other versions
CN105306225A (en
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.)
G Cloud Technology Co Ltd
Original Assignee
G Cloud 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 G Cloud Technology Co Ltd filed Critical G Cloud Technology Co Ltd
Priority to CN201510745585.4A priority Critical patent/CN105306225B/en
Publication of CN105306225A publication Critical patent/CN105306225A/en
Application granted granted Critical
Publication of CN105306225B publication Critical patent/CN105306225B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Power Sources (AREA)

Abstract

The present invention relates to physics electromechanical source control technology field, especially a kind of physical machine remote power-off method based on Openstack.The present invention builds the cloud platform of Openstack first, and the addresses IPMI, IPMI login usernames and the password of physical machine is arranged;Then the request of closing virtual machine is sent to target physical machine by component in Openstack cloud platforms control node, waiting is successfully closed after all virtual machines, send booting, the order shutting down or restart to target physical machine baseboard management controller (BMC);The baseboard management controller (BMC) of last physical machine executes request, and returns to implementing result.The present invention needs first to close virtual machine before solving physical machine shutdown and ensures that the application service in its deployment is normally exited, meets Openstack and increase income cloud platform Juno versions the problems such as being unable to remote physical organ machine, cannot being managed collectively physical machine and virtual machine power supply status;It can be applied in the physics electromechanical source control of cloud platform.

Description

A kind of physical machine remote power-off method based on Openstack
Technical field
The present invention relates to physics electromechanical source control technology field, especially a kind of physical machine based on Openstack is long-range Closedown method.
Background technology
With Openstack increase income cloud platform fast development, had more and more service providers and enterprise by increasing income IasS (infrastructure is to service) cloud platform builds the service of similar Amazon public cloud, includes Sina, China Mobile, China The users such as telecommunications, national grid, Japan Telecom Co. Ltd operator KDDI are also using Openstack cloud platforms of above increasing income.However Openstack cloud platforms are laid particular emphasis on carries out remote-control to virtual machine, and ignores physical machine remote-control importance.With business Continuous extension cause cloud platform to increase more and more physical machine nodes to provide virtualization services, following problem:
The function of cloud platform usually not physical machine remote management first, tradition is increased income, cannot pass through cloud platform universal remote Physical machine is managed, needs other set physics machine management system to manage physical machine, especially server free does not have to, and needs remote Journey carries out power-off operation to physical machine.
Second is that application service quality problem.It is well known that the most concerned application of user is all deployed in inside virtual machine, and Virtual machine is then based on physical machine.If shutting down to physical machine, in order to ensure using being capable of data integrity, it is necessary to pass through cloud Platform first closes all virtual machines in the physical machine, ensures that application is normally exited, and could carry out physics organ by other systems Machine operates.
In order to which Openstack cloud platforms are managed collectively the power supply status of physical machine and virtual machine, application service quality is improved, A kind of method of the physical machine remote power-off based on Openstack is needed, the power supply status of virtual machine and physical machine is managed collectively.
Invention content
Present invention solves the technical problem that be to provide a kind of method of the physical machine remote power-off based on Openstack, Application program service quality, the satisfaction of virtual machine, raising deployment on a virtual machine are first closed before solving physical machine shutdown Openstack cloud platform Juno versions of increasing income are unable to remote physical organ machine, cannot be managed collectively physical machine and virtual electromechanical source The problems such as state.
The present invention solve above-mentioned technical problem technical solution be:
The method includes the following steps:
Step 1:IPMI Intelligent Platform Management Interface address, login username and the password of physical machine are set;
Step 2:User asks to destination node remote power-off;
Step 3:Send request " closing all virtual machines of destination node ";
Step 4:Destination node, which executes, closes all virtual machines in the machine;
Step 5:Shutdown is executed by IPMI Intelligent Platform Management Interface.
The Intelligent Platform Management Interface is a kind of generic server hardware management interface of open standard, not only allow for into Row need not handle request with outer server admin by operating system.
The user clicks destination node, and ask to destination node remote power-off by the web interface of Openstack.
Judge that the power supply status of destination node meets the requirement of shutdown by Web server, issues and ask if meeting the requirements It asks to background service.
After the destination node receives request, state is currently running by all be in this ground of Libvirt interface polls Virtual machine list, cycle executes each virtual machine and closes power operation, and return the result.
The background service receive virtual machine close power supply as a result, address, login username and the password of IPMI, call The order of IPMI command-line tools, the BMC that destination node is sent to by IPMI Intelligent Platform Management Interface execute shutdown.
The Openstack is by NASA (US National Aeronautics and Space Administration) and Rackspace R & D Cooperations and to initiate, With the free software and open source code project of Apache licensing mandates;It is a cloud computing management platform project increased income, It is combined by multiple main components and completes specific works
The Libvirt is that free, the mainstream that is increasing income of (SuSE) Linux OS virtualize the C function library of tool, purpose That various virtualization tools including Kvm, Xen provide a set of convenience, reliable programming interface, support C, C++, Java and A variety of mainstream programming languages such as Python.
The present invention is supported remote to the server of various main brands by Libvirt interfaces and Intelligent Platform Management Interface Cheng Guanji, and unification successively carries out closing power operation to virtual machine and physical machine on platform, the present invention also provides to the user Prodigious convenience.The present invention, which is different from general cloud platform of increasing income, cannot be managed collectively the power supply shape of physical machine and virtual machine State is not limited by server brand and operating system, is closed physical machine and virtual machine on demand, is effectively controlled electric cost expenditure.
Description of the drawings
The following further describes the present invention with reference to the drawings:
Fig. 1 is the method for the present invention flow chart;
Fig. 2 is deployment diagram of the present invention.
Specific implementation mode
As shown in Figure 1, 2, the IPMI Intelligent Platform Management Interface address of physical machine, login username is arranged in the present invention first And password
#The ipmi ip of the physical node
Ipmi_ip=20.251.36.116
#The ipmi user of the physical node
Ipmi_user=ADMIN
#The ipmi password of the physical node
Ipmi_password=ADMIN
Here define IPMI Intelligent Platform Management Interface address, login username and password configuration item, be saved in mesh Mark the configuration item file of node.
Send request " closing all virtual machines of destination node ":
Step 4:Destination node, which executes, closes all virtual machines in the machine
Execute the shutdown process of single virtual machine:
Shutdown is executed by IPMI Intelligent Platform Management Interface
Here the state of physical machine has been judged, if the state of physical machine meets shutdown, shutdown could be executed.
Finally, physical machine remote power-off is completed.

Claims (2)

1. a kind of physical machine remote power-off method based on Openstack, it is characterised in that:The method includes following step Suddenly:
Step 1:Address, login username and the password of the IPMI Intelligent Platform Management Interface of physical machine are set;
Step 2:User asks to physical machine remote power-off;
Step 3:Send request " closing all virtual machines of physical machine ";
Step 4:Physical machine, which executes, closes all virtual machines in the machine;
Step 5:Shutdown is executed by IPMI Intelligent Platform Management Interface;
The Intelligent Platform Management Interface is a kind of generic server hardware management interface of open standard, not only allows for carrying out band Outer server admin, and request need not be handled by operating system;
The user clicks physical machine, and ask to physical machine remote power-off by the web interface of Openstack;
Judge that the power supply status of physical machine meets the requirement of shutdown by Web server, request is issued if meeting the requirements to after Platform service;
After the physical machine receives request, the virtual of state is currently running by all be in this ground of Libvirt interface polls Machine list, cycle executes each virtual machine and closes power operation, and returns the result.
2. the physical machine remote power-off method according to claim 1 based on Openstack, it is characterised in that:After described Platform service receives virtual machine and closes the result of power supply, the address of IPMI, login username and password, calls IPMI command-line tools Order, the BMC that physical machine is sent to by IPMI Intelligent Platform Management Interface executes shutdown.
CN201510745585.4A 2015-11-03 2015-11-03 A kind of physical machine remote power-off method based on Openstack Active CN105306225B (en)

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 CN105306225A (en) 2016-02-03
CN105306225B true 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)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN115904635B (en) * 2023-02-16 2023-06-06 江西联创精密机电有限公司 Virtual machine management method and system based on server

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8112748B2 (en) * 2005-09-01 2012-02-07 International Business Machines Corporation Method for operating software configured for internet access on a remote computer

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
CN105306225A (en) 2016-02-03

Similar Documents

Publication Publication Date Title
CN105306225B (en) A kind of physical machine remote power-off method based on Openstack
EP3284213B1 (en) Managing virtual network functions
US9229705B2 (en) In-band hypervisor-managed firmware updates
US10003672B2 (en) Apparatus, systems and methods for deployment of interactive desktop applications on distributed infrastructures
US9509553B2 (en) System and methods for management virtualization
CN111221619B (en) Method, device and equipment for opening and arranging business
CN108089913B (en) Virtual machine deployment method of super-fusion system
EP3846024B1 (en) Virtual machine management method and device for cloud platform
CN103441867B (en) A kind of method updating virtual machine internal Network resource allocation
US9858105B1 (en) Service for managing custom virtual machine images
CN106878334A (en) The automatically dispose system and method for cloud
WO2015195724A2 (en) Integrated apis and uis for consuming services across different distributed networks
KR20170122568A (en) Network Computing Testbed System Based on Open Source Virtualized Cloud Environment
EP2823393A1 (en) Offline provisioning of virtual machines
EP3442203B1 (en) Method for migrating a virtual machine, and system
CN111198696B (en) OpenStack large-scale deployment method and system based on bare computer server
KR20190001890A (en) Apparatus for providing design and deployment of distributed cloud system for establishing 5G infra and method thereof
CN103885833A (en) Method and system for managing resources
US11977919B2 (en) Apparatus and method of securely and efficiently interfacing with a cloud computing service
CN108737499A (en) server configuration method and device
CN105426243A (en) Openstack based physical machine remote maintenance method
US20210081245A1 (en) System and method of dynamic context workflow automation
US9207928B2 (en) Computer-readable medium, apparatus, and methods of automatic capability installation
US11425203B2 (en) Commissioning a virtualized network function
EP3151512A1 (en) Service authentication processing method and apparatus

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
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.