This application relates to a
virtual machine recovery method, apparatus,
computer device, readable storage medium, and program product, belonging to the field of data protection and
recovery technology, and can improve the versatility of instant
recovery. The method includes: creating a state
machine and entering the
system mounting phase of the state
machine; in the
system mounting phase, mounting a logical
file system created based on snapshot data of the failed
virtual machine to a local
directory on a
backup server; in the
system sharing phase, sharing the local
directory of the
backup server with the platform
server of the
virtualization platform based on a common
network file system protocol, so that the platform server mounts the local
directory of the
backup server; in the
virtual machine startup phase, creating a normal virtual
machine in the local directory of the backup server to trigger the platform server to run the normal virtual machine based on the snapshot data in the local directory of the backup server; wherein, when a
rollback trigger event is detected, the state machine is used to execute the corresponding
rollback operation according to the phase in which the state machine is located.