VMware Workstaion Home Lab Setup Part 2 – Attack of the Clones 1

Jonathan Frappier Virtxpert

Now that you have your first Windows VM built and patched, you’re probably itching to get things built like turning the virtual machine it into your domain controller for the home lab which will be used for authentication throughout this setup.  However, we want to be efficient with our time so we are going to take our Windows VM and use it to clone new VMs since at the very least I will need 3 Windows virtual machines for this lab; a Domain Controller, SQL server and web server for the vCloud Automation Center/vRealize Automation Infrastructure-as-a-Service server.

So once your Windows VM is fully patched there is one house keeping item to take care of before we use it to clone, and that is to sysprep it.

  • Log into the Windows VM, in my case a Windows 2012 VM and open the Start menu
  • Type C:WindowsSystem32Sysprepsysprep.exe and press the enter button or click on sysprep.exe in the search bar
  • Make sure Enter System Out-ofBox Experience (OOBE) is selected int he System Cleanup Action pull down menu. Next Click on the Generalize checkbox and change the Shutdown Options pull down menu to Shutdown; click OK
  • After a few minutes Windows will shut down – don’t worry we want the template shutdown as we cannot clone a running VM in VMware Workstation.
Windows Sysprep

Windows Sysprep

You should now have a powered off virtual machine, I chose to put mine into a folder called Templates though you can organize as you wish.  Now I want to clone this template.

  • Right click on the virtual machine in VMware Workstation and go to Manage >> Clone
  • With no snapshots you could will only have the option to “Clone from” The current state in the virtual machine.  You could take a snapshot and do clones from there, click Next
  • One of the cloning process options in VMware Workstation is Create a linked clone, which means you will only have a delta file for changes associated to that virtual machine – that is what I will be using.  Select the Create a linked clone radio button and click Next
  • Name the virtual machine and place it in the desired location, in my case I have named it vxprt-dc01 and placed it in V:VMsvxprt-dc01 – click Finish and then close when the Clone virtual machine wizard completes.

Since the virtual machine was setup using a linked clone, the cloning process will have finished quickly and be space efficient for the lab environment, you will be ready to boot your VM.  I moved my VM into a folder I created called Lab, you can see my VMware Workstation layout below.

VMware Workstation folder layout

VMware Workstation folder layout

With the VM cloned and powered on, you will be ready to setup your first virtual machine – our domain controller.

VMware Workstaion Home Lab Setup Part 2 – Attack of the Clones