Physical-to-virtual migration method and apparatus, and storage medium
AssigneeXi'an Zhongxing New Software Co., Ltd.
InventorsYao Tong, Hua Li, Guang Shen
Life of this patent
Estimating the term…
Abstract
Disclosed are a Physical to Virtual (P2V) migration method and apparatus, and a storage medium. The method includes that: disk data of a Physical Machine (PM) is transmitted 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; a first dirty data generated by running of a program on the PM in a transmission process of the disk data of the PM is acquired; the disk data for creating the VM is updated based on the acquired first dirty data; and based on the updated disk data for the VM, the VM is controlled to resume running the program based on a progress of the program.
Claims15
A Physical to Virtual (P2V) migration method, comprising:
- transmitting 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;
- acquiring a first dirty data generated by running of a program on the PM in a transmission process of the disk data of the PM;
- updating, based on the acquired first dirty data, the disk data for creating the VM;
- and
- controlling, based on the updated disk data for the VM, the VM to resume running the program based on a progress of the program;
- wherein acquiring a first dirty data generated by running of a program on the PM in a transmission process of the disk data of the PM comprises:
- monitoring, in the transmission process of the disk data of the PM, a file corresponding to the program running on the PM to form a record file;
- transmitting the record file to the VM to obtain a check code generated and returned by the VM based on the record file;
- calculating a check code of a local file corresponding to the program;
- sequentially reading the calculated check code according to a file offset;
- respectively matching the check code read each time with the check code returned by the VM;
- and
- determining data failed in matching as the first dirty data generated by running of the program on the PM.
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.
Dependencies are inferred from the claim text.