How to Clone a Virtual Machine on vSphere Hypervisor ESXi 6.7.
In a previous article I mentioned the required step to create a Virtual Machine in vSphere Hypervisor ESXi 6.7. In this article, you 'll learn how to clone a virtual machine, on vSphere Hypervisor ESXi 6.7.
The Virtual Machine cloning, is usually an easy two-step process when you have a vCenter server. But what if for any reason you do not have a vCenter server, and you need to clone a virtual machine from the ESXi host? The next steps are going to explain how to achieve this.
How to Clone Virtual Machines in vSphere ESXi 6.7.
In order to clone a Virtual machine from ESXi, you have to find out first, where are stored the Virtual machine's files and it's virtual disk. To do that:
1. Power Off (Shut down) the machine that you want to clone.
2. Then, select the Virtual machine that you want to clone and click Edit. (or right-click on the machine and select Edit Settings)
Â
3. At Virtual Hardware tab, expand the Hard Disk 1 and notice the name and the location (datastore) of the Disk File (vm_name.vmdk).
4. At next, select the VM Options tab, expand the General Options and notice the name and the location of the VM Config file (vm_name.vmx). When done, click Cancel to close this window.
5. Now select Storage and open the Datastore browser.
6. At the left pane select the Datastore that you want to store the VM files for the cloned machine and click Create directory.
7. Type a name for the new folder and click Create Directory. *
* Note: At the new folder, will be stored the files of the new cloned machine, so give a recognizable name.
8. Now, select the storage folder of the VM that you want to clone.
9a. Right click at the "vm_name.vmdk" file and select Copy.
9b. Select the new folder you created before for the new cloned machine and click Copy.
9c. Perform the same steps, and copy the "vm_name.vmx" to the new folder.
9d. When done, click Close.
10. Now, click Monitor and then the Tasks tab. Once the copy process is completed, proceed to the next step.
11. When the copy is finish, re-open the datastore browser. (Storage > Datastore browser).
12. Navigate to the new VM's storage folder, right click on the "vm_name.vmx" config file, and select Register VM. Then click Close.
13. The cloned Virtual Machine should now appear (at the end), on the ESXi host inventory screen.
14. Right click on the cloned machine and select Rename.
15. Type a new name for the clone machine and click Rename.
16. That's it! The cloned machine is ready for use. Power on the machine to boot the clone…
That's it! Let me know if this guide has helped you by leaving your comment about your experience. Please like and share this guide to help others.
We're hiring
We're looking for part-time or full-time technical writers to join our team! It's about a remote position that qualified tech writers from anywhere in the world can apply. Click here for more details.
- How to Disable Device Encryption in Windows 11. - April 17, 2024
- How to View Permissions on Shared Folders on Windows 10/11. - April 15, 2024
- FIX 0x80070643 error in KB5034441 update (Solved) - April 10, 2024
Latibo
April 27, 2023 @ 11:44 am
Thanks, exactly what I was looking for.
Nadeem
January 11, 2022 @ 12:16 pm
Thanks, exactly what I was looking for.
alfred
March 20, 2021 @ 4:15 am
After i clone vm, i cannot login it it says "the trust relationship between this workstation and the primary domain failed"
it is hard for me to login the local administrator pc.
any suggestion ?
is there away ? or I need to modify something in active directory?
hoping your immediate response. thank you
lakonst
March 22, 2021 @ 10:28 am
Log on to the PC using the local administrator account and then remove and re-add the computer in the domain. If you cannot log in using your local administrator account, open the Active Directory Users and Computers and expand the Computers container. Right click on the computer that you are having trouble with and select 'Reset Account'. Finally restart the PC and login to AD.