Steps to make a working copy of a virtual drive Hyper-V

jana
jana used Ask the Experts™
on
We have a Hyper-V VPC windows 7 pro running in it.  We would like to copy of that VPC so we can run other installs and test on the copy.  We previously just copy the vhdx file and in the Hyper-V manager created a new VPC pointing to the copied file.  

We would to make sure we are doing this correctly.  What are the proper steps to make a copy of a working VPC and have it up and running.

Please advice.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2016
Commented:
What you are doing is the correct way if this o/s is sysprepped and only used as a master.  Otherwise you will end up with duplicate names on the network and other problems.  What you can do to minimize disk space is to make it the master of a differencing disk

Author

Commented:
Thanx.  

What is sysprepped? (never did this)

Also what do you mean by "only used as a master"?

Note:
When we said we copied the data  we just went into the folder of the VPC to copy and copied the "Virtual Machines" folder and the ".vhdx" file" (see pix)

vpc copy from-to(we left the copy running last night)
Philip ElderTechnical Architect - HA/Compute/Storage
Commented:
Copy the VHDX file, create a new VM and attach the VHDX file. Attach the nNIC to a Private vSwitch to keep the VM copy off the production network.

EDIT: If the VM copy needs Internet access but must remain isolated then stand up a small VM (256MB vRAM, 1 vCPU) with 2008 R2 and configure with two vNICs. One Private and one on the Product network. Set up RRAS to NAT between the private and production networks.
CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

Author

Commented:
Question:
When finish setting up the copy, will it request an activation keys for windows os?
Philip ElderTechnical Architect - HA/Compute/Storage

Commented:
If you are going like to like version wise in Hyper-V probably not.

slmgr -rearm
reboot.

You should be okay for at least a 3 day minimum period.

Author

Commented:
Don't understand your entry.  What do you mean?
Commented:
Update:

We did a successful working copy of a virtual drive Hyper-V using the actual Hyper-V manager.  This is what we did:

- open Hyper-V Manger
- select the VM to copy Right click on it
- select the export option and set the folder path to export
- start.
- Afterward, Copy the exported folders to the intended VM server.
- open Hyper-V manager.
- right-click on Hyper-V server name
- select the folder path where the VM was Exported.
- Click Next.
- make sure that all is correct
- Click Next
- Select the Import mode as per your requirement.
- Done!

It's been 3 days and no activation of windows keys.

Seems all ok.

Have we missed a step?

Please advice.
Philip ElderTechnical Architect - HA/Compute/Storage
Commented:
Looks good. If the VM is functional on the destination Hyper-V you are good to go.
Philip ElderTechnical Architect - HA/Compute/Storage

Commented:
I meant that the VM should be okay if transferring between two Hyper-V servers/desktops of the same version and patch level.

The slmgr step is done from an elevated command prompt to reset the activation timer in the OS.

Author

Commented:
Ok Thanx!

Will proceed to close.
Philip ElderTechnical Architect - HA/Compute/Storage

Commented:
You can close the ticket on your own without mod intervention. :)

Author

Commented:
It's ok.  Even though we did not actually use the recommendations, we were going, and they make sense.   We 'll leave like this.

Note:
Based comments here made us search more for the solution.

So again, thanx!

Author

Commented:
We include our entry within the comments and "Best Solution" since it's what has been working these days.

Tahxn all!

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial