Method and apparatus for save/restore state of virtual machine

A method and an apparatus for storing and recovering the state of a virtual machine are provided to store frequently only a difference between the state of the virtual machine stored in the past and the current state of the virtual machine, thereby minimizing time delay generated when the virtual machine moves to the other hardware platform. By comparing the state of a second virtual machine(220) prestored in a storage device(240) and the current state of the second virtual machine, an apparatus determines whether a change occurs in the state. Base on the determination result, the state of the second virtual machine is selectively stored in a predetermined storage device. Only data of a page in which the change occurs is stored in the storage device. The state of the second virtual machine is the data of allocated memory.