The invention discloses a method and a device for management of a
virtual machine. The method for the management of the
virtual machine includes that information about the state of the
virtual machine of a
server can be collected, and the information, reported by the
server, about the state of the virtual
machine is received; and then the state of the virtual
machine is determined based on the collected and received information about the state of the virtual
machine, and the virtual machine is managed based on the determined state. Through the method, the information about the state of the virtual machine can be collected in a real-time mode, operational problems caused by inconsistency between the
server and virtual machine states are avoided, and the effect that the server can effectively manage the virtual machine in real time is achieved. Warning messages can be sent out when various types of anomalies show up in a
system, so that a user can be prevented from misoperation without knowing about a situation; and based on an
intermediate state, a series of judgments and
processing tasks can be performed to attempt to restore the virtual machine to be back in the state before a failure.