I am working on Cloning my Base VM Server so that I can build off of it again and again. I went into the datastore via VSphere and created a new directory and copied the files to the new directory.
I then used Putty to SSH into the server. Went to the directory of the VM in the new folder I just copied it to and did the following command.
vmkfstools -E "BaseServer- x64.vmdk" Server-Alpha1.vmdk
I saw in VSphere under tasks that the job completed successfully.
I went back to the Datastore browser and did a refresh and there it was Server-Alpha1.vmdk... But there was still "BaseServer- x64-000002.vmdk"
I refreshed a bunch of times... Logged out and logged back in... Refreshed... it was still there... So, I thought to myself, self... Just rename it like you did above and you will be all set...
vmkfstools -E "BaseServer- x64-000002.vmdk" Server-Alpha1-000002.vmdk
Now I am left with the following....
"BaseServer- x64-000002.vmdk" a .5 kb file
"BaseServer- x64-000002-flat.vmdk" a 52,428,800 KB file
I then refreshed a bunch of times... Logged out and logged back in... Refreshed... it was still there... So, I thought to myself, self... you did so much research to get this far and you have backed yourself into a corner trying to figure it out... Quit driving around in circles and stop and ask for directions...
So, Basically... WTF....??? How do I clone a VM in ESXi easily... I kinda don't want to see 50 directories of servers, Alpha1, Alpha2, Alpha3, etc... And then have "BaseServer- x64.vmdk" replicated 50 times in the folders.... I am sure that something or someone will screw things up....
Thanks in Advance!