Wednesday, August 18, 2010 1:04 AM
Creation date wrong for snapshots on VMs imported to Hyper-V 2008 R2
I think this forum post is deserve sharing
Situation : Windows Server 2008 R2 with latest patches (SP1 beta is NOT installed)
Windows Server 2008 SP2 with latest patches
CreationTimes for snapshots of virtual machines that were originally created on the same server are correct.
CreationTimes for snapshots of virtual machines that have been exported/imported between 2008 SP2 virtual hosts are correct.
But CreationsTimes for snapshots of virtuals that have been exported and imported onto 2008 R2 virtual hosts are incorrect.
Cause of the issue: As per Vincent Hu Hyper-V product team is aware of it.
For CreationTime property we rely on configuration file creation
time until someone calls SetCreationTime() on configuration. Once
SetCreationTime is called, we add a property, "creation_time", to
config xml file and subsequent GetCreationTime() call will get its value
from this property. While taking snapshot we do not call
SetCreationTime() and hence, after import, the newly created snapshots
also get incorrect creation time.
Here is the workaround: Removing the creation_time data from the vm's configuration file.