The invention provides a method for
virtual machine online migration. The migration priority of a
virtual machine is set according to the updating hot degree of an internal storage page and a magnetic disc piece. According to the internal storage page and the magnetic disc piece of the
virtual machine needing migration, migration of the virtual
machine is conducted according to the sequence of the migration priority from high to low, and data in the virtual
machine are copied into a target side until the total quantity of the data needing migration in a virtual
machine internal storage and a magnetic disc is smaller than a preset halt threshold value; operation of the virtual machine is paused and the data needing migration in the virtual machine internal storage and the magnetic disc are copied into the target side at a time. According to the method, useless migration data generated in the process of online migration of the virtual machine can be reduced, so that resources of a network bandwidth, a
host machine CPU, the internal storage and the like are saved, virtual machine online migration which cannot be accomplished or is difficult to accomplish in a reasonable time can be found in time, a user or a manager can take corresponding measures, and therefore the user efficiency of the resources and the quality of a cloud service on the
cloud computing environment are improved.