What Are the common commands that you use when you clone a virtual machine and specify the settings?

Hi again all,

I am new to the virtualization world, and am learning new things everyday.  Today i came across cloning and how to clone virtual Machine and how to create a template and all.

My simple question (out of curiosity)  is for the people with real life experience, what commands do you usually run in a new cloned machine under the run once configuration option ? And suppose am using a windows, when and where are the commands being run?

Thanks in advance!
Saif Ahmed YassenAsked:
Who is Participating?
Ben Personick (Previously QCubed)Connect With a Mentor Lead Network EngineerCommented:
I usually run commands based on where the system is being deployed to:

  • Remove existing routes and put in new persistent routes
  • Turn off TimeSync (because we need to be sure and it was easy to add it in here)
  • Properly activate Windows to the correct KMS Server

Basically, anything I can do in simple CMDs that I would change depending on what network the VM was deployed to, so that I can reach it via RDP correctly and quickly, since I don't want to have to use VMWare console if at all avoidable.

This way whether I am joining a Domain or just making a stand-alone, I only have to select the correct customization template to handle those tasks instead of editing a run-once script on the system which requires running the system to handle, or creating a much more complex script that dynamically figured out what those values are based off network and domain membership, and still needs to have the VM turned on, or VMDK side0-mounted on another system in order to edit the values if things change.

  Additionally, if I want to deploy the VM to a new network/domain (or change where things point as above) I don't have to edit a script on the VM (again requiring power on or side-load the VMDK, or editing in an image editor like WinImage) I just copy an existing Customization template, paste it change it's name, and edit it to be appropriate, or I can Export all of the templates and make some mass changes across them using Notepad++ and re-import them if I need to change something across all of them.

 I think that is the main strength of these commands doing something you can't easily rely on a batch file in the domain to do and/or needed for basic operation that saves you from having to log in via the console.
Andrew Hancock (VMware vExpert / EE MVE^2)Connect With a Mentor VMware and Virtualization ConsultantCommented:
It gives you custom options to install other software e.g. anti-virus software, management agents, run scripts etc

the commands will be run, after all other functions, sysprep have been completed.

Not every Organisation will use this option, because they may have other management options to customize workstations.
Saif Ahmed YassenAuthor Commented:
Thanks again!
Ben Personick (Previously QCubed)Lead Network EngineerCommented:
glad to help :)
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.