CN117271064A - Virtual machine management method and device, electronic equipment and storage medium - Google Patents

Virtual machine management method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN117271064A
CN117271064A CN202311330208.5A CN202311330208A CN117271064A CN 117271064 A CN117271064 A CN 117271064A CN 202311330208 A CN202311330208 A CN 202311330208A CN 117271064 A CN117271064 A CN 117271064A
Authority
CN
China
Prior art keywords
host
console
network
management
state data
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
CN202311330208.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.)
Karos Iot Technology Co ltd
Cosmoplat Industrial Intelligent Research Institute Qingdao Co Ltd
Original Assignee
Karos Iot Technology Co ltd
Cosmoplat Industrial Intelligent Research Institute Qingdao 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 Karos Iot Technology Co ltd, Cosmoplat Industrial Intelligent Research Institute Qingdao Co Ltd filed Critical Karos Iot Technology Co ltd
Priority to CN202311330208.5A priority Critical patent/CN117271064A/en
Publication of CN117271064A publication Critical patent/CN117271064A/en
Pending legal-status Critical Current

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/45595Network integration; Enabling network access in 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)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a virtual machine management method, a device, electronic equipment and a storage medium, wherein the method comprises the following steps: transmitting the state data to the console management network through the host management network, or transmitting the state data to the console service network through the host service network; judging whether the host node is available or not based on the state data through the control console; when the host node is available, virtual machines of the host node are managed. The invention can transmit the host node state to the control console through the management network or the service network of the host node, and improves the reliability of the virtual machine management platform on the basis of not adding extra equipment.

Description

Virtual machine management method and device, electronic equipment and storage medium
Technical Field
The present invention relates to virtual machine technologies, and in particular, to a virtual machine management method, device, electronic device, and storage medium.
Background
With the advent of the cloud computing era, a virtual machine management platform has emerged, and the virtual machine management platform manages a virtual machine mainly through control of a console on a host node, wherein how the console senses the state of the host node is the core key point.
The conventional method for determining the host node is two, one is to periodically send heartbeat information to a console through a management network of a host node client, and the console determines the state of the host node according to the heartbeat information. But this approach is prone to failure in sending heartbeat information due to single network failure. Still another way is to determine the state of the host node by accessing third party software, but this way is complicated to deploy and implement and maintain due to the introduction of third party components.
Disclosure of Invention
The invention provides a virtual machine management method, a device, electronic equipment and a storage medium, which can transmit host node states to a control console through a management network or a service network of host nodes, and improve the reliability of a virtual machine management platform on the basis of not adding additional equipment.
In a first aspect, the present invention provides a virtual machine management method, applied to a virtual machine management system, where the system includes: the host node comprises a host service network, a host management network and a host storage network, the console comprises a console service network, a console management network and a console storage network, and the method comprises the following steps:
Transmitting state data to the console management network through the host management network, or transmitting the state data to the console service network through the host service network;
judging, by the console, whether the host node is available based on the status data;
when the host node is available, virtual machines of the host node are managed.
In a second aspect, the present invention provides a virtual machine management system, the system comprising: the host node comprises a host service network, a host management network and a host storage network, and the console comprises a console service network, a console management network and a console storage network; wherein,
the control console is used for receiving the state data sent by the host node; judging whether the host node is available or not based on the state data; when the host node is available, managing a virtual machine of the host node;
the host node is configured to send status data to the console management network through the host management network; or sending the state data to the console service network through the host service network.
In a third aspect, the present invention provides a virtual machine management apparatus, the apparatus comprising:
the data transmission module is used for transmitting the state data to the console management network through the host management network or transmitting the state data to the console service network through the host service network;
a state judging module, configured to judge, by the console, whether the host node is available based on the state data;
and the virtual machine management module is used for managing the virtual machines of the host machine nodes when the host machine nodes are available.
In a fourth aspect, the present invention further provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the virtual machine management method according to any one of the embodiments of the present invention when the processor executes the program.
In a fifth aspect, the present invention also provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a virtual machine management method according to any of the embodiments of the present invention.
The invention is applied to a virtual machine management system, which comprises: the host node comprises a host machine service network, a host machine management network and a host machine storage network, the console comprises a console service network, a console management network and a console storage network, and the method comprises the following steps: transmitting state data to a console management network through a host management network, or transmitting state data to a console service network through a host service network, and judging whether a host node is available or not based on the state data through a console; when the host node is available, virtual machines of the host node are managed. In the invention, the host node state can be transmitted to the control console through the management network or the service network of the host node, and the reliability of the virtual machine management platform is improved on the basis of not adding extra equipment.
Drawings
In order to more clearly illustrate the technical solutions of the present invention, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present invention and should not be considered as limiting the scope, and that other related drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of a virtual machine management method according to the present invention;
FIG. 2 is a schematic diagram of a second flow of the virtual machine management method according to the present invention;
FIG. 3 is a schematic diagram of a first architecture of a virtual machine management system according to the present invention;
FIG. 4 is a schematic diagram of a host node sending status data to a console according to the present invention;
FIG. 5 is a schematic diagram of a second architecture of the virtual machine management system according to the present invention;
FIG. 6 is a block diagram of a virtual machine management apparatus according to the present invention;
fig. 7 is a schematic structural diagram of an electronic device according to the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings.
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Fig. 1 is a schematic flow chart of a virtual machine management method provided by the present invention, where the method of the present invention is applicable to a scenario of improving reliability of a virtual machine management platform, and the method may be performed by a virtual machine management device provided by the present invention and applied to a client, and the device may be implemented in a software and/or hardware manner. In a specific embodiment, the apparatus may be integrated in an electronic device, such as a server comprising a virtual machine management system. The following embodiments will take the example that the apparatus is integrated in a virtual machine management system, and referring to fig. 1, the method may specifically include the following steps:
step 101, sending state data to a console management network through a host management network, or sending state data to a console service network through a host service network.
The host node refers to a physical server that carries a virtual machine in a virtualized environment. Virtualization software may be run on the host node for managing and allocating computing resources of the host to the virtual machines. In the virtual machine management platform, a user can view and manage host machine nodes through a host machine node management interface, and the operations of monitoring the resource use condition of a host machine, configuring the network and storage setting of the host machine, maintaining and upgrading the host machine and the like are included. The virtual machine management system comprises a console and a host machine node, wherein the console is a user interface of the virtual machine management platform and is used for managing and operating the virtual machine. Through the console, an administrator can create, configure, deploy, and monitor virtual machines, as well as manage the resources of host nodes. Thus, the console needs to determine whether the host node is available, where the host node is available, to provide the user with the functionality to manage and operate the virtual machine.
Specifically, the host nodes include a host traffic network, a host management network, and a host storage network. The console comprises a console service network, a console management network and a console storage network. The host management network is in communication connection with the console management network, and the console can receive the state data of the host sent by the host management network through the console management network. In an alternative embodiment, when the console management network does not receive the status data sent by the host management network, the step of sending the status data to the console management network of the console through the host management network of the host node is repeatedly executed until the number of times the console management network receives the status data or the host management network sends the status data reaches a preset number of times; if the number of times of sending the state data by the host management network reaches the preset number of times and the state data is not received by the console management network, sending the state data to the console service network through the host service network.
Step 102, determining, by the console, whether the host node is available based on the status data.
The state data of the host include the running state, the resource utilization rate, the number of virtual machines, the network connection state, the health state and the like of the host. The running state indicates whether the host node is running normally, and the host node generally includes running states such as running, shutdown, pause and maintenance. The resource utilization represents the use condition of the computing resource of the host node, including the utilization of a central processing unit (Central Processing Unit, CPU), the utilization of a memory, the utilization of a disk space, and the like. The number of virtual machines includes the number of virtual machines running on the host node, i.e., the number of virtual machines currently carried by the host node. Network connection status refers to the connection between a host node and other network devices (e.g., switches, routers). The health status indicates whether the overall operation condition of the host node is normal, including whether the hardware health status of the host node, the virtualization software is operating normally, and the like.
Specifically, after receiving the state data of the host node, the console determines whether the host node is available according to each item of data in the state data. For example, when the operational state in the state data is paused, then it may be determined that the host node is not available. And when the number of the virtual machines in the state data exceeds the preset number, indicating that the host node is not available.
Step 103, when the host node is available, managing the virtual machine of the host node.
Wherein the host node includes one or more virtual machines thereon, and the console can manage the virtual machines of the host node when the host node is available. Through the console, an administrator can create, configure, deploy, and monitor virtual machines, as well as manage the resources of host nodes. In this embodiment, optionally, when the host node is available, managing the virtual machine of the host node includes: when the host node is available, receiving virtual machine life cycle data sent by the host node; and carrying out life cycle management on the virtual machine based on the life cycle data.
Wherein, the life cycle data of the virtual machine comprises: virtual machine state, resource utilization, runtime, log and event, virtual machine configuration, etc. The virtual machine state includes an operation state, a health state, and the like of the virtual machine. The resource utilization rate includes CPU utilization rate, memory utilization rate, disk space utilization rate, and the like. The running time comprises the starting time and the running time of the virtual machine. The log and event includes an operational record of the virtual machine, error information, warnings, and the like. The virtual machine configuration includes hardware configuration of the virtual machine, network configuration, storage volume, and the like.
Specifically, when the host node is available, the console may perform lifecycle management on the virtual machine according to lifecycle data of the virtual machine, including: creating and configuring a virtual machine: the console may communicate with the host node through the console management network, create a new virtual machine, and configure the hardware resources of the virtual machine. Starting and stopping the virtual machine: the console may send instructions to the host node through the console management network to start or stop the virtual machine, thereby controlling the operating state of the virtual machine. Migrating the virtual machine: through the console management network, the console can communicate with the host node to migrate the virtual machine from one node to another to achieve load balancing or failure recovery. Monitoring a virtual machine: the control console can acquire monitoring data of the virtual machine on the host machine node through the control console management network, including resource utilization rate, running state and the like, so that an administrator can discover and solve the problems in time. Managing virtual machine snapshots: the snapshot of the virtual machine is managed through the console management network, including operations such as creation, recovery, deletion, and the like.
Through the steps, the virtual machine can be managed and monitored, and a user is helped to easily create, configure, deploy and monitor the virtual machine.
According to the technical scheme of the embodiment, the host management network is used for sending the state data to the console management network, or the host service network is used for sending the state data to the console service network; judging whether the host node is available or not based on the state data through the control console; when the host node is available, virtual machines of the host node are managed. According to the technical scheme, the host node state can be transmitted to the control console through the management network or the service network of the host node, and the reliability of the virtual machine management platform is improved on the basis that no additional equipment is added.
Fig. 2 is a second flow chart of a virtual machine management method according to the present invention, and a specific method may be shown in fig. 2, where the method may include the following steps:
step 201, sending status data to the console management network through the host management network, and when the console management network does not receive the status data sent by the host management network, repeating the step of sending the status data to the console management network of the console through the host management network of the host node until the console management network receives the status data or the number of times of sending the status data by the host management network reaches a preset number of times.
The state data comprises the running state of the host, the resource utilization rate, the number of virtual machines, the network connection state, the health state and the like. The virtual machine management system comprises a control console and a host machine node, wherein the control console comprises a control console management network, a control console service network and a control console storage network. The host nodes comprise a host management network, a host service network and a host storage network. The control console management network is used for managing the life cycle of the virtual machine on the host machine node, receiving state data reported by the host machine node and the like, and the control console service network and the host machine service network are used for supporting service communication between the virtual machines, performing operations such as migration of the virtual machine after the management network is failed, reporting state data reported by the host machine node after the management network is failed and the like.
In the scheme, the control console judges the availability of the host node through the state data sent by the host node. When the host node transmits the state data, the state data is preferentially transmitted through the host management network. If the state data transmission through the host management network fails, the host node transmits the state data again through the host management network until the state data transmission is successful (the state data is received by the console management network) or the transmission times reach the preset times, and the transmission is stopped. Meanwhile, the system determines abnormal communication between the host management network and the console management network.
Step 202, if the console management network receives the status data when the number of times the host management network transmits the status data does not reach the preset number of times, determining the availability of the host node based on the status data.
And 203, if the number of times of sending the state data by the host management network reaches the preset number of times and the state data is not received by the console management network, sending the state data to the console service network through the host service network.
In particular, in the network configuration of the host node, a default gateway is configured on the host management network, and the host service network and the host storage network are not configured with the default gateway, so that when external network communication is performed, the service network of the access control console is in communication with the same network segment, and therefore the default gateway is not required to be passed. Further, in the case of a failure of the host management network (the number of times the host management network transmits the status data reaches a preset number of times and the console management network does not receive the status data), the host node may access the console service network through the host service network, so as to ensure normal communication between the host node and the console.
Further, when normal communication between the host management network and the console management network is not possible (the console management network cannot receive the state data of the host node sent by the host management network), communication is performed between the host node and the console by using the host service network and the console service network through a two-layer MAC (MandatoryAccess Control) mechanism. The communication process comprises the following steps: 1. and (3) frame encapsulation: when the console needs to send data to the host node, the console encapsulates the data into ethernet frames. The frame contains the MAC address of the console as the source MAC address and the MAC address of the host node as the destination MAC address. Mac address table: in the service network where the host node is located, the switch maintains a MAC address table that records the MAC addresses of devices directly connected to the switch. The switch learns the MAC addresses of different devices by monitoring the data frames on the network and adds the MAC addresses to the MAC address table. Mac address learning: when the switch receives a frame from the console, it checks the destination MAC address in the frame. If the destination MAC address already exists in the MAC address table, the switch will send the frame to the correct port based on the information in the table, thereby delivering the data frame to the host. 4. Broadcast and flooding: if the destination MAC address does not exist in the MAC address table, the switch will broadcast the frame to all ports (except the port that received the frame). Thus, the frame is sent to the host node and received by other devices. Mac address table update: when the switch receives a frame from the host node, it also updates the MAC address table. If the source MAC address in the frame does not exist in the table, the switch will add the address to the table and associate with the port that received the frame.
And 204, when the console service network does not receive the state data sent by the host service network, repeating the step of sending the state data to the console service network of the console through the host service network of the host node until the console service network receives the state data or the number of times of sending the state data by the host service network reaches a preset number of times.
Step 205, if the console service network receives the status data when the number of times the host service network transmits the status data does not reach the preset number of times, the availability of the host node is determined based on the status data.
Specifically, when communication between the console management network and the host management network is abnormal, the host node may send status data to the console service network through the host service network. When the console service network does not receive the state data sent by the host service network, the host service network will send the state data of the host to the console service network again until the sending is successful (the console service network receives the state data) or the number of times of sending the state data by the host service network reaches the preset number of times.
And 206, if the number of times the host service network transmits the state data reaches the preset number of times and the console service network does not receive the state data, determining that the host node is unavailable.
If the host service network sends the state data of the host node to the console service network for a plurality of times, but the console service network still does not receive the state data sent by the host service network, the host management network and the host service network can be determined to be faulty, and the host node is further determined to be unavailable.
Step 207, when the host node is available, managing the virtual machine of the host node.
In this embodiment, the state data is sent to the console management network through the host management network, and when the console management network does not receive the state data sent by the host management network, the step of sending the state data to the console management network of the console through the host management network of the host node is repeatedly executed until the console management network receives the state data or the number of times of sending the state data by the host management network reaches a preset number of times. If the number of times of sending the state data by the host management network reaches the preset number of times and the state data is not received by the console management network, sending the state data to the console service network through the host service network. When the console service network does not receive the state data sent by the host service network, repeating the step of sending the state data to the console service network of the console through the host service network of the host node until the console service network receives the state data or the number of times of sending the state data by the host service network reaches a preset number of times; if the number of times of sending the state data by the host machine service network reaches the preset number of times and the console service network does not receive the state data, determining that the host machine node is unavailable. And judging whether the host node is available or not based on the state data through the control console. When the host node is available, virtual machines of the host node are managed. According to the technical scheme, the state data can be sent preferentially through the host management network, when the communication between the host management network and the console management network is failed, the state data is sent to the console service network through the host service network, and the reliability of the virtual machine management platform is improved on the basis that no additional equipment is added.
Fig. 3 is a first schematic structural diagram of a virtual machine management system according to the present invention, as shown in fig. 3, where the system includes: the host node comprises a host machine service network, a host machine management network and a host machine storage network, and the console comprises a console service network, a console management network and a console storage network; the control console is used for receiving the state data sent by the host computer node; judging whether the host node is available or not based on the state data; when the host node is available, managing the virtual machine of the host node; the host machine node is used for sending the state data to the console management network through the host machine management network; or, sending the state data to the console service network through the host service network.
Specifically, the host management network is in communication connection with the console management network, and the console can receive the state data of the host sent by the host management network through the console management network. In an alternative embodiment, when the console management network does not receive the status data sent by the host management network, the step of sending the status data to the console management network of the console through the host management network of the host node is repeatedly executed until the number of times the console management network receives the status data or the host management network sends the status data reaches a preset number of times; if the number of times of sending the state data by the host management network reaches the preset number of times and the state data is not received by the console management network, sending the state data to the console service network through the host service network.
Fig. 4 is a schematic diagram illustrating a host node sending status data to a console according to the present invention. As shown in fig. 4, after collecting the status data, the host node sends the status data to the console management network through the host management network. If the transmission fails, the host management network can send the state data to the console management network again, and if the transmission still fails, the host node can send the state data to the console service network through the host service network. If the transmission fails, the host service network can send the status data to the console service network again, and if the transmission still fails, the host node is considered to be unavailable.
In the scheme, the host management network and the control console management network are both configured with default gateways, and the control console service network and the host service network are connected through the same network segment communication.
In particular, the default gateway for the console and host is a router or switch that is located between the console management network and the console service network. When the console sends a packet to the default gateway, the gateway will examine the network segment to which the target internet protocol (Internet Protocol, IP) address belongs and forward the packet to the host management network.
In the scheme, the console service network and the host service network are in communication connection through the same network segment, and can communicate directly through a two-layer MAC mechanism without routing forwarding through a default gateway. In this case, the console and the host are both in the same network segment, and the communication between them does not need to be IP routed. The console may send data frames directly to the host, and the host may receive and respond to the data frames directly. Illustratively, the communication process includes: the console transmits a data frame: when the console needs to send data to the host, it constructs a data frame containing the console's MAC address as the source MAC address and the host node's MAC address as the destination MAC address. Data frame transmission: the console transmits the data frames over the network to the host service network. The host node receives the data frame: when the data frame arrives at the host service network, the host node checks whether the destination MAC address matches its own MAC address. If so, the host may receive and process the data frame. The host node responds to the data frame: the host node may generate a response data frame as needed and send it back to the console.
In the scheme, the host management network, the host service network, the console management network and the console management network are all provided with double network cards.
The dual network card can be configured by binding a plurality of physical network interfaces together to form a virtual interface. For example, the dual network card bond technology can improve the bandwidth and redundancy of the network and enhance the availability and reliability of the network. Fig. 5 is a second schematic structural diagram of the virtual machine management system provided by the present invention. As shown in fig. 5, the console management network of the console adopts a form of dual network card bond, including a console management network card 1 and a console management network card 2. The console service network of the console adopts a double network card bond form and comprises a console service network card 1 and a console service network card 2. The host management network of the host node adopts a form of double network card bond and comprises a host management network card 1 and a host management network card 2. The host machine business network of the host machine node adopts a double network card bond form and comprises a host machine business network card 1 and a host machine business network card 2.
Specifically, the dual network card bond binds a plurality of physical network cards into a virtual interface, creating a bond interface. The bond interface will have a virtual MAC address and IP address as an identification of the entire interface. The data packets may be sent and received over the bond interface. When one physical network card fails, the other network card can take over the work of the network card, so that the connectivity and the availability of the network are ensured. Meanwhile, the double network card bond can distribute the data packets to different physical network cards according to the configured load balancing strategy, so that the balanced distribution of network traffic is realized, and the network performance and throughput are improved. The bandwidth, redundancy and reliability of the network can be improved through the configuration of the double network card bond.
The system provided in this embodiment includes: the host node comprises a host machine service network, a host machine management network and a host machine storage network, and the console comprises a console service network, a console management network and a console storage network; the control console is used for receiving the state data sent by the host computer node; judging whether the host node is available or not based on the state data; when the host node is available, managing the virtual machine of the host node; the host machine node is used for sending the state data to the console management network through the host machine management network; or, sending the state data to the console service network through the host service network. The system of the embodiment can send the state data preferentially through the host management network, when the communication between the host management network and the console management network has faults, the state data is sent to the console service network through the host service network, and each service network and each management network adopt double network card bond configuration, so that the reliability of the virtual machine management platform is improved on the basis of not adding extra equipment.
Fig. 6 is a block diagram of a virtual machine management apparatus according to the present invention, where the apparatus is adapted to execute the virtual machine management method according to the present invention. As shown in fig. 6, the apparatus may specifically include:
A data sending module 601, configured to send status data to the console management network through the host management network, or send the status data to the console service network through the host service network;
a status determination module 602, configured to determine, by the console, whether the host node is available based on the status data;
and a virtual machine management module 603, configured to manage a virtual machine of the host node when the host node is available.
Optionally, the data sending module 601 is specifically configured to: transmitting the state data to the console management network through the host management network, and repeatedly executing the step of transmitting the state data to the console management network of the console through the host management network of the host node when the state data transmitted by the host management network is not received by the console management network until the state data is received by the console management network or the frequency of transmitting the state data by the host management network reaches a preset frequency;
and if the number of times of sending the state data by the host management network reaches a preset number of times and the state data is not received by the console management network, sending the state data to the console service network through the host service network.
Optionally, the data sending module 601 is further configured to: when the console service network does not receive the state data sent by the host service network, repeating the step of sending the state data to the console service network of the console through the host service network of the host node until the console service network receives the state data or the frequency of sending the state data by the host service network reaches the preset frequency;
and if the number of times that the host machine service network transmits the state data reaches a preset number of times and the console service network does not receive the state data, determining that the host machine node is unavailable.
Optionally, the virtual machine management module 603 is specifically configured to: when the host node is available, receiving virtual machine life cycle data sent by the host node;
and carrying out life cycle management on the virtual machine based on the life cycle data.
The virtual machine management device provided by the embodiment of the invention can execute the virtual machine management method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method. Reference is made to the description of any method embodiment of the invention for details not described in this embodiment.
Fig. 7 is a schematic structural diagram of an electronic device according to the present invention, where, as shown in fig. 7, the electronic device 10 includes at least one processor 11, and a memory communicatively connected to the at least one processor 11, such as a read-only memory (ROM) 12, a Random Access Memory (RAM) 13, etc., where the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 may also be stored. The processor 11, the ROM 12 and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
Various components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, etc.; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as virtual machine management methods.
In some embodiments, the virtual machine management method may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the virtual machine management method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the virtual machine management method in any other suitable manner (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.

Claims (10)

1. A virtual machine management method, applied to a virtual machine management system, the system comprising: the host node comprises a host service network, a host management network and a host storage network, the console comprises a console service network, a console management network and a console storage network, and the method comprises the following steps:
transmitting state data to the console management network through the host management network, or transmitting the state data to the console service network through the host service network;
judging, by the console, whether the host node is available based on the status data;
when the host node is available, virtual machines of the host node are managed.
2. The method of claim 1, wherein transmitting status data to a console management network of the console via a host management network of the host node or transmitting the status data to a console service network of the console via a host service network of the host node comprises:
transmitting the state data to the console management network through the host management network, and repeatedly executing the step of transmitting the state data to the console management network of the console through the host management network of the host node when the state data transmitted by the host management network is not received by the console management network until the state data is received by the console management network or the frequency of transmitting the state data by the host management network reaches a preset frequency;
And if the number of times of sending the state data by the host management network reaches a preset number of times and the state data is not received by the console management network, sending the state data to the console service network through the host service network.
3. The method according to claim 2, wherein the method further comprises:
when the console service network does not receive the state data sent by the host service network, repeating the step of sending the state data to the console service network of the console through the host service network of the host node until the console service network receives the state data or the frequency of sending the state data by the host service network reaches the preset frequency;
and if the number of times that the host machine service network transmits the state data reaches a preset number of times and the console service network does not receive the state data, determining that the host machine node is unavailable.
4. The method of claim 1, wherein managing the virtual machine of the host node when the host node is available comprises:
when the host node is available, receiving virtual machine life cycle data sent by the host node;
And carrying out life cycle management on the virtual machine based on the life cycle data.
5. A virtual machine management system, the system comprising: the host node comprises a host service network, a host management network and a host storage network, and the console comprises a console service network, a console management network and a console storage network; wherein,
the control console is used for receiving the state data sent by the host node; judging whether the host node is available or not based on the state data; when the host node is available, managing a virtual machine of the host node;
the host node is configured to send status data to the console management network through the host management network; or sending the state data to the console service network through the host service network.
6. The system of claim 5, wherein the host management network and the console management network are each configured with a default gateway, and wherein the console service network and the host service network are communicatively coupled via the same network segment.
7. The system of claim 5, wherein the host management network, the host service network, the console management network, and the console management network are each configured with a dual network card.
8. A virtual machine management apparatus, the apparatus comprising:
the data transmission module is used for transmitting the state data to the console management network through the host management network or transmitting the state data to the console service network through the host service network;
a state judging module, configured to judge, by the console, whether the host node is available based on the state data;
and the virtual machine management module is used for managing the virtual machines of the host machine nodes when the host machine nodes are available.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the virtual machine management method of any of claims 1 to 4 when the program is executed by the processor.
10. A computer readable storage medium having stored thereon a computer program, which when executed by a processor implements a virtual machine management method as claimed in any one of claims 1 to 4.
CN202311330208.5A 2023-10-13 2023-10-13 Virtual machine management method and device, electronic equipment and storage medium Pending CN117271064A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311330208.5A CN117271064A (en) 2023-10-13 2023-10-13 Virtual machine management method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311330208.5A CN117271064A (en) 2023-10-13 2023-10-13 Virtual machine management method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117271064A true CN117271064A (en) 2023-12-22

Family

ID=89214258

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311330208.5A Pending CN117271064A (en) 2023-10-13 2023-10-13 Virtual machine management method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117271064A (en)

Similar Documents

Publication Publication Date Title
US10715411B1 (en) Altering networking switch priority responsive to compute node fitness
US20220043667A1 (en) Network-based signaling to control virtual machine placement
JP6239762B2 (en) System and method for managing the configuration of virtual switches in a virtual machine network
US11743097B2 (en) Method and system for sharing state between network elements
JP5889284B2 (en) Migrate virtual machines between network servers when network link activity degradation is detected
US8244924B2 (en) Discovery and configuration of device configurations
US11003516B2 (en) Geographical redundancy and dynamic scaling for virtual network functions
WO2018137520A1 (en) Service recovery method and apparatus
CN103595801B (en) Cloud computing system and real-time monitoring method for virtual machine in cloud computing system
CN110166355B (en) Message forwarding method and device
WO2020030000A1 (en) Disaster recovery switching method, related device and computer storage medium
US8923114B2 (en) Start-up delay for event-driven virtual link aggregation
CN109960634A (en) A kind of method for monitoring application program, apparatus and system
US20150188778A1 (en) Normalized management network
CN117014308A (en) Remote management of switch stacks
US9973569B2 (en) System, method and computing apparatus to manage process in cloud infrastructure
CN113127144A (en) Processing method, processing device and storage medium
CN114124803B (en) Device management method and device, electronic device and storage medium
CN117271064A (en) Virtual machine management method and device, electronic equipment and storage medium
CN110830598B (en) Method and network equipment for establishing and transmitting interface address and alias in BGP (Border gateway protocol) session
WO2020032169A1 (en) Failure recovery control method, communication device, communication system, and program
WO2020244067A1 (en) Fault detection method and related device
CN116820686B (en) Physical machine deployment method, virtual machine and container unified monitoring method and device
US11743108B1 (en) Dynamic customization of network controller data path based on controller internal state awareness
CN116915837B (en) Communication method and communication system based on software defined network

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