Patent ID: 11886902
Assignee: XI'AN ZHONGXING NEW SOFTWARE CO., LTD.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 12:
13. A Physical to Virtual (P2V) migration apparatus, comprising:
a processing module, configured to transmit disk data of a Physical Machine (PM) to a server, wherein the disk data is used by the server to create and start a Virtual Machine (VM) based on the disk data of the PM;
an acquisition module, configured to acquire a first dirty data generated by running of a program on the PM in a transmission process of the disk data of the PM;
an update module, configured to update, based on the acquired first dirty data, the disk data for creating the VM; and
a control module, configured to control, based on the updated disk data for the VM, the VM to take over the program run by the PM;
wherein the acquisition module is further configured to:
monitor a file corresponding to the program running on the PM in the transmission process of the disk data of the PM to form a record file;
transmit the record file to the VM to obtain a check code generated and returned by the VM based on the record file;
calculate a check code of a local file corresponding to the program;
sequentially read the calculated check code according to a file offset;
respectively match the check code read each time with the check code returned by the VM; and
determine data failed in matching as the first dirty data generated by running of the program on the PM.