Hyper-V: How to "clone" a VM?

Master_Pain

Supreme [H]ardness
Joined
Apr 13, 2007
Messages
4,947
Extremely new to Hyper-V and I have to clone a VM in the morning.

Here is what I have (Windows VMs):
VM to be cloned (2 VHDs)
VM to be overwritten

Here's how I understand the cloning process:
1. Shut down both VMs.
2. Export both of the VHDs from the first VM.
3. Go into the second's settings and point the two drives to the exported VHDs.
4. Start both VMs back up, test.

Does that process seem correct?

Sidenote, I know snapshots and the VMs being on a domain would mess with this, but neither apply in this situation.
 
If you're running Hyper-V 2012 R2 you should be able to export the VM even while it's running. You can also use the Export-VM commandlet in Powershell to do this.
 
You don't need a VM to be overwritten. You can export the VM, then start it back up. Then import that image as a new VM with a new machine config ID (this will be one of the options during import).

You really should sysprep the machine first though, but since it's not in a domain, duplicate SIDs shouldn't be a problem.
 
We do a P2V even when cloning other Virtuals in our 2008 environment. It works well when updating our Dev environment for the purpose of testing SharePoint stuff.
 
Back
Top