I'm trying to figure out a way to clone one virtual machine in ESXi w/out using Virtual Center or any other tool that may require a license. I've built a Windows 2003 Standard Server and I wanted to copy it 4 times for different applications but every copy i've attempted doesn't work. I've tried copying the files from one datastore directory to another one but when you go to power the VM on it fails. I've also tried to use the VMWare VI Toolkit but i'm very unexperienced using any CLI. Any suggestions would be great.
Bit of a quick n dirty way of doing it...
You can log in via VI client.
Create a new virtual machine with no virtual disk.
Copy the *.vmdk from the vm you want to clone to the new vm directory.
Add the disk to the vm.
to add to this
take configured guest, install and run Sysprep and seal.
copy directory structure to new location, register guest and power on machine, sysprep now runs and you have a new machine from your original complete with new SID, Computer name etc.
If you found this or any other answer useful please consider the use of the Helpful or correct buttons to award points
VMware Communities User Moderator
Hi, I use to clone a VM of OpenSUSE, the Virtual Appliance export and import procedure, and the machine go on without problem after a few changes on the clone. I supouse that if you make the same steps and run the sysprep on every new VM, the w2003's clones will go on without problems.
(I'm sorry, my english is not good at all)