CN107102884A - The method and device of self-defined virtual machine operations - Google Patents

The method and device of self-defined virtual machine operations Download PDF

Info

Publication number
CN107102884A
CN107102884A CN201710154607.9A CN201710154607A CN107102884A CN 107102884 A CN107102884 A CN 107102884A CN 201710154607 A CN201710154607 A CN 201710154607A CN 107102884 A CN107102884 A CN 107102884A
Authority
CN
China
Prior art keywords
script
message
self
virtual machine
module
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
Application number
CN201710154607.9A
Other languages
Chinese (zh)
Other versions
CN107102884B (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.)
Wuxi century century Polytron Technologies Inc.
Original Assignee
Shenzhen God 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 Shenzhen God Cloud Technology Co Ltd filed Critical Shenzhen God Cloud Technology Co Ltd
Priority to CN201710154607.9A priority Critical patent/CN107102884B/en
Publication of CN107102884A publication Critical patent/CN107102884A/en
Application granted granted Critical
Publication of CN107102884B publication Critical patent/CN107102884B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45562Creating, deleting, cloning virtual machine instances

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer And Data Communications (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The present invention provides a kind of method of self-defined virtual machine operations, and it includes:Operational administrative module receives the script for the self-defining operation that user creates and the request for performing the self-defining operation to target virtual machine, the target virtual machine and its server at place are identified, then the script of the self-defining operation and the request are forwarded to the operation agent module on the server in form of a message in the lump;The operation agent module is received in the message, the serial ports for forwarding the message to the target virtual machine;Operation executing module in the target virtual machine monitors the message from the serial ports, and the message is put into internal memory, performs the script of the self-defining operation included in the message.

Description

The method and device of self-defined virtual machine operations
【Technical field】
The present invention relates to technical field of virtualization, more particularly to a kind of method and device of self-defined virtual machine operations.
【Background technology】
By virtualization technology, user can be deployed in application in virtual machine, but to manage and operate in virtual machine Application, or obtain application running status and health status, generally require user be remotely logged into it is manually operated in virtual machine, Inconvenience is brought for user, such as, it is necessary to log in the behaviour that many virtual machines do repetition when application cluster is sweeping Make;The health monitoring of application, which can not easily be unified to obtain, to be out further processed.
【The content of the invention】
In view of problem above, it is necessary to provide a kind of reliable and stable mode, allow user self-defined can exist with unified management The operation that virtual machine internal is performed.Wherein, it is so-called self-defined, refer to user in their own way to create script or operation, and System template need not be followed.
The embodiment of the invention discloses a kind of method of self-defined virtual machine operations, comprise the following steps:
Operational administrative module receives the script for the self-defining operation that user creates and for performing institute to target virtual machine The request of self-defining operation is stated, the target virtual machine and its server at place is identified, then by the self-defining operation Script and the request are forwarded to the operation agent module on the server in form of a message in the lump;
The operation agent module is received in the message, the serial ports for forwarding the message to the target virtual machine;
Operation executing module in the target virtual machine monitors the message from the serial ports, and the message is put Enter in internal memory, perform the script of the self-defining operation included in the message.
The script that the operation executing module performs the self-defining operation included in the message includes:
The operation executing module detects whether the script of the self-defining operation included in the message is lost;
If the script is lost, the operation executing module is sent for obtaining the pin to the operation agent module This instruction, when the operation agent module receives the instruction, the script is obtained from the operational administrative module, and will Acquired script is pushed in the serial ports, and the operation executing module is recognized after the script, performs the script, and Operating result is fed back in the serial ports;
If the script is not lost, the operation executing module performs the script, and operating result is fed back into institute State in serial ports.
Further, the operation executing module is sent to the operation agent module after the message for obtaining the script, with Predeterminated frequency checks that the script whether there is, if still not having target script by preset duration, sends and represents that operation is lost The information lost is into serial ports.
Further, methods described also includes:
When the operating result is sent to the serial ports, the operation agent module receives the operating result and will The operating result is transmitted to the operational administrative module;
The operational administrative module receives the operating result, and the operating result recorded in database.
The present invention also provides a kind of self-defined virtual machine operations device, it is characterised in that the self-defined virtual machine operations Device include:
Operational administrative module, for receiving the script for the self-defining operation that user creates and performing institute to target virtual machine The request of self-defining operation is stated, the target virtual machine and its server at place is identified, and turn in the lump in form of a message The script for sending out self-defining operation described and the request;
Operation agent module, for receiving the message and forwarding the message to the serial ports of the target virtual machine In;
Operation executing module, for monitoring the message from the serial ports, the message is put into internal memory, is performed described The script of the self-defining operation included in message.
Further, operation executing module recognizes that the script of the self-defining operation included in the message includes:
The operation executing module detects whether the script of the self-defining operation included in the message is lost;
If the script is lost, the operation executing module is sent for obtaining the pin to the operation agent module This instruction, when the operation agent module receives the instruction, the script is obtained from the operational administrative module, and will Acquired script is pushed in the serial ports, and the operation executing module is recognized after the script, performs the script, and Operating result is fed back in the serial ports;
If the script is not lost, the operation executing module performs the script, and operating result is fed back into institute State in serial ports.
The present invention is by way of self-defining operation, it is allowed to the application in user's batch operation and unified management virtual machine, It is manually operated without User logs in virtual machine, it can largely reduce work of the user on application O&M.With it is existing Technology is compared, and the present invention has following beneficial effect:
1st, user can be with some repeated, conventional operations of the formal definition of script, and pass through dress of the present invention Put and be transferred to batch execution in virtual machine, each virtual machine is operated respectively without user's Telnet;
2nd, communicated, will not be influenceed by virtual machine network using virtual machine serial ports.
【Brief description of the drawings】
Fig. 1 is the step flow chart of the embodiment of the present invention 1.
【Embodiment】
The present invention relates to a kind of method of self-defined virtual machine operations, embodiment is as follows.
Embodiment 1:The method of the self-defined virtual machine operations of execution of the present embodiment, it is shown in Figure 1 including following main Step:
S101:Operational administrative module receives the script for the self-defining operation that user creates and for being held to target virtual machine The request of the row self-defining operation, identifies the target virtual machine and its server at place, then by the self-defined behaviour The script of work and the request are forwarded to the operation agent module on the server in form of a message in the lump;
S102:The operation agent module receives the message, forwards the message to the string of the target virtual machine In mouthful;
S103:Operation executing module in the target virtual machine monitors the message from the serial ports, will be described Message is put into internal memory, performs the script of the self-defining operation included in the message.It should illustrate, herein operation Refer to set user-defined, comprising one or more scripts and script execution sequence.Operation executing module puts message Asynchronous process is done after entering in internal memory.
Wherein, in step S103, the operation executing module recognizes the self-defining operation included in the message Script include:
The operation executing module detects whether the script of the self-defining operation included in the message is lost;
If the script is lost, the operation executing module is sent for obtaining the pin to the operation agent module This instruction, when the operation agent module receives the instruction, the script is obtained from the operational administrative module, and will Acquired script is pushed in the serial ports, and the operation executing module is recognized after the script, performs the script, and Operating result is fed back in the serial ports;
If the script is not lost, the operation executing module performs the script, and operating result is fed back into institute State in serial ports.It should illustrate, the operation executing module can be examined by recognizing script and script version number corresponding to request Whether the script for looking into the self-defining operation is lost.
Further, the operation executing module is sent to the operation agent module after the message for obtaining the script, with Predeterminated frequency checks that the script whether there is, if still not having target script by preset duration, sends and represents that operation is lost The information lost is into serial ports.It should illustrate, the predeterminated frequency is preferably one second frequency once, preset duration is preferably 30 Second.
Further, methods described also includes:
When the operating result is sent to the serial ports, the operation agent module receives the operating result and will The operating result is transmitted to the operational administrative module;
The operational administrative module receives the operating result, and the operating result recorded in database.
Pass through the present invention, it is allowed to user's batch operation and the customized virtual machine operations of unified management, and virtual machine network Change do not interfere with the execution of operation, strengthen user to virtual machine or the management of application.
The present invention also provides a kind of self-defined virtual machine operations device, it is characterised in that the self-defined virtual machine operations Device include:
Operational administrative module, for receiving the script for the self-defining operation that user creates and performing institute to target virtual machine The request of self-defining operation is stated, the target virtual machine and its server at place is identified, and turn in the lump in form of a message The script for sending out self-defining operation described and the request;
Operation agent module, for receiving the message and forwarding the message to the serial ports of the target virtual machine In;
Operation executing module, for monitoring the message from the serial ports, the message is put into internal memory, is performed described The script of the self-defining operation included in message.
Further, the operation executing module recognizes the script bag of the self-defining operation included in the message Include:
The operation executing module detects whether the script of the self-defining operation included in the message is lost;
If the script is lost, the operation executing module is sent for obtaining the pin to the operation agent module This instruction, when the operation agent module receives the instruction, the script is obtained from the operational administrative module, and will Acquired script is pushed in the serial ports, and the operation executing module is recognized after the script, performs the script, and Operating result is fed back in the serial ports;
If the script is not lost, the operation executing module performs the script, and operating result is fed back into institute State in serial ports.
The present invention is by way of self-defining operation, it is allowed to the application in user's batch operation and unified management virtual machine, It is manually operated without User logs in virtual machine, it can largely reduce work of the user on application O&M.

Claims (6)

1. a kind of method of self-defined virtual machine operations, it is characterised in that including:
Operational administrative module receives the script for the self-defining operation that user creates and for described certainly to target virtual machine execution The request of defining operation, identifies the target virtual machine and its server at place, then by the script of the self-defining operation It is forwarded to the operation agent module on the server in form of a message in the lump with the request;
The operation agent module is received in the message, the serial ports for forwarding the message to the target virtual machine;
Operation executing module in the target virtual machine monitors the message from the serial ports, the message is put into interior In depositing, the script of the self-defining operation included in the message is performed.
2. the method as described in claim 1, it is characterised in that the operation executing module is performed included in the message The script of the self-defining operation includes:
The operation executing module detects whether the script of the self-defining operation included in the message is lost;
If the script is lost, the operation executing module is sent for obtaining the script to the operation agent module Instruction, the operation agent module is received after the instruction, obtains the script from the operational administrative module, and will be obtained The script taken is pushed in the serial ports, and the operation executing module is recognized after the script, performs the script, and will behaviour Fed back to as result in the serial ports;
If the script is not lost, the operation executing module performs the script, and operating result is fed back into the string In mouthful.
3. method as claimed in claim 2, it is characterised in that methods described includes:
The operation executing module is sent after the instruction for obtaining the script to the operation agent module, with predeterminated frequency Check that the script whether there is, if being sent by preset duration still without the script for representing operation failure Information is into the serial ports.
4. method as claimed in claim 2 or claim 3, it is characterised in that methods described also includes:
When the operating result is sent to the serial ports, the operation agent module receives the operating result and will be described Operating result is transmitted to the operational administrative module;
The operational administrative module receives the operating result, and the operating result recorded in database.
5. a kind of self-defined virtual machine operations device, it is characterised in that the device of the self-defined virtual machine operations includes:
Operational administrative module, for the self-defining operation that receives user's establishment script and target virtual machine is performed it is described from The request of defining operation, identifies the target virtual machine and its server at place, and forwards institute in the lump in form of a message State the script of self-defining operation and the request;
Operation agent module, for receiving the message and forwarding the message in the serial ports of the target virtual machine;
Operation executing module, for monitoring the message from the serial ports, the message is put into internal memory, performs the message Included in the self-defining operation script.
6. self-defined virtual machine operations device as claimed in claim 5, it is characterised in that the operation executing module performs institute Stating the script of the self-defining operation included in message includes:
The operation executing module detects whether the script of the self-defining operation included in the message is lost;
If the script is lost, the operation executing module is sent for obtaining the script to the operation agent module Instruction, when the operation agent module receives the instruction, obtains the script, and will be obtained from the operational administrative module The script taken is pushed in the serial ports, and the operation executing module is recognized after the script, performs the script, and will behaviour Fed back to as result in the serial ports;
If the script is not lost, the operation executing module performs the script, and operating result is fed back into the string In mouthful.
CN201710154607.9A 2017-03-15 2017-03-15 Method and device for customizing virtual machine operation Active CN107102884B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710154607.9A CN107102884B (en) 2017-03-15 2017-03-15 Method and device for customizing virtual machine operation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710154607.9A CN107102884B (en) 2017-03-15 2017-03-15 Method and device for customizing virtual machine operation

Publications (2)

Publication Number Publication Date
CN107102884A true CN107102884A (en) 2017-08-29
CN107102884B CN107102884B (en) 2021-06-22

Family

ID=59675700

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710154607.9A Active CN107102884B (en) 2017-03-15 2017-03-15 Method and device for customizing virtual machine operation

Country Status (1)

Country Link
CN (1) CN107102884B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109086122A (en) * 2018-08-16 2018-12-25 郑州云海信息技术有限公司 A kind of monitoring method of virtual machine, device and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013120243A1 (en) * 2012-02-13 2013-08-22 华为技术有限公司 System and method for processing virtual machine in cloud platform
CN103677858A (en) * 2012-08-30 2014-03-26 中兴通讯股份有限公司 Method, system and device for managing virtual machine software in cloud environment
CN105589734A (en) * 2015-12-15 2016-05-18 国云科技股份有限公司 Method for creating applications through self-defined templates

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013120243A1 (en) * 2012-02-13 2013-08-22 华为技术有限公司 System and method for processing virtual machine in cloud platform
CN103677858A (en) * 2012-08-30 2014-03-26 中兴通讯股份有限公司 Method, system and device for managing virtual machine software in cloud environment
CN105589734A (en) * 2015-12-15 2016-05-18 国云科技股份有限公司 Method for creating applications through self-defined templates

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109086122A (en) * 2018-08-16 2018-12-25 郑州云海信息技术有限公司 A kind of monitoring method of virtual machine, device and storage medium

Also Published As

Publication number Publication date
CN107102884B (en) 2021-06-22

Similar Documents

Publication Publication Date Title
CN102035880B (en) Method and device for maintaining connection
CN104021069B (en) The management method and system of the software performance test based on distributed virtual machine system
CN106100999A (en) Image network flow control protocol in a kind of virtualized network environment
CN107547589A (en) A kind of data acquisition treatment method and device
CN105190530B (en) Transmit the graph data of Hardware Render
CN104486146B (en) A kind of communication means between test console and test equipment
CN104883631B (en) Network packet obtains system and acquisition methods
CN103281290B (en) Network controller, and method
CN106933659A (en) The method and apparatus of managing process
CN106713053A (en) Method and device for batch updating server firmware based on Linux
CN103138985A (en) Method and system of process of service host computer of supporting network
CN107273228A (en) Method for message transmission based on star topology framework
CN106453541A (en) Data synchronization method, server and data synchronization system
CN102387028A (en) Network system, network management server, and OAM test method
CN104536838A (en) Remote debugging method and system with asynchronous monitoring function
CN106027287A (en) Unified management and control platform for power distribution communication networks
CN106789166B (en) Method and device for network element batch configuration
CN103200027A (en) Method, device and system for locating network failure
CN106027489B (en) The method, apparatus and system of internet connection
CN105739464B (en) Master Communications method in intelligent appliance equipment
CN109450928A (en) A kind of across cloud data penetration transmission method and system based on UDP and Modbus TCP
CN107102884A (en) The method and device of self-defined virtual machine operations
CN111319035B (en) Robot control system construction method for realizing modular communication
CN104536926B (en) The control method and device of serial equipment
CN107786350A (en) A kind of method, apparatus and the network equipment of the configuration of dispatching from the factory for recovering the network 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
TA01 Transfer of patent application right

Effective date of registration: 20210226

Address after: 514799 Room 301, building 2, Shanshui pearl, No.6 Jianying Avenue, Meixian District, Meizhou City, Guangdong Province

Applicant after: Lai Hongyuan

Address before: 518055 13 / F, building C3, Nanshan wisdom garden, 1001 Xueyuan Avenue, Nanshan District, Shenzhen City, Guangdong Province

Applicant before: SHENZHEN SHENCLOUD TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20210602

Address after: 214000 188-1220 Guangyi Road, Liangxi District, Wuxi City, Jiangsu Province

Applicant after: Wuxi century century Polytron Technologies Inc.

Address before: 514799 Room 301, building 2, Shanshui pearl, No.6 Jianying Avenue, Meixian District, Meizhou City, Guangdong Province

Applicant before: Lai Hongyuan

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Method and device for customizing virtual machine operation

Effective date of registration: 20220225

Granted publication date: 20210622

Pledgee: Bank of Jiangsu Limited by Share Ltd. Wuxi branch

Pledgor: Wuxi century century Polytron Technologies Inc.

Registration number: Y2022990000101

PE01 Entry into force of the registration of the contract for pledge of patent right
PC01 Cancellation of the registration of the contract for pledge of patent right

Granted publication date: 20210622

Pledgee: Bank of Jiangsu Limited by Share Ltd. Wuxi branch

Pledgor: Wuxi century century Polytron Technologies Inc.

Registration number: Y2022990000101

PC01 Cancellation of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Methods and Devices for Customizing Virtual Machine Operations

Granted publication date: 20210622

Pledgee: Bank of Jiangsu Limited by Share Ltd. Wuxi branch

Pledgor: Wuxi century century Polytron Technologies Inc.

Registration number: Y2024980025086

PE01 Entry into force of the registration of the contract for pledge of patent right