I have an Ubuntu Linux Virtual Machine running on my Windows system (using VMware) and a colleague wanted to do the same. However, rather than create a new VM and install a fresh version of Ubuntu and go through the motions of installing and configuring all the same development and testing tools, we decided to copy an already configured VM and see if the copy could be used intead.
This turned out to be a very trivial task and I would highly recommend it. Here is how we did it
- Copy C:\Virtual Machines\Ubuntu to C:\Virtual Machines\Ubuntu2
- From VMware, select File, Open and click the Browse button to locate the .vmx for the new VM (this file stores critical configuration information for the VM including the MAC Address of the Ethernet Adapter)
- To rename the new VM, click Edit Virtual Machine Settings, select the Options tab and change the Virtual Machine Name. Click OK.
- To start the new VM, click Start Virtual Machine and when prompted, select Create to create a new Unique Identifier for the new VM. This is a critical step as it breaks the association between the new VM and the one it was copied from, producing a new, unique MAC Address for the new VM.
Once the new VM boots, you should be able to log in and reconfigure the network as required and that’s it!