Solved

Preserving Hyper-V virtual machines during operating system re-install

Posted on 2015-02-11
5
371 Views
Last Modified: 2015-02-12
Hi

I've inherited a Hyper-V 2008 Server ( no GUI) which has two partitions.  The C: partition contains the host OS and the VHD for the site's DC/main server.  The F: partition contains two other VHDs for servers running Exchange and some application software.  Because of space limitations the DC virtual disk can't be moved off the system partition.

We want to upgrade the system to Server 2012 Standard Edition i.e. with a GUI.  As I understand it, there is no support for an in-place upgrade between 2008 Hyper-V server and 2012 Standard.  

So, we have to do a fresh OS install.  I am hoping to do a 2012 custom installation and install the new OS onto the existing partition i.e. not formatting it and thus preserving the VHD that is already there.  

Before we crack on with this I'd be grateful if someone could confirm that what I'm suggesting is actually valid.  Also, assuming it is, what happens to the 2008 OS files?  Are they simply renamed to Windows.old?

Many thanks

Mark.
0
Comment
Question by:MarkoIreland
  • 2
  • 2
5 Comments
 
LVL 38

Expert Comment

by:Philip Elder
ID: 40604357
We always install our hosts in the following manner:
 C: Host OS Only
 X: Data/VHDX/Configuration Files

With a properly configured dual partition layout we can flatten the host at any time or recover the host at any time without an issue. The import process in 2012 R2 is fantastic. Little if any tweaking of the VM's own OS is required after being imported. Integration Services would need to be updated.
0
 

Author Comment

by:MarkoIreland
ID: 40604386
Yes, this is the way I would configure a new server.  Unfortunately, we are bound with what is already there. I would love to move the DC vhd off the system partition but there is no room and no prospect of getting more hardware.
0
 
LVL 38

Expert Comment

by:Philip Elder
ID: 40604597
Back up the VM(s) on the C:, flatten, re-install the new OS, update, and configure.

Restore the backed up VM(s) after setting up the base VM configuration on the newly installed host.
0
 
LVL 24

Accepted Solution

by:
VB ITS earned 500 total points
ID: 40604975
Easiest way to do this would be to export the DC VM to an external USB drive (make sure you shut down the VM first), install the new host OS, then import the VM back into Hyper-V.

As a precaution you could also take a System State backup within the DC itself. This will let you restore from the backup in case something happens to the exported VM files.

I'd also make a copy of the VHD file(s) for the DC VM on a separate USB drive as you can always build a new VM in Hyper-V and attach the VHD file to that. Just note that with this method you will need to reconfigure the NIC settings again.

Make sure you note down the following before you blow away the old host VM:
- Virtual Switch configuration
- TCP/IP settings of the DC itself
- Locations of VHD and VM configuration files

This article doesn't exactly apply to your situation but there are some parts that are relevant: http://blogs.technet.com/b/tommypatterson/archive/2013/02/15/migrating-hyper-v-virtual-machines-from-server-2008r2-to-server-2012-part-10-of-the-migration-and-deployment-series.aspx
0
 

Author Comment

by:MarkoIreland
ID: 40605118
Thanks.  Will be taking a backup to external drives anyway as part of the process, but perhaps it would be cleaner just to wipe C: as you say and then re-import the VM.
0

Featured Post

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Windows 2012 R2 Terminal Server 3 33
Certificate error in RDP Servers 5 31
PowerShell: How to output error msg into file but with date? 5 24
EXCH2013 IIS 4 12
A safe way to clean winsxs folder from your windows server 2008 R2 editions
In this article, I am going to show you how to simulate a multi-site Lab environment on a single Hyper-V host. I use this method successfully in my own lab to simulate three fully routed global AD Sites on a Windows 10 Hyper-V host.
This tutorial will walk an individual through the process of configuring basic necessities in order to use the 2010 version of Data Protection Manager. These include storage, agents, and protection jobs. Launch Data Protection Manager from the deskt…
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …

839 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