Solved

Difference between copy, clone and export VHD file

Posted on 2014-03-27
13
3,237 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
Comment Utility
0
 
LVL 34

Assisted Solution

by:Dan Craciun
Dan Craciun earned 166 total points
Comment Utility
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
Comment Utility
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
 

Author Comment

by:Soho_Dan
Comment Utility
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
Comment Utility
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
Comment Utility
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
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
LVL 34

Expert Comment

by:Dan Craciun
Comment Utility
Yup.
0
 
LVL 11

Assisted Solution

by:Pradeep Dubey
Pradeep Dubey earned 334 total points
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Thank you! I will open a new thread about backing up VMs.
0
 

Author Comment

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

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Join & Write a Comment

Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
Veeam Backup & Replication has added a new integration – Veeam Backup for Microsoft Office 365.  In this blog, we will discuss how you can benefit from Office 365 email backup with the Veeam’s new product and try to shed some light on the needs and …
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…
In this video tutorial I show you the main steps to install and configure  a VMware ESXi6.0 server. The video has my comments as text on the screen and you can pause anytime when needed. Hope this will be helpful. Verify that your hardware and BIO…

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now