Summary of the invention
In view of the foregoing, it is necessary to provide a kind of virtual machine management method, this Virtual Machine Manager signal can be transmitted by the BMC of this server to this server when Virtual Machine Manager signal cannot be transmitted by the network interface card of server to this server, thus manages the virtual machine in this server.
There is a need to provide a kind of virtual machine management system, can be when Virtual Machine Manager signal cannot be transmitted by the network interface card of server to this server, transmit this Virtual Machine Manager signal by the BMC of this server to this server, thus manage the virtual machine in this server.
A kind of virtual machine management method, it is applied to manage in main frame, this management main frame is connected with server by network and is communicated, 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, it is judged that the passage carried out data transmission by the network interface card of server and server is the most unimpeded;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, from this BMC, the feedback information that this Virtual Machine Manager software sends.
A kind of virtual machine management method, it is applied to manage in main frame, this management main frame is connected with server by network and is communicated, 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, it is judged that the passage carried out data transmission by the network interface card of server and server is the most unimpeded;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;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.
A kind of virtual machine management system, run in management main frame, this management main frame is connected with server by network and is communicated, this system includes: judge module, for when needing to send, to this server, the virtual machine that management signal manages installation in server, it is judged that the passage carried out data transmission by the network interface card of server and server is the most unimpeded;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.
A kind of virtual machine management system, run in management main frame, this management main frame is connected with server by network and is communicated, this system includes: judge module, for when needing to send, to this server, the virtual machine that management signal manages installation in server, it is judged that the passage carried out data transmission by the network interface card of server and server is the most unimpeded;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;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.
Compared to prior art, virtual machine management method of the present invention and system, this Virtual Machine Manager signal can be transmitted by the BMC of this server to this server when Virtual Machine Manager signal cannot be transmitted by the network interface card of server to this server, thus manages the virtual machine in this server.
Detailed description of the invention
Refering to shown in Fig. 1, it it is the running environment figure of virtual machine management system preferred embodiment of the present invention.In the present embodiment, during this virtual machine management system 10 runs on management main frame 100.This management main frame 100 is connected by network with the multiple servers of data center (in figure as a example by any one station server 200) and communicates.
Being provided with one or more virtual machine 20, and a Virtual Machine Manager software 21 in this server 200, this Virtual Machine Manager software 21 can be the farsighted software virtual machine of prestige (VMware), Hypervisor software or Xen virtual machine monitoring software etc..This server 200 also includes BMC22 and network interface card 23.Wherein, this BMC22 includes the BMC network port 220, and management main frame 100 is connected with this BMC22 by this BMC network port 220 and communicates, thus realization is to the hardware monitoring of server 200 and power supply control.This network interface card 23 includes network interface card port 230.Management main frame 100 is connected with network interface card 23 also by this network interface card port 230 and communicates, the passage carried out data transmission with server 200 by network interface card 23 foundation.
Management main frame 100 is for sending, to server 200, the management signal being managed this virtual machine 20, thus calls described Virtual Machine Manager software 21 and be managed virtual machine 20, as controlled virtual machine 20 and start shooting, shut down, restart, hanging up, migration etc..This management signal generally follows HTTP(HyperTextTransferProtocol, HTML (Hypertext Markup Language)) packet of form.Comprising identification information in this management signal, this identification information identifies this management signal for the virtual machine 20 managing in server 200.Management main frame 100 can send this management signal through this BMC22 or network interface card 23 to server 200.
Refering to shown in Fig. 2, it it is the functional block diagram of virtual machine management system preferred embodiment of the present invention.This virtual machine management system 10 includes first sending module the 101, first receiver module 102, judge module the 103, second sending module 104 and the second receiver module 105.
First sending module 101 is for when needs send this management signal to server 200, an inquiry command is sent to server 200 by network interface card 23, this inquiry command for request server 200 at the appointed time, sent back, by network interface card 23, the echo message that this inquiry command is corresponding in 0.5 second.
First receiver module 102 is for receiving this echo message that server 200 is sent by network interface card 23.
Judge module 103 is for judging whether the first receiver module 102 receives this echo message within this appointment time, thus judges by network interface card 23 the most unimpeded with the passage that server 200 carries out data transmission.If the first receiver module 102 receives this echo message within this appointment time, then judge module 103 judges the channels open carried out data transmission by network interface card 23 with server 200, this management signal can be sent to server 200 by network interface card 23, if the first receiver module 102 does not receives this echo message within this appointment time, then judge module 103 judges by network interface card 23 not smooth with the passage that server 200 carries out data transmission, it is impossible to send this management signal by network interface card 23 to server 200.
Second sending module 104 for when by network interface card 23 not smooth with the passage that server 200 carries out data transmission time, by this management signal transmission to BMC22.After BMC22 receives this management signal, whether this management signal of parsing being contained described identification information, if containing this identification information in this management signal, then this management signal is sent to Virtual Machine Manager software 21 by BMC22 by serial ports.
Second sending module 104 is additionally operable to when the channels open carried out data transmission with server 200 by network interface card 23, sends this management signal to network interface card 23.After network interface card 23 receives this management signal, whether this management signal of parsing being contained described identification information, if containing this identification information in this management signal, then this management signal is sent to Virtual Machine Manager software 21 by network interface card 23.
Virtual Machine Manager software 21 performs the management operation of virtual machine 20 according to this management signal, and send a feedback information to management main frame 100, this feedback information includes whether the management operation of virtual machine 20 runs succeeded, the IP address of virtual machine 20, the information such as IP address of server 200.
Specifically, if the passage that network interface card 23 and server 200 carry out data transmission is always maintained at not smooth, or become not smooth from unimpeded, then Virtual Machine Manager software 21 sends this feedback information by BMC22 to management main frame 100;If the passage that network interface card 23 and server 200 carry out data transmission is always maintained at unimpeded, or become unimpeded from not smooth, then Virtual Machine Manager software 21 sends this feedback information by network interface card 23 to management main frame 100.
Second receiver module 105 is for this feedback information sent from server 200 sink virtual machine management software 21.Specifically, if the passage that network interface card 23 and server 200 carry out data transmission is always maintained at unimpeded, or become unimpeded from not smooth, then this feedback information that the second receiver module 105 sends from network interface card 23 sink virtual machine management software 21.If the passage that network interface card 23 and server 200 carry out data transmission is always maintained at not smooth, or become not smooth from unimpeded, then this feedback information that the second receiver module 105 sends from BMC22 sink virtual machine management software 21.
Refering to shown in Fig. 3, it it is the flow chart of virtual machine management method preferred embodiment of the present invention.
Step S01, when needing to send, to server 200, the management signal that virtual machine 20 is managed, first sending module 101 within a specified time by network interface card 23 sends back echo message that this inquiry command corresponding to 200 inquiry commands of server, this inquiry command for request server 200 by network interface card 23.
Step S02, it is judged that module 103 judges whether the first receiver module 102 receives this echo message within this appointment time, thus judges by network interface card 23 the most unimpeded with the passage that server 200 carries out data transmission.If the first receiver module 102 does not receives this echo message within this appointment time, then judge module 103 judges by network interface card 23 not smooth with the passage that server 200 carries out data transmission, enter step S03, if the first receiver module 102 receives this echo message within this appointment time, then judge module 103 judges the channels open carried out data transmission by network interface card 23 with server 200, enters step S04.
Step S03, this management signal is sent to BMC22 by the second sending module 104.After BMC22 receives this management signal, whether this management signal of parsing being contained described identification information, if containing this identification information in this management signal, then this management signal is sent to Virtual Machine Manager software 21 by BMC22 by serial ports.Virtual Machine Manager software 21 performs the management operation of virtual machine 20 according to this management signal, and sends a feedback information to management main frame 100, then performs step S05.This feedback information includes whether the management operation of virtual machine 20 runs succeeded, the IP address of virtual machine 20, the information such as IP address of server 200.
Specifically, if the passage that network interface card 23 and server 200 carry out data transmission becomes unimpeded from not smooth, then Virtual Machine Manager software 21 sends this feedback information by network interface card 23 to management main frame 100;If the passage that network interface card 23 and server 200 carry out data transmission remains in that not smooth, then Virtual Machine Manager software 21 sends this feedback information by BMC22 to management main frame 100.
Step S04, this management signal is sent to network interface card 23 by the second sending module 104.After network interface card 23 receives this management signal, whether this management signal of parsing being contained described identification information, if containing this identification information in this management signal, then this management signal is sent to Virtual Machine Manager software 21 by network interface card 23.Virtual Machine Manager software 21 performs the management operation of virtual machine 20 according to this management signal, and sends described feedback information to management main frame 100, then performs step S05.
Specifically, if the passage that network interface card 23 and server 200 carry out data transmission becomes not smooth from unimpeded, then Virtual Machine Manager software 21 sends this feedback information by BMC22 to management main frame 100;If the passage that network interface card 23 and server 200 carry out data transmission remains in that unimpeded, then Virtual Machine Manager software 21 sends this feedback information by network interface card 23 to management main frame 100.
Step S05, the second receiver module 105 is for this feedback information sent from server 200 sink virtual machine management software 21.
Specifically, if the passage that network interface card 23 and server 200 carry out data transmission is always maintained at unimpeded, or become unimpeded from not smooth, then this feedback information that the second receiver module 105 sends from network interface card 23 sink virtual machine management software 21.If the passage that network interface card 23 and server 200 carry out data transmission is always maintained at not smooth, or become not smooth from unimpeded, then this feedback information that the second receiver module 105 sends from BMC22 sink virtual machine management software 21.
In other embodiments, if the second sending module 104 can also be set sends this management signal to BMC22, then no matter network interface card 23 is the most unimpeded with the passage that server 200 carries out data transmission, this feedback information that the second receiver module 105 all sends from BMC22 sink virtual machine management software 21.
Above example is only in order to illustrate technical scheme and unrestricted, although the present invention being described in detail with reference to preferred embodiment, it will be understood by those within the art that, technical scheme can be modified or equivalent, without deviating from the spirit and scope of technical solution of the present invention.