pbalderos
Enthusiast
Enthusiast

Is it nesessary to use sysprep when creating a VM from a template

Jump to solution

Hello community peeps,

I just created a VM from a template for the first time in vSphere 6.0. In previous version when doing this I had to run sysprep after powering the VM on. Is this still the same case in 6.0?

Doing a  little digging it kind of seems like sysprep should be ran before converting the original VM into a template.

http://www.enterprisedaddy.com/2015/09/how-to-prepare-a-vm-with-sysprep-before-converting-it-to-temp...

ESXi 6.0

Vcenter 6

Phillip Balderos VCP6-DCV
0 Kudos
1 Solution

Accepted Solutions
rcporto
Leadership
Leadership

There are many ways to run Sysprep when creating a VM from a template, here are some:

1) Run Sysprep on the "master" virtual machine, choose the Sysprep option to shutdown, and then convert the VM to a template, than when you create a virtual machine from that template, Sysprep will run automatically on the first boot;

2) Create a virtual machine from the template, log on Windows and run the Sysprep manually;

3) During the deploy from template Wizard, use the option Guest Customization, that will run Sysprep on virtual machine during the deployment.

---

Richardson Porto
Senior Infrastructure Specialist
LinkedIn: http://linkedin.com/in/richardsonporto

View solution in original post

0 Kudos
5 Replies
rcporto
Leadership
Leadership

There are many ways to run Sysprep when creating a VM from a template, here are some:

1) Run Sysprep on the "master" virtual machine, choose the Sysprep option to shutdown, and then convert the VM to a template, than when you create a virtual machine from that template, Sysprep will run automatically on the first boot;

2) Create a virtual machine from the template, log on Windows and run the Sysprep manually;

3) During the deploy from template Wizard, use the option Guest Customization, that will run Sysprep on virtual machine during the deployment.

---

Richardson Porto
Senior Infrastructure Specialist
LinkedIn: http://linkedin.com/in/richardsonporto

View solution in original post

0 Kudos
pbalderos
Enthusiast
Enthusiast

Thank you! That clears it all up now.

Phillip Balderos VCP6-DCV
0 Kudos
TomHowarth
Leadership
Leadership

All sysprep does is remove the personality from a windows operating system.  if you are using an Active Directory domain, when you join the newly created machine to the domain it will receive a new GUID from the RID FSMO holder,   all that this would leave is a for the machine to be given a unique computer name, and IP Address during deployment.  This could be scripted or you could use the deployment wizard.

So technically, no you do not need to utilise Sysprep. for example VDI desktops deployed via VMware Horizon View do not actually utilise a full version of Sysprep. but use a process called Quickprep.

Tom Howarth VCP / VCAP / vExpert
VMware Communities User Moderator
Blog: http://www.planetvm.net
Contributing author on VMware vSphere and Virtual Infrastructure Security: Securing ESX and the Virtual Environment
Contributing author on VCP VMware Certified Professional on VSphere 4 Study Guide: Exam VCP-410
0 Kudos
jeanchen
Community Manager
Community Manager

test, please ignore

--Jean --vmware
0 Kudos
TonyJK
Enthusiast
Enthusiast

Dear Richardson,

May I ask when we prepare the Master Image, do we need to join it to Domain ?

Besides, if it is SYSPREP before deployment, does it mean that we should not use "Guest Customisation" or just skip the "Generate Security ID" ?

Thanks

0 Kudos