These instructions assume that I have a virtual machine directory called “Win_XP_Base”. You can, of course, do this with any virtual machine.
Copy the VM directory.
cp -r Win_XP_Base Win_XP_<name>
Switch to the new directory and edit the vmx file. Replace Win_XP_Base with Win_XP_<name>
vim Win_XP_<name>.vmx
Rename Win_XP_Base* files to Win_XP_<name>*
Edit the vmdk file. Replace Win_XP_Base with Win_XP_<name>.
vim Win_XP_<name>.vmdk
Get the permissions right. The directory should be 755, the files 700.