The invention discloses an apparatus and a method for migrating a 
virtual machine, where a 
client is located, among different hosts, and aims to ensure 
business continuity and shorten migration 
delay. The apparatus comprises a resource scheduler module and a resource configuration module, wherein the resource scheduler module is used for obtaining a 
mirror image of a first 
virtual machine located in a first host and running a 
server; the 
client runs in a second 
virtual machine of the first host; the obtained 
mirror image is installed and runs in a second host which the 
client is migrated to, thereby generating a third virtual 
machine; the 
server runs in the third virtual 
machine; and the resource configuration module is used for adding a forwarding flow entry in the second host. By installing and running the 
mirror image, information required for accessing data in a 
network storage medium by the client is migrated to the second host, and old information still can be used after the client is migrated, so that the 
business continuity is ensured; and by adding the forwarding flow entry, a 
data access request of the client is forwarded to a new virtual 
machine, and the client does not need to re-establish a connection with a new 
server, so that the migration duration is shortened.