modified on 3 December 2008 at 23:25 ••• 1,338 views

Copy a Virtual Machine on VMWare Server 2 on Windows Server 2008

From Oramosswiki

Jump to: navigation, search

I wrote this after reading a similar article for VMWare on Linux...since I run on Windows 2008 Server, I figured I'd write this one.

The article I originally read was:

http://blog.kovyrin.net/2007/04/08/how-to-clone-virtual-machine-with-vmware-server/

Find your VMWare Virtual Machine files - mine are in F:\Virtual Machines as per The image below.

For this example, I'll copy my "Fedora 10 GOLD" VM to a "Fedora 10 Oracle 11g GOLD" VM, so I've created a subdirectory in "F:\Virtual Machines" called "Fedora 10 Oracle 11g GOLD".

VMWare Virtual Machine Files Area

Next I manually copy just the VMDK and VMX files from the donor directory to the new target directory using Windows Explorer.

The files are now present as per the image below, but you'll notice the names are still from the donor VM...we'll change that next.

NOTE - Until I get a better picture, the image below actually shows all the files from the donor director have been copied...I just realised today that this isn't necessary - just the VMDK and VMX are required it seems.

VMWare Virtual Machine Files Area After Copy

Now, rename the VMDK file from the old donor name to the new name.

Also rename the VMX file from the old donor name to the new name.

Now edit the VMX file and change all occurrences of the old donor name to the new VM name, then save and close the file.

Virtual Server 2 Edit VMX File

Now, log in to the VMWare Server Web Access screen - it should look something like this:

Virtual Server 2 Home

Choose the "Add Virtual Machine to inventory" link on the right hand side. Find the new Virtual Machine in the new directory and add it in.

Virtual Server 2 Add VM To Inventory

Start the new VM - it won't start. Instead the VM link on the left hand side has a "shout out" symbol with a "?" in it...it's basically needing you to answer a question before it can continue.

Virtual Server 2 Add VM To Inventory Fails

Now, it seems to be a bit hit and miss about how you get to see this question...basically, I had to flick around the links on the home page - move from the Host view to the individual VM views and back again, until eventually you click on to the new VM and it has the question at the top, as per the image below:

Virtual Server 2 Add VM To Inventory Question

Choose "Copied" and click OK.

The new VM then starts, something like this:

Virtual Server 2 Add VM To Inventory Machine Starts

You may then wish to rename the hostname using something like this:

https://support.vpsland.com/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=47