Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Difference between copy, clone and export VHD file

Posted on 2014-03-27
13
Medium Priority
?
4,223 Views
Last Modified: 2014-03-29
Hi, we have a Win2008R2 Hyper-V server running with several VMs.  I would like to copy one of the VM's to an external drive and test it out at home on my home lab.
Can I simply copy the vhd file or what is the difference between copying, cloning and exporting the VM?
0
Comment
Question by:Soho_Dan
  • 5
  • 4
  • 3
  • +1
13 Comments
 
LVL 11

Expert Comment

by:Manjunath Sullad
ID: 39960758
0
 
LVL 35

Assisted Solution

by:Dan Craciun
Dan Craciun earned 664 total points
ID: 39960768
If you want to move the VM to another machine, you need to use export, to preserve the settings and snapshots.
See here: http://www.petri.co.il/importing-and-exporting-your-virtual-machines.htm

Clone creates a copy of the current VM. In Hyper-V you copy/paste/rename the source VHD(X) then attach it to a new VM.
See here: http://www.anotherwindowsblog.com/2013/04/creating-vm-clones-in-microsoft-hyper-v.html

HTH,
Dan
0
 
LVL 11

Accepted Solution

by:
Pradeep Dubey earned 1336 total points
ID: 39960812
Hi,
You need VM to be tested in your home lab so just copy the VHD file ( make sure there is no snpashot of the VM If yes then consolidate then copy) and bring it to your home. At home create a VM and connect this VHD and enjoy with the same VM.
Things to be remember :
In the VM @home make sure disk controller are same.


If your VM have snapshots and you dont want to consolidate them then use export option. This will be doing all the things for you and copy to the destination (used for export) with each and every file along with the VM settings.
@home you have to import this VM and enjoy with the same settings..

Clone and export option is for the VM which is running and you dont want to shutdown it. After cloning it will make same copy of the VM and then export it for you.

Let me know if you have any confusion.
0
Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

 

Author Comment

by:Soho_Dan
ID: 39960823
Pradeep, so you're saying if I copy the vhd file, I have to shutdown the VM first?

If I were to export or clone the VM, will this slow down the VM?  Just want to know if I can do this during the day (working hours).
0
 
LVL 35

Expert Comment

by:Dan Craciun
ID: 39960827
It will slow down the I/O operations (as you are reading/writting a large amount of data) for the duration of the export operation.

Btw, I recommend to always use export. This way you don't have to remember the old VM settings, it's all there.
0
 

Author Comment

by:Soho_Dan
ID: 39960829
If I use the export feature, can I select the location of the exported VM?  I wish to export to an external USB drive.
0
 
LVL 35

Expert Comment

by:Dan Craciun
ID: 39960830
Yup.
0
 
LVL 11

Assisted Solution

by:Pradeep Dubey
Pradeep Dubey earned 1336 total points
ID: 39960831
Yes for copying the VHD file VM need to be shutdown as it is in use and will not allow you to copy it.

Export VM will make it slow as Dan already said.

Clone and export will not harm running VM during the clone only it will be slightly slow.

Yes you can specify the path during the export.
0
 

Author Comment

by:Soho_Dan
ID: 39960834
Thanks guys for the answers!  I do have one more.

What does a backup software do when it backs up a VM?
0
 
LVL 35

Expert Comment

by:Dan Craciun
ID: 39960838
Depends on the guest.

For Windows/supported guests it takes a snapshot and backups that, without shutting down the VM.

For Linux/unsupported guests, it shuts down the VM and backs up a saved state.
0
 
LVL 11

Expert Comment

by:Pradeep Dubey
ID: 39960845
thats depend upon the software.

If you are using a software which installed in the VM will take backup of the VM's internal disk.

If you are using a software which takes VM's backup will copy the VM's disk.

please specify the backup software or start a new question with the backup tags.
0
 

Author Closing Comment

by:Soho_Dan
ID: 39960851
Thank you! I will open a new thread about backing up VMs.
0
 

Author Comment

by:Soho_Dan
ID: 39964501
Just FYI, the export option is not available if the VM is still running.  I have to shutdown the VM.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

The following article is comprised of the pearls we have garnered deploying virtualization solutions since Virtual Server 2005 and subsequent 2008 RTM+ Hyper-V in standalone and clustered environments.
In this article, I will show you HOW TO: Perform a Physical to Virtual (P2V) Conversion the easy way from a computer backup (image).
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…

927 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