The application relates to the field of servers and discloses a
virtual machine password resetting method and device and a medium, which comprises the following steps: when a reconstruction instruction is detected, a reconstruction image file corresponding to the reconstruction instruction is acquired, so as to reconstruct a
virtual machine according to the reconstruction image file; it is judged whether the reconstruction image file is a
virtual machine snapshot, if the reconstruction image file is the virtual
machine snapshot, a first identifier of the virtual
machine corresponding to the virtual
machine snapshot is modified to obtain a reconstruction snapshot, wherein the virtual machine has the first identifier and a second identifier, the first identifier is a
universally unique identifier, and the second identifier is a
unique identifier in a virtual machine platform; a reconstruction virtual machine is created according to the reconstruction snapshot, and a virtual machine initialization process is called to reset the
password of the reconstruction virtual machine. According to the application, the first identifier and the second identifier are arranged in the virtual machine, and the first identifier is modified when a reconstruction virtual machine is created by using an initial virtual machine image snapshot, so that the initialization process can run in the reconstruction virtual machine to reset the
password.