Virtualization technology has been very popular in recent years since it can provide good server consolidation, independence and manageability. The most valuable and striking aspect is the dynamic migration for virtual machine. Aiming at longer time and memory pages repeated retransmission in the process of memory pre-copy, the traditional dynamic migration framework for virtual machine was improved, probability prediction module and memory compression module was added to the framework in this paper. A working set calculating algorithm based on dirty page probability prediction was proposed. By compressing memory pages in the migration field, the amount of data migration is reduced and the network burden is lowered. Probability prediction algorithm and memory compression algorithm was put forward, data structures of the two algorithms and design ideas was described. Experimental results show that the framework can effectively improve migration performance.