[go: up one dir, main page]

CN102882698B - virtual machine management method and system - Google Patents

virtual machine management method and system Download PDF

Info

Publication number
CN102882698B
CN102882698B CN201110197067.5A CN201110197067A CN102882698B CN 102882698 B CN102882698 B CN 102882698B CN 201110197067 A CN201110197067 A CN 201110197067A CN 102882698 B CN102882698 B CN 102882698B
Authority
CN
China
Prior art keywords
server
virtual machine
management
network interface
interface card
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.)
Expired - Fee Related
Application number
CN201110197067.5A
Other languages
Chinese (zh)
Other versions
CN102882698A (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.)
Hongfujin Precision Electronics Tianjin Co Ltd
Original Assignee
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry 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 Hongfujin Precision Industry Shenzhen Co Ltd, Hon Hai Precision Industry Co Ltd filed Critical Hongfujin Precision Industry Shenzhen Co Ltd
Priority to CN201110197067.5A priority Critical patent/CN102882698B/en
Priority to TW100125356A priority patent/TW201303733A/en
Publication of CN102882698A publication Critical patent/CN102882698A/en
Application granted granted Critical
Publication of CN102882698B publication Critical patent/CN102882698B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Computer And Data Communications (AREA)
  • Debugging And Monitoring (AREA)

Abstract

一种虚拟机管理方法,包括以下步骤:当需要向服务器发送管理信号来管理服务器中安装的虚拟机时,判断通过服务器的网卡与服务器进行数据传输的通道是否畅通;当通过该网卡与服务器进行数据传输的通道不畅通时,将该管理信号经服务器的基板管理控制器BMC发送至服务器的虚拟机管理软件,使该虚拟机管理软件根据该管理信号执行所述虚拟机的管理操作;从该BMC接收该虚拟机管理软件发送的反馈信息。本发明还提供一种虚拟机管理系统。利用本发明可以通过服务器的BMC向该服务器传送虚拟机管理信号,从而管理该服务器中的虚拟机。

A virtual machine management method, comprising the following steps: when it is necessary to send a management signal to a server to manage a virtual machine installed in the server, it is judged whether the data transmission channel through the network card of the server and the server is unblocked; When the channel of data transmission is not smooth, the management signal is sent to the virtual machine management software of the server through the baseboard management controller BMC of the server, so that the virtual machine management software performs the management operation of the virtual machine according to the management signal; from the The BMC receives the feedback information sent by the virtual machine management software. The invention also provides a virtual machine management system. The present invention can transmit virtual machine management signals to the server through the BMC of the server, thereby managing the virtual machines in the server.

Description

虚拟机管理方法及系统Virtual machine management method and system

技术领域 technical field

本发明涉及一种虚拟机管理方法及系统,特别涉及一种通过基板管理控制器(BaseboardManagementController,BMC)管理虚拟机的方法及系统。 The present invention relates to a virtual machine management method and system, in particular to a method and system for managing a virtual machine through a Baseboard Management Controller (BMC).

背景技术 Background technique

数据中心(DataCenter)通常包含数台甚至上万台的服务器,为提高资源利用率,每台服务器中通常安装有一个或多个虚拟机(VirtualMachine)。为了有效地管理这些虚拟机,数据中心通过网络连接一台管理主机,该管理主机通过各服务器的网卡向各服务器发送虚拟机管理信号,从而管理各服务器中安装的虚拟机,如控制虚拟机开机、关机、重启、挂起、迁移等。然而,服务器中网卡端口的数量有限,并且网卡通常需要执行大量的数据传输任务。当某一台服务器的网卡端口损坏,或网卡数据传输拥堵时,管理主机将无法对该服务器上安装的虚拟机进行管理。 A data center (DataCenter) usually includes several or even tens of thousands of servers. In order to improve resource utilization, one or more virtual machines (Virtual Machines) are usually installed in each server. In order to effectively manage these virtual machines, the data center is connected to a management host through the network, and the management host sends virtual machine management signals to each server through the network card of each server, thereby managing the virtual machines installed in each server, such as controlling the startup of virtual machines , shutdown, restart, suspend, migrate, etc. However, the number of network card ports in the server is limited, and the network card usually needs to perform a large number of data transmission tasks. When the network card port of a certain server is damaged, or the data transmission of the network card is congested, the management host will not be able to manage the virtual machines installed on the server.

发明内容 Contents of the invention

鉴于以上内容,有必要提供一种虚拟机管理方法,可以在无法通过服务器的网卡向该服务器传送虚拟机管理信号时,通过该服务器的BMC向该服务器传送该虚拟机管理信号,从而管理该服务器中的虚拟机。 In view of the above, it is necessary to provide a virtual machine management method, which can transmit the virtual machine management signal to the server through the BMC of the server when the network card of the server cannot transmit the virtual machine management signal to the server, thereby managing the server virtual machine in .

还有必要提供一种虚拟机管理系统,可以在无法通过服务器的网卡向该服务器传送虚拟机管理信号时,通过该服务器的BMC向该服务器传送该虚拟机管理信号,从而管理该服务器中的虚拟机。 It is also necessary to provide a virtual machine management system, which can transmit the virtual machine management signal to the server through the BMC of the server when the network card of the server cannot transmit the virtual machine management signal to the server, thereby managing the virtual machine in the server. machine.

一种虚拟机管理方法,应用于管理主机中,该管理主机通过网络与服务器连接并通信,该方法包括以下步骤:判断步骤:当需要向该服务器发送管理信号来管理服务器中安装的虚拟机时,判断通过服务器的网卡与服务器进行数据传输的通道是否畅通;发送步骤:当通过该网卡与服务器进行数据传输的通道不畅通时,将该管理信号经服务器的基板管理控制器BMC发送至服务器的虚拟机管理软件,使该虚拟机管理软件根据该管理信号执行所述虚拟机的管理操作;及接收步骤:从该BMC接收该虚拟机管理软件发送的反馈信息。 A virtual machine management method, applied to a management host, the management host is connected to and communicates with a server through a network, and the method includes the following steps: judging step: when it is necessary to send a management signal to the server to manage the virtual machine installed in the server , to determine whether the channel for data transmission through the network card of the server and the server is unimpeded; the sending step: when the channel for data transmission through the network card and the server is not smooth, send the management signal to the server through the baseboard management controller BMC of the server virtual machine management software, enabling the virtual machine management software to execute the management operation of the virtual machine according to the management signal; and receiving step: receiving feedback information sent by the virtual machine management software from the BMC.

一种虚拟机管理方法,应用于管理主机中,该管理主机通过网络与服务器连接并通信,该方法包括以下步骤:判断步骤:当需要向该服务器发送管理信号来管理服务器中安装的虚拟机时,判断通过服务器的网卡与服务器进行数据传输的通道是否畅通;发送步骤一:当通过该网卡与服务器进行数据传输的通道不畅通时,将该管理信号经服务器的基板管理控制器BMC发送至服务器的虚拟机管理软件,使该虚拟机管理软件根据该管理信号执行所述虚拟机的管理操作;发送步骤二:当通过该网卡与服务器进行数据传输的通道畅通时,将该管理信号经服务器的网卡发送至服务器的虚拟机管理软件,使该虚拟机管理软件根据该管理信号执行所述虚拟机的管理操作;接收步骤一:当网卡与服务器进行数据传输的通道一直保持不畅通,或者从畅通变成不畅通时,从该BMC接收该虚拟机管理软件发送的反馈信息;接收步骤二:当网卡与服务器进行数据传输的通道一直保持畅通,或者从不畅通变成畅通时,从该网卡接收该虚拟机管理软件发送的反馈信息。 A virtual machine management method, applied to a management host, the management host is connected to and communicates with a server through a network, and the method includes the following steps: judging step: when it is necessary to send a management signal to the server to manage the virtual machine installed in the server , to determine whether the channel for data transmission through the network card of the server and the server is unblocked; sending step 1: When the channel for data transmission through the network card and the server is not smooth, send the management signal to the server through the baseboard management controller BMC of the server The virtual machine management software, so that the virtual machine management software performs the management operation of the virtual machine according to the management signal; sending step 2: when the channel for data transmission between the network card and the server is unblocked, send the management signal through the server’s The network card sends to the virtual machine management software of the server, so that the virtual machine management software performs the management operation of the virtual machine according to the management signal; receiving step 1: When the channel for data transmission between the network card and the server has been kept blocked, or from the unblocked When it becomes unblocked, receive the feedback information sent by the virtual machine management software from the BMC; receiving step 2: When the channel for data transmission between the network card and the server has been kept unblocked, or from unblocked to unblocked, receive from the network card Feedback information sent by the virtual machine management software.

一种虚拟机管理系统,运行于管理主机中,该管理主机通过网络与服务器连接并通信,该系统包括:判断模块,用于当需要向该服务器发送管理信号来管理服务器中安装的虚拟机时,判断通过服务器的网卡与服务器进行数据传输的通道是否畅通;发送模块,用于当通过该网卡与服务器进行数据传输的通道不畅通时,将该管理信号经服务器的基板管理控制器BMC发送至服务器的虚拟机管理软件,使该虚拟机管理软件根据该管理信号执行所述虚拟机的管理操作;及接收模块,用于从该BMC接收该虚拟机管理软件发送的反馈信息。 A virtual machine management system, running in a management host, the management host is connected to and communicates with a server through a network, the system includes: a judging module, used to send a management signal to the server to manage a virtual machine installed in the server , to determine whether the channel for data transmission through the network card of the server and the server is unblocked; the sending module is used to send the management signal to the baseboard management controller BMC of the server when the channel for data transmission through the network card and the server is not smooth The virtual machine management software of the server enables the virtual machine management software to execute the management operation of the virtual machine according to the management signal; and the receiving module is used for receiving the feedback information sent by the virtual machine management software from the BMC.

一种虚拟机管理系统,运行于管理主机中,该管理主机通过网络与服务器连接并通信,该系统包括:判断模块,用于当需要向该服务器发送管理信号来管理服务器中安装的虚拟机时,判断通过服务器的网卡与服务器进行数据传输的通道是否畅通;发送模块,用于当通过该网卡与服务器进行数据传输的通道不畅通时,将该管理信号经服务器的基板管理控制器BMC发送至服务器的虚拟机管理软件,使该虚拟机管理软件根据该管理信号执行所述虚拟机的管理操作;所述发送模块,还用于当通过该网卡与服务器进行数据传输的通道畅通时,将该管理信号经服务器的网卡发送至服务器的虚拟机管理软件,使该虚拟机管理软件根据该管理信号执行所述虚拟机的管理操作;接收模块,用于当网卡与服务器进行数据传输的通道一直保持不畅通,或者从畅通变成不畅通时,从该BMC接收该虚拟机管理软件发送的反馈信息;所述接收模块,还用于当网卡与服务器进行数据传输的通道一直保持畅通,或者从不畅通变成畅通时,从该网卡接收该虚拟机管理软件发送的反馈信息。 A virtual machine management system, running in a management host, the management host is connected to and communicates with a server through a network, the system includes: a judging module, used to send a management signal to the server to manage a virtual machine installed in the server , to determine whether the channel for data transmission through the network card of the server and the server is unblocked; the sending module is used to send the management signal to the baseboard management controller BMC of the server when the channel for data transmission through the network card and the server is not smooth The virtual machine management software of the server is configured to enable the virtual machine management software to execute the management operation of the virtual machine according to the management signal; the sending module is also configured to, when the data transmission channel between the network card and the server is unblocked, send the virtual machine to the virtual machine. The management signal is sent to the virtual machine management software of the server through the network card of the server, so that the virtual machine management software performs the management operation of the virtual machine according to the management signal; the receiving module is used to keep the data transmission channel between the network card and the server Unblocked, or when changing from unblocked to unblocked, receive the feedback information sent by the virtual machine management software from the BMC; the receiving module is also used to keep the channel for data transmission between the network card and the server always unblocked, or never When unblocked becomes unblocked, the feedback information sent by the virtual machine management software is received from the network card.

相较于现有技术,本发明虚拟机管理方法及系统,可以在无法通过服务器的网卡向该服务器传送虚拟机管理信号时,通过该服务器的BMC向该服务器传送该虚拟机管理信号,从而管理该服务器中的虚拟机。 Compared with the prior art, the virtual machine management method and system of the present invention can transmit the virtual machine management signal to the server through the BMC of the server when the virtual machine management signal cannot be transmitted to the server through the network card of the server, thereby managing Virtual machines on this server.

附图说明 Description of drawings

图1是本发明虚拟机管理系统较佳实施例的运行环境图。 FIG. 1 is an operating environment diagram of a preferred embodiment of the virtual machine management system of the present invention.

图2是本发明虚拟机管理系统较佳实施例的功能模块图。 Fig. 2 is a functional block diagram of a preferred embodiment of the virtual machine management system of the present invention.

图3是本发明虚拟机管理方法较佳实施例的流程图。 Fig. 3 is a flow chart of a preferred embodiment of the virtual machine management method of the present invention.

主要元件符号说明 Description of main component symbols

管理主机management host 100100 虚拟机管理系统virtual machine management system 1010 服务器server 200200 虚拟机virtual machine 2020 虚拟机管理软件virtual machine management software 21twenty one BMCBMC 22twenty two BMC网络端口BMC network port 220220 网卡network card 23twenty three 网卡端口NIC port 230230 第一发送模块first sending module 101101 第一接收模块first receiving module 102102 判断模块judgment module 103103 第二发送模块The second sending module 104104 第二接收模块Second receiving module 105105

如下具体实施方式将结合上述附图进一步说明本发明。 The following specific embodiments will further illustrate the present invention in conjunction with the above-mentioned drawings.

具体实施方式 detailed description

参阅图1所示,是本发明虚拟机管理系统较佳实施例的运行环境图。在本实施例中,该虚拟机管理系统10运行于管理主机100中。该管理主机100通过网络与数据中心的多台服务器(图中以任意一台服务器200为例)连接并通信。 Referring to FIG. 1 , it is an operating environment diagram of a preferred embodiment of the virtual machine management system of the present invention. In this embodiment, the virtual machine management system 10 runs on the management host 100 . The management host 100 is connected and communicates with multiple servers in the data center (any server 200 is taken as an example in the figure) through a network.

该服务器200中安装有一个或多个虚拟机20,以及一个虚拟机管理软件21,该虚拟机管理软件21可以是威睿虚拟机软件(VMware)、Hypervisor软件或Xen虚拟机监控软件等。该服务器200还包括BMC22和网卡23。其中,该BMC22包括BMC网络端口220,管理主机100通过该BMC网络端口220与该BMC22连接并通信,从而实现对服务器200的硬件监视和电源控制。该网卡23包括网卡端口230。管理主机100还通过该网卡端口230与网卡23连接并通信,通过网卡23建立与服务器200进行数据传输的通道。 One or more virtual machines 20 and a virtual machine management software 21 are installed in the server 200, and the virtual machine management software 21 may be VMware virtual machine software (VMware), Hypervisor software or Xen virtual machine monitoring software, etc. The server 200 also includes a BMC22 and a network card 23 . Wherein, the BMC 22 includes a BMC network port 220 , and the management host 100 is connected and communicates with the BMC 22 through the BMC network port 220 , so as to realize hardware monitoring and power control of the server 200 . The network card 23 includes a network card port 230 . The management host 100 also connects and communicates with the network card 23 through the network card port 230 , and establishes a data transmission channel with the server 200 through the network card 23 .

管理主机100用于向服务器200发送对该虚拟机20进行管理的管理信号,从而调用所述虚拟机管理软件21对虚拟机20进行管理,如控制虚拟机20开机、关机、重启、挂起、迁移等。该管理信号一般为遵循HTTP(HyperTextTransferProtocol,超文本传输协议)格式的数据包。该管理信号中包含标识信息,该标识信息标识该管理信号用于管理服务器200中的虚拟机20。管理主机100可经该BMC22或网卡23向服务器200发送该管理信号。 The management host 100 is used to send a management signal to the server 200 to manage the virtual machine 20, thereby invoking the virtual machine management software 21 to manage the virtual machine 20, such as controlling the virtual machine 20 to start, shut down, restart, suspend, migration etc. The management signal is generally a data packet conforming to an HTTP (HyperTextTransferProtocol, hypertext transfer protocol) format. The management signal includes identification information, and the identification information identifies that the management signal is used to manage the virtual machine 20 in the server 200 . The management host 100 can send the management signal to the server 200 via the BMC 22 or the network card 23 .

参阅图2所示,是本发明虚拟机管理系统较佳实施例的功能模块图。该虚拟机管理系统10包括第一发送模块101、第一接收模块102、判断模块103、第二发送模块104和第二接收模块105。 Referring to FIG. 2 , it is a functional block diagram of a preferred embodiment of the virtual machine management system of the present invention. The virtual machine management system 10 includes a first sending module 101 , a first receiving module 102 , a judging module 103 , a second sending module 104 and a second receiving module 105 .

第一发送模块101用于当需要向服务器200发送该管理信号时,通过网卡23向服务器200发送一个询问命令,该询问命令用于请求服务器200在指定时间,如0.5秒内通过网卡23发送回该询问命令对应的回应信息。 The first sending module 101 is used to send an inquiry command to the server 200 through the network card 23 when the management signal needs to be sent to the server 200. The response information corresponding to the inquiry command.

第一接收模块102用于接收服务器200通过网卡23发送的该回应信息。 The first receiving module 102 is configured to receive the response information sent by the server 200 through the network card 23 .

判断模块103用于判断第一接收模块102是否在该指定时间内接收到该回应信息,从而判断通过网卡23与服务器200进行数据传输的通道是否畅通。若第一接收模块102在该指定时间内接收到该回应信息,则判断模块103判断通过网卡23与服务器200进行数据传输的通道畅通,可以通过网卡23向服务器200发送该管理信号,若第一接收模块102未在该指定时间内接收到该回应信息,则判断模块103判断通过网卡23与服务器200进行数据传输的通道不畅通,无法通过网卡23向服务器200发送该管理信号。 The judging module 103 is used to judge whether the first receiving module 102 receives the response message within the specified time, so as to judge whether the data transmission channel through the network card 23 and the server 200 is unblocked. If the first receiving module 102 receives the response information within the specified time, the judging module 103 judges that the channel for data transmission with the server 200 through the network card 23 is unblocked, and can send the management signal to the server 200 through the network card 23, if the first If the receiving module 102 does not receive the response information within the specified time, the judging module 103 judges that the channel for data transmission between the network card 23 and the server 200 is not smooth, and the management signal cannot be sent to the server 200 through the network card 23 .

第二发送模块104用于当通过网卡23与服务器200进行数据传输的通道不畅通时,将该管理信号发送至BMC22。BMC22接收到该管理信号后,将解析该管理信号是否含有所述标识信息,若该管理信号中含有该标识信息,则BMC22通过串口将该管理信号发送至虚拟机管理软件21。 The second sending module 104 is used for sending the management signal to the BMC 22 when the data transmission channel between the network card 23 and the server 200 is blocked. After receiving the management signal, the BMC22 will analyze whether the management signal contains the identification information. If the management signal contains the identification information, the BMC22 will send the management signal to the virtual machine management software 21 through the serial port.

第二发送模块104还用于当通过网卡23与服务器200进行数据传输的通道畅通时,将该管理信号发送至网卡23。网卡23接收到该管理信号后,将解析该管理信号是否含有所述标识信息,若该管理信号中含有该标识信息,则网卡23将该管理信号发送至虚拟机管理软件21。 The second sending module 104 is also configured to send the management signal to the network card 23 when the data transmission channel through the network card 23 and the server 200 is unblocked. After receiving the management signal, the network card 23 will analyze whether the management signal contains the identification information. If the management signal contains the identification information, the network card 23 will send the management signal to the virtual machine management software 21 .

虚拟机管理软件21根据该管理信号执行虚拟机20的管理操作,并向管理主机100发送一个反馈信息,该反馈信息包括虚拟机20的管理操作是否执行成功,虚拟机20的IP地址、服务器200的IP地址等信息。 The virtual machine management software 21 executes the management operation of the virtual machine 20 according to the management signal, and sends a feedback message to the management host 100. The feedback information includes whether the management operation of the virtual machine 20 is successfully executed, the IP address of the virtual machine 20, the server 200 IP address and other information.

具体而言,如果网卡23与服务器200进行数据传输的通道一直保持不畅通,或者从畅通变成不畅通,则虚拟机管理软件21通过BMC22向管理主机100发送该反馈信息;如果网卡23与服务器200进行数据传输的通道一直保持畅通,或者从不畅通变成畅通,则虚拟机管理软件21通过网卡23向管理主机100发送该反馈信息。 Specifically, if the channel for data transmission between the network card 23 and the server 200 remains unblocked, or changes from unblocked to unblocked, the virtual machine management software 21 sends the feedback information to the management host 100 through the BMC22; if the network card 23 and the server The channel for data transmission at 200 remains unblocked all the time, or becomes unblocked from unblocked, then the virtual machine management software 21 sends the feedback information to the management host 100 through the network card 23 .

第二接收模块105用于从服务器200接收虚拟机管理软件21发送的该反馈信息。具体而言,如果网卡23与服务器200进行数据传输的通道一直保持畅通,或者从不畅通变成畅通,则第二接收模块105从网卡23接收虚拟机管理软件21发送的该反馈信息。如果网卡23与服务器200进行数据传输的通道一直保持不畅通,或者从畅通变成不畅通,则第二接收模块105从BMC22接收虚拟机管理软件21发送的该反馈信息。 The second receiving module 105 is configured to receive the feedback information sent by the virtual machine management software 21 from the server 200 . Specifically, if the channel for data transmission between the network card 23 and the server 200 remains unblocked, or becomes unblocked from unblocked, the second receiving module 105 receives the feedback information sent by the virtual machine management software 21 from the network card 23 . If the channel for data transmission between the network card 23 and the server 200 remains unblocked, or changes from unblocked to unblocked, the second receiving module 105 receives the feedback information sent by the virtual machine management software 21 from the BMC 22 .

参阅图3所示,是本发明虚拟机管理方法较佳实施例的流程图。 Referring to FIG. 3 , it is a flow chart of a preferred embodiment of the virtual machine management method of the present invention.

步骤S01,当需要向服务器200发送对虚拟机20进行管理的管理信号时,第一发送模块101通过网卡23向服务器200发一个询问命令,该询问命令用于请求服务器200在指定时间内通过网卡23发送回该询问命令对应的回应信息。 Step S01, when it is necessary to send a management signal to the server 200 to manage the virtual machine 20, the first sending module 101 sends an inquiry command to the server 200 through the network card 23, and the inquiry command is used to request the server 200 to pass the network card within a specified time. 23 Send back the response information corresponding to the inquiry command.

步骤S02,判断模块103判断第一接收模块102是否在该指定时间内接收到该回应信息,从而判断通过网卡23与服务器200进行数据传输的通道是否畅通。若第一接收模块102未在该指定时间内接收到该回应信息,则判断模块103判断通过网卡23与服务器200进行数据传输的通道不畅通,进入步骤S03,若第一接收模块102在该指定时间内接收到该回应信息,则判断模块103判断通过网卡23与服务器200进行数据传输的通道畅通,进入步骤S04。 Step S02 , the judging module 103 judges whether the first receiving module 102 receives the response message within the specified time, thereby judging whether the channel for data transmission between the network card 23 and the server 200 is unblocked. If the first receiving module 102 does not receive the response information within the specified time, then the judging module 103 judges that the channel for data transmission between the network card 23 and the server 200 is not smooth, and enters step S03. After receiving the response information within a certain time, the judging module 103 judges that the channel for data transmission with the server 200 through the network card 23 is unblocked, and enters step S04.

步骤S03,第二发送模块104将该管理信号发送至BMC22。BMC22接收到该管理信号后,将解析该管理信号是否含有所述标识信息,若该管理信号中含有该标识信息,则BMC22通过串口将该管理信号发送至虚拟机管理软件21。虚拟机管理软件21根据该管理信号执行虚拟机20的管理操作,并向管理主机100发送一个反馈信息,然后执行步骤S05。该反馈信息包括虚拟机20的管理操作是否执行成功,虚拟机20的IP地址、服务器200的IP地址等信息。 In step S03, the second sending module 104 sends the management signal to the BMC22. After receiving the management signal, the BMC22 will analyze whether the management signal contains the identification information. If the management signal contains the identification information, the BMC22 will send the management signal to the virtual machine management software 21 through the serial port. The virtual machine management software 21 executes the management operation of the virtual machine 20 according to the management signal, and sends a feedback message to the management host 100, and then executes step S05. The feedback information includes whether the management operation of the virtual machine 20 is successfully executed, the IP address of the virtual machine 20 , the IP address of the server 200 and other information.

具体而言,如果网卡23与服务器200进行数据传输的通道从不畅通变成畅通,则虚拟机管理软件21通过网卡23向管理主机100发送该反馈信息;如果网卡23与服务器200进行数据传输的通道仍然保持不畅通,则虚拟机管理软件21通过BMC22向管理主机100发送该反馈信息。 Specifically, if the channel for data transmission between the network card 23 and the server 200 changes from unblocked to unblocked, then the virtual machine management software 21 sends the feedback information to the management host 100 through the network card 23; If the channel is still blocked, the virtual machine management software 21 sends the feedback information to the management host 100 through the BMC22.

步骤S04,第二发送模块104将该管理信号发送至网卡23。网卡23接收到该管理信号后,将解析该管理信号是否含有所述标识信息,若该管理信号中含有该标识信息,则网卡23将该管理信号发送至虚拟机管理软件21。虚拟机管理软件21根据该管理信号执行虚拟机20的管理操作,并向管理主机100发送所述反馈信息,然后执行步骤S05。 Step S04 , the second sending module 104 sends the management signal to the network card 23 . After receiving the management signal, the network card 23 will analyze whether the management signal contains the identification information. If the management signal contains the identification information, the network card 23 will send the management signal to the virtual machine management software 21 . The virtual machine management software 21 executes the management operation of the virtual machine 20 according to the management signal, and sends the feedback information to the management host 100, and then performs step S05.

具体而言,如果网卡23与服务器200进行数据传输的通道从畅通变成不畅通,则虚拟机管理软件21通过BMC22向管理主机100发送该反馈信息;如果网卡23与服务器200进行数据传输的通道仍然保持畅通,则虚拟机管理软件21通过网卡23向管理主机100发送该反馈信息。 Specifically, if the channel for data transmission between the network card 23 and the server 200 changes from unblocked to unblocked, the virtual machine management software 21 sends the feedback information to the management host 100 through the BMC22; if the channel for data transmission between the network card 23 and the server 200 If it remains unblocked, the virtual machine management software 21 sends the feedback information to the management host 100 through the network card 23 .

步骤S05,第二接收模块105用于从服务器200接收虚拟机管理软件21发送的该反馈信息。 Step S05 , the second receiving module 105 is configured to receive the feedback information sent by the virtual machine management software 21 from the server 200 .

具体而言,如果网卡23与服务器200进行数据传输的通道一直保持畅通,或者从不畅通变成畅通,则第二接收模块105从网卡23接收虚拟机管理软件21发送的该反馈信息。如果网卡23与服务器200进行数据传输的通道一直保持不畅通,或者从畅通变成不畅通,则第二接收模块105从BMC22接收虚拟机管理软件21发送的该反馈信息。 Specifically, if the channel for data transmission between the network card 23 and the server 200 remains unblocked, or becomes unblocked from unblocked, the second receiving module 105 receives the feedback information sent by the virtual machine management software 21 from the network card 23 . If the channel for data transmission between the network card 23 and the server 200 remains unblocked, or changes from unblocked to unblocked, the second receiving module 105 receives the feedback information sent by the virtual machine management software 21 from the BMC 22 .

在其它实施例中,也可以设定如果第二发送模块104将该管理信号发送至BMC22,则不管网卡23与服务器200进行数据传输的通道是否畅通,第二接收模块105都从BMC22接收虚拟机管理软件21发送的该反馈信息。 In other embodiments, it can also be set that if the second sending module 104 sends the management signal to the BMC22, the second receiving module 105 will receive the virtual machine from the BMC22 no matter whether the data transmission channel between the network card 23 and the server 200 is unblocked or not. The feedback information sent by the management software 21.

以上实施例仅用以说明本发明的技术方案而非限制,尽管参照较佳实施例对本发明进行了详细说明,本领域的普通技术人员应当理解,可以对本发明的技术方案进行修改或等同替换,而不脱离本发明技术方案的精神和范围。 The above embodiments are only used to illustrate the technical solutions of the present invention without limitation. Although the present invention has been described in detail with reference to preferred embodiments, those of ordinary skill in the art should understand that the technical solutions of the present invention can be modified or equivalently replaced. Without departing from the spirit and scope of the technical solution of the present invention.

Claims (8)

1. a virtual machine management method, is applied to manage in main frame, and this management main frame is connected with server by network and is communicated, it is characterised in that the method comprises the following steps:
Judge step: when needing to send management signal to manage the virtual machine installed in server to this server, judge that the passage carried out data transmission by the network interface card of server and server is the most unimpeded, described judgement step includes: sending an inquiry command by described network interface card to server, request server within a specified time sends back, by this network interface card, the echo message that this inquiry command is corresponding;Judge whether receive this echo message within this appointment time, if receiving this echo message within this appointment time, then judge the channels open carried out data transmission by this network interface card and server, if not receiving this response order in this appointment time, then judge that the passage carried out data transmission by this network interface card and server is not smooth;
Forwarding step: when the passage carried out data transmission by this network interface card and server is not smooth, this management signal is sent the Virtual Machine Manager software to server through the baseboard management controller BMC of server, makes this Virtual Machine Manager software perform the management operation of described virtual machine according to this management signal;And
Receiving step: receive the feedback information that this Virtual Machine Manager software sends from this BMC.
2. virtual machine management method as claimed in claim 1, it is characterised in that described management signal includes identification information, this identification information is for identifying this management signal for managing the virtual machine installed in server.
3. virtual machine management method as claimed in claim 2, it is characterised in that described BMC is when receiving this management signal, if parsing this identification information in this management signal, then sends this management signal to described Virtual Machine Manager software.
4. a virtual machine management method, is applied to manage in main frame, and this management main frame is connected with server by network and is communicated, it is characterised in that the method comprises the following steps:
Judge step: when needing to send management signal to manage the virtual machine installed in server to this server, judge that the passage carried out data transmission by the network interface card of server and server is the most unimpeded, described judgement step includes: sending an inquiry command by described network interface card to server, request server within a specified time sends back, by this network interface card, the echo message that this inquiry command is corresponding;Judge whether receive this echo message within this appointment time, if receiving this echo message within this appointment time, then judge the channels open carried out data transmission by this network interface card and server, if not receiving this response order in this appointment time, then judge that the passage carried out data transmission by this network interface card and server is not smooth;
Forwarding step one: when the passage carried out data transmission by this network interface card and server is not smooth, this management signal is sent the Virtual Machine Manager software to server through the baseboard management controller BMC of server, makes this Virtual Machine Manager software perform the management operation of described virtual machine according to this management signal;
Forwarding step two: when the channels open carried out data transmission by this network interface card and server, this management signal is sent the Virtual Machine Manager software to server through the network interface card of server, makes this Virtual Machine Manager software perform the management operation of described virtual machine according to this management signal;
Receiving step one: the passage carried out data transmission when network interface card and server is always maintained at not smooth, or from unimpeded become not smooth time, from this BMC receive this Virtual Machine Manager software send feedback information;And
Receiving step two: the passage carried out data transmission when network interface card and server is always maintained at unimpeded, or from not smooth become unimpeded time, from this network interface card receive this Virtual Machine Manager software send feedback information.
5. a virtual machine management system, runs in management main frame, and this management main frame is connected with server by network and is communicated, it is characterised in that this system includes:
Judge module, for when needing to send, to this server, the virtual machine that management signal manages installation in server, judge that the passage carried out data transmission by the network interface card of server and server is the most unimpeded, by following steps, described judge module judges that the passage carried out data transmission by this network interface card and server is the most unimpeded: sending an inquiry command by described network interface card to server, request server within a specified time sends back, by this network interface card, the echo message that this inquiry command is corresponding;Judge whether receive this echo message within this appointment time, if receiving this echo message within this appointment time, then judge the channels open carried out data transmission by this network interface card and server, if not receiving this response order in this appointment time, then judge that the passage carried out data transmission by this network interface card and server is not smooth;
Sending module, for when the passage carried out data transmission by this network interface card and server is not smooth, this management signal is sent the Virtual Machine Manager software to server through the baseboard management controller BMC of server, makes this Virtual Machine Manager software perform the management operation of described virtual machine according to this management signal;And
Receiver module, for receiving, from this BMC, the feedback information that this Virtual Machine Manager software sends.
6. virtual machine management system as claimed in claim 5, it is characterised in that described management signal includes identification information, this identification information is for identifying this management signal for managing the virtual machine installed in server.
7. virtual machine management system as claimed in claim 6, it is characterised in that described BMC is when receiving this management signal, if parsing this identification information in this management signal, then sends this management signal to described Virtual Machine Manager software.
8. a virtual machine management system, runs in management main frame, and this management main frame is connected with server by network and is communicated, it is characterised in that this system includes:
Judge module, for when needing to send, to this server, the virtual machine that management signal manages installation in server, judge that the passage carried out data transmission by the network interface card of server and server is the most unimpeded, by following steps, described judge module judges that the passage carried out data transmission by this network interface card and server is the most unimpeded: sending an inquiry command by described network interface card to server, request server within a specified time sends back, by this network interface card, the echo message that this inquiry command is corresponding;Judge whether receive this echo message within this appointment time, if receiving this echo message within this appointment time, then judge the channels open carried out data transmission by this network interface card and server, if not receiving this response order in this appointment time, then judge that the passage carried out data transmission by this network interface card and server is not smooth;
Sending module, for when the passage carried out data transmission by this network interface card and server is not smooth, this management signal is sent the Virtual Machine Manager software to server through the baseboard management controller BMC of server, makes this Virtual Machine Manager software perform the management operation of described virtual machine according to this management signal;
Described sending module, it is additionally operable to when the channels open carried out data transmission by this network interface card and server, this management signal is sent the Virtual Machine Manager software to server through the network interface card of server, makes this Virtual Machine Manager software perform the management operation of described virtual machine according to this management signal;
Receiver module, is always maintained at not smooth for the passage carried out data transmission when network interface card and server, or from unimpeded become not smooth time, receive the feedback information of this Virtual Machine Manager software transmission from this BMC;And
Described receiver module, is additionally operable to when the passage that network interface card and server carry out data transmission is always maintained at unimpeded, or from not smooth become unimpeded time, from this network interface card receive this Virtual Machine Manager software send feedback information.
CN201110197067.5A 2011-07-14 2011-07-14 virtual machine management method and system Expired - Fee Related CN102882698B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201110197067.5A CN102882698B (en) 2011-07-14 2011-07-14 virtual machine management method and system
TW100125356A TW201303733A (en) 2011-07-14 2011-07-18 Method and system for managing virtual machines

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110197067.5A CN102882698B (en) 2011-07-14 2011-07-14 virtual machine management method and system

Publications (2)

Publication Number Publication Date
CN102882698A CN102882698A (en) 2013-01-16
CN102882698B true CN102882698B (en) 2016-08-03

Family

ID=47483853

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110197067.5A Expired - Fee Related CN102882698B (en) 2011-07-14 2011-07-14 virtual machine management method and system

Country Status (2)

Country Link
CN (1) CN102882698B (en)
TW (1) TW201303733A (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI498748B (en) * 2013-03-14 2015-09-01 Hon Hai Prec Ind Co Ltd Data center and its method of providing virtual services to clients
TWI588751B (en) * 2013-05-31 2017-06-21 聯想企業解決方案(新加坡)有限公司 Computer host with a baseboard management controller to manage virtual machines and method thereof
CN108491347B (en) * 2018-04-02 2021-04-13 联想(北京)有限公司 Communication method and electronic device
CN117539588B (en) * 2023-10-12 2025-09-30 启朔(深圳)科技有限公司 A virtual machine management method and related device
CN119806744A (en) * 2024-12-20 2025-04-11 北京百度网讯科技有限公司 Virtual machine control method, device, electronic device and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101471820A (en) * 2007-12-28 2009-07-01 英业达股份有限公司 Test method of baseboard management controller
CN101916207A (en) * 2010-08-28 2010-12-15 华为技术有限公司 Energy saving method, device and system in desktop virtualization environment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090125901A1 (en) * 2007-11-13 2009-05-14 Swanson Robert C Providing virtualization of a server management controller
US8327169B2 (en) * 2009-02-26 2012-12-04 International Business Machines Corporation Power management to maximize reduced power state for virtual machine platforms

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101471820A (en) * 2007-12-28 2009-07-01 英业达股份有限公司 Test method of baseboard management controller
CN101916207A (en) * 2010-08-28 2010-12-15 华为技术有限公司 Energy saving method, device and system in desktop virtualization environment

Also Published As

Publication number Publication date
TW201303733A (en) 2013-01-16
CN102882698A (en) 2013-01-16

Similar Documents

Publication Publication Date Title
US11895016B2 (en) Methods and apparatus to configure and manage network resources for use in network-based computing
EP3655853B1 (en) Methods and apparatus to configure switches of a virtual rack
US10089099B2 (en) Automatic software upgrade
US10171319B2 (en) Technologies for annotating process and user information for network flows
US7962587B2 (en) Method and system for enforcing resource constraints for virtual machines across migration
US7941539B2 (en) Method and system for creating a virtual router in a blade chassis to maintain connectivity
US10091138B2 (en) In service upgrades for a hypervisor or hardware manager hosting virtual traffic managers
US8099615B2 (en) Method and system for power management in a virtual machine environment without disrupting network connectivity
US20140280800A1 (en) Apparatus and method to maintain consistent operational states in in cloud-based infrastructures
US11843508B2 (en) Methods and apparatus to configure virtual and physical networks for hosts in a physical rack
US8566847B2 (en) Out-of-band host management via a management controller
US9019967B2 (en) VLAN advertisement and automated configuration
CN102882698B (en) virtual machine management method and system
CN108063694A (en) The system and method for pressure test are carried out on PORT COM by kernel program
CN104144130A (en) Virtual machine system interconnection method and system and access switch
CN108089968A (en) Method for monitoring state of database of virtual machine by host machine
WO2018010068A1 (en) Method and device for providing alert in network function virtualization environment
US20250141737A1 (en) Pre-provisioning server hardware for deployment on an edge network
JP2014178976A (en) Application start control method and system and device and program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20180208

Address after: Haiyun economic and Technological Development Zone, Tianjin street, No. 80

Patentee after: Hongfujin Precision Electronics (Tianjin) Co., Ltd.

Address before: 518109 Guangdong city of Shenzhen province Baoan District Longhua Town Industrial Zone tabulaeformis tenth East Ring Road No. 2 two

Co-patentee before: Hon Hai Precision Industry Co., Ltd.

Patentee before: Hongfujin Precise Industry (Shenzhen) Co., Ltd.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160803

Termination date: 20180714