TW201303733A - Method and system for managing virtual machines - Google Patents

Method and system for managing virtual machines Download PDF

Info

Publication number
TW201303733A
TW201303733A TW100125356A TW100125356A TW201303733A TW 201303733 A TW201303733 A TW 201303733A TW 100125356 A TW100125356 A TW 100125356A TW 100125356 A TW100125356 A TW 100125356A TW 201303733 A TW201303733 A TW 201303733A
Authority
TW
Taiwan
Prior art keywords
server
management
virtual machine
network card
channel
Prior art date
Application number
TW100125356A
Other languages
Chinese (zh)
Inventor
Xiao-Feng Zhu
Peng Wu
Original Assignee
Hon Hai Prec Ind 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 Hon Hai Prec Ind Co Ltd filed Critical Hon Hai Prec Ind Co Ltd
Publication of TW201303733A publication Critical patent/TW201303733A/en

Links

Landscapes

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

Abstract

The present invention provides a method and system for managing the virtual machines. The system is configured for: determining whether a channel which transmits data to a server via a network card of the server is unimpeded when it is need to send a management signal to manage the virtual machines; sending the management signal to a virtual machine management software of the server via a baseboard management controller (BMC) of the server when the channel is not unimpeded; receiving a feedback signal sent by the virtual machine management software from the BMC.

Description

虛擬機管理方法及系統Virtual machine management method and system

本發明涉及一種虛擬機管理方法及系統,特別涉及一種透過基板管理控制器(Baseboard Management Controller,BMC)管理虛擬機的方法及系統。The present invention relates to a virtual machine management method and system, and more particularly to a method and system for managing a virtual machine through a Baseboard Management Controller (BMC).

資料中心(Data Center)通常包含數台甚至上萬台的伺服器,為提高資源利用率,每台伺服器中通常安裝有一個或多個虛擬機(Virtual Machine)。為了有效地管理這些虛擬機,資料中心透過網路連接一台管理主機,該管理主機透過各伺服器的網卡向各伺服器發送虛擬機管理訊號,從而管理各伺服器中安裝的虛擬機,如控制虛擬機開機、關機、重啟、掛起、遷移等。然而,伺服器中網卡埠的數量有限,並且網卡通常需要執行大量的資料傳輸任務。當某一台伺服器的網卡埠損壞,或網卡資料傳輸擁堵時,管理主機將無法對該伺服器上安裝的虛擬機進行管理。The Data Center usually contains several or even tens of thousands of servers. To improve resource utilization, one or more virtual machines are usually installed in each server. In order to effectively manage these virtual machines, the data center connects to a management host through the network. The management host sends virtual machine management signals to each server through the network card of each server, thereby managing virtual machines installed in each server, such as Control the virtual machine to power on, power off, restart, suspend, migrate, and so on. However, the number of network 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 of a server is damaged or the data transmission of the network card is congested, the management host cannot manage the virtual machine installed on the server.

鑒於以上內容,有必要提供一種虛擬機管理方法及系統,可以在無法透過伺服器的網卡向該伺服器傳送虛擬機管理訊號時,透過該伺服器的BMC向該伺服器傳送該虛擬機管理訊號,從而管理該伺服器中的虛擬機。In view of the above, it is necessary to provide a virtual machine management method and system, which can transmit the virtual machine management signal to the server through the BMC of the server when the virtual machine management signal is transmitted to the server through the network card of the server. To manage the virtual machines in the server.

一種虛擬機管理方法,應用於管理主機中,該管理主機透過網路與伺服器連接並通信,該方法包括以下步驟:判斷步驟:當需要向該伺服器發送管理訊號來管理伺服器中安裝的虛擬機時,判斷透過伺服器的網卡與伺服器進行資料傳輸的通道是否暢通;發送步驟:當透過該網卡與伺服器進行資料傳輸的通道不暢通時,將該管理訊號經伺服器的基板管理控制器BMC發送至伺服器的虛擬機管理軟體,使該虛擬機管理軟體根據該管理訊號執行所述虛擬機的管理操作;及接收步驟:從該BMC接收該虛擬機管理軟體發送的回饋資訊。A virtual machine management method is applied to a management host, and the management host connects and communicates with a server through a network. The method includes the following steps: a determining step: when a management signal needs to be sent to the server to manage the installation in the server When the virtual machine is used, it is determined whether the channel for transmitting data through the server's network card and the server is unblocked; the sending step: when the channel for data transmission through the network card and the server is not smooth, the management signal is managed by the server substrate The controller BMC sends the virtual machine management software to the server, so that the virtual machine management software performs the management operation of the virtual machine according to the management signal; and the receiving step: receiving the feedback information sent by the virtual machine management software from the BMC.

一種虛擬機管理方法,應用於管理主機中,該管理主機透過網路與伺服器連接並通信,該方法包括以下步驟:判斷步驟:當需要向該伺服器發送管理訊號來管理伺服器中安裝的虛擬機時,判斷透過伺服器的網卡與伺服器進行資料傳輸的通道是否暢通;發送步驟一:當透過該網卡與伺服器進行資料傳輸的通道不暢通時,將該管理訊號經伺服器的基板管理控制器BMC發送至伺服器的虛擬機管理軟體,使該虛擬機管理軟體根據該管理訊號執行所述虛擬機的管理操作;發送步驟二:當透過該網卡與伺服器進行資料傳輸的通道暢通時,將該管理訊號經伺服器的網卡發送至伺服器的虛擬機管理軟體,使該虛擬機管理軟體根據該管理訊號執行所述虛擬機的管理操作;接收步驟一:當網卡與伺服器進行資料傳輸的通道一直保持不暢通,或者從暢通變成不暢通時,從該BMC接收該虛擬機管理軟體發送的回饋資訊;接收步驟二:當網卡與伺服器進行資料傳輸的通道一直保持暢通,或者從不暢通變成暢通時,從該網卡接收該虛擬機管理軟體發送的回饋資訊。A virtual machine management method is applied to a management host, and the management host connects and communicates with a server through a network. The method includes the following steps: a determining step: when a management signal needs to be sent to the server to manage the installation in the server In the case of the virtual machine, it is determined whether the channel for transmitting data through the server's network card and the server is unblocked; sending step 1: when the channel for data transmission through the network card and the server is not clear, the management signal is passed through the server substrate. The management controller BMC sends the virtual machine management software to the server, so that the virtual machine management software performs the management operation of the virtual machine according to the management signal; and sends the second step: when the data transmission path through the network card and the server is unblocked Sending the management signal to the virtual machine management software of the server via 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; receiving step 1: when the network card and the server perform The channel for data transmission remains unobstructed, or from smooth to unclear, from the B The MC receives the feedback information sent by the virtual machine management software; receiving step 2: receiving the feedback sent by the virtual machine management software from the network card when the channel for transmitting data between the network card and the server is always clear, or when the channel is unblocked, News.

一種虛擬機管理系統,運行於管理主機中,該管理主機透過網路與伺服器連接並通信,該系統包括:判斷模組,用於當需要向該伺服器發送管理訊號來管理伺服器中安裝的虛擬機時,判斷透過伺服器的網卡與伺服器進行資料傳輸的通道是否暢通;發送模組,用於當透過該網卡與伺服器進行資料傳輸的通道不暢通時,將該管理訊號經伺服器的基板管理控制器BMC發送至伺服器的虛擬機管理軟體,使該虛擬機管理軟體根據該管理訊號執行所述虛擬機的管理操作;及接收模組,用於從該BMC接收該虛擬機管理軟體發送的回饋資訊。A virtual machine management system running in a management host, the management host is connected and communicated with a server through a network, the system comprising: a determining module, configured to send a management signal to the server to manage the server installation The virtual machine determines whether the channel for transmitting data through the server's network card and the server is unblocked; and the sending module is configured to perform the management signal through the servo when the channel through which the network card and the server transmit data is not clear. The baseboard management controller BMC sends the virtual machine management software to the server, so that the virtual machine management software performs the management operation of the virtual machine according to the management signal; and the receiving module is configured to receive the virtual machine from the BMC The feedback information sent by the management software.

一種虛擬機管理系統,運行於管理主機中,該管理主機透過網路與伺服器連接並通信,該系統包括:判斷模組,用於當需要向該伺服器發送管理訊號來管理伺服器中安裝的虛擬機時,判斷透過伺服器的網卡與伺服器進行資料傳輸的通道是否暢通;發送模組,用於當透過該網卡與伺服器進行資料傳輸的通道不暢通時,將該管理訊號經伺服器的基板管理控制器BMC發送至伺服器的虛擬機管理軟體,使該虛擬機管理軟體根據該管理訊號執行所述虛擬機的管理操作;所述發送模組,還用於當透過該網卡與伺服器進行資料傳輸的通道暢通時,將該管理訊號經伺服器的網卡發送至伺服器的虛擬機管理軟體,使該虛擬機管理軟體根據該管理訊號執行所述虛擬機的管理操作;接收模組,用於當網卡與伺服器進行資料傳輸的通道一直保持不暢通,或者從暢通變成不暢通時,從該BMC接收該虛擬機管理軟體發送的回饋資訊;所述接收模組,還用於當網卡與伺服器進行資料傳輸的通道一直保持暢通,或者從不暢通變成暢通時,從該網卡接收該虛擬機管理軟體發送的回饋資訊。A virtual machine management system running in a management host, the management host is connected and communicated with a server through a network, the system comprising: a determining module, configured to send a management signal to the server to manage the server installation The virtual machine determines whether the channel for transmitting data through the server's network card and the server is unblocked; and the sending module is configured to perform the management signal through the servo when the channel through which the network card and the server transmit data is not clear. The baseboard management controller BMC of the device is sent 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; the sending module is further configured to pass through the network card and When the channel for data transmission is unblocked, the management signal is sent to the virtual machine management software of the server via 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; Group, used to keep the channel for data transmission between the network card and the server is not smooth, or from smooth to non-clear Receiving feedback information sent by the virtual machine management software from the BMC; the receiving module is further configured to receive the channel for data transmission between the network card and the server, or to change from unsmooth to unblocked, receive the network card from the network card The feedback information sent by the virtual machine management software.

相較於習知技術,本發明虛擬機管理方法及系統,可以在無法透過伺服器的網卡向該伺服器傳送虛擬機管理訊號時,透過該伺服器的BMC向該伺服器傳送該虛擬機管理訊號,從而管理該伺服器中的虛擬機。Compared with the prior art, the virtual machine management method and system of the present invention can transmit the virtual machine management to the server through the BMC of the server when the virtual machine management signal is not transmitted to the server through the network card of the server. Signal to manage the virtual machines in the server.

參閱圖1所示,係本發明虛擬機管理系統較佳實施方式的運行環境圖。在本實施方式中,該虛擬機管理系統10運行於管理主機100中。該管理主機100透過網路與資料中心的多台伺服器(圖中以任意一台伺服器200為例)連接並通信。Referring to FIG. 1, it is a running environment diagram of a preferred embodiment of the virtual machine management system of the present invention. In the present embodiment, the virtual machine management system 10 operates in the management host 100. The management host 100 connects and communicates with a plurality of servers (for example, any one of the servers 200 in the figure) through the network.

該伺服器200中安裝有一個或多個虛擬機20,以及一個虛擬機管理軟體21,該虛擬機管理軟體21可以是威睿虛擬機軟體(VMware)、Hypervisor軟體或Xen虛擬機監控軟體等。該伺服器200還包括BMC 22和網卡23。其中,該BMC 22包括BMC網路埠220,管理主機100透過該BMC網路埠220與該BMC 22連接並通信,從而實現對伺服器200的硬體監視和電源控制。該網卡23包括網卡埠230。管理主機100還透過該網卡埠230與網卡23連接並通信,透過網卡23建立與伺服器200進行資料傳輸的通道。The server 200 is provided with one or more virtual machines 20 and a virtual machine management software 21, which may be a VIA virtual machine software (VMware), a hypervisor software or a Xen virtual machine monitoring software. The server 200 also includes a BMC 22 and a network card 23. The BMC 22 includes a BMC network port 220. The management host 100 connects and communicates with the BMC 22 through the BMC network port 220 to implement hardware monitoring and power control of the server 200. The network card 23 includes a network card 230. The management host 100 also connects and communicates with the network card 23 through the network card 230, and establishes a channel for data transmission with the server 200 through the network card 23.

管理主機100用於向伺服器200發送對該虛擬機20進行管理的管理訊號,從而調用所述虛擬機管理軟體21對虛擬機20進行管理,如控制虛擬機20開機、關機、重啟、掛起、遷移等。該管理訊號一般為遵循HTTP(Hyper Text Transfer Protocol,超文本傳輸協定)格式的資料包。該管理訊號中包含標識資訊,該標識資訊標識該管理訊號用於管理伺服器200中的虛擬機20。管理主機100可經該BMC 22或網卡23向伺服器200發送該管理訊號。The management host 100 is configured to send a management signal for managing the virtual machine 20 to the server 200, thereby invoking the virtual machine management software 21 to manage the virtual machine 20, such as controlling the virtual machine 20 to be powered on, powered off, restarted, suspended. , migration, etc. The management signal is generally a data packet conforming to the HTTP (Hyper Text Transfer Protocol) format. The management signal includes identification information, and the identification information identifies the management signal for managing 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 module 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 determining 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 configured to send, by the network card 23, an inquiry command to the server 200 when the management signal needs to be sent to the server 200, the query command is used to request the server 200 to transmit through the specified time, such as 0.5 seconds. The network card 23 sends back 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 determining module 103 is configured to determine whether the first receiving module 102 receives the response information within the specified time, thereby determining whether the channel for data transmission by 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 determining module 103 determines that the channel for data transmission by the network card 23 and the server 200 is clear, and the management signal can be sent to the server 200 through the network card 23. If the first receiving module 102 does not receive the response information within the specified time, the determining module 103 determines that the channel for transmitting data through the network card 23 and the server 200 is not clear, and cannot be sent to the server 200 through the network card 23. The management signal.

第二發送模組104用於當透過網卡23與伺服器200進行資料傳輸的通道不暢通時,將該管理訊號發送至BMC 22。BMC 22接收到該管理訊號後,將解析該管理訊號是否含有所述標識資訊,若該管理訊號中含有該標識資訊,則BMC 22透過串口將該管理訊號發送至虛擬機管理軟體21。The second sending module 104 is configured to send the management signal to the BMC 22 when the channel for data transmission by the network card 23 and the server 200 is not clear. After receiving the management signal, the BMC 22 will analyze whether the management signal contains the identification information. If the management information includes the identification information, the BMC 22 sends 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 further configured to send the management signal to the network card 23 when the channel for data transmission by 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 information includes the identification information, the network card 23 sends the management signal to the virtual machine management software 21.

虛擬機管理軟體21根據該管理訊號執行虛擬機20的管理操作,並向管理主機100發送一個回饋資訊,該回饋資訊包括虛擬機20的管理操作是否執行成功,虛擬機20的IP位址、伺服器200的IP位址等資訊。The virtual machine management software 21 performs the management operation of the virtual machine 20 according to the management signal, and sends a feedback information to the management host 100, and the feedback information includes whether the management operation of the virtual machine 20 is successful, the IP address of the virtual machine 20, and the servo. Information such as the IP address of the device 200.

具體而言,如果網卡23與伺服器200進行資料傳輸的通道一直保持不暢通,或者從暢通變成不暢通,則虛擬機管理軟體21透過BMC 22向管理主機100發送該回饋資訊;如果網卡23與伺服器200進行資料傳輸的通道一直保持暢通,或者從不暢通變成暢通,則虛擬機管理軟體21透過網卡23向管理主機100發送該回饋資訊。Specifically, if the channel for the data transmission between the network card 23 and the server 200 is not smooth, or the smooth communication is not smooth, the virtual machine management software 21 sends the feedback information to the management host 100 through the BMC 22; if the network card 23 is The virtual machine management software 21 transmits the feedback information to the management host 100 via the network card 23 until the channel through which the server 200 performs data transmission remains unblocked or becomes unblocked.

第二接收模組105用於從伺服器200接收虛擬機管理軟體21發送的該回饋資訊。具體而言,如果網卡23與伺服器200進行資料傳輸的通道一直保持暢通,或者從不暢通變成暢通,則第二接收模組105從網卡23接收虛擬機管理軟體21發送的該回饋資訊。如果網卡23與伺服器200進行資料傳輸的通道一直保持不暢通,或者從暢通變成不暢通,則第二接收模組105從BMC 22接收虛擬機管理軟體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 through which the network card 23 and the server 200 perform data transmission is always clear, or becomes unblocked, the second receiving module 105 receives the feedback information sent by the virtual machine management software 21 from the network card 23. The second receiving module 105 receives the feedback information sent by the virtual machine management software 21 from the BMC 22 if the channel through which the network card 23 and the server 200 perform data transmission remains unobstructed or becomes unblocked.

參閱圖3所示,係本發明虛擬機管理方法較佳實施方式的流程圖。Referring to FIG. 3, it is a flowchart of a preferred embodiment of the virtual machine management method of the present invention.

步驟S01,當需要向伺服器200發送對虛擬機20進行管理的管理訊號時,第一發送模組101透過網卡23向伺服器200發一個詢問命令,該詢問命令用於請求伺服器200在指定時間內透過網卡23發送回該詢問命令對應的回應資訊。In step S01, when the management signal for managing the virtual machine 20 needs to be sent to the server 200, 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 specify The response information corresponding to the inquiry command is sent back through the network card 23 during the time.

步驟S02,判斷模組103判斷第一接收模組102是否在該指定時間內接收到該回應資訊,從而判斷透過網卡23與伺服器200進行資料傳輸的通道是否暢通。若第一接收模組102未在該指定時間內接收到該回應資訊,則判斷模組103判斷透過網卡23與伺服器200進行資料傳輸的通道不暢通,進入步驟S03,若第一接收模組102在該指定時間內接收到該回應資訊,則判斷模組103判斷透過網卡23與伺服器200進行資料傳輸的通道暢通,進入步驟S04。In step S02, the determining module 103 determines whether the first receiving module 102 receives the response information within the specified time, thereby determining whether the channel for data transmission by 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, the determining module 103 determines that the channel for transmitting data through the network card 23 and the server 200 is not clear, and proceeds to step S03, if the first receiving module When the response information is received within the specified time, the determination module 103 determines that the channel for data transmission by the network card 23 and the server 200 is clear, and proceeds to step S04.

步驟S03,第二發送模組104將該管理訊號發送至BMC 22。BMC 22接收到該管理訊號後,將解析該管理訊號是否含有所述標識資訊,若該管理訊號中含有該標識資訊,則BMC 22透過串口將該管理訊號發送至虛擬機管理軟體21。虛擬機管理軟體21根據該管理訊號執行虛擬機20的管理操作,並向管理主機100發送一個回饋資訊,然後執行步驟S05。該回饋資訊包括虛擬機20的管理操作是否執行成功,虛擬機20的IP位址、伺服器200的IP位址等資訊。In step S03, the second sending module 104 sends the management signal to the BMC 22. After receiving the management signal, the BMC 22 will analyze whether the management signal contains the identification information. If the management information includes the identification information, the BMC 22 sends the management signal to the virtual machine management software 21 through the serial port. The virtual machine management software 21 performs the management operation of the virtual machine 20 based on the management signal, and transmits a feedback information to the management host 100, and then proceeds to step S05. The feedback information includes information such as whether the management operation of the virtual machine 20 is successful, the IP address of the virtual machine 20, and the IP address of the server 200.

具體而言,如果網卡23與伺服器200進行資料傳輸的通道從不暢通變成暢通,則虛擬機管理軟體21透過網卡23向管理主機100發送該回饋資訊;如果網卡23與伺服器200進行資料傳輸的通道仍然保持不暢通,則虛擬機管理軟體21透過BMC 22向管理主機100發送該回饋資訊。Specifically, if the channel for data transmission between the network card 23 and the server 200 is changed from unsmooth to unblocked, the virtual machine management software 21 transmits the feedback information to the management host 100 through the network card 23; if the network card 23 and the server 200 perform data transmission The virtual machine management software 21 transmits the feedback information to the management host 100 through the BMC 22 while the channel still remains unblocked.

步驟S04,第二發送模組104將該管理訊號發送至網卡23。網卡23接收到該管理訊號後,將解析該管理訊號是否含有所述標識資訊,若該管理訊號中含有該標識資訊,則網卡23將該管理訊號發送至虛擬機管理軟體21。虛擬機管理軟體21根據該管理訊號執行虛擬機20的管理操作,並向管理主機100發送所述回饋資訊,然後執行步驟S05。In 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 information includes the identification information, the network card 23 sends 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 transmits the feedback information to the management host 100, and then executes step S05.

具體而言,如果網卡23與伺服器200進行資料傳輸的通道從暢通變成不暢通,則虛擬機管理軟體21透過BMC 22向管理主機100發送該回饋資訊;如果網卡23與伺服器200進行資料傳輸的通道仍然保持暢通,則虛擬機管理軟體21透過網卡23向管理主機100發送該回饋資訊。Specifically, if the channel for data transmission between the network card 23 and the server 200 is changed from unblocked to unblocked, the virtual machine management software 21 transmits the feedback information to the management host 100 through the BMC 22; if the network card 23 and the server 200 perform data transmission The channel still remains unblocked, and the virtual machine management software 21 transmits the feedback information to the management host 100 through the network card 23.

步驟S05,第二接收模組105用於從伺服器200接收虛擬機管理軟體21發送的該回饋資訊。In 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從BMC 22接收虛擬機管理軟體21發送的該回饋資訊。Specifically, if the channel through which the network card 23 and the server 200 perform data transmission is always clear, or becomes unblocked, the second receiving module 105 receives the feedback information sent by the virtual machine management software 21 from the network card 23. The second receiving module 105 receives the feedback information sent by the virtual machine management software 21 from the BMC 22 if the channel through which the network card 23 and the server 200 perform data transmission remains unobstructed or becomes unblocked.

在其他實施方式中,也可以設定如果第二發送模組104將該管理訊號發送至BMC 22,則不管網卡23與伺服器200進行資料傳輸的通道是否暢通,第二接收模組105都從BMC 22接收虛擬機管理軟體21發送的該回饋資訊。In other embodiments, if the second sending module 104 sends the management signal to the BMC 22, the second receiving module 105 is from the BMC regardless of whether the channel for data transmission between the network card 23 and the server 200 is clear. 22 receiving the feedback information sent by the virtual machine management software 21.

綜上所述,本發明符合發明專利要件,爰依法提出專利申請。惟,以上所述者僅爲本發明之較佳實施例,本發明之範圍並不以上述實施例爲限,舉凡熟悉本案技藝之人士援依本發明之精神所作之等效修飾或變化,皆應涵蓋於以下申請專利範圍內。In summary, the present invention complies with the requirements of the invention patent and submits a patent application according to law. The above is only the preferred embodiment of the present invention, and the scope of the present invention is not limited to the above-described embodiments, and equivalent modifications or variations made by those skilled in the art in light of the spirit of the present invention are It should be covered by the following patent application.

100...管理主機100. . . Management host

10...虛擬機管理系統10. . . Virtual machine management system

200...伺服器200. . . server

20...虛擬機20. . . virtual machine

21...虛擬機管理軟體twenty one. . . Virtual machine management software

22...BMCtwenty two. . . BMC

220...BMC網路埠220. . . BMC network埠

23...網卡twenty three. . . Network card

230...網卡埠230. . . Network card

101...第一發送模組101. . . First transmitting module

102...第一接收模組102. . . First receiving module

103...判斷模組103. . . Judging module

104...第二發送模組104. . . Second transmitting module

105...第二接收模組105. . . Second receiving module

圖1係本發明虛擬機管理系統較佳實施方式的運行環境圖。1 is a diagram showing an operating environment of a preferred embodiment of a virtual machine management system of the present invention.

圖2係本發明虛擬機管理系統較佳實施方式的功能模組圖。2 is a functional block diagram of a preferred embodiment of the virtual machine management system of the present invention.

圖3係本發明虛擬機管理方法較佳實施方式的流程圖。3 is a flow chart of a preferred embodiment of a virtual machine management method of the present invention.

100...管理主機100. . . Management host

10...虛擬機管理系統10. . . Virtual machine management system

200...伺服器200. . . server

20...虛擬機20. . . virtual machine

21...虛擬機管理軟體twenty one. . . Virtual machine management software

22...BMCtwenty two. . . BMC

220...BMC網路埠220. . . BMC network埠

23...網卡twenty three. . . Network card

230...網卡埠230. . . Network card

Claims (10)

一種虛擬機管理方法,應用於管理主機中,該管理主機透過網路與伺服器連接並通信,該方法包括以下步驟:
判斷步驟:當需要向該伺服器發送管理訊號來管理伺服器中安裝的虛擬機時,判斷透過伺服器的網卡與伺服器進行資料傳輸的通道是否暢通;
發送步驟:當透過該網卡與伺服器進行資料傳輸的通道不暢通時,將該管理訊號經伺服器的基板管理控制器BMC發送至伺服器的虛擬機管理軟體,使該虛擬機管理軟體根據該管理訊號執行所述虛擬機的管理操作;及
接收步驟:從該BMC接收該虛擬機管理軟體發送的回饋資訊。
A virtual machine management method is applied to a management host, and the management host connects and communicates with a server through a network, and the method includes the following steps:
Judging step: when it is required to send a management signal to the server to manage the virtual machine installed in the server, it is determined whether the channel for transmitting data through the server's network card and the server is unblocked;
Sending step: when the channel for data transmission through the network card and the server is not clear, the management signal is sent to the virtual machine management software of the server via the baseboard management controller BMC of the server, so that the virtual machine management software according to the The management signal performs the management operation of the virtual machine; and the receiving step: receiving the feedback information sent by the virtual machine management software from the BMC.
如申請專利範圍第1項所述之虛擬機管理方法,所述判斷步驟包括:
透過所述網卡向伺服器發送一個詢問命令,請求伺服器在指定時間內透過該網卡發送回該詢問命令對應的回應資訊;
判斷在該指定時間內是否接收到該回應資訊,若在該指定時間內接收到該回應資訊,則判斷透過該網卡與伺服器進行資料傳輸的通道暢通,若在該指定時間未接收到該回應命令,則判斷透過該網卡與伺服器進行資料傳輸的通道不暢通。
The virtual machine management method according to claim 1, wherein the determining step comprises:
Sending an inquiry command to the server through the network card, requesting the server to send back the response information corresponding to the inquiry command through the network card within a specified time;
Determining whether the response information is received within the specified time. If the response information is received within the specified time, it is determined that the channel for transmitting data through the network card and the server is unblocked, and the response is not received at the specified time. The command determines that the channel through which the network card and the server transmit data is not clear.
如申請專利範圍第1項所述之虛擬機管理方法,所述管理訊號包括標識資訊,該標識資訊用於標識該管理訊號用於管理伺服器中安裝的虛擬機。The virtual machine management method of claim 1, wherein the management signal includes identification information, and the identification information is used to identify the management signal for managing a virtual machine installed in the server. 如申請專利範圍第3項所述之虛擬機管理方法,所述BMC在接收到該管理訊號時,若在該管理訊號中解析出該標識資訊,則將該管理訊號發送至所述虛擬機管理軟體。The virtual machine management method of claim 3, when the BMC receives the management signal, if the identification information is parsed in the management signal, the management signal is sent to the virtual machine management. software. 一種虛擬機管理方法,應用於管理主機中,該管理主機透過網路與伺服器連接並通信,該方法包括以下步驟:
判斷步驟:當需要向該伺服器發送管理訊號來管理伺服器中安裝的虛擬機時,判斷透過伺服器的網卡與伺服器進行資料傳輸的通道是否暢通;
發送步驟一:當透過該網卡與伺服器進行資料傳輸的通道不暢通時,將該管理訊號經伺服器的基板管理控制器BMC發送至伺服器的虛擬機管理軟體,使該虛擬機管理軟體根據該管理訊號執行所述虛擬機的管理操作;
發送步驟二:當透過該網卡與伺服器進行資料傳輸的通道暢通時,將該管理訊號經伺服器的網卡發送至伺服器的虛擬機管理軟體,使該虛擬機管理軟體根據該管理訊號執行所述虛擬機的管理操作;
接收步驟一:當網卡與伺服器進行資料傳輸的通道一直保持不暢通,或者從暢通變成不暢通時,從該BMC接收該虛擬機管理軟體發送的回饋資訊;及
接收步驟二:當網卡與伺服器進行資料傳輸的通道一直保持暢通,或者從不暢通變成暢通時,從該網卡接收該虛擬機管理軟體發送的回饋資訊。
A virtual machine management method is applied to a management host, and the management host connects and communicates with a server through a network, and the method includes the following steps:
Judging step: when it is required to send a management signal to the server to manage the virtual machine installed in the server, it is determined whether the channel for transmitting data through the server's network card and the server is unblocked;
Sending step 1: when the channel for data transmission through the network card and the server is not clear, 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 is based on The management signal performs a management operation of the virtual machine;
Sending step 2: when the channel for data transmission through the network card and the server is unblocked, the management signal is sent to the virtual machine management software of the server via the network card of the server, so that the virtual machine management software executes the management according to the management signal. The management operation of the virtual machine;
Receiving step 1: when the channel for data transmission between the network card and the server remains unsmooth, or changes from unblocked to unblocked, the feedback information sent by the virtual machine management software is received from the BMC; and the receiving step 2: when the network card and the servo are received The channel for data transmission is always clear, or when it is unblocked, the feedback information sent by the virtual machine management software is received from the network card.
一種虛擬機管理系統,運行於管理主機中,該管理主機透過網路與伺服器連接並通信,該系統包括:
判斷模組,用於當需要向該伺服器發送管理訊號來管理伺服器中安裝的虛擬機時,判斷透過伺服器的網卡與伺服器進行資料傳輸的通道是否暢通;
發送模組,用於當透過該網卡與伺服器進行資料傳輸的通道不暢通時,將該管理訊號經伺服器的基板管理控制器BMC發送至伺服器的虛擬機管理軟體,使該虛擬機管理軟體根據該管理訊號執行所述虛擬機的管理操作;及
接收模組,用於從該BMC接收該虛擬機管理軟體發送的回饋資訊。
A virtual machine management system running in a management host, the management host connecting and communicating with a server through a network, the system comprising:
The judging module is configured to determine whether the channel for transmitting data through the server network card and the server is unblocked when a management signal needs to be sent to the server to manage the virtual machine installed in the server;
The sending module is configured to send the management signal to the virtual machine management software of the server through the server management controller BMC of the server when the channel for data transmission through the network card and the server is not clear, so that the virtual machine management The software performs the management operation of the virtual machine according to the management signal; and the receiving module is configured to receive the feedback information sent by the virtual machine management software from the BMC.
如申請專利範圍第6項所述之虛擬機管理系統,所述判斷模組透過以下步驟判斷透過該網卡與伺服器進行資料傳輸的通道是否暢通:
透過所述網卡向伺服器發送一個詢問命令,請求伺服器在指定時間內透過該網卡發送回該詢問命令對應的回應資訊;
判斷在該指定時間內是否接收到該回應資訊,若在該指定時間內接收到該回應資訊,則判斷透過該網卡與伺服器進行資料傳輸的通道暢通,若在該指定時間未接收到該回應命令,則判斷透過該網卡與伺服器進行資料傳輸的通道不暢通。
For example, in the virtual machine management system described in claim 6, the determining module determines whether the channel for data transmission through the network card and the server is clear through the following steps:
Sending an inquiry command to the server through the network card, requesting the server to send back the response information corresponding to the inquiry command through the network card within a specified time;
Determining whether the response information is received within the specified time. If the response information is received within the specified time, it is determined that the channel for transmitting data through the network card and the server is unblocked, and the response is not received at the specified time. The command determines that the channel through which the network card and the server transmit data is not clear.
如申請專利範圍第6項所述之虛擬機管理系統,所述管理訊號包括標識資訊,該標識資訊用於標識該管理訊號用於管理伺服器中安裝的虛擬機。The virtual machine management system of claim 6, wherein the management signal includes identification information, and the identification information is used to identify the management signal for managing a virtual machine installed in the server. 如申請專利範圍第8項所述之虛擬機管理系統,所述BMC在接收到該管理訊號時,若在該管理訊號中解析出該標識資訊,則將該管理訊號發送至所述虛擬機管理軟體。In the virtual machine management system of claim 8, the BMC sends the management signal to the virtual machine management if the identification information is parsed in the management signal when receiving the management signal. software. 一種虛擬機管理系統,運行於管理主機中,該管理主機透過網路與伺服器連接並通信,該系統包括:
判斷模組,用於當需要向該伺服器發送管理訊號來管理伺服器中安裝的虛擬機時,判斷透過伺服器的網卡與伺服器進行資料傳輸的通道是否暢通;
發送模組,用於當透過該網卡與伺服器進行資料傳輸的通道不暢通時,將該管理訊號經伺服器的基板管理控制器BMC發送至伺服器的虛擬機管理軟體,使該虛擬機管理軟體根據該管理訊號執行所述虛擬機的管理操作;
所述發送模組,還用於當透過該網卡與伺服器進行資料傳輸的通道暢通時,將該管理訊號經伺服器的網卡發送至伺服器的虛擬機管理軟體,使該虛擬機管理軟體根據該管理訊號執行所述虛擬機的管理操作;
接收模組,用於當網卡與伺服器進行資料傳輸的通道一直保持不暢通,或者從暢通變成不暢通時,從該BMC接收該虛擬機管理軟體發送的回饋資訊;及
所述接收模組,還用於當網卡與伺服器進行資料傳輸的通道一直保持暢通,或者從不暢通變成暢通時,從該網卡接收該虛擬機管理軟體發送的回饋資訊。
A virtual machine management system running in a management host, the management host connecting and communicating with a server through a network, the system comprising:
The judging module is configured to determine whether the channel for transmitting data through the server network card and the server is unblocked when a management signal needs to be sent to the server to manage the virtual machine installed in the server;
The sending module is configured to send the management signal to the virtual machine management software of the server through the server management controller BMC of the server when the channel for data transmission through the network card and the server is not clear, so that the virtual machine management The software performs the management operation of the virtual machine according to the management signal;
The sending module is further configured to: when the channel for transmitting data through the network card and the server is unblocked, send the management signal to the virtual machine management software of the server via the network card of the server, so that the virtual machine management software is The management signal performs a management operation of the virtual machine;
The receiving module is configured to receive the feedback information sent by the virtual machine management software from the BMC when the channel for data transmission between the network card and the server is not smooth, or from the BMC to the non-clearing; and the receiving module, It is also used to receive the feedback information sent by the virtual machine management software from the network card when the channel for data transmission between the network card and the server is always clear, or when the channel is not smooth.
TW100125356A 2011-07-14 2011-07-18 Method and system for managing virtual machines TW201303733A (en)

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 (1)

Publication Number Publication Date
TW201303733A true TW201303733A (en) 2013-01-16

Family

ID=47483853

Family Applications (1)

Application Number Title Priority Date Filing Date
TW100125356A TW201303733A (en) 2011-07-14 2011-07-18 Method and system for managing virtual machines

Country Status (2)

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

Cited By (2)

* 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 method for providing virtual service for client
TWI588751B (en) * 2013-05-31 2017-06-21 聯想企業解決方案(新加坡)有限公司 Computer host with a baseboard management controller to manage virtual machines and method thereof

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108491347B (en) * 2018-04-02 2021-04-13 联想(北京)有限公司 Communication method and electronic device
CN117539588A (en) * 2023-10-12 2024-02-09 启朔(深圳)科技有限公司 Virtual machine management method and related device

Family Cites Families (4)

* 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
CN101471820B (en) * 2007-12-28 2011-06-15 英业达股份有限公司 Test method for substrate 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
CN101916207B (en) * 2010-08-28 2013-10-09 华为技术有限公司 Energy saving method, device and system under desktop virtual environment

Cited By (2)

* 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 method for providing virtual service for client
TWI588751B (en) * 2013-05-31 2017-06-21 聯想企業解決方案(新加坡)有限公司 Computer host with a baseboard management controller to manage virtual machines and method thereof

Also Published As

Publication number Publication date
CN102882698A (en) 2013-01-16
CN102882698B (en) 2016-08-03

Similar Documents

Publication Publication Date Title
US10986171B2 (en) Method for unified communication of server, baseboard management controller, and server
US11750486B2 (en) Device state management
US10698717B2 (en) Accelerator virtualization method and apparatus, and centralized resource manager
US11122023B2 (en) Device communication environment
US10547710B2 (en) Device gateway
US11895016B2 (en) Methods and apparatus to configure and manage network resources for use in network-based computing
US10958648B2 (en) Device communication environment
US9485323B1 (en) Managing pooled client-premise resources via provider-defined interfaces
US7962587B2 (en) Method and system for enforcing resource constraints for virtual machines across migration
US20090328038A1 (en) Computer System and Device Controlling Method for Computer System
US9973593B2 (en) Device gateway
US20100287262A1 (en) Method and system for guaranteed end-to-end data flows in a local networking domain
US8566847B2 (en) Out-of-band host management via a management controller
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
WO2017054129A1 (en) Network function virtualization resource processing method and virtualized network function manager
CN109194589B (en) MDC (media data center) implementation method and device
TW201303733A (en) Method and system for managing virtual machines
CN106452951A (en) Information processing method, device and system
KR20150088462A (en) Method for linking network device in cloud environment and apparatus therefor
WO2018010068A1 (en) Method and device for providing alert in network function virtualization environment
US20230353359A1 (en) Secure onboarding of external compute fabric in an edge horizontal platform
CN117076409B (en) File sharing method, device, system, electronic equipment and storage medium
US11656879B2 (en) Automated OS networking configuration system
WO2023241351A1 (en) Virtual machine monitoring method and apparatus, and storage medium