cloning a virtual machine in vmware...

44
CLONING A VIRTUAL MACHINE IN "VMWARE PLAYER" HIGH-LEVEL EXECUTIVE SUMMARY: In "VMware Player", you can copy a virtual machine directly, using "Windows Explorer" or "My Computer" or the "copy" command at a command prompt. In "VMware Player", you can copy a virtual hard drive directly, using "Windows Explorer" or "My Computer" or the "copy" command at a command prompt. A key advantage of "VMware Player" over "Oracle VM VirtualBox" and "Windows Virtual PC" is the ease with which virtual machines and virtual hard drives can be cloned in "VMware Player". TECHNICAL DETAILS: When you follow this procedure to clone a virtual machine, the new virtual machine that you create will have a new, unique "UUID.BIOS" (="computer UUID"). However, the virtual hard drive of the new virtual machine will have the same "hard disk UUID" as the virtual hard drive of the original virtual machine. In a "VMware Player", the *.vmx file of a virtual machine stores the following: the "UUID.BIOS", the "UUID.Location", and the unique MAC addresses of each virtual network adapter. STEP-BY-STEP EXAMPLE: * In "VMware Player", when the host is "Windows 7" or "Windows vista, the default location for a virtual machine and it's virtual hard drive file is located at C:\Users\<your profile name>\My Documents\Virtual Machines\ In "VMware Player", when the host is "Windows XP", the default location for a virtual machine and it's virtual hard drive file is located at

Upload: others

Post on 13-Jul-2020

17 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: CLONING A VIRTUAL MACHINE IN VMWARE PLAYERaztcs.org/meeting_notes/linuxsig/virtualmachines/vmware/...In "VMware Player", when the host is "Windows 7" or "Windows vista, the default

CLONING A VIRTUAL MACHINEIN "VMWARE PLAYER"

HIGH-LEVEL EXECUTIVE SUMMARY:In "VMware Player", you can copy a virtual machine directly, using "Windows Explorer" or "My Computer" or the "copy" command at a command prompt.In "VMware Player", you can copy a virtual hard drive directly, using "Windows Explorer" or "My Computer" or the "copy" command at a command prompt.A key advantage of "VMware Player" over "Oracle VM VirtualBox" and "Windows Virtual PC" is the ease with which virtual machines and virtual hard drives can be cloned in "VMware Player".

TECHNICAL DETAILS:

When you follow this procedure to clone a virtual machine, the new virtual machine that you create will have a new, unique "UUID.BIOS" (="computer UUID"). However, the virtual hard drive of the new virtual machine will have the same "hard disk UUID" as the virtual hard drive of the original virtual machine.In a "VMware Player", the *.vmx file of a virtual machine stores the following:the "UUID.BIOS",the "UUID.Location",andthe unique MAC addresses of each virtual network adapter.

STEP-BY-STEP EXAMPLE:*

In "VMware Player", when the host is "Windows 7" or "Windows vista, the default location for a virtual machine and it's virtual hard drive file is located atC:\Users\<your profile name>\My Documents\Virtual Machines\

In "VMware Player", when the host is "Windows XP", the default location for a virtual machine and it's virtual hard drive file is located at

Page 2: CLONING A VIRTUAL MACHINE IN VMWARE PLAYERaztcs.org/meeting_notes/linuxsig/virtualmachines/vmware/...In "VMware Player", when the host is "Windows 7" or "Windows vista, the default

C:\Documents and Settings\<your profile name>\My Documents\Virtual Machines\

In "VMware Player", a folder that by default has the same name as the name of the virtual machine is created, when you create a virtual machine:

*

Page 3: CLONING A VIRTUAL MACHINE IN VMWARE PLAYERaztcs.org/meeting_notes/linuxsig/virtualmachines/vmware/...In "VMware Player", when the host is "Windows 7" or "Windows vista, the default

*To copy an entire virtual machine in "VMware Player", you can use the right mouse button to drag it to a new location.

Page 4: CLONING A VIRTUAL MACHINE IN VMWARE PLAYERaztcs.org/meeting_notes/linuxsig/virtualmachines/vmware/...In "VMware Player", when the host is "Windows 7" or "Windows vista, the default

*When your mouse cursor reaches the desired location, release the mouse button and a popup context menu will be displayed:

Page 5: CLONING A VIRTUAL MACHINE IN VMWARE PLAYERaztcs.org/meeting_notes/linuxsig/virtualmachines/vmware/...In "VMware Player", when the host is "Windows 7" or "Windows vista, the default

Click on "Copy here":

*

*

*

Page 6: CLONING A VIRTUAL MACHINE IN VMWARE PLAYERaztcs.org/meeting_notes/linuxsig/virtualmachines/vmware/...In "VMware Player", when the host is "Windows 7" or "Windows vista, the default

*

*

Page 7: CLONING A VIRTUAL MACHINE IN VMWARE PLAYERaztcs.org/meeting_notes/linuxsig/virtualmachines/vmware/...In "VMware Player", when the host is "Windows 7" or "Windows vista, the default

*

*

Windows will give the new virtual machine folder a name in the format of<name of original virtual machine folder> - Copy

Page 8: CLONING A VIRTUAL MACHINE IN VMWARE PLAYERaztcs.org/meeting_notes/linuxsig/virtualmachines/vmware/...In "VMware Player", when the host is "Windows 7" or "Windows vista, the default

Use the right mouse button to click on the newly-created virtual machine folder:

Page 9: CLONING A VIRTUAL MACHINE IN VMWARE PLAYERaztcs.org/meeting_notes/linuxsig/virtualmachines/vmware/...In "VMware Player", when the host is "Windows 7" or "Windows vista, the default

*A pop-up context menu will be displayed:

Page 10: CLONING A VIRTUAL MACHINE IN VMWARE PLAYERaztcs.org/meeting_notes/linuxsig/virtualmachines/vmware/...In "VMware Player", when the host is "Windows 7" or "Windows vista, the default
Page 11: CLONING A VIRTUAL MACHINE IN VMWARE PLAYERaztcs.org/meeting_notes/linuxsig/virtualmachines/vmware/...In "VMware Player", when the host is "Windows 7" or "Windows vista, the default

Click on "Rename" in the pop-up context menu:

*

Type in an appropriate name for the new virtual machine:

Page 12: CLONING A VIRTUAL MACHINE IN VMWARE PLAYERaztcs.org/meeting_notes/linuxsig/virtualmachines/vmware/...In "VMware Player", when the host is "Windows 7" or "Windows vista, the default

*In our example, we typedWindows 7 Enterprise Trial--vm901 clone01

Then press the Enter key to lock in the name.

Page 13: CLONING A VIRTUAL MACHINE IN VMWARE PLAYERaztcs.org/meeting_notes/linuxsig/virtualmachines/vmware/...In "VMware Player", when the host is "Windows 7" or "Windows vista, the default

*Start the "VMware Player" program:

Page 14: CLONING A VIRTUAL MACHINE IN VMWARE PLAYERaztcs.org/meeting_notes/linuxsig/virtualmachines/vmware/...In "VMware Player", when the host is "Windows 7" or "Windows vista, the default

*Click on "Open a Virtual Machine":

Page 15: CLONING A VIRTUAL MACHINE IN VMWARE PLAYERaztcs.org/meeting_notes/linuxsig/virtualmachines/vmware/...In "VMware Player", when the host is "Windows 7" or "Windows vista, the default

*An "Open Virtual Machine" box will be displayed:

Page 16: CLONING A VIRTUAL MACHINE IN VMWARE PLAYERaztcs.org/meeting_notes/linuxsig/virtualmachines/vmware/...In "VMware Player", when the host is "Windows 7" or "Windows vista, the default

*Navigate to the location of the newly-created virtual machine folder:

Page 17: CLONING A VIRTUAL MACHINE IN VMWARE PLAYERaztcs.org/meeting_notes/linuxsig/virtualmachines/vmware/...In "VMware Player", when the host is "Windows 7" or "Windows vista, the default

*

*

Page 18: CLONING A VIRTUAL MACHINE IN VMWARE PLAYERaztcs.org/meeting_notes/linuxsig/virtualmachines/vmware/...In "VMware Player", when the host is "Windows 7" or "Windows vista, the default

*

*

Page 19: CLONING A VIRTUAL MACHINE IN VMWARE PLAYERaztcs.org/meeting_notes/linuxsig/virtualmachines/vmware/...In "VMware Player", when the host is "Windows 7" or "Windows vista, the default

*

*Double-click on the folder of the newly-created virtual machine:

Page 20: CLONING A VIRTUAL MACHINE IN VMWARE PLAYERaztcs.org/meeting_notes/linuxsig/virtualmachines/vmware/...In "VMware Player", when the host is "Windows 7" or "Windows vista, the default

*Inside the virtual machine folder, you will find a *.vmx file.

*Click on this .vmx file:

Page 21: CLONING A VIRTUAL MACHINE IN VMWARE PLAYERaztcs.org/meeting_notes/linuxsig/virtualmachines/vmware/...In "VMware Player", when the host is "Windows 7" or "Windows vista, the default

*Click on the "Open" button:

*Your newly-created virtual machine is now at the top of the list of virtual machines in the left pane of the main "VMware Player" window:

Page 22: CLONING A VIRTUAL MACHINE IN VMWARE PLAYERaztcs.org/meeting_notes/linuxsig/virtualmachines/vmware/...In "VMware Player", when the host is "Windows 7" or "Windows vista, the default

*Click on "Edit virtual machine settings":

Page 23: CLONING A VIRTUAL MACHINE IN VMWARE PLAYERaztcs.org/meeting_notes/linuxsig/virtualmachines/vmware/...In "VMware Player", when the host is "Windows 7" or "Windows vista, the default

*

*A "Virtual Machine Settings" box will be displayed:Adjust the amount of RAM that is to be allocated to the new virtual machine, if you need to do so.Then click on the "OK" button.

Page 24: CLONING A VIRTUAL MACHINE IN VMWARE PLAYERaztcs.org/meeting_notes/linuxsig/virtualmachines/vmware/...In "VMware Player", when the host is "Windows 7" or "Windows vista, the default

*Click on the "Options" tab:

Page 25: CLONING A VIRTUAL MACHINE IN VMWARE PLAYERaztcs.org/meeting_notes/linuxsig/virtualmachines/vmware/...In "VMware Player", when the host is "Windows 7" or "Windows vista, the default

*

Modify the displayed name of the new virtual machine.In most situations, it is best to make the displayed name the same as the name of the folder that contains the virtual machine.In our example, we change the displayed name slightly fromWindows 7 x64 Enterprise Trial--vm901toWindows 7 x64 Enterprise Trial--vm901 clone01

Page 26: CLONING A VIRTUAL MACHINE IN VMWARE PLAYERaztcs.org/meeting_notes/linuxsig/virtualmachines/vmware/...In "VMware Player", when the host is "Windows 7" or "Windows vista, the default

*Click on the "OK" button:

Page 27: CLONING A VIRTUAL MACHINE IN VMWARE PLAYERaztcs.org/meeting_notes/linuxsig/virtualmachines/vmware/...In "VMware Player", when the host is "Windows 7" or "Windows vista, the default

*The "Virtual Machine Settings" box will disappear.You should now be back at the main Window of "VMware Player":

Page 28: CLONING A VIRTUAL MACHINE IN VMWARE PLAYERaztcs.org/meeting_notes/linuxsig/virtualmachines/vmware/...In "VMware Player", when the host is "Windows 7" or "Windows vista, the default

*Click on "Play virtual machine".

Page 29: CLONING A VIRTUAL MACHINE IN VMWARE PLAYERaztcs.org/meeting_notes/linuxsig/virtualmachines/vmware/...In "VMware Player", when the host is "Windows 7" or "Windows vista, the default

*The new virtual machine will start up.

Page 30: CLONING A VIRTUAL MACHINE IN VMWARE PLAYERaztcs.org/meeting_notes/linuxsig/virtualmachines/vmware/...In "VMware Player", when the host is "Windows 7" or "Windows vista, the default

*A "The virtual machine has been moved or copied" box will be displayed:Select the "I copied it" in option in order to tell "VMware Player" to perform the following actions:

Action 1:Provide the new virtual machine with a unique, new "UUID BIOS" which is also known as a "motherboard UUID" or a "system UUID".

Action 2:Provide the new virtual machine with a unique, new "UUID Location" which is also known as a "Location UUID" which is a UUID that "VMware Player" uses to keep track of the location on the host's hard drive for the folder of the virtual machine.

Action 3:

Page 31: CLONING A VIRTUAL MACHINE IN VMWARE PLAYERaztcs.org/meeting_notes/linuxsig/virtualmachines/vmware/...In "VMware Player", when the host is "Windows 7" or "Windows vista, the default

Provide the virtual network adapter of the new virtual machine with a new, unique MAC address.

*Click on "OK" in the "This virtual machine may have been moved or copied" box.

The virtual machine will continue with the Windows boot up process:

Page 32: CLONING A VIRTUAL MACHINE IN VMWARE PLAYERaztcs.org/meeting_notes/linuxsig/virtualmachines/vmware/...In "VMware Player", when the host is "Windows 7" or "Windows vista, the default

*

Page 33: CLONING A VIRTUAL MACHINE IN VMWARE PLAYERaztcs.org/meeting_notes/linuxsig/virtualmachines/vmware/...In "VMware Player", when the host is "Windows 7" or "Windows vista, the default

*

Page 34: CLONING A VIRTUAL MACHINE IN VMWARE PLAYERaztcs.org/meeting_notes/linuxsig/virtualmachines/vmware/...In "VMware Player", when the host is "Windows 7" or "Windows vista, the default

*

Page 35: CLONING A VIRTUAL MACHINE IN VMWARE PLAYERaztcs.org/meeting_notes/linuxsig/virtualmachines/vmware/...In "VMware Player", when the host is "Windows 7" or "Windows vista, the default

*

APPENDIX 1

YOU CANNOT CHANGE HARDDRIVE UUIDs FOR HE CLONED .VMDK "VIRTUAL HARD DRIVE OF A CLONED VIRTUAL MACHINE IN"VMWARE PLAYER"

Page 36: CLONING A VIRTUAL MACHINE IN VMWARE PLAYERaztcs.org/meeting_notes/linuxsig/virtualmachines/vmware/...In "VMware Player", when the host is "Windows 7" or "Windows vista, the default

The virtual hard drive of cloned virtual machine has to have the same "hard drive UUID" (="disk signature") as the original virtual machine.

THE "hard drive UUID" of the .vmdk virtual hard drive of the new, cloned virtual machine has to stay exactly the same as the "hard drive UUID" of the original virtual machine:

In this example we changed the "harddrive UUID" of the virtual hard drive of a newly-created, cloned virtual machine:We used the "diskpart" command followed by the uniqueid disk ID=<new UUID for hard drive> to change the "harddrive UUID" fromF36380A1toF36380A2

Seehttp://www.howtohaven.com/system/change-disk-signature.shtml

The virtual hard drive of cloned virtual machine has to have the same "hard drive UUID" (="disk signature") as the original virtual machine.

THE "hard drive UUID" of the .vmdk virtual hard drive of the new, cloned virtual

Page 37: CLONING A VIRTUAL MACHINE IN VMWARE PLAYERaztcs.org/meeting_notes/linuxsig/virtualmachines/vmware/...In "VMware Player", when the host is "Windows 7" or "Windows vista, the default

*

*

Page 38: CLONING A VIRTUAL MACHINE IN VMWARE PLAYERaztcs.org/meeting_notes/linuxsig/virtualmachines/vmware/...In "VMware Player", when the host is "Windows 7" or "Windows vista, the default

Our exact steps were:Click on Windows "Start" button.Type cmdinto the "Search" box.

Use right mouse button to click on "CMD" in the left-most side of the "Start menu".

Click on "Run as administrator" in the popup context menu.

Type in diskpart

Page 39: CLONING A VIRTUAL MACHINE IN VMWARE PLAYERaztcs.org/meeting_notes/linuxsig/virtualmachines/vmware/...In "VMware Player", when the host is "Windows 7" or "Windows vista, the default

and hit the Enter key.

Type in select disk 0and hit the Enter key.

Type inuniqueid diskand hit the Enter key.

Type in uniqueid disk id=F36380A82

Type in exitand hit the Enter key.

We then restarted the virtual machine:

*This virtual machine was then unable to boot:

Page 40: CLONING A VIRTUAL MACHINE IN VMWARE PLAYERaztcs.org/meeting_notes/linuxsig/virtualmachines/vmware/...In "VMware Player", when the host is "Windows 7" or "Windows vista, the default

*

APPENDIX 2

YOU CAN VIEW THE "UUID.BIOS","UUID.Location",AND MAC ADDRESSFOR ANY VIRTUAL MACHINEIN "VMWARE PLAYER"

Page 41: CLONING A VIRTUAL MACHINE IN VMWARE PLAYERaztcs.org/meeting_notes/linuxsig/virtualmachines/vmware/...In "VMware Player", when the host is "Windows 7" or "Windows vista, the default

Each virtual machine in "VMware Player" has a .vmx file.If you open this .vmx file with Windows "Notepad", or "Wordpad". you can view these three values.

*Use your right mouse button to perform a click on the *.vmx file:

Page 42: CLONING A VIRTUAL MACHINE IN VMWARE PLAYERaztcs.org/meeting_notes/linuxsig/virtualmachines/vmware/...In "VMware Player", when the host is "Windows 7" or "Windows vista, the default

*A popup context menu will be displayed.*Click on "Notepad".

Page 43: CLONING A VIRTUAL MACHINE IN VMWARE PLAYERaztcs.org/meeting_notes/linuxsig/virtualmachines/vmware/...In "VMware Player", when the host is "Windows 7" or "Windows vista, the default

*Scroll down:

Page 44: CLONING A VIRTUAL MACHINE IN VMWARE PLAYERaztcs.org/meeting_notes/linuxsig/virtualmachines/vmware/...In "VMware Player", when the host is "Windows 7" or "Windows vista, the default

*ethernet0.generatedAddress = "00:0c:29:89:9e:1d"tools.syncTime = "FALSE"uuid.location = "56 4d 51 6c fe 5d 4d fe-12 28 31 f5 74 89 9e 1d"uuid.bios = "56 4d 51 6c fe 5d 4d fe-12 28 31 f5 74 89 9e 1d"