Virtualization

Cloning a virtual machine without VSPHERE

If you have a single ESXi box and don’t have access to a VSphere box because of the lack of a license or hardware, you are missing some of the key functionality that makes virtualization great.  The ability to clone virtual machines is a very useful feature found in the VSphere piece that allows you to basically copy a virtual machine identically to a new machine either to spin up something new or create a backup.  If you are looking to clone a machine for instance that you may have setup as a template, you can actually do this by exploring the datastores and copying the files from one virtual machine to another.  Let’s look and see how this is done.
 
First thing is to browse the source datastore that you want to clone from:
 
vm1

  • Select the datastore that you are going to be copying from
  • Right-click the datastore and choose “Browse Datastore”

After you choose the “Browse Datastore” option you will see the contents of the selected Datastore

vm2

  • Right Click on the folder of the virtual machine that you are wanting to copy and select “Copy”

After selecting and copying the source VM folder, we need to get to the destination

  • This can be the same location (datastore) as the source or it can be a different location (datastore)
  • If this is a different datastore, simply go back to your Summary Tab again and “Browse Datastore” of the target store you have in mind

After you select the target datastore, simply right click in the datastore space and choose “Paste”

vm3

  • The file copy will start as you see in the screenshot above
  • This will take some time, but remember the time you are saving because you are carrying over all the customizations of the source virtual machine that will be ready to go at power on.

You can also keep up with the progress via the vSphere client at the bottom of the screen under Recent Tasks

vm5

After the VM copy has completed, browse to the target datastore where the VM folder has been copied to

  • Rename the folder to the name of the VM that you want the VM to be.  This is not required, but it sure makes things a lot easier when you are browsing your datastores later and trying to figure out which files go to which machines
  • After you rename the folder, doubleclick the folder and you should see all of the files associated with the VM…

vm6

  • Right click the file with the extension .vmx and you should be presented with the option of “Add to Inventory
  • When you select the Add to Inventory the Add to Inventory Wizard will display on the screen

Name the new VM

vm7
Choose the Resource Pool

vm8

Confirm the creation of the new VM

vm9
***Note on the first boot of the new VM, you will be presented with an informational item from VMware…..it will ask if you have Moved the VM, Copied It, etc…because it will recognize the fact that it is identical to the source VM.  Simply select that you “Copied it” and it will make the needed changes and continue the boot process.

This will finish out the clone process.  You should be good to go on using the new VM after this point.

Subscribe to VirtualizationHowto via Email 🔔

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Brandon Lee

Brandon Lee is the Senior Writer, Engineer and owner at Virtualizationhowto.com and has over two decades of experience in Information Technology. Having worked for numerous Fortune 500 companies as well as in various industries, Brandon has extensive experience in various IT segments and is a strong advocate for open source technologies. Brandon holds many industry certifications, loves the outdoors and spending time with family.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.