Solved

Difference between copy, clone and export VHD file

Posted on 2014-03-27
13
3,536 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 34

Assisted Solution

by:Dan Craciun
Dan Craciun earned 166 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 334 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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 

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 34

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 34

Expert Comment

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

Assisted Solution

by:Pradeep Dubey
Pradeep Dubey earned 334 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 34

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

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

A safe way to clean winsxs folder from your windows server 2008 R2 editions
Is your company's data protection keeping pace with virtualization? Here are 7 dynamic ways to adapt to rapid breakthroughs in technology.
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…
How to install and configure Citrix XenApp 6.5 - Part 1. In this video tutorial we have explained step by step installation of Citrix XenApp 6.5 Server on Windows Server 2008 R2 is explained in this video. We have explained the difference between…

831 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