Welcome to BLOGIT.NU
Login or Register Home  ·  Articles  ·  Downloads  ·  Your Account  ·  Forums  ·  About  

  Menu
· Home
· Articles
· Donations
· Downloads
· Forums
· Search
· Sitemap
· Statistics
· Stories Archive
· Submit News
· Top 10
· Topics
· Web Links
· Your Account

  Current users
Welcome, Anonymous
Nickname
Password
(Register)
Membership:
Latest: expelpalmorie
New Today: 9
New Yesterday: 27
Overall: 4740

People Online:
Visitors: 9
Members: 1
Total: 10

Online Now:
01 : Shtamb

  Last articles
· About
· Track the growth of your SQL Databases
· Truncate SQL Transaction Logfiles
· Creating a customized WinPE for Vmware
· Programming the VMware SDK1.x using vbscript
· Cloning a VM using vbscript
· Explanation of Virtual Center's customization process

Cloning a VM using vbscript
by Tom Arentsen



Page: 1/2


please read the following article first Explanation of Virtual Center's customization process

Continuing on my previous article regarding programming the Vmware SDK 1.x using vbscript, in most cases it's unlikely that you are going to build new virtual machines from scratch, you rather clone them to speed-up the process so let’s clone an existing Virtual Machine using vbscript.

By cloning a virtual machine you make an exact copy of it, with Virtual Center you can clone a virtual machine at two different ways:

  • Cloning witput the customization
  • Cloning with customization
As the first option explains itself, the second option uses Microsoft's sysprep utility. In the Virtual Center cloning wizard when you choose to customize your clone, it will guide you through a wizard requesting some basic information that will be used for the creation of the sysprep.inf file, which in turn will be copied along with the other sysprep files to cloned virtual machine at the of cloning process.

You can easily see what the customization part of the cloning process does if you specify NOT to autopoweron and attach the disk to a different Virtual Machine.
High level overview of the process:
After the cloning process is finished it will configure the new cloned virtual machine to boot the sysprep mini-wizard. It does this by editing the registry, it will copy the setupcl.exe to the %systemroot%\system32 directory and create the sysprep folder structure. The sysprep mini-wizard will be automated using the information specified in the sysprep.inf file.

The vmclone script:

Attached I have included a vbscript that automates the cloning process. As input it requires a xml file containing all the information (I have chosen for a xml file as otherwise the number of command line parameters can become quite large !!).

With the vmClone script you have three options of cloning:
  • No customization
  • Basic customization (same as the Virtual Center cloning process does)
  • Advanced customization
This last option I have just included to show you how easy it is to extend your VM deployment by taken advantage of all the sysprep options you have. Consult your sysprep documentation and you will see that there are a lot more options available then provided by the Cloning wizard of Virtual Center, though I have to say that in most cases the basic options are sufficient, still its nice to see how you can extend it.




Next Page (2/2) Next Page


You can syndicate our news using the file or ultramode.txt
All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest © 2006 by me.
PHP-Nuke Copyright © 2005 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.13 Seconds