Solved

Hyper V - Moved to another physical box and now database is a couple of months out of date - How do I change snapshots?

Posted on 2010-08-24
4
431 Views
Last Modified: 2013-11-06
Dear Experts,

I have moved a HyperV virtual machine from one physical box to another.

However, the VM is running our finance software and when we have booted the VM on the new physical box, the database is not current (about 2 months out of date)

To move the VM, I just copied the whole of the VM directory containing all the VHD's, snapshots, etc, and created a new VM on the new host and attached the VHDs.

Can anyone advise what might have happened?

Many thanks.
0
Comment
Question by:andymellor
4 Comments
 
LVL 7

Expert Comment

by:50cal
ID: 33509264
I believe you have to shut down the VM to apply the latest changes to the snap shot file. How you should see it is all changes made to the VM are applied to the snapshot file not the base VHD file.

50cal.
0
 
LVL 22

Expert Comment

by:mutahir
ID: 33511416
http://blogs.technet.com/b/roblarson/archive/2008/04/26/virtual-machine-snapshots-with-hyper-v.aspx

Merging Snapshots (Automatically) as advised by 50Cal (but gives you a good concept)
http://social.technet.microsoft.com/wiki/contents/articles/hyper-v-concepts-snapshots.aspx

---

Shutdown the VM, wait for the snapshots to merge


Not related to snapshots - but might be helpful :
If the hardware of the new server is different to then of the original Hyper-v host for this VM, un-install and re-install
Integration services as well.
0
 
LVL 15

Accepted Solution

by:
msmamji earned 500 total points
ID: 33512091
Just so that I understand you right, you moved the VM hosting folder from one Hyper-V server to the other, In order to move the VM.
In order to move a VM you should you use export/import feature of Hyper-V. So if you haven't deleted the VM on the original server, I suggest you use the export feature on it and then import the VM on the other server.
If, however, that is not the case and you have deleted the VM and all its files (VHDs, AVHDs) then this is what you do.

In order to make use of the VHD and AVHD files on the new server, you need to remember the last snapshots .avhd file and use that as the vhd in the new VM properties. (This would have been easy on the original server since you have the creation date on the AVHD file, you can check. But since you copies to them new server, all of them would have the same creation date.)

If you are able to figure out the latest AVHD file, you might also have to build the VHD, AVHD parent-child chain, since the AVHD file is a differencing disk connected to its parent  and the new Hyper-V server is not aware of such hierarchy. You would use the Inspect VHD option to do this. This would require you know the exact parent-child hierarchy. Once you are able to build the chain, you would be good to go.
I do expect (fear) one more thing, since you opened the new VM using the VHD file, evidently making changes to the VHD, you parent-child relationship b/w VHD and AVHD. You AVHD files might be of no use  to you since the VHD file they are linked to has changed.

I believe, now you would understand, why it is recommended to use export/import for such matters.

Regards,
Shahid
0
 

Author Closing Comment

by:andymellor
ID: 33680193
Guidance good although didnt resolve my problem
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction RemoteFX is already in use today, but you're probably not aware of it.  With the advent of Windows 2012 and Windows 8, RDP has gotten a whole lot better due to the fact that RDP now uses even more RemoteFX technologies to make desktop …
Introduction In one of my previous articles (http://www.experts-exchange.com/Microsoft/Applications/Virtual_Server/Hyper-V/A_10686-Creating-a-Hyper-V-Cluster-on-Windows-2012.html), I explained how to create a native Windows 2012 Cluster.  The metho…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
A company’s greatest vulnerability is their email. CEO fraud, ransomware and spear phishing attacks are the no1 threat to a company’s security. Cybercrime is responsible for the largest loss of money to companies today with losses projected to r…

930 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now