Login to participate
Endpoint Management & Virtualization ArticlesRSS

Deep Intro to VMware, Part 4: Cloning

erikw's picture

In this 4th part of the series, Deep Intro to VMware, I will show and explain one of the benefits of VMware Virtual Infrastructure client that is connected to a Vmware VCenter server.

For this functionality I created a Windows XP image and I want several full copies of this image. To do this we have the ability to clone the image. By cloning the image we create a full identical copy of the, so called, master image.

To prevent us from having errors on our network because we have several copies of a virtual machine we have to sysprep the image.

Doubleclick on the icon Virtual Infrastructure client or Vsphere client.

imagebrowser image

Log on to the server where you have Virtual Center installed.

imagebrowser image

Select the computer you want to clone, and right click to get the menu. Then select clone. Vmware will now start a wizard.

imagebrowser image

Give the clone a name that will identify it for you. Then you have to select the datacenter where the clone needs to run.

Click next to continue.

imagebrowser image

Now you have to select the host where the new machine needs to run. Instead of what we would expect, you have no ability to clone it to the datacenter and let VMware decide which host may facilitate the image. I still find this a error in VMware and I would really want to see this as a standard option in the process.

Click next to continue.

imagebrowser image

Now you have to select the resourcepool where you want the Virtual Machine to run.

I select Vstorm-3 to identify the machine. Click next to continue.

imagebrowser image

Now you have to select the storage where you want the image to reside.

Click next to continue.

imagebrowser image

Next step is to select the sysprep file you need to customise your image. You also have the option to view the settings and add or remove things in the sysprep for this clone.

Click next to continue.

imagebrowser image

Now you see all the properties for the clone. You may select to boot the machine after the cloning, and you can also edit the hardware before the cloning is made, to change the memory or other pieces of the hardware. VMware says that this is experimental. In reality it works great. if you change the number of processors, be aware of the fact that this is not always supported in Microsoft operating systems. If your image is built with one processor and you replace the number of processors from 1 to 2, the operating system will give an error because it needs a dual processor HAL (hardware abstraction layer).

imagebrowser image

In the virtual center you see the process running in the bottom screen. This will take a certain amount of time depending the size of the image and the storage where you located the clone.

imagebrowser image

When the clone is done, the machine will start. The screen above is when you immediately logon to the machine. I only logged on to show the process. In reality you just wait and then the computer will reboot to get customised.

imagebrowser image

The computer will reboot again and then you see the screen above. This is the customisation process.

imagebrowser image

In the screen above you see that the image will be added to a workgroup named DinamiQs. You can also add the computer to the domain that you selected just by editing the sysprep file.

In the example above you see that you are able to clone one machine at a time. If you need hundred machines then you have to do this step 100 times.

In the next article I show you how to dynamically allocate these images to end-users by using VMware view.

fireeyes's picture

nice one

really it is great

riva11's picture

Clone / Template

First of all thanks for your usual detailed article, about VM cloning there are many advantages to use this feature, including backup instead the Snapshot that in the past I had some issues during an updgrade.
Also a great feature for the Vmware VC is the "Template" command that allows to create prepare a a standard Virtual Machine ready to use for deploying same OS and Apps to other new servers.

Regards,
Paolo

mikejansen's picture

Cloning and VDI

What Erik fails to mention but what can be seen in the images is that he used virtualstorm images for cloning purposes. That saves a tremendous amount of time, since he only needed about a minute to clone and sysprep a new desktop to be ready for use. In traditional VDI, on a SAN, cloning full 10-20GB images can take anywhere between 15 and 30 minutes. Leaves more time to do interesting stuff, such as writing a whole series of articles on VDI :)