Simple one, you have a windows virtual machine and you want to copy it:
- Copy the folder the VM is in (assuming you use a folder per virtual machine) and rename it to the new host name
- Click on the .vmx icon (you can rename this file first so it’s new-host-name.vmx)
- Select “Edit this virtual machine’s settings”
- Under Hardware -> Hard Disk -> ‘disk file’, overtype so its new-host-name.vmdk file name (which you’ve not renamed yet). You’ll get an ‘Are you sure’ type message, say yes.
- Under Options, change the virtual machine name
- Rename the vmdk file with the name that you used in the step above
- Start up the VM, when all working make sure you change the computer name (My computer -> properties -> Computer name) and if you’ve hard coded the IP either change it or switch to DHCP
This worked for me using VMWare 4.5.








July 23rd, 2007 at 10:11 am
It is not working under a VMWare Server.
July 25th, 2007 at 1:32 pm
For me its works with centos 5.
Thx bealers
November 6th, 2007 at 5:59 pm
Chris, if it doesn’t work…. then you have done something wrong, because it works fine under VMware server 1.0.2
December 21st, 2007 at 10:31 pm
Using VMware server 1.0.4 running on Windows XP I wasn’t able to “overtype so its new-host-name.vmdk file name”.
the ‘disk file’ box was not editable.
January 2nd, 2008 at 5:13 pm
In Vmware server 1.04, its slightly different.
1. Copy folder, rename vmx file
2. Edit machine, change hostname
3. Rename vdmk
4. Edit settings and add disk you just renamed as existing disk (remove old one)
5. Start vm and check it works (don’t forget to use newsid)
Matt
June 19th, 2008 at 10:56 pm
what about 1.0.6 build 91891?
and also - could it be enough to just copy snapshot files and xxx-000002.vmdk?
June 19th, 2008 at 10:58 pm
or maybe all xxx-00000x.vmdk files?
July 21st, 2008 at 4:37 pm
Does it’s work with a vm linux ?