Home > Hyper-V, Hyper-V R2, Windows 2008 R2, Windows Server 2008 > Creation date wrong for snapshots on VMs imported to #Hyper-V 2008 R2

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.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: