Avatar of bhieb
 asked on

Upgrade Hyper-V 2008 Datacenter to 2012 R2

Our primary hyper-v host is running 2008 and I plan to upgrade it to 2012 R2. My question is regarding the guests. I don't mind the downtime over a weekend, so I don't plan on setting up a temporary server. The guests are on a separate raid, can I re-install the os/host then point them to the guest vm's or do I have to do an export/import of each one? Pretty sure I know the answer is do an export/import, but that adds a lot of downtime, since I'm only rebuilding the host.

Avatar of undefined
Last Comment
Patrick Bogers

8/22/2022 - Mon
Patrick Bogers

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question

Really? Interesting so you are saying if I shut one down. Copy it to a different machine and use the import option it will work? I thought there was some internal ID that that would cause it to fail.
Patrick Bogers

I believe so Yes.
Internal id errors occur when you create a new vm and attach a foreigh vhd(x) to it if i remember correctly.

I'll test it out and see what happens.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
Patrick Bogers

Thats always best practise!

BTW: You need not only the vhd right, snapshots and config files should also be copied.
(Sure you know but just for completeness)

Yep, no snapshots so all good there, my VHD's are in a subfolder of the VM config so I'll take the whole thing.

Worked fine Patrick except for one gotcha. FYI to others.

I could not import the VM since it was on 2008 NON-R2. The approved way is to rebuild the VM using the VHD's, but that can be a pain. Found a solution to modify the XML here.


Here are the steps.
Open the xml config file with a serious editor ( I use Notepad ++, but you could use XML notepad)

Locate the <properties> section

At the end of the section add this line: <version type="integer">512</version>

Be sure to add the line in the right position, before </properties>

Done, now your VM will be recognized as It was created on an Hyper-V 2008 R2!

Open in new window

Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
Patrick Bogers

This is why i love EE so much, one helps from experience, blindly trust everything is R2 and at the end learn something to never forget again.
Thank you for this feedback.