Friday, March 11, 2011

Help to restore a lost vmx-file from a *.vmsn


A *.vmss file = Virtual machine snapshot is a binary file with metadata for the snapshot.
It has a copy of the vmx-file at a fixed location and so we use dsfo.exe again - or dd on Linux.

dsfo.exe vm1.snapshot.vmsn 100 10000 vm1.vmx

Use the below command to edit and reinject the vmx-file into the *.vmsn use
dsfi.exe vm1.snapshot.vmsn 100 10000 vm1.vmx

On Linux extract with
dd if= vm1.snapshot.vmsn of=vm1.vmx bs=1 skip=100 count=10000

To inject use
dd if=vm1.vmx of= vm1.snapshot.vmsn bs=1 skip=100 count=10000

How to restore a lost vmx-file from a *.vmss

A vmss-file = Virtual machine suspended state also has a copy of the vmx file that was used.
The location inside the binary file varies so no extraction command can be given.

 

No comments:

Post a Comment